Facts collection for the order Tactic #
This file implements the collection of facts for the order tactic.
A structure for storing facts about variables.
- eq (lhs rhs : โ) (proof : Lean.Expr) : AtomicFact
- ne (lhs rhs : โ) (proof : Lean.Expr) : AtomicFact
- le (lhs rhs : โ) (proof : Lean.Expr) : AtomicFact
- nle (lhs rhs : โ) (proof : Lean.Expr) : AtomicFact
- lt (lhs rhs : โ) (proof : Lean.Expr) : AtomicFact
- nlt (lhs rhs : โ) (proof : Lean.Expr) : AtomicFact
- isTop (idx : โ) : AtomicFact
- isBot (idx : โ) : AtomicFact
- isInf (lhs rhs res : โ) : AtomicFact
- isSup (lhs rhs res : โ) : AtomicFact
Instances For
Equations
Equations
Instances For
Equations
Instances For
Equations
State for CollectFactsM. It contains a map that maps a type to atomic facts collected for
this type.
Equations
Instances For
Monad for the fact collection procedure.
Equations
Instances For
Adds type to the state. It checks if the type has already been added up to
reducible_and_instances transparency. Returns the type that is added to the state and
defenitionally equal (but may be not syntactically equal) to type.
Equations
Instances For
Updates the state with the atom x. If x is โค or โฅ, adds the corresponding fact. If x
is y โ z, adds a fact about it, then recursively calls addAtom on y and z.
Similarly for โ. Assumes that type is already added by addType.
Implementation for collectFacts in CollectFactsM monad.
Equations
Instances For
Collects facts from the local context. negGoal is the negated goal, hyps is the expressions
passed to the tactic using square brackets. If only? is true, we collect facts only from hyps
and negGoal, otherwise we also use the local context.
For each occurring type ฮฑ, the returned map contains an array containing all collected
AtomicFacts about atoms of type ฮฑ.