FormalConjecturesUtil/Linters/AMSLinter.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
3 declarations, 0 contain sorry, 0 declared as axioms
The AMS Linter
The AMSLinter is a linter to aid with formatting contributions to
the Formal Conjectures repository by ensuring that results in a file have
the appropriate subject tags.
Imported by 2 files
- def
AMSLinter.toAMSChecks if a command has theAMSattribute line 42 sourceSource documentation
Checks if a command has the
AMSattribute.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Lean.TSyntax,List.cons,Lean.SyntaxNodeKind,Lean.Name.mkStr4,List.nil,Lean.Elab.Command.CommandElabM,Array,Lean.TSyntaxArray,Lean.Name.mkStr1Proof uses:
ite,Eq,Bool,Lean.Syntax.isOfKind,Lean.TSyntax.raw,Bool.true,Lean.Syntax,Lean.Syntax.getArg,OfNat.ofNat,Nat,Lean.Syntax.matchesNull,Option,Array.mapM,Lean.TSyntax.mk,Option.some,Array.getSepElems,Lean.Syntax.getArgs,Array.filterMapM,Lean.Name.mkStr2,Lean.TSyntaxArray.mkand 12 more9 instances, coercions and auxiliary constants left out.
def toAMS (stx : TSyntax ``Command.declModifiers) : CommandElabM (Array <| TSyntaxArray `num) := do … - def
AMSLinter.mkAMSSyntaxline 52 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Lean.TSyntaxArray,List.cons,Lean.SyntaxNodeKind,Lean.Name.mkStr1,List.nil,Lean.Elab.Command.CommandElabM,Lean.TSyntax,Lean.Name.mkStr4Proof uses:
Bind.bind,Lean.SourceInfo,Lean.MonadRef.mkInfoFromRefPos,Lean.MacroScope,Lean.MonadQuotation.getCurrMacroScope,Lean.Name,Lean.MonadQuotation.getContext,Pure.pure,Lean.Elab.Command.Context,StateRefT',IO.RealWorld,Lean.Elab.Command.State,EIO,Lean.Exception,Lean.TSyntax.mk,Lean.Syntax.node2,Lean.Syntax.node1,Lean.Syntax.node,Array.mkArray0,Lean.Syntaxand 4 more8 instances, coercions and auxiliary constants left out.
- def
AMSLinter.AMSLinterThe problem category linter checks that every theorem/lemma/example has been given anAMSattribute line 57 sourceSource documentation
The problem category linter checks that every theorem/lemma/example has been given an
AMSattribute.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Lean.Elab.Command.LinterProof uses:
Lean.Elab.Command.Linter.mk,Lean.withSetOptionIn,Lean.Syntax,ite,Lean.Elab.Command.CommandElabM,Unit,Eq,Bool,Lean.Syntax.isOfKind,Lean.Name.mkStr4,Bool.true,Lean.Syntax.getArg,OfNat.ofNat,Nat,cond,Bool.or,Bool.false,Lean.Syntax.matchesNull,Lean.TSyntax,List.consand 58 more31 instances, coercions and auxiliary constants left out.
def AMSLinter : Linter where …