Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/MathlibTest/Linter/     Datei vom 15.10.2026 mit Größe 1002 B image not shown  

Quelle  DoubleUnderscore.lean   Sprache: Lean

 

module

public import Mathlib.Tactic.Linter.Style

set_option linter.style.nameCheck true
variable (n : Nat)

-- this notation generates the declaration `«term__,»` that has a double underscore,
-- but is allowed by `linter.style.nameCheck`.
notation "_" n "," => Nat.succ n

/-- info: `«term__,» : Lean.Name -/
#guard_msgs in
#check `«term__,»

/--
warning: The declaration 'double__underscore' contains '__', which does not follow the mathlib naming conventions. Consider using single underscores instead.

Note: This linter can be disabled with `set_option linter.style.nameCheck false`
-/

#guard_msgs in
def double__underscore : Unit := ()

/--
warning: The declaration 'double__underscore'' contains '__', which does not follow the mathlib naming conventions. Consider using single underscores instead.

Note: This linter can be disabled with `set_option linter.style.nameCheck false`
-/

#guard_msgs in
set_option linter.style.nameCheck true in
theorem double__underscore' : True := trivial

Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.10 Sekunden  ¤

*© Formatika GbR, Deutschland