Meta results regarding sorry and pseudo attributions #
Some of the code here is adapted from from the file: Lean.Util.CollectAxioms copyright (c) 2020 Microsoft Corporation. Authored by Leonardo de Moura.
A structure used for collecting names of results dependent on the
sorryAx axiom and the Lean.ofReduceBool axiom.
- visited : Lean.NameSet
The names which have already been visited as part of the state.
- containsSorry : Lean.NameSet
The names which depend on the
sorryAxaxiom. - containsOfReduceBool : Lean.NameSet
The names which depend on the
Lean.ofReduceBoolaxiom.
Instances For
A monad used for collecting names of results dependent on the
sorryAx axiom and the Lean.ofReduceBool axiom.
Instances For
Given a c : Name updating the monad M based on which results which c uses
depend on the sorryAx axiom and the Lean.ofReduceBool axiom.
Given a c : Array Name updating the monad M based on which results
depend on the sorryAx axiom and the Lean.ofReduceBool axiom.
Equations
- PhysLean.CollectSorry.allSorryPseudo c = Array.forM (fun (x : Lean.Name) => PhysLean.CollectSorry.collect x ∅) c
Instances For
Given a c : Array Name the names of all results used to defined
the results in c with the sorryAx axiom and the Lean.ofReduceBool axiom.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The axioms of a constant.
Equations
- PhysLean.allWithSorryPseudo = do let __do_lift ← PhysLean.allUserConsts let x ← PhysLean.collectSorryPseudo (Array.map (fun (c : Lean.ConstantInfo) => c.name) __do_lift) pure x
Instances For
All names which are attributed sorryful.
Equations
- One or more equations did not get rendered due to their size.
Instances For
All names which are attributed pseudo.
Equations
- PhysLean.allPseudoAttributed = do let env ← Lean.getEnv let pseudoInfos : Array PseudoInfo := pseudoExtension.getState env pure (Array.map (fun (info : PseudoInfo) => info.name) pseudoInfos)
Instances For
Checks whether all results attributed sorryful depend on the ```sorryAx`
axiom and vice versa.
Equations
- One or more equations did not get rendered due to their size.