Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/NumberTheory/NumberField/     Datei vom 15.10.2026 mit Größe 17 kB image not shown  

Quelle  Notation3.lean   Sprache: Lean

 

module

import all Mathlib.Tactic.Linter.PrivateModule
import Mathlib.Util.Notation3

open Lean

local notation3 "MyList[" (x", "* => foldr (a b => List.cons a b) List.nil) "]" => x

/- Check that we have indeed created declarations, and aren't not linting just due to being an
empty file: -/

/--
info: [_private.MathlibTest.Linter.PrivateModule.Notation3.0.«termMyList[_,]»,
 _private.MathlibTest.Linter.PrivateModule.Notation3.0.«_aux_MathlibTest_Linter_PrivateModule_Notation3___macroRules__private_MathlibTest_Linter_PrivateModule_Notation3_0_termMyList[_,]_1»,
 _private.MathlibTest.Linter.PrivateModule.Notation3.0.«_aux_MathlibTest_Linter_PrivateModule_Notation3___delab_app__private_MathlibTest_Linter_PrivateModule_Notation3_0_termMyList[_,]_2»,
 _private.MathlibTest.Linter.PrivateModule.Notation3.0.«_aux_MathlibTest_Linter_PrivateModule_Notation3___delab_app__private_MathlibTest_Linter_PrivateModule_Notation3_0_termMyList[_,]_1»]
-/

#guard_msgs in
run_cmd do
  logInfo m!"{(← getEnv).constants.map₂.toArray.map (·.1)}"

-- The linter should fire since the `notation3` is local
set_option linter.mathlibStandardSet true in
open Mathlib.Linter Parser in
/--
warning: The current module only contains private declarations.

Consider adding `public section` at the beginning of the module, or selectively marking declarations as `public`. Mark a `def` with `@[expose]` if downstream code needs it to be definitionally equal to its body (e.g. for `unfold`). Alternatively, add `@[expose] public section` to mark every definition as exposed.

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

#guard_msgs in
run_cmd privateModule.run #[]

Messung
CHZG
9110010096

¤ Dauer der Verarbeitung: 0.361 Sekunden  ¤

*© Formatika GbR, Deutschland