module
stringlengths
16
90
startPos
dict
endPos
dict
nextStartPos
dict
goals
listlengths
0
96
goalsAfter
listlengths
0
96
ppTac
stringlengths
1
14.5k
elaborator
stringclasses
371 values
kind
stringclasses
375 values
Mathlib.Data.Nat.BinaryRec
{ "line": 132, "column": 47 }
{ "line": 132, "column": 60 }
{ "line": 132, "column": 61 }
[ { "pp": "b : Bool\nn : Nat\n⊢ b.toNat / 2 + n = n", "ppTerm": "?m.21", "assigned": true, "usedConstants": [ "Eq.mpr", "instHDiv", "congrArg", "Bool.toNat", "id", "HDiv.hDiv", "instOfNatNat", "instHAdd", "HAdd.hAdd", "Nat", "Nat.instDi...
[ "b : Bool\nn : Nat\n⊢ 0 + n = n", "b : Bool\nn : Nat\n⊢ b.toNat < 2", "case H\nb : Bool\nn : Nat\n⊢ 0 < 2" ]
div_eq_of_lt,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Group.Defs
{ "line": 1302, "column": 95 }
{ "line": 1303, "column": 37 }
{ "line": 1305, "column": 0 }
[ { "pp": "G : Type u_1\ninst✝ : CommGroup G\na b : G\n⊢ a⁻¹ * (b * a) = b", "ppTerm": "?m.12", "assigned": true, "usedConstants": [ "mul_inv_cancel_right", "Eq.mpr", "DivInvMonoid.toInv", "HMul.hMul", "CommMonoid.toCommSemigroup", "Monoid.toMulOneClass", "con...
[]
by rw [mul_comm, mul_inv_cancel_right]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Data.FunLike.Basic
{ "line": 235, "column": 2 }
{ "line": 235, "column": 19 }
{ "line": 237, "column": 0 }
[ { "pp": "F : Sort u_1\nα : Sort u_2\nβ : Sort u_3\ni : FunLike F α β\nP : Prop\ninst✝ : Decidable P\nf : P → F\ng : ¬P → F\nx : α\n⊢ (if h : P then f h else g h) x = if h : P then (f h) x else (g h) x", "ppTerm": "?m.15", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "...
[]
split_ifs <;> rfl
Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1»
Lean.Parser.Tactic.«tactic_<;>_»
Mathlib.Data.FunLike.Basic
{ "line": 235, "column": 2 }
{ "line": 235, "column": 19 }
{ "line": 237, "column": 0 }
[ { "pp": "F : Sort u_1\nα : Sort u_2\nβ : Sort u_3\ni : FunLike F α β\nP : Prop\ninst✝ : Decidable P\nf : P → F\ng : ¬P → F\nx : α\n⊢ (if h : P then f h else g h) x = if h : P then (f h) x else (g h) x", "ppTerm": "?m.15", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.FunLike.Basic
{ "line": 235, "column": 2 }
{ "line": 235, "column": 19 }
{ "line": 237, "column": 0 }
[ { "pp": "F : Sort u_1\nα : Sort u_2\nβ : Sort u_3\ni : FunLike F α β\nP : Prop\ninst✝ : Decidable P\nf : P → F\ng : ¬P → F\nx : α\n⊢ (if h : P then f h else g h) x = if h : P then (f h) x else (g h) x", "ppTerm": "?m.15", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Logic.Equiv.Defs
{ "line": 860, "column": 17 }
{ "line": 860, "column": 73 }
{ "line": 861, "column": 2 }
[ { "pp": "α : Sort u\nβ : Sort v\nγ : Sort w\nra : α → α → Prop\nrb : β → β → Prop\ne : α ≃ β\neq : ∀ (a₁ a₂ : α), ra a₁ a₂ ↔ rb (e a₁) (e a₂)\n⊢ LeftInverse (Quot.map ⇑e.symm ⋯) (Quot.map ⇑e ⋯)", "ppTerm": "?m.48", "assigned": true, "usedConstants": [ "Iff.mpr", "Equiv.apply_symm_apply",...
[]
rintro ⟨a⟩; simp only [Quot.map, Equiv.symm_apply_apply]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Logic.Equiv.Defs
{ "line": 860, "column": 17 }
{ "line": 860, "column": 73 }
{ "line": 861, "column": 2 }
[ { "pp": "α : Sort u\nβ : Sort v\nγ : Sort w\nra : α → α → Prop\nrb : β → β → Prop\ne : α ≃ β\neq : ∀ (a₁ a₂ : α), ra a₁ a₂ ↔ rb (e a₁) (e a₂)\n⊢ LeftInverse (Quot.map ⇑e.symm ⋯) (Quot.map ⇑e ⋯)", "ppTerm": "?m.48", "assigned": true, "usedConstants": [ "Iff.mpr", "Equiv.apply_symm_apply",...
[]
rintro ⟨a⟩; simp only [Quot.map, Equiv.symm_apply_apply]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Group.Action.Faithful
{ "line": 61, "column": 37 }
{ "line": 61, "column": 52 }
{ "line": 63, "column": 0 }
[ { "pp": "M : Type u_1\nG : Type u_2\nα : Type u_3\nR : Type u_4\ninst✝ : MulOneClass R\nr₁ r₂ : R\nh : ∀ (a : R), r₁ • a = r₂ • a\n⊢ r₁ = r₂", "ppTerm": "?m.8", "assigned": true, "usedConstants": [ "MulOne.toOne", "instHSMul", "instSMulOfMul", "congrArg", "Eq.mp", ...
[]
simpa using h 1
Lean.Elab.Tactic.Simpa.evalSimpa
Lean.Parser.Tactic.simpa
Mathlib.Algebra.Group.Action.Faithful
{ "line": 61, "column": 37 }
{ "line": 61, "column": 52 }
{ "line": 63, "column": 0 }
[ { "pp": "M : Type u_1\nG : Type u_2\nα : Type u_3\nR : Type u_4\ninst✝ : MulOneClass R\nr₁ r₂ : R\nh : ∀ (a : R), r₁ • a = r₂ • a\n⊢ r₁ = r₂", "ppTerm": "?m.8", "assigned": true, "usedConstants": [ "MulOne.toOne", "instHSMul", "instSMulOfMul", "congrArg", "Eq.mp", ...
[]
simpa using h 1
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Group.Action.Faithful
{ "line": 61, "column": 37 }
{ "line": 61, "column": 52 }
{ "line": 63, "column": 0 }
[ { "pp": "M : Type u_1\nG : Type u_2\nα : Type u_3\nR : Type u_4\ninst✝ : MulOneClass R\nr₁ r₂ : R\nh : ∀ (a : R), r₁ • a = r₂ • a\n⊢ r₁ = r₂", "ppTerm": "?m.8", "assigned": true, "usedConstants": [ "MulOne.toOne", "instHSMul", "instSMulOfMul", "congrArg", "Eq.mp", ...
[]
simpa using h 1
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Group.Action.Faithful
{ "line": 66, "column": 37 }
{ "line": 66, "column": 52 }
{ "line": 68, "column": 0 }
[ { "pp": "M : Type u_1\nG : Type u_2\nα : Type u_3\nR : Type u_4\ninst✝ : MulOneClass R\nr₁ r₂ : Rᵐᵒᵖ\nh : ∀ (a : R), r₁ • a = r₂ • a\n⊢ r₁ = r₂", "ppTerm": "?m.8", "assigned": true, "usedConstants": [ "MulOne.toOne", "instHSMul", "Mul.toSMulMulOpposite", "congrArg", "Mu...
[]
simpa using h 1
Lean.Elab.Tactic.Simpa.evalSimpa
Lean.Parser.Tactic.simpa
Mathlib.Algebra.Group.Action.Faithful
{ "line": 66, "column": 37 }
{ "line": 66, "column": 52 }
{ "line": 68, "column": 0 }
[ { "pp": "M : Type u_1\nG : Type u_2\nα : Type u_3\nR : Type u_4\ninst✝ : MulOneClass R\nr₁ r₂ : Rᵐᵒᵖ\nh : ∀ (a : R), r₁ • a = r₂ • a\n⊢ r₁ = r₂", "ppTerm": "?m.8", "assigned": true, "usedConstants": [ "MulOne.toOne", "instHSMul", "Mul.toSMulMulOpposite", "congrArg", "Mu...
[]
simpa using h 1
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Group.Action.Faithful
{ "line": 66, "column": 37 }
{ "line": 66, "column": 52 }
{ "line": 68, "column": 0 }
[ { "pp": "M : Type u_1\nG : Type u_2\nα : Type u_3\nR : Type u_4\ninst✝ : MulOneClass R\nr₁ r₂ : Rᵐᵒᵖ\nh : ∀ (a : R), r₁ • a = r₂ • a\n⊢ r₁ = r₂", "ppTerm": "?m.8", "assigned": true, "usedConstants": [ "MulOne.toOne", "instHSMul", "Mul.toSMulMulOpposite", "congrArg", "Mu...
[]
simpa using h 1
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Group.Action.Defs
{ "line": 364, "column": 58 }
{ "line": 364, "column": 69 }
{ "line": 364, "column": 70 }
[ { "pp": "α : Type u_5\nβ : Type u_6\nγ : Type u_7\nδ : Type u_8\ninst✝⁷ : SMul α β\ninst✝⁶ : SMul α γ\ninst✝⁵ : SMul β δ\ninst✝⁴ : SMul α δ\ninst✝³ : SMul γ δ\ninst✝² : IsScalarTower α β δ\ninst✝¹ : IsScalarTower α γ δ\ninst✝ : SMulCommClass β γ δ\na : α\nb : β\nc : γ\nd : δ\n⊢ (a • b) • c • d = (a • c) • b • d...
[ "α : Type u_5\nβ : Type u_6\nγ : Type u_7\nδ : Type u_8\ninst✝⁷ : SMul α β\ninst✝⁶ : SMul α γ\ninst✝⁵ : SMul β δ\ninst✝⁴ : SMul α δ\ninst✝³ : SMul γ δ\ninst✝² : IsScalarTower α β δ\ninst✝¹ : IsScalarTower α γ δ\ninst✝ : SMulCommClass β γ δ\na : α\nb : β\nc : γ\nd : δ\n⊢ a • b • c • d = (a • c) • b • d" ]
smul_assoc,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Group.Action.Defs
{ "line": 364, "column": 70 }
{ "line": 364, "column": 81 }
{ "line": 364, "column": 82 }
[ { "pp": "α : Type u_5\nβ : Type u_6\nγ : Type u_7\nδ : Type u_8\ninst✝⁷ : SMul α β\ninst✝⁶ : SMul α γ\ninst✝⁵ : SMul β δ\ninst✝⁴ : SMul α δ\ninst✝³ : SMul γ δ\ninst✝² : IsScalarTower α β δ\ninst✝¹ : IsScalarTower α γ δ\ninst✝ : SMulCommClass β γ δ\na : α\nb : β\nc : γ\nd : δ\n⊢ a • b • c • d = (a • c) • b • d",...
[ "α : Type u_5\nβ : Type u_6\nγ : Type u_7\nδ : Type u_8\ninst✝⁷ : SMul α β\ninst✝⁶ : SMul α γ\ninst✝⁵ : SMul β δ\ninst✝⁴ : SMul α δ\ninst✝³ : SMul γ δ\ninst✝² : IsScalarTower α β δ\ninst✝¹ : IsScalarTower α γ δ\ninst✝ : SMulCommClass β γ δ\na : α\nb : β\nc : γ\nd : δ\n⊢ a • b • c • d = a • c • b • d" ]
smul_assoc,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Group.Action.Defs
{ "line": 480, "column": 55 }
{ "line": 480, "column": 66 }
{ "line": 480, "column": 67 }
[ { "pp": "M✝ : Type u_1\nN : Type u_2\nG : Type u_3\nH : Type u_4\nα : Type u_5\nβ : Type u_6\nγ : Type u_7\nδ : Type u_8\ninst✝⁴ : Monoid M✝\ninst✝³ : MulAction M✝ α\na : M✝\nR : Type u_9\nM : Type u_10\ninst✝² : CommMonoid M\ninst✝¹ : SMul R M\ninst✝ : IsScalarTower R M M\nr : R\ns x : M\n⊢ s • (r • 1) • x = s...
[ "M✝ : Type u_1\nN : Type u_2\nG : Type u_3\nH : Type u_4\nα : Type u_5\nβ : Type u_6\nγ : Type u_7\nδ : Type u_8\ninst✝⁴ : Monoid M✝\ninst✝³ : MulAction M✝ α\na : M✝\nR : Type u_9\nM : Type u_10\ninst✝² : CommMonoid M\ninst✝¹ : SMul R M\ninst✝ : IsScalarTower R M M\nr : R\ns x : M\n⊢ s • r • 1 • x = s • r • x" ]
smul_assoc,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Group.Action.Defs
{ "line": 548, "column": 17 }
{ "line": 548, "column": 28 }
{ "line": 548, "column": 29 }
[ { "pp": "A : Type u_9\nB : Type u_10\nG : Type u_11\ninst✝⁴ : CommMonoid G\ninst✝³ : SMul A G\ninst✝² : SMul B G\ninst✝¹ : IsScalarTower A G G\ninst✝ : IsScalarTower B G G\nr : A\ns : B\nx : G\n⊢ (s • 1) • (r • 1) • x = s • r • 1 • x", "ppTerm": "?m.62", "assigned": true, "usedConstants": [ "E...
[ "A : Type u_9\nB : Type u_10\nG : Type u_11\ninst✝⁴ : CommMonoid G\ninst✝³ : SMul A G\ninst✝² : SMul B G\ninst✝¹ : IsScalarTower A G G\ninst✝ : IsScalarTower B G G\nr : A\ns : B\nx : G\n⊢ s • 1 • (r • 1) • x = s • r • 1 • x" ]
smul_assoc,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Group.Action.Defs
{ "line": 548, "column": 39 }
{ "line": 548, "column": 50 }
{ "line": 548, "column": 51 }
[ { "pp": "A : Type u_9\nB : Type u_10\nG : Type u_11\ninst✝⁴ : CommMonoid G\ninst✝³ : SMul A G\ninst✝² : SMul B G\ninst✝¹ : IsScalarTower A G G\ninst✝ : IsScalarTower B G G\nr : A\ns : B\nx : G\n⊢ s • (r • 1) • x = s • r • 1 • x", "ppTerm": "?m.79", "assigned": true, "usedConstants": [ "Eq.mpr"...
[ "A : Type u_9\nB : Type u_10\nG : Type u_11\ninst✝⁴ : CommMonoid G\ninst✝³ : SMul A G\ninst✝² : SMul B G\ninst✝¹ : IsScalarTower A G G\ninst✝ : IsScalarTower B G G\nr : A\ns : B\nx : G\n⊢ s • r • 1 • x = s • r • 1 • x" ]
smul_assoc,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Group.Action.Defs
{ "line": 567, "column": 6 }
{ "line": 567, "column": 17 }
{ "line": 567, "column": 18 }
[ { "pp": "α : Type u_5\nM : Type u_9\nN : Type u_10\ninst✝⁴ : Monoid N\ninst✝³ : SMul M N\ninst✝² : MulAction N α\ninst✝¹ : SMul M α\ninst✝ : IsScalarTower M N α\nx : M\ny : α\n⊢ (x • 1) • y = x • y", "ppTerm": "?m.22", "assigned": true, "usedConstants": [ "Eq.mpr", "MulOne.toOne", ...
[ "α : Type u_5\nM : Type u_9\nN : Type u_10\ninst✝⁴ : Monoid N\ninst✝³ : SMul M N\ninst✝² : MulAction N α\ninst✝¹ : SMul M α\ninst✝ : IsScalarTower M N α\nx : M\ny : α\n⊢ x • 1 • y = x • y" ]
smul_assoc,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Group.Action.Defs
{ "line": 594, "column": 62 }
{ "line": 594, "column": 73 }
{ "line": 594, "column": 74 }
[ { "pp": "M : Type u_9\nN : Type u_10\nP : Type u_11\nQ : Type u_12\ninst✝⁹ : SMul M N\ninst✝⁸ : SMul M P\ninst✝⁷ : SMul M Q\ninst✝⁶ : SMul N P\ninst✝⁵ : SMul N Q\ninst✝⁴ : Monoid P\ninst✝³ : MulAction P Q\ninst✝² : IsScalarTower M N P\ninst✝¹ : IsScalarTower M P Q\ninst✝ : IsScalarTower N P Q\nm : M\nn : N\nq :...
[ "M : Type u_9\nN : Type u_10\nP : Type u_11\nQ : Type u_12\ninst✝⁹ : SMul M N\ninst✝⁸ : SMul M P\ninst✝⁷ : SMul M Q\ninst✝⁶ : SMul N P\ninst✝⁵ : SMul N Q\ninst✝⁴ : Monoid P\ninst✝³ : MulAction P Q\ninst✝² : IsScalarTower M N P\ninst✝¹ : IsScalarTower M P Q\ninst✝ : IsScalarTower N P Q\nm : M\nn : N\nq : Q\n⊢ m • (n...
smul_assoc,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Group.Action.Defs
{ "line": 603, "column": 50 }
{ "line": 603, "column": 61 }
{ "line": 603, "column": 62 }
[ { "pp": "M : Type u_9\nN : Type u_10\nP : Type u_11\nQ : Type u_12\ninst✝⁹ : SMul M N\ninst✝⁸ : SMul M P\ninst✝⁷ : SMul M Q\ninst✝⁶ : SMul P Q\ninst✝⁵ : Monoid N\ninst✝⁴ : MulAction N P\ninst✝³ : MulAction N Q\ninst✝² : IsScalarTower M N P\ninst✝¹ : IsScalarTower M N Q\ninst✝ : IsScalarTower N P Q\nm : M\np : P...
[ "M : Type u_9\nN : Type u_10\nP : Type u_11\nQ : Type u_12\ninst✝⁹ : SMul M N\ninst✝⁸ : SMul M P\ninst✝⁷ : SMul M Q\ninst✝⁶ : SMul P Q\ninst✝⁵ : Monoid N\ninst✝⁴ : MulAction N P\ninst✝³ : MulAction N Q\ninst✝² : IsScalarTower M N P\ninst✝¹ : IsScalarTower M N Q\ninst✝ : IsScalarTower N P Q\nm : M\np : P\nq : Q\n⊢ (...
smul_assoc,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Tactic.CongrExclamation
{ "line": 579, "column": 2 }
{ "line": 579, "column": 13 }
{ "line": 581, "column": 0 }
[ { "pp": "case refl\nα : Sort u_1\nx : α\np : x ≍ x → Prop\nh : ∀ (he : x = x), p ⋯\n⊢ p ⋯", "ppTerm": "?refl", "assigned": true, "usedConstants": [ "rfl" ], "usedFVars": [ "h", "α", "x" ], "usedGoals": [] } ]
[]
exact h rfl
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Data.Bool.Basic
{ "line": 193, "column": 18 }
{ "line": 193, "column": 42 }
{ "line": 193, "column": 43 }
[ { "pp": "case isFalse\nn m : Nat\nh : n ≤ m\nhn : ¬n = 0\nx✝ : Decidable (m = 0)\n⊢ (!decide (n = 0)) ≤ !decide (m = 0)", "ppTerm": "?isFalse", "assigned": true, "usedConstants": [ "Decidable.isTrue", "Decidable.casesOn", "Bool.not", "Decidable", "instOfNatNat", "...
[]
cases Nat.decEq m 0 with
_private.Lean.Elab.Tactic.Induction.0.Lean.Elab.Tactic.evalCases
null
Mathlib.Order.Monotone.Basic
{ "line": 688, "column": 2 }
{ "line": 689, "column": 76 }
{ "line": 691, "column": 0 }
[ { "pp": "α : Type u\ninst✝ : Preorder α\nf : ℤ → α\nhf : Monotone f\nn : ℤ\nx : α\nh1 : f n < x\nh2 : x < f (n + 1)\na : ℤ\n⊢ f a ≠ x", "ppTerm": "?m.16", "assigned": true, "usedConstants": [ "False", "Preorder.toLT", "Int.instLinearOrder", "PartialOrder.toPreorder", "I...
[]
rintro rfl exact (hf.reflect_lt h1).not_ge (Int.le_of_lt_add_one <| hf.reflect_lt h2)
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Order.Monotone.Basic
{ "line": 688, "column": 2 }
{ "line": 689, "column": 76 }
{ "line": 691, "column": 0 }
[ { "pp": "α : Type u\ninst✝ : Preorder α\nf : ℤ → α\nhf : Monotone f\nn : ℤ\nx : α\nh1 : f n < x\nh2 : x < f (n + 1)\na : ℤ\n⊢ f a ≠ x", "ppTerm": "?m.16", "assigned": true, "usedConstants": [ "False", "Preorder.toLT", "Int.instLinearOrder", "PartialOrder.toPreorder", "I...
[]
rintro rfl exact (hf.reflect_lt h1).not_ge (Int.le_of_lt_add_one <| hf.reflect_lt h2)
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Order.Heyting.Basic
{ "line": 711, "column": 57 }
{ "line": 714, "column": 11 }
{ "line": 716, "column": 0 }
[ { "pp": "α : Type u_2\ninst✝¹ : HeytingAlgebra α\na : α\ninst✝ : Nontrivial α\n⊢ a ≠ aᶜ", "ppTerm": "?m.4", "assigned": true, "usedConstants": [ "False", "Lattice.toSemilatticeSup", "bot_ne_top._simp_2", "congrArg", "HEq.refl", "Compl.compl", "False.elim", ...
[]
by intro h cases le_compl_self.1 (le_of_eq h) simp at h
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Order.Heyting.Basic
{ "line": 1073, "column": 2 }
{ "line": 1077, "column": 42 }
{ "line": 1079, "column": 0 }
[ { "pp": "ι : Type u_1\nα : Type u_2\nβ : Type u_3\ne : α ≃ β\ninst✝ : GeneralizedHeytingAlgebra β\n⊢ GeneralizedHeytingAlgebra α", "ppTerm": "?m.1", "assigned": true, "usedConstants": [ "Lattice", "Equiv.apply_symm_apply", "Preorder.toLT", "Lattice.toSemilatticeSup", "E...
[]
let lattice := e.lattice let top := e.top let himp := e.himp apply e.injective.generalizedHeytingAlgebra <;> intros <;> first | rfl | exact e.apply_symm_apply _
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Order.Heyting.Basic
{ "line": 1073, "column": 2 }
{ "line": 1077, "column": 42 }
{ "line": 1079, "column": 0 }
[ { "pp": "ι : Type u_1\nα : Type u_2\nβ : Type u_3\ne : α ≃ β\ninst✝ : GeneralizedHeytingAlgebra β\n⊢ GeneralizedHeytingAlgebra α", "ppTerm": "?m.1", "assigned": true, "usedConstants": [ "Lattice", "Equiv.apply_symm_apply", "Preorder.toLT", "Lattice.toSemilatticeSup", "E...
[]
let lattice := e.lattice let top := e.top let himp := e.himp apply e.injective.generalizedHeytingAlgebra <;> intros <;> first | rfl | exact e.apply_symm_apply _
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Logic.Equiv.Sum
{ "line": 271, "column": 4 }
{ "line": 271, "column": 21 }
{ "line": 273, "column": 0 }
[ { "pp": "α✝ : Sort u_1\nα₁ : Sort u_2\nα₂ : Sort u_3\nβ : Sort u_4\nβ₁ : Sort u_5\nβ₂ : Sort u_6\nγ : Sort u_7\nδ : Sort u_8\nα : Type u_9\np : α → Prop\ninst✝ : DecidablePred p\na : α\n⊢ Sum.elim Subtype.val Subtype.val (if h : p a then Sum.inl ⟨a, h⟩ else Sum.inr ⟨a, h⟩) = a", "ppTerm": "?m.78", "assi...
[]
split_ifs <;> rfl
Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1»
Lean.Parser.Tactic.«tactic_<;>_»
Mathlib.Data.Set.Piecewise
{ "line": 156, "column": 4 }
{ "line": 156, "column": 50 }
{ "line": 156, "column": 51 }
[ { "pp": "case mp\nα : Type u_1\nβ : Type u_2\ns : Set α\ninst✝ : (j : α) → Decidable (j ∈ s)\nf g : α → β\nx : α\n⊢ s.piecewise f g x ∈ f '' s ∪ g '' sᶜ", "ppTerm": "?mp", "assigned": true, "usedConstants": [ "Compl.compl", "Membership.mem", "Set.instUnion", "Set.instCompl", ...
[ "case h\nα : Type u_1\nβ : Type u_2\ns : Set α\ninst✝ : (j : α) → Decidable (j ∈ s)\nf g : α → β\nx : α\nh : x ∈ s\n⊢ x ∈ s ∧ f x = s.piecewise f g x", "case h\nα : Type u_1\nβ : Type u_2\ns : Set α\ninst✝ : (j : α) → Decidable (j ∈ s)\nf g : α → β\nx : α\nh : ¬x ∈ s\n⊢ x ∈ sᶜ ∧ g x = s.piecewise f g x" ]
by_cases h : x ∈ s <;> [left; right] <;> use x
Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1»
Lean.Parser.Tactic.«tactic_<;>_»
Mathlib.Algebra.Group.Action.Pi
{ "line": 139, "column": 2 }
{ "line": 139, "column": 19 }
{ "line": 141, "column": 0 }
[ { "pp": "ι : Type u_1\nM : Type u_7\nα : Type u_8\nβ : Type u_9\ninst✝ : SMul M β\nr : M\nf : ι → α\ng : ι → β\ne : α → β\nx : α\n⊢ (if h : ∃ a, f a = x then r • g (Classical.choose ⋯) else r • e x) =\n r • if h : ∃ a, f a = x then g (Classical.choose h) else e x", "ppTerm": "?m.29", "assigned": true...
[]
split_ifs <;> rfl
Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1»
Lean.Parser.Tactic.«tactic_<;>_»
Mathlib.Data.Set.Function
{ "line": 436, "column": 4 }
{ "line": 441, "column": 37 }
{ "line": 443, "column": 0 }
[ { "pp": "case refine_2\nα : Type u_1\nβ : Type u_2\ninst✝ : Nonempty β\ns : Set (α × β)\nh : InjOn Prod.fst s\n⊢ ∃ f, s = graphOn f (Prod.fst '' s)", "ppTerm": "?refine_2", "assigned": true, "usedConstants": [ "_private.Mathlib.Data.Set.Function.0.Set.exists_eq_graphOn_image_fst.match_1_1", ...
[]
have : ∀ x ∈ Prod.fst '' s, ∃ y, (x, y) ∈ s := forall_mem_image.2 fun (x, y) h ↦ ⟨y, h⟩ choose! f hf using this rw [forall_mem_image] at hf use f rw [graphOn, image_image, EqOn.image_eq_self] exact fun x hx ↦ h (hf hx) hx rfl
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Set.Function
{ "line": 436, "column": 4 }
{ "line": 441, "column": 37 }
{ "line": 443, "column": 0 }
[ { "pp": "case refine_2\nα : Type u_1\nβ : Type u_2\ninst✝ : Nonempty β\ns : Set (α × β)\nh : InjOn Prod.fst s\n⊢ ∃ f, s = graphOn f (Prod.fst '' s)", "ppTerm": "?refine_2", "assigned": true, "usedConstants": [ "_private.Mathlib.Data.Set.Function.0.Set.exists_eq_graphOn_image_fst.match_1_1", ...
[]
have : ∀ x ∈ Prod.fst '' s, ∃ y, (x, y) ∈ s := forall_mem_image.2 fun (x, y) h ↦ ⟨y, h⟩ choose! f hf using this rw [forall_mem_image] at hf use f rw [graphOn, image_image, EqOn.image_eq_self] exact fun x hx ↦ h (hf hx) hx rfl
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.Set.Prod
{ "line": 683, "column": 53 }
{ "line": 683, "column": 82 }
{ "line": 685, "column": 0 }
[ { "pp": "ι : Type u_1\nα : ι → Type u_2\ninst✝ : Unique ι\nt : (i : ι) → Set (α i)\n⊢ uniqueElim ⁻¹' univ.pi t = t default", "ppTerm": "?m.16", "assigned": true, "usedConstants": [ "Set.ext", "Inhabited.default", "congrArg", "Set.mem_univ._simp_1", "Set.univ", "in...
[]
ext; simp [Unique.forall_iff]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Set.Prod
{ "line": 683, "column": 53 }
{ "line": 683, "column": 82 }
{ "line": 685, "column": 0 }
[ { "pp": "ι : Type u_1\nα : ι → Type u_2\ninst✝ : Unique ι\nt : (i : ι) → Set (α i)\n⊢ uniqueElim ⁻¹' univ.pi t = t default", "ppTerm": "?m.16", "assigned": true, "usedConstants": [ "Set.ext", "Inhabited.default", "congrArg", "Set.mem_univ._simp_1", "Set.univ", "in...
[]
ext; simp [Unique.forall_iff]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.Set.Function
{ "line": 1304, "column": 45 }
{ "line": 1304, "column": 88 }
{ "line": 1306, "column": 0 }
[ { "pp": "α₁ : Type u_7\nα₂ : Type u_8\nβ₁ : Type u_9\nβ₂ : Type u_10\ns₁ : Set α₁\ns₂ : Set α₂\nf₁ : α₁ → β₁\nf₂ : α₂ → β₂\nh₁ : InjOn f₁ s₁\nh₂ : InjOn f₂ s₂\nx : α₁ × α₂\nhx : x ∈ s₁ ×ˢ s₂\ny : α₁ × α₂\nhy : y ∈ s₁ ×ˢ s₂\n⊢ f₁ x.1 = f₁ y.1 ∧ f₂ x.2 = f₂ y.2 → x.1 = y.1 ∧ x.2 = y.2", "ppTerm": "?m.33", ...
[]
exact And.imp (h₁ hx.1 hy.1) (h₂ hx.2 hy.2)
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Data.Int.Init
{ "line": 119, "column": 2 }
{ "line": 119, "column": 61 }
{ "line": 121, "column": 0 }
[ { "pp": "motive : ℤ → Sort u_1\nz b : ℤ\nzero : motive b\nsucc : (k : ℤ) → b ≤ k → motive k → motive (k + 1)\npred : (k : ℤ) → k ≤ b → motive k → motive (k - 1)\nhz : b ≤ z\n⊢ cast ⋯\n (match ↑((z - b).toNat + 1) with\n | ofNat n => inductionOn'.pos b zero succ n\n | -[n+1] => inductionOn'.neg b ...
[]
grind [inductionOn'.pos, show b + (z - b).toNat = z by lia]
Lean.Elab.Tactic.evalGrind
Lean.Parser.Tactic.grind
Mathlib.Data.Set.Prod
{ "line": 1005, "column": 45 }
{ "line": 1016, "column": 45 }
{ "line": 1018, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nγ : Type u_3\nf : α → β × γ\nhf₁ : Surjective (Prod.fst ∘ f)\nhf₂ : Surjective (Prod.snd ∘ f)\nhf : ∀ (g₁ g₂ : α), (f g₁).1 = (f g₂).1 ↔ (f g₁).2 = (f g₂).2\n⊢ ∃ e, range f = graphOn (⇑e) univ", "ppTerm": "?m.35", "assigned": true, "usedConstants": [ "Eq.mp...
[]
by obtain ⟨e₁, he₁⟩ := exists_range_eq_graphOn_univ hf₁ fun _ _ ↦ (hf _ _).1 obtain ⟨e₂, he₂⟩ := exists_range_eq_graphOn_univ (f := Equiv.prodComm _ _ ∘ f) (by simpa) <| by simp [hf] have he₁₂ h i : e₁ h = i ↔ e₂ i = h := by rw [Set.ext_iff] at he₁ he₂ aesop (add simp [Prod.swap_eq_iff_eq_swap]) exa...
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.Group.Basic
{ "line": 36, "column": 80 }
{ "line": 36, "column": 97 }
{ "line": 38, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\ninst✝¹ : Pow α β\np : Prop\ninst✝ : Decidable p\na : α\nb : p → β\nc : ¬p → β\n⊢ (a ^ if h : p then b h else c h) = if h : p then a ^ b h else a ^ c h", "ppTerm": "?m.24", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "dif_pos", ...
[]
split_ifs <;> rfl
Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1»
Lean.Parser.Tactic.«tactic_<;>_»
Mathlib.Algebra.Group.Basic
{ "line": 36, "column": 80 }
{ "line": 36, "column": 97 }
{ "line": 38, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\ninst✝¹ : Pow α β\np : Prop\ninst✝ : Decidable p\na : α\nb : p → β\nc : ¬p → β\n⊢ (a ^ if h : p then b h else c h) = if h : p then a ^ b h else a ^ c h", "ppTerm": "?m.24", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "dif_pos", ...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Group.Basic
{ "line": 36, "column": 80 }
{ "line": 36, "column": 97 }
{ "line": 38, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\ninst✝¹ : Pow α β\np : Prop\ninst✝ : Decidable p\na : α\nb : p → β\nc : ¬p → β\n⊢ (a ^ if h : p then b h else c h) = if h : p then a ^ b h else a ^ c h", "ppTerm": "?m.24", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "dif_pos", ...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Group.Basic
{ "line": 40, "column": 80 }
{ "line": 40, "column": 97 }
{ "line": 42, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\ninst✝¹ : Pow α β\np : Prop\ninst✝ : Decidable p\na : p → α\nb : ¬p → α\nc : β\n⊢ (if h : p then a h else b h) ^ c = if h : p then a h ^ c else b h ^ c", "ppTerm": "?m.24", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "dif_pos", ...
[]
split_ifs <;> rfl
Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1»
Lean.Parser.Tactic.«tactic_<;>_»
Mathlib.Algebra.Group.Basic
{ "line": 40, "column": 80 }
{ "line": 40, "column": 97 }
{ "line": 42, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\ninst✝¹ : Pow α β\np : Prop\ninst✝ : Decidable p\na : p → α\nb : ¬p → α\nc : β\n⊢ (if h : p then a h else b h) ^ c = if h : p then a h ^ c else b h ^ c", "ppTerm": "?m.24", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "dif_pos", ...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Group.Basic
{ "line": 40, "column": 80 }
{ "line": 40, "column": 97 }
{ "line": 42, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\ninst✝¹ : Pow α β\np : Prop\ninst✝ : Decidable p\na : p → α\nb : ¬p → α\nc : β\n⊢ (if h : p then a h else b h) ^ c = if h : p then a h ^ c else b h ^ c", "ppTerm": "?m.24", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "dif_pos", ...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.GroupWithZero.Basic
{ "line": 233, "column": 62 }
{ "line": 233, "column": 97 }
{ "line": 235, "column": 0 }
[ { "pp": "M₀ : Type u_1\ninst✝ : MonoidWithZero M₀\na : M₀\nn : ℕ\nhn : n ≠ 0\nha : a ^ n ≠ 0\n⊢ a ≠ 0", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "False", "Ne", "Monoid.toPow", "MonoidWithZero.toMulZeroOneClass", "HPow.hPow", "Nat", "Eq.ndrec",...
[]
rintro rfl; exact ha <| zero_pow hn
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.GroupWithZero.Basic
{ "line": 233, "column": 62 }
{ "line": 233, "column": 97 }
{ "line": 235, "column": 0 }
[ { "pp": "M₀ : Type u_1\ninst✝ : MonoidWithZero M₀\na : M₀\nn : ℕ\nhn : n ≠ 0\nha : a ^ n ≠ 0\n⊢ a ≠ 0", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "False", "Ne", "Monoid.toPow", "MonoidWithZero.toMulZeroOneClass", "HPow.hPow", "Nat", "Eq.ndrec",...
[]
rintro rfl; exact ha <| zero_pow hn
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.Nat.Cast.Defs
{ "line": 92, "column": 2 }
{ "line": 92, "column": 19 }
{ "line": 94, "column": 0 }
[ { "pp": "R : Type u_1\ninst✝¹ : AddMonoidWithOne R\nP : Prop\ninst✝ : Decidable P\nm n : ℕ\n⊢ ↑(if P then m else n) = if P then ↑m else ↑n", "ppTerm": "?m.6", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "id", "AddMonoidWithOne.toNatCast", "if_pos", ...
[]
split_ifs <;> rfl
Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1»
Lean.Parser.Tactic.«tactic_<;>_»
Mathlib.Data.Nat.Cast.Defs
{ "line": 92, "column": 2 }
{ "line": 92, "column": 19 }
{ "line": 94, "column": 0 }
[ { "pp": "R : Type u_1\ninst✝¹ : AddMonoidWithOne R\nP : Prop\ninst✝ : Decidable P\nm n : ℕ\n⊢ ↑(if P then m else n) = if P then ↑m else ↑n", "ppTerm": "?m.6", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "id", "AddMonoidWithOne.toNatCast", "if_pos", ...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Nat.Cast.Defs
{ "line": 92, "column": 2 }
{ "line": 92, "column": 19 }
{ "line": 94, "column": 0 }
[ { "pp": "R : Type u_1\ninst✝¹ : AddMonoidWithOne R\nP : Prop\ninst✝ : Decidable P\nm n : ℕ\n⊢ ↑(if P then m else n) = if P then ↑m else ↑n", "ppTerm": "?m.6", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "id", "AddMonoidWithOne.toNatCast", "if_pos", ...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.GroupWithZero.Basic
{ "line": 440, "column": 2 }
{ "line": 440, "column": 42 }
{ "line": 442, "column": 0 }
[ { "pp": "G₀ : Type u_2\ninst✝ : GroupWithZero G₀\na : G₀\nh : a ≠ 0\n⊢ 1 / a ≠ 0", "ppTerm": "?m.13", "assigned": true, "usedConstants": [ "Eq.mpr", "GroupWithZero.toMonoidWithZero", "DivInvMonoid.toInv", "instHDiv", "GroupWithZero.toDivisionMonoid", "InvOneClass....
[]
simpa only [one_div] using inv_ne_zero h
Lean.Elab.Tactic.Simpa.evalSimpa
Lean.Parser.Tactic.simpa
Mathlib.Algebra.GroupWithZero.Basic
{ "line": 440, "column": 2 }
{ "line": 440, "column": 42 }
{ "line": 442, "column": 0 }
[ { "pp": "G₀ : Type u_2\ninst✝ : GroupWithZero G₀\na : G₀\nh : a ≠ 0\n⊢ 1 / a ≠ 0", "ppTerm": "?m.13", "assigned": true, "usedConstants": [ "Eq.mpr", "GroupWithZero.toMonoidWithZero", "DivInvMonoid.toInv", "instHDiv", "GroupWithZero.toDivisionMonoid", "InvOneClass....
[]
simpa only [one_div] using inv_ne_zero h
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.GroupWithZero.Basic
{ "line": 440, "column": 2 }
{ "line": 440, "column": 42 }
{ "line": 442, "column": 0 }
[ { "pp": "G₀ : Type u_2\ninst✝ : GroupWithZero G₀\na : G₀\nh : a ≠ 0\n⊢ 1 / a ≠ 0", "ppTerm": "?m.13", "assigned": true, "usedConstants": [ "Eq.mpr", "GroupWithZero.toMonoidWithZero", "DivInvMonoid.toInv", "instHDiv", "GroupWithZero.toDivisionMonoid", "InvOneClass....
[]
simpa only [one_div] using inv_ne_zero h
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.GroupWithZero.Action.Defs
{ "line": 246, "column": 61 }
{ "line": 246, "column": 76 }
{ "line": 247, "column": 2 }
[ { "pp": "M : Type u_1\nM₀ : Type u_2\nM₀' : Type u_3\nG₀ : Type u_4\nG₀' : Type u_5\nN : Type u_6\nA : Type u_7\nA' : Type u_8\nB : Type u_9\nα : Type u_10\nβ : Type u_11\ninst✝⁶ : MonoidWithZero M₀\ninst✝⁵ : MonoidWithZero M₀'\ninst✝⁴ : Zero A\ninst✝³ : MulActionWithZero M₀ A\ninst✝² : Zero A'\ninst✝¹ : SMul M...
[]
simp [mul_smul]
Lean.Elab.Tactic.evalSimp
Lean.Parser.Tactic.simp
Mathlib.Algebra.Ring.Defs
{ "line": 168, "column": 6 }
{ "line": 168, "column": 14 }
{ "line": 168, "column": 15 }
[ { "pp": "α : Type u\ninst✝² : Add α\ninst✝¹ : MulOneClass α\ninst✝ : LeftDistribClass α\na b : α\n⊢ a * (b + 1) = a * b + a", "ppTerm": "?m.22", "assigned": true, "usedConstants": [ "Eq.mpr", "MulOne.toOne", "HMul.hMul", "congrArg", "id", "MulOne.toMul", "in...
[ "α : Type u\ninst✝² : Add α\ninst✝¹ : MulOneClass α\ninst✝ : LeftDistribClass α\na b : α\n⊢ a * b + a * 1 = a * b + a" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Int.Cast.Basic
{ "line": 109, "column": 6 }
{ "line": 109, "column": 20 }
{ "line": 109, "column": 21 }
[ { "pp": "R : Type u\ninst✝ : AddGroupWithOne R\nm n : ℕ\n⊢ -↑(m + n + 1 + 1) = -↑(m + 1) + -↑(n + 1)", "ppTerm": "?m.149", "assigned": true, "usedConstants": [ "neg_add_rev", "AddGroup.toSubtractionMonoid", "Eq.mpr", "NegZeroClass.toNeg", "AddMonoid.toAddSemigroup", ...
[ "R : Type u\ninst✝ : AddGroupWithOne R\nm n : ℕ\n⊢ -↑(m + n + 1 + 1) = -(↑(n + 1) + ↑(m + 1))" ]
← neg_add_rev,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Defs
{ "line": 174, "column": 6 }
{ "line": 174, "column": 14 }
{ "line": 174, "column": 15 }
[ { "pp": "α : Type u\ninst✝² : Add α\ninst✝¹ : MulOneClass α\ninst✝ : LeftDistribClass α\na b : α\n⊢ a * (1 + b) = a + a * b", "ppTerm": "?m.22", "assigned": true, "usedConstants": [ "Eq.mpr", "MulOne.toOne", "HMul.hMul", "congrArg", "id", "MulOne.toMul", "in...
[ "α : Type u\ninst✝² : Add α\ninst✝¹ : MulOneClass α\ninst✝ : LeftDistribClass α\na b : α\n⊢ a * 1 + a * b = a + a * b" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Defs
{ "line": 191, "column": 37 }
{ "line": 191, "column": 51 }
{ "line": 191, "column": 52 }
[ { "pp": "case succ\nα : Type u\ninst✝ : NonAssocSemiring α\na : α\nn : ℕ\nih : n • a = ↑n * a\n⊢ ↑n * a + a = ↑(n + 1) * a", "ppTerm": "?succ", "assigned": true, "usedConstants": [ "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "Nat.cast_succ", "HMul.hMul", "AddMo...
[ "case succ\nα : Type u\ninst✝ : NonAssocSemiring α\na : α\nn : ℕ\nih : n • a = ↑n * a\n⊢ ↑n * a + a = (↑n + 1) * a" ]
Nat.cast_succ,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Defs
{ "line": 328, "column": 52 }
{ "line": 328, "column": 61 }
{ "line": 328, "column": 62 }
[ { "pp": "α : Type u\nR : Type v\ninst✝¹ : MulZeroClass α\ninst✝ : HasDistribNeg α\n⊢ -0 * 0 = 0 * 0", "ppTerm": "?m.21", "assigned": true, "usedConstants": [ "Eq.mpr", "HMul.hMul", "MulZeroClass.toMul", "congrArg", "id", "MulZeroClass.mul_zero", "Zero.toOfNa...
[ "α : Type u\nR : Type v\ninst✝¹ : MulZeroClass α\ninst✝ : HasDistribNeg α\n⊢ 0 = 0 * 0" ]
mul_zero,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Group.Int.Even
{ "line": 88, "column": 2 }
{ "line": 95, "column": 22 }
{ "line": 97, "column": 0 }
[ { "pp": "z : ℤ\n⊢ IsSquare z.sign ↔ 0 ≤ z", "ppTerm": "?m.7", "assigned": true, "usedConstants": [ "Int.instAddCommGroup", "Eq.mpr", "NegZeroClass.toNeg", "False", "Int.ctorIdx", "_private.Mathlib.Algebra.Group.Int.Even.0.Int.isSquare_sign_iff._simp_1_2", "H...
[]
induction z using Int.induction_on with | zero => simpa using ⟨0, by simp⟩ | succ => norm_cast; simp | pred => rw [sign_eq_neg_one_of_neg (by lia), ← neg_add', Int.neg_nonneg] norm_cast simp only [reduceNeg, le_zero_eq, Nat.add_eq_zero_iff, succ_ne_self, and_false, iff_false] rintro ⟨a | a, ⟨⟩⟩
_private.Lean.Elab.Tactic.Induction.0.Lean.Elab.Tactic.evalInduction
Lean.Parser.Tactic.induction
Mathlib.Algebra.Group.Int.Even
{ "line": 88, "column": 2 }
{ "line": 95, "column": 22 }
{ "line": 97, "column": 0 }
[ { "pp": "z : ℤ\n⊢ IsSquare z.sign ↔ 0 ≤ z", "ppTerm": "?m.7", "assigned": true, "usedConstants": [ "Int.instAddCommGroup", "Eq.mpr", "NegZeroClass.toNeg", "False", "Int.ctorIdx", "_private.Mathlib.Algebra.Group.Int.Even.0.Int.isSquare_sign_iff._simp_1_2", "H...
[]
induction z using Int.induction_on with | zero => simpa using ⟨0, by simp⟩ | succ => norm_cast; simp | pred => rw [sign_eq_neg_one_of_neg (by lia), ← neg_add', Int.neg_nonneg] norm_cast simp only [reduceNeg, le_zero_eq, Nat.add_eq_zero_iff, succ_ne_self, and_false, iff_false] rintro ⟨a | a, ⟨⟩⟩
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Group.Int.Even
{ "line": 88, "column": 2 }
{ "line": 95, "column": 22 }
{ "line": 97, "column": 0 }
[ { "pp": "z : ℤ\n⊢ IsSquare z.sign ↔ 0 ≤ z", "ppTerm": "?m.7", "assigned": true, "usedConstants": [ "Int.instAddCommGroup", "Eq.mpr", "NegZeroClass.toNeg", "False", "Int.ctorIdx", "_private.Mathlib.Algebra.Group.Int.Even.0.Int.isSquare_sign_iff._simp_1_2", "H...
[]
induction z using Int.induction_on with | zero => simpa using ⟨0, by simp⟩ | succ => norm_cast; simp | pred => rw [sign_eq_neg_one_of_neg (by lia), ← neg_add', Int.neg_nonneg] norm_cast simp only [reduceNeg, le_zero_eq, Nat.add_eq_zero_iff, succ_ne_self, and_false, iff_false] rintro ⟨a | a, ⟨⟩⟩
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.Nat.Cast.Basic
{ "line": 70, "column": 37 }
{ "line": 70, "column": 51 }
{ "line": 70, "column": 52 }
[ { "pp": "case succ\nα : Type u_1\ninst✝ : NonAssocSemiring α\na : α\nn : ℕ\nih : n • a = a * ↑n\n⊢ a * ↑n + a = a * ↑(n + 1)", "ppTerm": "?succ", "assigned": true, "usedConstants": [ "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "Nat.cast_succ", "HMul.hMul", "Add...
[ "case succ\nα : Type u_1\ninst✝ : NonAssocSemiring α\na : α\nn : ℕ\nih : n • a = a * ↑n\n⊢ a * ↑n + a = a * (↑n + 1)" ]
Nat.cast_succ,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Nat.Cast.Basic
{ "line": 70, "column": 52 }
{ "line": 70, "column": 60 }
{ "line": 70, "column": 61 }
[ { "pp": "case succ\nα : Type u_1\ninst✝ : NonAssocSemiring α\na : α\nn : ℕ\nih : n • a = a * ↑n\n⊢ a * ↑n + a = a * (↑n + 1)", "ppTerm": "?succ", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "HMul.hMul",...
[ "case succ\nα : Type u_1\ninst✝ : NonAssocSemiring α\na : α\nn : ℕ\nih : n • a = a * ↑n\n⊢ a * ↑n + a = a * ↑n + a * 1" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Hom.Defs
{ "line": 618, "column": 10 }
{ "line": 618, "column": 18 }
{ "line": 618, "column": 19 }
[ { "pp": "F : Type u_1\nα : Type u_2\nβ : Type u_3\nγ : Type u_4\ninst✝² : CommRing α\ninst✝¹ : IsDomain α\ninst✝ : CommRing β\nf : β →+ α\nh : ∀ (x : β), f (x * x) = f x * f x\nh_two : 2 ≠ 0\nh_one : f 1 = 1\nx y : β\nhxy : f ((x + y) * (x + y)) = f (x + y) * f (x + y)\n⊢ (↑f).toFun (x * y) = (↑f).toFun x * (↑f...
[ "F : Type u_1\nα : Type u_2\nβ : Type u_3\nγ : Type u_4\ninst✝² : CommRing α\ninst✝¹ : IsDomain α\ninst✝ : CommRing β\nf : β →+ α\nh : ∀ (x : β), f (x * x) = f x * f x\nh_two : 2 ≠ 0\nh_one : f 1 = 1\nx y : β\nhxy : f ((x + y) * x + (x + y) * y) = f (x + y) * f (x + y)\n⊢ (↑f).toFun (x * y) = (↑f).toFun x * (↑f).to...
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Hom.Defs
{ "line": 619, "column": 8 }
{ "line": 619, "column": 16 }
{ "line": 619, "column": 17 }
[ { "pp": "F : Type u_1\nα : Type u_2\nβ : Type u_3\nγ : Type u_4\ninst✝² : CommRing α\ninst✝¹ : IsDomain α\ninst✝ : CommRing β\nf : β →+ α\nh : ∀ (x : β), f (x * x) = f x * f x\nh_two : 2 ≠ 0\nh_one : f 1 = 1\nx y : β\nhxy : f x * f x + f (y * x) + (f (x * y) + f y * f y) = f x * (f x + f y) + f y * (f x + f y)\...
[ "F : Type u_1\nα : Type u_2\nβ : Type u_3\nγ : Type u_4\ninst✝² : CommRing α\ninst✝¹ : IsDomain α\ninst✝ : CommRing β\nf : β →+ α\nh : ∀ (x : β), f (x * x) = f x * f x\nh_two : 2 ≠ 0\nh_one : f 1 = 1\nx y : β\nhxy : f x * f x + f (y * x) + (f (x * y) + f y * f y) = f x * f x + f x * f y + f y * (f x + f y)\n⊢ (↑f)....
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Hom.Defs
{ "line": 619, "column": 17 }
{ "line": 619, "column": 25 }
{ "line": 619, "column": 26 }
[ { "pp": "F : Type u_1\nα : Type u_2\nβ : Type u_3\nγ : Type u_4\ninst✝² : CommRing α\ninst✝¹ : IsDomain α\ninst✝ : CommRing β\nf : β →+ α\nh : ∀ (x : β), f (x * x) = f x * f x\nh_two : 2 ≠ 0\nh_one : f 1 = 1\nx y : β\nhxy : f x * f x + f (y * x) + (f (x * y) + f y * f y) = f x * f x + f x * f y + f y * (f x + f...
[ "F : Type u_1\nα : Type u_2\nβ : Type u_3\nγ : Type u_4\ninst✝² : CommRing α\ninst✝¹ : IsDomain α\ninst✝ : CommRing β\nf : β →+ α\nh : ∀ (x : β), f (x * x) = f x * f x\nh_two : 2 ≠ 0\nh_one : f 1 = 1\nx y : β\nhxy : f x * f x + f (y * x) + (f (x * y) + f y * f y) = f x * f x + f x * f y + (f y * f x + f y * f y)\n⊢...
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Units
{ "line": 125, "column": 6 }
{ "line": 125, "column": 14 }
{ "line": 125, "column": 15 }
[ { "pp": "R : Type x\ninst✝ : Semiring R\na : Rˣ\nb : R\n⊢ ↑a + b = ↑a * (1 + ↑a⁻¹ * b)", "ppTerm": "?m.27", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Units.val", "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "HMul.hMul", "congrArg", ...
[ "R : Type x\ninst✝ : Semiring R\na : Rˣ\nb : R\n⊢ ↑a + b = ↑a * 1 + ↑a * (↑a⁻¹ * b)" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Nat.Cast.Commute
{ "line": 45, "column": 2 }
{ "line": 47, "column": 77 }
{ "line": 49, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : NonAssocSemiring α\nn : ℕ\nx : α\n⊢ Commute (↑n) x", "ppTerm": "?m.3", "assigned": true, "usedConstants": [ "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "Nat.cast_succ", "Nat.recAux", "AddMonoid.toAddSemigroup", "congrArg", ...
[]
induction n with | zero => rw [Nat.cast_zero]; exact Commute.zero_left x | succ n ihn => rw [Nat.cast_succ]; exact ihn.add_left (Commute.one_left x)
_private.Lean.Elab.Tactic.Induction.0.Lean.Elab.Tactic.evalInduction
Lean.Parser.Tactic.induction
Mathlib.Data.Nat.Cast.Commute
{ "line": 45, "column": 2 }
{ "line": 47, "column": 77 }
{ "line": 49, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : NonAssocSemiring α\nn : ℕ\nx : α\n⊢ Commute (↑n) x", "ppTerm": "?m.3", "assigned": true, "usedConstants": [ "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "Nat.cast_succ", "Nat.recAux", "AddMonoid.toAddSemigroup", "congrArg", ...
[]
induction n with | zero => rw [Nat.cast_zero]; exact Commute.zero_left x | succ n ihn => rw [Nat.cast_succ]; exact ihn.add_left (Commute.one_left x)
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Nat.Cast.Commute
{ "line": 45, "column": 2 }
{ "line": 47, "column": 77 }
{ "line": 49, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : NonAssocSemiring α\nn : ℕ\nx : α\n⊢ Commute (↑n) x", "ppTerm": "?m.3", "assigned": true, "usedConstants": [ "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "Nat.cast_succ", "Nat.recAux", "AddMonoid.toAddSemigroup", "congrArg", ...
[]
induction n with | zero => rw [Nat.cast_zero]; exact Commute.zero_left x | succ n ihn => rw [Nat.cast_succ]; exact ihn.add_left (Commute.one_left x)
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Ring.Commute
{ "line": 53, "column": 6 }
{ "line": 53, "column": 14 }
{ "line": 53, "column": 15 }
[ { "pp": "R : Type u\ninst✝ : NonUnitalNonAssocRing R\na b : R\nh : Commute a b\n⊢ a * a - b * b = (a - b) * (a + b)", "ppTerm": "?m.28", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Eq.mpr", "HMul.hMul", "congrArg", "NonUnitalNonAssocRing.toAddCommG...
[ "R : Type u\ninst✝ : NonUnitalNonAssocRing R\na b : R\nh : Commute a b\n⊢ a * a - b * b = (a - b) * a + (a - b) * b" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Module.NatInt
{ "line": 118, "column": 21 }
{ "line": 118, "column": 35 }
{ "line": 118, "column": 36 }
[ { "pp": "case succ\nR : Type u_1\nM : Type u_3\ninst✝² : Semiring R\ninst✝¹ : AddCommMonoid M\ninst✝ : Module R M\nb : M\nn : ℕ\nih : ↑n • b = n • b\n⊢ ↑(n + 1) • b = (n + 1) • b", "ppTerm": "?succ", "assigned": true, "usedConstants": [ "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne"...
[ "case succ\nR : Type u_1\nM : Type u_3\ninst✝² : Semiring R\ninst✝¹ : AddCommMonoid M\ninst✝ : Module R M\nb : M\nn : ℕ\nih : ↑n • b = n • b\n⊢ (↑n + 1) • b = (n + 1) • b" ]
Nat.cast_succ,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.InjSurj
{ "line": 77, "column": 49 }
{ "line": 77, "column": 63 }
{ "line": 77, "column": 64 }
[ { "pp": "R : Type u_1\nS : Type u_2\nf✝ : S → R\nhf✝ : Injective f✝\ninst✝¹¹ : Add S\ninst✝¹⁰ : Mul S\ninst✝⁹ : Zero S\ninst✝⁸ : One S\ninst✝⁷ : Neg S\ninst✝⁶ : Sub S\ninst✝⁵ : SMul ℕ S\ninst✝⁴ : SMul ℤ S\ninst✝³ : Pow S ℕ\ninst✝² : NatCast S\ninst✝¹ : IntCast S\ninst✝ : AddMonoidWithOne R\nf : S → R\nhf : Inje...
[ "R : Type u_1\nS : Type u_2\nf✝ : S → R\nhf✝ : Injective f✝\ninst✝¹¹ : Add S\ninst✝¹⁰ : Mul S\ninst✝⁹ : Zero S\ninst✝⁸ : One S\ninst✝⁷ : Neg S\ninst✝⁶ : Sub S\ninst✝⁵ : SMul ℕ S\ninst✝⁴ : SMul ℤ S\ninst✝³ : Pow S ℕ\ninst✝² : NatCast S\ninst✝¹ : IntCast S\ninst✝ : AddMonoidWithOne R\nf : S → R\nhf : Injective f\nzer...
Nat.cast_succ,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.InjSurj
{ "line": 101, "column": 50 }
{ "line": 101, "column": 58 }
{ "line": 101, "column": 59 }
[ { "pp": "R : Type u_1\nS✝ : Type u_2\nf✝ : S✝ → R\nhf✝ : Injective f✝\ninst✝²⁰ : Add S✝\ninst✝¹⁹ : Mul S✝\ninst✝¹⁸ : Zero S✝\ninst✝¹⁷ : One S✝\ninst✝¹⁶ : Neg S✝\ninst✝¹⁵ : Sub S✝\ninst✝¹⁴ : SMul ℕ S✝\ninst✝¹³ : SMul ℤ S✝\ninst✝¹² : Pow S✝ ℕ\ninst✝¹¹ : NatCast S✝\ninst✝¹⁰ : IntCast S✝\nS : Type ?u.36\ninst✝⁹ : Z...
[ "R : Type u_1\nS✝ : Type u_2\nf✝ : S✝ → R\nhf✝ : Injective f✝\ninst✝²⁰ : Add S✝\ninst✝¹⁹ : Mul S✝\ninst✝¹⁸ : Zero S✝\ninst✝¹⁷ : One S✝\ninst✝¹⁶ : Neg S✝\ninst✝¹⁵ : Sub S✝\ninst✝¹⁴ : SMul ℕ S✝\ninst✝¹³ : SMul ℤ S✝\ninst✝¹² : Pow S✝ ℕ\ninst✝¹¹ : NatCast S✝\ninst✝¹⁰ : IntCast S✝\nS : Type ?u.36\ninst✝⁹ : Zero S\ninst✝...
intCast,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.InjSurj
{ "line": 102, "column": 43 }
{ "line": 102, "column": 51 }
{ "line": 102, "column": 52 }
[ { "pp": "R : Type u_1\nS✝ : Type u_2\nf✝ : S✝ → R\nhf✝ : Injective f✝\ninst✝²⁰ : Add S✝\ninst✝¹⁹ : Mul S✝\ninst✝¹⁸ : Zero S✝\ninst✝¹⁷ : One S✝\ninst✝¹⁶ : Neg S✝\ninst✝¹⁵ : Sub S✝\ninst✝¹⁴ : SMul ℕ S✝\ninst✝¹³ : SMul ℤ S✝\ninst✝¹² : Pow S✝ ℕ\ninst✝¹¹ : NatCast S✝\ninst✝¹⁰ : IntCast S✝\nS : Type ?u.36\ninst✝⁹ : Z...
[ "R : Type u_1\nS✝ : Type u_2\nf✝ : S✝ → R\nhf✝ : Injective f✝\ninst✝²⁰ : Add S✝\ninst✝¹⁹ : Mul S✝\ninst✝¹⁸ : Zero S✝\ninst✝¹⁷ : One S✝\ninst✝¹⁶ : Neg S✝\ninst✝¹⁵ : Sub S✝\ninst✝¹⁴ : SMul ℕ S✝\ninst✝¹³ : SMul ℤ S✝\ninst✝¹² : Pow S✝ ℕ\ninst✝¹¹ : NatCast S✝\ninst✝¹⁰ : IntCast S✝\nS : Type ?u.36\ninst✝⁹ : Zero S\ninst✝...
intCast,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.InjSurj
{ "line": 326, "column": 47 }
{ "line": 326, "column": 61 }
{ "line": 326, "column": 62 }
[ { "pp": "R : Type u_1\nS : Type u_2\nf : R → S\nhf : Surjective f\ninst✝¹¹ : Add S\ninst✝¹⁰ : Mul S\ninst✝⁹ : Zero S\ninst✝⁸ : One S\ninst✝⁷ : Neg S\ninst✝⁶ : Sub S\ninst✝⁵ : SMul ℕ S\ninst✝⁴ : SMul ℤ S\ninst✝³ : Pow S ℕ\ninst✝² : NatCast S\ninst✝¹ : IntCast S\ninst✝ : AddMonoidWithOne R\nzero : f 0 = 0\none : ...
[ "R : Type u_1\nS : Type u_2\nf : R → S\nhf : Surjective f\ninst✝¹¹ : Add S\ninst✝¹⁰ : Mul S\ninst✝⁹ : Zero S\ninst✝⁸ : One S\ninst✝⁷ : Neg S\ninst✝⁶ : Sub S\ninst✝⁵ : SMul ℕ S\ninst✝⁴ : SMul ℤ S\ninst✝³ : Pow S ℕ\ninst✝² : NatCast S\ninst✝¹ : IntCast S\ninst✝ : AddMonoidWithOne R\nzero : f 0 = 0\none : f 1 = 1\nadd...
Nat.cast_succ,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Parity
{ "line": 111, "column": 49 }
{ "line": 111, "column": 57 }
{ "line": 111, "column": 58 }
[ { "pp": "α : Type u_2\ninst✝ : Semiring α\na b : α\n⊢ a + a + (2 * b + 1) = 2 * (a + b) + 1", "ppTerm": "?m.49", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "HMul.hMul", "congrArg", "id", ...
[ "α : Type u_2\ninst✝ : Semiring α\na b : α\n⊢ a + a + (2 * b + 1) = 2 * a + 2 * b + 1" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Parity
{ "line": 145, "column": 6 }
{ "line": 145, "column": 14 }
{ "line": 145, "column": 15 }
[ { "pp": "α : Type u_2\ninst✝ : Semiring α\na b : α\n⊢ (2 * a + 1) * (2 * b + 1) = 2 * (2 * a * b + b + a) + 1", "ppTerm": "?m.63", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "HMul.hMul", "congrAr...
[ "α : Type u_2\ninst✝ : Semiring α\na b : α\n⊢ (2 * a + 1) * (2 * b) + (2 * a + 1) * 1 = 2 * (2 * a * b + b + a) + 1" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Parity
{ "line": 205, "column": 15 }
{ "line": 205, "column": 23 }
{ "line": 205, "column": 24 }
[ { "pp": "case h\nα : Type u_2\ninst✝ : Ring α\na k : α\nhk : a = 2 * k + 1\n⊢ -a = -(2 * (k + 1)) + 1", "ppTerm": "?h", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Eq.mpr", "NegZeroClass.toNeg", "NonAssocSemiring.toAddCommMonoidWithOne", "HMul.hMul...
[ "case h\nα : Type u_2\ninst✝ : Ring α\na k : α\nhk : a = 2 * k + 1\n⊢ -a = -(2 * k + 2 * 1) + 1" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Parity
{ "line": 369, "column": 2 }
{ "line": 369, "column": 36 }
{ "line": 371, "column": 0 }
[ { "pp": "α : Type u_4\nf : α → α\nhf : Involutive f\nm : ℕ\n⊢ f^[m + m] = id", "ppTerm": "?m.22", "assigned": true, "usedConstants": [ "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "HMul.hMul", "congrArg", "Nat.instAtLeastTwoHAddOfNat", "two_mul", "id...
[]
rw [← two_mul, hf.iterate_two_mul]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Algebra.Order.Group.Unbundled.Basic
{ "line": 158, "column": 51 }
{ "line": 159, "column": 62 }
{ "line": 161, "column": 0 }
[ { "pp": "α : Type u\ninst✝² : Group α\ninst✝¹ : LE α\ninst✝ : MulRightMono α\na b : α\n⊢ 1 ≤ a * b⁻¹ ↔ b ≤ a", "ppTerm": "?m.15", "assigned": true, "usedConstants": [ "Eq.mpr", "MulOne.toOne", "DivInvMonoid.toInv", "InvOneClass.toOne", "HMul.hMul", "DivInvOneMonoi...
[]
by rw [← mul_le_mul_iff_right b, one_mul, inv_mul_cancel_right]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 146, "column": 30 }
{ "line": 146, "column": 38 }
{ "line": 146, "column": 39 }
[ { "pp": "R : Type u\ninst✝⁴ : Semiring R\ninst✝³ : Preorder R\na b : R\ninst✝² : ZeroLEOneClass R\ninst✝¹ : MulPosMono R\ninst✝ : AddLeftMono R\na2 : 2 ≤ a\nb0 : 0 ≤ b\n⊢ a + (a + a * b) ≤ a * (2 + b)", "ppTerm": "?m.78", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "...
[ "R : Type u\ninst✝⁴ : Semiring R\ninst✝³ : Preorder R\na b : R\ninst✝² : ZeroLEOneClass R\ninst✝¹ : MulPosMono R\ninst✝ : AddLeftMono R\na2 : 2 ≤ a\nb0 : 0 ≤ b\n⊢ a + (a + a * b) ≤ a * 2 + a * b" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 164, "column": 57 }
{ "line": 164, "column": 66 }
{ "line": 164, "column": 67 }
[ { "pp": "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : Preorder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosMono R\ninst✝¹ : AddRightMono R\ninst✝ : AddRightReflectLE R\nh : b ≤ a\nhc : c ≤ 0\nd : R\nhcd : 0 = c + d\n⊢ b * d + a * 0 = b * d", "ppTerm": "?m.101", "assigned": true, "usedConstan...
[ "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : Preorder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosMono R\ninst✝¹ : AddRightMono R\ninst✝ : AddRightReflectLE R\nh : b ≤ a\nhc : c ≤ 0\nd : R\nhcd : 0 = c + d\n⊢ b * d + 0 = b * d" ]
mul_zero,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 166, "column": 51 }
{ "line": 166, "column": 60 }
{ "line": 166, "column": 61 }
[ { "pp": "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : Preorder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosMono R\ninst✝¹ : AddRightMono R\ninst✝ : AddRightReflectLE R\nh : b ≤ a\nhc : c ≤ 0\nd : R\nhcd : 0 = c + d\n⊢ a * d = b * 0 + a * d", "ppTerm": "?m.145", "assigned": true, "usedConstan...
[ "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : Preorder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosMono R\ninst✝¹ : AddRightMono R\ninst✝ : AddRightReflectLE R\nh : b ≤ a\nhc : c ≤ 0\nd : R\nhcd : 0 = c + d\n⊢ a * d = 0 + a * d" ]
mul_zero,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 307, "column": 57 }
{ "line": 307, "column": 66 }
{ "line": 307, "column": 67 }
[ { "pp": "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosStrictMono R\ninst✝¹ : AddRightStrictMono R\ninst✝ : AddRightReflectLT R\nh : b < a\nhc : c < 0\nd : R\nhcd : 0 = c + d\n⊢ b * d + a * 0 = b * d", "ppTerm": "?m.126", "assigned": true, ...
[ "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosStrictMono R\ninst✝¹ : AddRightStrictMono R\ninst✝ : AddRightReflectLT R\nh : b < a\nhc : c < 0\nd : R\nhcd : 0 = c + d\n⊢ b * d + 0 = b * d" ]
mul_zero,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 309, "column": 51 }
{ "line": 309, "column": 60 }
{ "line": 309, "column": 61 }
[ { "pp": "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosStrictMono R\ninst✝¹ : AddRightStrictMono R\ninst✝ : AddRightReflectLT R\nh : b < a\nhc : c < 0\nd : R\nhcd : 0 = c + d\n⊢ a * d = b * 0 + a * d", "ppTerm": "?m.149", "assigned": true, ...
[ "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosStrictMono R\ninst✝¹ : AddRightStrictMono R\ninst✝ : AddRightReflectLT R\nh : b < a\nhc : c < 0\nd : R\nhcd : 0 = c + d\n⊢ a * d = 0 + a * d" ]
mul_zero,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 381, "column": 6 }
{ "line": 381, "column": 14 }
{ "line": 381, "column": 15 }
[ { "pp": "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosMono R\ninst✝¹ : AddLeftMono R\ninst✝ : AddLeftReflectLE R\nhab : a ≤ b\nd : R\nhd : 0 ≤ d\nhcd : c ≤ c + d\n⊢ a * (c + d) + b * c ≤ a * c + b * (c + d)", "ppTerm": "?m.72", "assigned":...
[ "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosMono R\ninst✝¹ : AddLeftMono R\ninst✝ : AddLeftReflectLE R\nhab : a ≤ b\nd : R\nhd : 0 ≤ d\nhcd : c ≤ c + d\n⊢ a * c + a * d + b * c ≤ a * c + b * (c + d)" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 381, "column": 31 }
{ "line": 381, "column": 39 }
{ "line": 381, "column": 40 }
[ { "pp": "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosMono R\ninst✝¹ : AddLeftMono R\ninst✝ : AddLeftReflectLE R\nhab : a ≤ b\nd : R\nhd : 0 ≤ d\nhcd : c ≤ c + d\n⊢ a * c + b * c + a * d ≤ a * c + b * (c + d)", "ppTerm": "?m.87", "assigned...
[ "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : ExistsAddOfLE R\ninst✝² : MulPosMono R\ninst✝¹ : AddLeftMono R\ninst✝ : AddLeftReflectLE R\nhab : a ≤ b\nd : R\nhd : 0 ≤ d\nhcd : c ≤ c + d\n⊢ a * c + b * c + a * d ≤ a * c + (b * c + b * d)" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 398, "column": 6 }
{ "line": 398, "column": 14 }
{ "line": 398, "column": 15 }
[ { "pp": "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : AddLeftReflectLT R\ninst✝² : ExistsAddOfLE R\ninst✝¹ : MulPosStrictMono R\ninst✝ : AddLeftStrictMono R\nhab : a < b\nd : R\nhd : 0 < d\nhcd : c < c + d\n⊢ a * (c + d) + b * c < a * c + b * (c + d)", "ppTerm": "?m.72", ...
[ "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : AddLeftReflectLT R\ninst✝² : ExistsAddOfLE R\ninst✝¹ : MulPosStrictMono R\ninst✝ : AddLeftStrictMono R\nhab : a < b\nd : R\nhd : 0 < d\nhcd : c < c + d\n⊢ a * c + a * d + b * c < a * c + b * (c + d)" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 398, "column": 31 }
{ "line": 398, "column": 39 }
{ "line": 398, "column": 40 }
[ { "pp": "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : AddLeftReflectLT R\ninst✝² : ExistsAddOfLE R\ninst✝¹ : MulPosStrictMono R\ninst✝ : AddLeftStrictMono R\nhab : a < b\nd : R\nhd : 0 < d\nhcd : c < c + d\n⊢ a * c + b * c + a * d < a * c + b * (c + d)", "ppTerm": "?m.87", ...
[ "R : Type u\ninst✝⁵ : Semiring R\ninst✝⁴ : PartialOrder R\na b c : R\ninst✝³ : AddLeftReflectLT R\ninst✝² : ExistsAddOfLE R\ninst✝¹ : MulPosStrictMono R\ninst✝ : AddLeftStrictMono R\nhab : a < b\nd : R\nhd : 0 < d\nhcd : c < c + d\n⊢ a * c + b * c + a * d < a * c + (b * c + b * d)" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 444, "column": 2 }
{ "line": 445, "column": 6 }
{ "line": 447, "column": 0 }
[ { "pp": "R : Type u\ninst✝² : Semiring R\ninst✝¹ : LinearOrder R\nb c : R\ninst✝ : PosMulStrictMono R\nh : 0 < c\n⊢ 0 ≤ c * b ↔ 0 ≤ b", "ppTerm": "?m.20", "assigned": true, "usedConstants": [ "Eq.mpr", "HMul.hMul", "congrArg", "HEq.refl", "PartialOrder.toPreorder", ...
[]
convert! mul_le_mul_iff_right₀ h simp
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 444, "column": 2 }
{ "line": 445, "column": 6 }
{ "line": 447, "column": 0 }
[ { "pp": "R : Type u\ninst✝² : Semiring R\ninst✝¹ : LinearOrder R\nb c : R\ninst✝ : PosMulStrictMono R\nh : 0 < c\n⊢ 0 ≤ c * b ↔ 0 ≤ b", "ppTerm": "?m.20", "assigned": true, "usedConstants": [ "Eq.mpr", "HMul.hMul", "congrArg", "HEq.refl", "PartialOrder.toPreorder", ...
[]
convert! mul_le_mul_iff_right₀ h simp
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 697, "column": 45 }
{ "line": 697, "column": 54 }
{ "line": 697, "column": 55 }
[ { "pp": "R : Type u\ninst✝⁴ : Semiring R\ninst✝³ : LinearOrder R\ninst✝² : ExistsAddOfLE R\ninst✝¹ : PosMulMono R\ninst✝ : AddLeftMono R\na : R\nha : a < 0\nb : R\nhab : 0 = a + b\nhb : 0 < b\n⊢ b ^ 2 = b ^ 2 + a * 0", "ppTerm": "?m.183", "assigned": true, "usedConstants": [ "Eq.mpr", "H...
[ "R : Type u\ninst✝⁴ : Semiring R\ninst✝³ : LinearOrder R\ninst✝² : ExistsAddOfLE R\ninst✝¹ : PosMulMono R\ninst✝ : AddLeftMono R\na : R\nha : a < 0\nb : R\nhab : 0 = a + b\nhb : 0 < b\n⊢ b ^ 2 = b ^ 2 + 0" ]
mul_zero,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 698, "column": 47 }
{ "line": 698, "column": 55 }
{ "line": 698, "column": 56 }
[ { "pp": "R : Type u\ninst✝⁴ : Semiring R\ninst✝³ : LinearOrder R\ninst✝² : ExistsAddOfLE R\ninst✝¹ : PosMulMono R\ninst✝ : AddLeftMono R\na : R\nha : a < 0\nb : R\nhab : 0 = a + b\nhb : 0 < b\n⊢ b ^ 2 + a * (a + b) = a ^ 2 + (a * b + b * b)", "ppTerm": "?m.199", "assigned": true, "usedConstants": [ ...
[ "R : Type u\ninst✝⁴ : Semiring R\ninst✝³ : LinearOrder R\ninst✝² : ExistsAddOfLE R\ninst✝¹ : PosMulMono R\ninst✝ : AddLeftMono R\na : R\nha : a < 0\nb : R\nhab : 0 = a + b\nhb : 0 < b\n⊢ b ^ 2 + (a * a + a * b) = a ^ 2 + (a * b + b * b)" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Unbundled.Basic
{ "line": 826, "column": 20 }
{ "line": 826, "column": 30 }
{ "line": 826, "column": 31 }
[ { "pp": "R : Type u\ninst✝⁵ : Ring R\ninst✝⁴ : LinearOrder R\na b : R\ninst✝³ : PosMulStrictMono R\ninst✝² : MulPosStrictMono R\ninst✝¹ : AddLeftMono R\ninst✝ : AddLeftReflectLE R\n⊢ 0 ≤ -(a * b) ↔ (0 < a → b ≤ 0) ∧ (b < 0 → 0 ≤ a)", "ppTerm": "?m.41", "assigned": true, "usedConstants": [ "Add...
[ "R : Type u\ninst✝⁵ : Ring R\ninst✝⁴ : LinearOrder R\na b : R\ninst✝³ : PosMulStrictMono R\ninst✝² : MulPosStrictMono R\ninst✝¹ : AddLeftMono R\ninst✝ : AddLeftReflectLE R\n⊢ 0 ≤ a * -b ↔ (0 < a → b ≤ 0) ∧ (b < 0 → 0 ≤ a)" ]
← mul_neg,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Order.RelIso.Basic
{ "line": 176, "column": 4 }
{ "line": 176, "column": 32 }
{ "line": 177, "column": 2 }
[ { "pp": "case inl\nα : Type u_1\nβ : Type u_2\nr : α → α → Prop\ns : β → β → Prop\ninst✝¹ : Std.Trichotomous r\ninst✝ : Std.Irrefl s\nf : α → β\nhf : ∀ {x y : α}, r x y → s (f x) (f y)\nx y : α\nhxy : f x = f y\nh : r x y\nthis : s (f y) (f y)\n⊢ False", "ppTerm": "?inl", "assigned": true, "usedCons...
[]
exact irrefl_of s (f y) this
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Order.RelIso.Basic
{ "line": 181, "column": 4 }
{ "line": 181, "column": 32 }
{ "line": 183, "column": 0 }
[ { "pp": "case inr.inr\nα : Type u_1\nβ : Type u_2\nr : α → α → Prop\ns : β → β → Prop\ninst✝¹ : Std.Trichotomous r\ninst✝ : Std.Irrefl s\nf : α → β\nhf : ∀ {x y : α}, r x y → s (f x) (f y)\nx y : α\nhxy : f x = f y\nh : r y x\nthis : s (f y) (f y)\n⊢ False", "ppTerm": "?inr.inr", "assigned": true, "...
[]
exact irrefl_of s (f y) this
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Order.RelIso.Basic
{ "line": 745, "column": 16 }
{ "line": 745, "column": 32 }
{ "line": 746, "column": 2 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nγ : Type u_3\nδ : Type u_4\nr : α → α → Prop\ns : β → β → Prop\nt : γ → γ → Prop\nu : δ → δ → Prop\ne : r ≃r s\nf : α → β\ng : β → α\nhf : f = ⇑e\nhg : g = ⇑e.symm\nx✝ : α\n⊢ g (f x✝) = x✝", "ppTerm": "?m.24", "assigned": true, "usedConstants": [ "congrArg"...
[]
by simp [hf, hg]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Order.RelIso.Basic
{ "line": 746, "column": 17 }
{ "line": 746, "column": 33 }
{ "line": 747, "column": 2 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nγ : Type u_3\nδ : Type u_4\nr : α → α → Prop\ns : β → β → Prop\nt : γ → γ → Prop\nu : δ → δ → Prop\ne : r ≃r s\nf : α → β\ng : β → α\nhf : f = ⇑e\nhg : g = ⇑e.symm\nx✝ : β\n⊢ f (g x✝) = x✝", "ppTerm": "?m.25", "assigned": true, "usedConstants": [ "congrArg"...
[]
by simp [hf, hg]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Order.Hom.Basic
{ "line": 1232, "column": 4 }
{ "line": 1232, "column": 47 }
{ "line": 1233, "column": 4 }
[ { "pp": "α : Type u_2\nβ : Type u_3\ninst✝⁴ : Lattice α\ninst✝³ : Lattice β\ninst✝² : BoundedOrder α\ninst✝¹ : BoundedOrder β\ninst✝ : ComplementedLattice α\nf : α ≃o β\nx : β\n⊢ ∃ b, IsCompl x b", "ppTerm": "?m.15", "assigned": true, "usedConstants": [ "PartialOrder.toPreorder", "Preord...
[ "α : Type u_2\nβ : Type u_3\ninst✝⁴ : Lattice α\ninst✝³ : Lattice β\ninst✝² : BoundedOrder α\ninst✝¹ : BoundedOrder β\ninst✝ : ComplementedLattice α\nf : α ≃o β\nx : β\ny : α\nhy : IsCompl (f.symm x) y\n⊢ ∃ b, IsCompl x b" ]
obtain ⟨y, hy⟩ := exists_isCompl (f.symm x)
_private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalObtain
Lean.Parser.Tactic.obtain