Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  AssertExists.lean   Sprache: Lean

 

module

public import Lean.Elab.AssertExists

@[expose] public section

/-- info: No assertions made. -/
#guard_msgs in
#check_assertions

#check_assertions!

assert_not_exists Nats

theorem Nats : True := .intro

/--
info:
✅️ 'Nats' (declaration) asserted in 'MathlibTest.AssertExists'.
---
✅️ means the declaration or import exists.
❌️ means the declaration or import does not exist.
-/

#guard_msgs in
#check_assertions

#check_assertions!

/--
warning: the module 'Lean.Elab.Command' is (transitively) imported via
Lean.Elab.Command,
  which is imported by Lean.Elab.AssertExists,
  which is imported by this file.
-/

#guard_msgs in
assert_not_imported
  Mathlib.Tactic.Common
  Lean.Elab.Command
  I_do_not_exist

/--
warning:
✅️ 'Nats' (declaration) asserted in 'MathlibTest.AssertExists'.
❌️ 'I_do_not_exist' (module) asserted in 'MathlibTest.AssertExists'.
❌️ 'Mathlib.Tactic.Common' (module) asserted in 'MathlibTest.AssertExists'.
---
✅️ means the declaration or import exists.
❌️ means the declaration or import does not exist.
-/

#guard_msgs in
#check_assertions

/--
warning:
❌️ 'I_do_not_exist' (module) asserted in 'MathlibTest.AssertExists'.
❌️ 'Mathlib.Tactic.Common' (module) asserted in 'MathlibTest.AssertExists'.
---
✅️ means the declaration or import exists.
❌️ means the declaration or import does not exist.
-/

#guard_msgs in
#check_assertions!
/--
error: Declaration Lean.Elab.Command.elabAssertNotExists is not allowed to be imported by this file.
It is defined in Lean.Elab.AssertExists,
  which is imported by this file.

These invariants are maintained by `assert_not_exists` statements, and exist in order to ensure that "complicated" parts of the library are not accidentally introduced as dependencies of "simple" parts of the library.
---
error: Declaration Lean.Elab.Command.elabAssertNotImported is not allowed to be imported by this file.
It is defined in Lean.Elab.AssertExists,
  which is imported by this file.

These invariants are maintained by `assert_not_exists` statements, and exist in order to ensure that "complicated" parts of the library are not accidentally introduced as dependencies of "simple" parts of the library.
-/

#guard_msgs in
assert_not_exists
  Lean.Elab.Command.elabAssertNotExists
  Lean.Elab.Command.elabAssertNotImported
  I_do_not_exist

Messung
CHZG
100100100100

¤ Dauer der Verarbeitung: 0.2 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,068
#Domains=861,805