The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Order.CollectFacts
45 declarations. Mathlib docs · Source
theorem Mathlib.Tactic.Order.AtomicFact.nlt.injEq E0 #
∀ (lhs rhs : ℕ) (proof : Lean.Expr) (lhs_1 rhs_1 : ℕ) (proof_1 : Lean.Expr),
(Mathlib.Tactic.Order.AtomicFact.nlt lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.nlt lhs_1 rhs_1 proof_1) =
(lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1)
theorem Mathlib.Tactic.Order.AtomicFact.isSup.inj E1 #
∀ {lhs rhs res lhs_1 rhs_1 res_1 : ℕ},
Mathlib.Tactic.Order.AtomicFact.isSup lhs rhs res = Mathlib.Tactic.Order.AtomicFact.isSup lhs_1 rhs_1 res_1 →
lhs = lhs_1 ∧ rhs = rhs_1 ∧ res = res_1
theorem Mathlib.Tactic.Order.AtomicFact.nle.inj E1 #
∀ {lhs rhs : ℕ} {proof : Lean.Expr} {lhs_1 rhs_1 : ℕ} {proof_1 : Lean.Expr},
Mathlib.Tactic.Order.AtomicFact.nle lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.nle lhs_1 rhs_1 proof_1 →
lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1
abbrev Mathlib.Tactic.Order.AtomicFact.ctorElimType E1 #
{motive : Mathlib.Tactic.Order.AtomicFact → Sort u} → ℕ → Sort (max 1 u)
theorem Mathlib.Tactic.Order.AtomicFact.nlt.inj E1 #
∀ {lhs rhs : ℕ} {proof : Lean.Expr} {lhs_1 rhs_1 : ℕ} {proof_1 : Lean.Expr},
Mathlib.Tactic.Order.AtomicFact.nlt lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.nlt lhs_1 rhs_1 proof_1 →
lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1
theorem Mathlib.Tactic.Order.AtomicFact.ne.injEq E0 #
∀ (lhs rhs : ℕ) (proof : Lean.Expr) (lhs_1 rhs_1 : ℕ) (proof_1 : Lean.Expr),
(Mathlib.Tactic.Order.AtomicFact.ne lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.ne lhs_1 rhs_1 proof_1) =
(lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1)
theorem Mathlib.Tactic.Order.AtomicFact.nle.injEq E0 #
∀ (lhs rhs : ℕ) (proof : Lean.Expr) (lhs_1 rhs_1 : ℕ) (proof_1 : Lean.Expr),
(Mathlib.Tactic.Order.AtomicFact.nle lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.nle lhs_1 rhs_1 proof_1) =
(lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1)
theorem Mathlib.Tactic.Order.AtomicFact.isInf.inj E1 #
∀ {lhs rhs res lhs_1 rhs_1 res_1 : ℕ},
Mathlib.Tactic.Order.AtomicFact.isInf lhs rhs res = Mathlib.Tactic.Order.AtomicFact.isInf lhs_1 rhs_1 res_1 →
lhs = lhs_1 ∧ rhs = rhs_1 ∧ res = res_1
theorem Mathlib.Tactic.Order.AtomicFact.eq.injEq E0 #
∀ (lhs rhs : ℕ) (proof : Lean.Expr) (lhs_1 rhs_1 : ℕ) (proof_1 : Lean.Expr),
(Mathlib.Tactic.Order.AtomicFact.eq lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.eq lhs_1 rhs_1 proof_1) =
(lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1)
def Mathlib.Tactic.Order.instInhabitedAtomicFact.default E1 #
Mathlib.Tactic.Order.AtomicFact
theorem Mathlib.Tactic.Order.AtomicFact.ne.inj E1 #
∀ {lhs rhs : ℕ} {proof : Lean.Expr} {lhs_1 rhs_1 : ℕ} {proof_1 : Lean.Expr},
Mathlib.Tactic.Order.AtomicFact.ne lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.ne lhs_1 rhs_1 proof_1 →
lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1
theorem Mathlib.Tactic.Order.AtomicFact.isBot.inj E1 #
∀ {idx idx_1 : ℕ}, Mathlib.Tactic.Order.AtomicFact.isBot idx = Mathlib.Tactic.Order.AtomicFact.isBot idx_1 → idx = idx_1
def Mathlib.Tactic.Order.AtomicFact.ctorIdx E1 #
Mathlib.Tactic.Order.AtomicFact → ℕ
theorem Mathlib.Tactic.Order.AtomicFact.lt.injEq E0 #
∀ (lhs rhs : ℕ) (proof : Lean.Expr) (lhs_1 rhs_1 : ℕ) (proof_1 : Lean.Expr),
(Mathlib.Tactic.Order.AtomicFact.lt lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.lt lhs_1 rhs_1 proof_1) =
(lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1)
theorem Mathlib.Tactic.Order.AtomicFact.le.injEq E0 #
∀ (lhs rhs : ℕ) (proof : Lean.Expr) (lhs_1 rhs_1 : ℕ) (proof_1 : Lean.Expr),
(Mathlib.Tactic.Order.AtomicFact.le lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.le lhs_1 rhs_1 proof_1) =
(lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1)
theorem Mathlib.Tactic.Order.AtomicFact.isBot.injEq E0 #
∀ (idx idx_1 : ℕ),
(Mathlib.Tactic.Order.AtomicFact.isBot idx = Mathlib.Tactic.Order.AtomicFact.isBot idx_1) = (idx = idx_1)
theorem Mathlib.Tactic.Order.AtomicFact.isInf.injEq E0 #
∀ (lhs rhs res lhs_1 rhs_1 res_1 : ℕ),
(Mathlib.Tactic.Order.AtomicFact.isInf lhs rhs res = Mathlib.Tactic.Order.AtomicFact.isInf lhs_1 rhs_1 res_1) =
(lhs = lhs_1 ∧ rhs = rhs_1 ∧ res = res_1)
theorem Mathlib.Tactic.Order.AtomicFact.lt.inj E1 #
∀ {lhs rhs : ℕ} {proof : Lean.Expr} {lhs_1 rhs_1 : ℕ} {proof_1 : Lean.Expr},
Mathlib.Tactic.Order.AtomicFact.lt lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.lt lhs_1 rhs_1 proof_1 →
lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1
theorem Mathlib.Tactic.Order.AtomicFact.isTop.inj E1 #
∀ {idx idx_1 : ℕ}, Mathlib.Tactic.Order.AtomicFact.isTop idx = Mathlib.Tactic.Order.AtomicFact.isTop idx_1 → idx = idx_1
theorem Mathlib.Tactic.Order.AtomicFact.le.inj E1 #
∀ {lhs rhs : ℕ} {proof : Lean.Expr} {lhs_1 rhs_1 : ℕ} {proof_1 : Lean.Expr},
Mathlib.Tactic.Order.AtomicFact.le lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.le lhs_1 rhs_1 proof_1 →
lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1
theorem Mathlib.Tactic.Order.AtomicFact.isTop.injEq E0 #
∀ (idx idx_1 : ℕ),
(Mathlib.Tactic.Order.AtomicFact.isTop idx = Mathlib.Tactic.Order.AtomicFact.isTop idx_1) = (idx = idx_1)
theorem Mathlib.Tactic.Order.AtomicFact.eq.inj E1 #
∀ {lhs rhs : ℕ} {proof : Lean.Expr} {lhs_1 rhs_1 : ℕ} {proof_1 : Lean.Expr},
Mathlib.Tactic.Order.AtomicFact.eq lhs rhs proof = Mathlib.Tactic.Order.AtomicFact.eq lhs_1 rhs_1 proof_1 →
lhs = lhs_1 ∧ rhs = rhs_1 ∧ proof = proof_1
theorem Mathlib.Tactic.Order.AtomicFact.isSup.injEq E0 #
∀ (lhs rhs res lhs_1 rhs_1 res_1 : ℕ),
(Mathlib.Tactic.Order.AtomicFact.isSup lhs rhs res = Mathlib.Tactic.Order.AtomicFact.isSup lhs_1 rhs_1 res_1) =
(lhs = lhs_1 ∧ rhs = rhs_1 ∧ res = res_1)
inductive Mathlib.Tactic.Order.AtomicFact E1 #
Type
A structure for storing facts about variables.
ctor Mathlib.Tactic.Order.AtomicFact.eq E0 #
ℕ → ℕ → Lean.Expr → Mathlib.Tactic.Order.AtomicFact
ctor Mathlib.Tactic.Order.AtomicFact.ne E0 #
ℕ → ℕ → Lean.Expr → Mathlib.Tactic.Order.AtomicFact
ctor Mathlib.Tactic.Order.AtomicFact.le E0 #
ℕ → ℕ → Lean.Expr → Mathlib.Tactic.Order.AtomicFact
ctor Mathlib.Tactic.Order.AtomicFact.nle E0 #
ℕ → ℕ → Lean.Expr → Mathlib.Tactic.Order.AtomicFact
ctor Mathlib.Tactic.Order.AtomicFact.lt E0 #
ℕ → ℕ → Lean.Expr → Mathlib.Tactic.Order.AtomicFact
ctor Mathlib.Tactic.Order.AtomicFact.nlt E0 #
ℕ → ℕ → Lean.Expr → Mathlib.Tactic.Order.AtomicFact
ctor Mathlib.Tactic.Order.AtomicFact.isTop E0 #
ℕ → Mathlib.Tactic.Order.AtomicFact
ctor Mathlib.Tactic.Order.AtomicFact.isBot E0 #
ℕ → Mathlib.Tactic.Order.AtomicFact
ctor Mathlib.Tactic.Order.AtomicFact.isInf E0 #
ℕ → ℕ → ℕ → Mathlib.Tactic.Order.AtomicFact
ctor Mathlib.Tactic.Order.AtomicFact.isSup E0 #
ℕ → ℕ → ℕ → Mathlib.Tactic.Order.AtomicFact
instance Mathlib.Tactic.Order.instBEqAtomicFact E0 #
BEq Mathlib.Tactic.Order.AtomicFact
instance Mathlib.Tactic.Order.instInhabitedAtomicFact E0 #
Inhabited Mathlib.Tactic.Order.AtomicFact
def Mathlib.Tactic.Order.instBEqAtomicFact.beq E1 #
Mathlib.Tactic.Order.AtomicFact → Mathlib.Tactic.Order.AtomicFact → Bool
instance Mathlib.Tactic.Order.instToStringAtomicFact E0 #
ToString Mathlib.Tactic.Order.AtomicFact
abbrev Mathlib.Tactic.Order.CollectFactsState E1 #
Type
State for CollectFactsM. It contains a map that maps a type to atomic facts collected for
this type.
abbrev Mathlib.Tactic.Order.CollectFactsM E1 #
Type → Type
Monad for the fact collection procedure.
def Mathlib.Tactic.Order.addType E1 #
{u : Lean.Level} → Q(Type u) → Mathlib.Tactic.Order.CollectFactsM Q(Type u)
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
definitionally equal (but may be not syntactically equal) to type.
def Mathlib.Tactic.Order.addFact E1 #
Lean.Expr → Mathlib.Tactic.Order.AtomicFact → Mathlib.Tactic.Order.CollectFactsM Unit
Adds fact to the state. Assumes that type is already added by addType.
opaque Mathlib.Tactic.Order.addAtom E1 #
{u : Lean.Level} → (type : Q(Type u)) → Q(«$type») → Mathlib.Tactic.Order.CollectFactsM ℕ
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.
def Mathlib.Tactic.Order.collectFactsImp E1 #
Bool → Array Lean.Expr → Lean.Expr → Mathlib.Tactic.Order.CollectFactsM Unit
Implementation for collectFacts in CollectFactsM monad.
def Mathlib.Tactic.Order.collectFacts E1 #
Bool →
Array Lean.Expr → Lean.Expr → Mathlib.Tactic.AtomM (Std.HashMap Lean.Expr (Array Mathlib.Tactic.Order.AtomicFact))
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 α.