Equations
- DeclAudit.kindOf (Lean.ConstantInfo.axiomInfo val) = "axiom"
- DeclAudit.kindOf (Lean.ConstantInfo.defnInfo val) = "def"
- DeclAudit.kindOf (Lean.ConstantInfo.thmInfo val) = "theorem"
- DeclAudit.kindOf (Lean.ConstantInfo.opaqueInfo val) = "opaque"
- DeclAudit.kindOf (Lean.ConstantInfo.quotInfo val) = "quot"
- DeclAudit.kindOf (Lean.ConstantInfo.inductInfo val) = "inductive"
- DeclAudit.kindOf (Lean.ConstantInfo.ctorInfo val) = "ctor"
- DeclAudit.kindOf (Lean.ConstantInfo.recInfo val) = "recursor"
Instances For
Equations
- DeclAudit.formatNames names = "[" ++ ", ".intercalate (Array.map (fun (n : Lean.Name) => n.toString) names).toList ++ "]"
Instances For
Equations
- DeclAudit.oneLine s = s.replace "\n" " "
Instances For
Equations
- DeclAudit.mergeNames xs ys = Array.foldl DeclAudit.pushName xs ys
Instances For
Equations
- DeclAudit.nameSetOf names = Array.foldl (fun (acc : Std.HashSet Lean.Name) (name : Lean.Name) => acc.insert name) Std.HashSet.emptyWithCapacity names
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- DeclAudit.projectDeclSet modulePrefix = do let decls ← DeclAudit.analysisDecls modulePrefix pure (DeclAudit.nameSetOf decls)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- DeclAudit.nodeKind name = do let env ← Lean.getEnv match env.find? name with | some info => pure (DeclAudit.kindOf info) | none => pure "unknown"
Instances For
def
DeclAudit.ensureProjectDecl
(modulePrefix : String)
(projectDecls : Std.HashSet Lean.Name)
(name : Lean.Name)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- DeclAudit.getCheckedConst? name = do let __do_lift ← Lean.getEnv pure (__do_lift.checked.get.find? name)