Dataset Viewer
Auto-converted to Parquet Duplicate
module
string
startPos
dict
endPos
dict
nextStartPos
dict
goals
list
goalsAfter
list
ppTac
string
elaborator
string
kind
string
Mathlib.Data.Nat.BinaryRec
{ "line": 133, "column": 47 }
{ "line": 133, "column": 60 }
{ "line": 133, "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": 138, "column": 95 }
{ "line": 139, "column": 37 }
{ "line": 141, "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": 239, "column": 2 }
{ "line": 239, "column": 19 }
{ "line": 241, "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": 239, "column": 2 }
{ "line": 239, "column": 19 }
{ "line": 241, "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": 239, "column": 2 }
{ "line": 239, "column": 19 }
{ "line": 241, "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.Relation
{ "line": 1021, "column": 11 }
{ "line": 1021, "column": 49 }
{ "line": 1021, "column": 49 }
[ { "pp": "α : Type u_1\nr : α → α → Prop\na b : α\nh✝ : Equivalence r\nh : EqvGen r a b\n⊢ r a b", "ppTerm": "?m.6", "assigned": true, "usedConstants": [ "_private.Mathlib.Logic.Relation.0.Equivalence.eqvGen_iff._proof_1_4", "_private.Mathlib.Logic.Relation.0.Equivalence.eqvGen_iff._proof...
[]
by induction h <;> grind [Equivalence]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Logic.Equiv.Defs
{ "line": 861, "column": 17 }
{ "line": 861, "column": 73 }
{ "line": 862, "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": 861, "column": 17 }
{ "line": 861, "column": 73 }
{ "line": 862, "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": 64, "column": 37 }
{ "line": 64, "column": 52 }
{ "line": 66, "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": 64, "column": 37 }
{ "line": 64, "column": 52 }
{ "line": 66, "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": 64, "column": 37 }
{ "line": 64, "column": 52 }
{ "line": 66, "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": 69, "column": 37 }
{ "line": 69, "column": 52 }
{ "line": 71, "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": 69, "column": 37 }
{ "line": 69, "column": 52 }
{ "line": 71, "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": 69, "column": 37 }
{ "line": 69, "column": 52 }
{ "line": 71, "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": 366, "column": 58 }
{ "line": 366, "column": 69 }
{ "line": 366, "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": 366, "column": 70 }
{ "line": 366, "column": 81 }
{ "line": 366, "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": 482, "column": 55 }
{ "line": 482, "column": 66 }
{ "line": 482, "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": 550, "column": 17 }
{ "line": 550, "column": 28 }
{ "line": 550, "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": 550, "column": 39 }
{ "line": 550, "column": 50 }
{ "line": 550, "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": 569, "column": 6 }
{ "line": 569, "column": 17 }
{ "line": 569, "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": 596, "column": 62 }
{ "line": 596, "column": 73 }
{ "line": 596, "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": 605, "column": 50 }
{ "line": 605, "column": 61 }
{ "line": 605, "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": 580, "column": 2 }
{ "line": 580, "column": 13 }
{ "line": 582, "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": 693, "column": 2 }
{ "line": 694, "column": 76 }
{ "line": 696, "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", "Int.le_of_lt_add_one", "Mono...
[]
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": 693, "column": 2 }
{ "line": 694, "column": 76 }
{ "line": 696, "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", "Int.le_of_lt_add_one", "Mono...
[]
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": 650, "column": 49 }
{ "line": 653, "column": 11 }
{ "line": 655, "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": 891, "column": 2 }
{ "line": 895, "column": 42 }
{ "line": 897, "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": 891, "column": 2 }
{ "line": 895, "column": 42 }
{ "line": 897, "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.Restrict
{ "line": 100, "column": 2 }
{ "line": 100, "column": 34 }
{ "line": 102, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nγ : Type u_3\nf : α → β\ng : α → γ\ng' : β → γ\n⊢ (range f)ᶜ.domRestrict (extend f g g') = g' ∘ Subtype.val", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "Classical.propDecidable", "Membership.mem", "Set.domRestrict_dite_compl", ...
[]
exact domRestrict_dite_compl _ _
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Data.Set.Restrict
{ "line": 100, "column": 2 }
{ "line": 100, "column": 34 }
{ "line": 102, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nγ : Type u_3\nf : α → β\ng : α → γ\ng' : β → γ\n⊢ (range f)ᶜ.domRestrict (extend f g g') = g' ∘ Subtype.val", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "Classical.propDecidable", "Membership.mem", "Set.domRestrict_dite_compl", ...
[]
exact domRestrict_dite_compl _ _
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Set.Restrict
{ "line": 100, "column": 2 }
{ "line": 100, "column": 34 }
{ "line": 102, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nγ : Type u_3\nf : α → β\ng : α → γ\ng' : β → γ\n⊢ (range f)ᶜ.domRestrict (extend f g g') = g' ∘ Subtype.val", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "Classical.propDecidable", "Membership.mem", "Set.domRestrict_dite_compl", ...
[]
exact domRestrict_dite_compl _ _
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
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.Prod
{ "line": 682, "column": 53 }
{ "line": 682, "column": 82 }
{ "line": 684, "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": 682, "column": 53 }
{ "line": 682, "column": 82 }
{ "line": 684, "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": 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": 1004, "column": 45 }
{ "line": 1015, "column": 45 }
{ "line": 1017, "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.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.Function
{ "line": 1304, "column": 45 }
{ "line": 1304, "column": 88 }
{ "line": 1306, "column": 0 }
[ { "pp": "α₁ : Type u_6\nα₂ : Type u_7\nβ₁ : Type u_8\nβ₂ : Type u_9\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.Algebra.Group.Basic
{ "line": 37, "column": 80 }
{ "line": 37, "column": 97 }
{ "line": 39, "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", "id", "d...
[]
split_ifs <;> rfl
Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1»
Lean.Parser.Tactic.«tactic_<;>_»
Mathlib.Algebra.Group.Basic
{ "line": 37, "column": 80 }
{ "line": 37, "column": 97 }
{ "line": 39, "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", "id", "d...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Group.Basic
{ "line": 37, "column": 80 }
{ "line": 37, "column": 97 }
{ "line": 39, "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", "id", "d...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Group.Basic
{ "line": 41, "column": 80 }
{ "line": 41, "column": 97 }
{ "line": 43, "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", "id", "d...
[]
split_ifs <;> rfl
Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1»
Lean.Parser.Tactic.«tactic_<;>_»
Mathlib.Algebra.Group.Basic
{ "line": 41, "column": 80 }
{ "line": 41, "column": 97 }
{ "line": 43, "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", "id", "d...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Group.Basic
{ "line": 41, "column": 80 }
{ "line": 41, "column": 97 }
{ "line": 43, "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", "id", "d...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.GroupWithZero.Basic
{ "line": 234, "column": 62 }
{ "line": 234, "column": 97 }
{ "line": 236, "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", "NPow.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": 234, "column": 62 }
{ "line": 234, "column": 97 }
{ "line": 236, "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", "NPow.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": 93, "column": 2 }
{ "line": 93, "column": 19 }
{ "line": 95, "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", "ite_eq_right", "id", "AddMonoidWithOne.toNatCast", ...
[]
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": 93, "column": 2 }
{ "line": 93, "column": 19 }
{ "line": 95, "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", "ite_eq_right", "id", "AddMonoidWithOne.toNatCast", ...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Nat.Cast.Defs
{ "line": 93, "column": 2 }
{ "line": 93, "column": 19 }
{ "line": 95, "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", "ite_eq_right", "id", "AddMonoidWithOne.toNatCast", ...
[]
split_ifs <;> rfl
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.GroupWithZero.Basic
{ "line": 454, "column": 2 }
{ "line": 454, "column": 42 }
{ "line": 456, "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": 454, "column": 2 }
{ "line": 454, "column": 42 }
{ "line": 456, "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": 454, "column": 2 }
{ "line": 454, "column": 42 }
{ "line": 456, "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.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": 167, "column": 6 }
{ "line": 167, "column": 14 }
{ "line": 167, "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.Algebra.Ring.Defs
{ "line": 173, "column": 6 }
{ "line": 173, "column": 14 }
{ "line": 173, "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": 190, "column": 37 }
{ "line": 190, "column": 51 }
{ "line": 190, "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": 327, "column": 52 }
{ "line": 327, "column": 61 }
{ "line": 327, "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": 89, "column": 2 }
{ "line": 96, "column": 22 }
{ "line": 98, "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": 89, "column": 2 }
{ "line": 96, "column": 22 }
{ "line": 98, "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": 89, "column": 2 }
{ "line": 96, "column": 22 }
{ "line": 98, "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": 68, "column": 37 }
{ "line": 68, "column": 51 }
{ "line": 68, "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": 68, "column": 52 }
{ "line": 68, "column": 60 }
{ "line": 68, "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": 620, "column": 10 }
{ "line": 620, "column": 18 }
{ "line": 620, "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": 621, "column": 8 }
{ "line": 621, "column": 16 }
{ "line": 621, "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": 621, "column": 17 }
{ "line": 621, "column": 25 }
{ "line": 621, "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.Commute
{ "line": 51, "column": 6 }
{ "line": 51, "column": 14 }
{ "line": 51, "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.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.Module.NatInt
{ "line": 117, "column": 21 }
{ "line": 117, "column": 35 }
{ "line": 117, "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.Parity
{ "line": 109, "column": 49 }
{ "line": 109, "column": 57 }
{ "line": 109, "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": 143, "column": 6 }
{ "line": 143, "column": 14 }
{ "line": 143, "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.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": 203, "column": 15 }
{ "line": 203, "column": 23 }
{ "line": 203, "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": 372, "column": 2 }
{ "line": 372, "column": 36 }
{ "line": 374, "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": 156, "column": 51 }
{ "line": 157, "column": 62 }
{ "line": 159, "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": 63, "column": 30 }
{ "line": 63, "column": 38 }
{ "line": 63, "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": 81, "column": 57 }
{ "line": 81, "column": 66 }
{ "line": 81, "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": 83, "column": 51 }
{ "line": 83, "column": 60 }
{ "line": 83, "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": 229, "column": 57 }
{ "line": 229, "column": 66 }
{ "line": 229, "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": 231, "column": 51 }
{ "line": 231, "column": 60 }
{ "line": 231, "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": 303, "column": 6 }
{ "line": 303, "column": 14 }
{ "line": 303, "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": 303, "column": 31 }
{ "line": 303, "column": 39 }
{ "line": 303, "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": 319, "column": 6 }
{ "line": 319, "column": 14 }
{ "line": 319, "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": 319, "column": 31 }
{ "line": 319, "column": 39 }
{ "line": 319, "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": 364, "column": 2 }
{ "line": 365, "column": 6 }
{ "line": 367, "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": 364, "column": 2 }
{ "line": 365, "column": 6 }
{ "line": 367, "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": 617, "column": 45 }
{ "line": 617, "column": 54 }
{ "line": 617, "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.184", "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": 618, "column": 47 }
{ "line": 618, "column": 55 }
{ "line": 618, "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.200", "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": 753, "column": 20 }
{ "line": 753, "column": 30 }
{ "line": 753, "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": 181, "column": 4 }
{ "line": 181, "column": 32 }
{ "line": 182, "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
End of preview. Expand in Data Studio

Mathlib Tactics

This dataset contains tactic invocations with associated goal states from proofs in Mathlib, the mathematical library for the Lean 4 theorem prover, extracted with lean_scout.

Extracted from the Mathlib commit with the following hash.

5ed2965256430c3649e86755f9576b54eca72435

The dataset follows this schema:

fields:
- type:
    datatype: string
  nullable: true
  name: module
- type:
    datatype: struct
    children:
    - type:
        datatype: nat
      nullable: false
      name: line
    - type:
        datatype: nat
      nullable: false
      name: column
  nullable: false
  name: startPos
- type:
    datatype: struct
    children:
    - type:
        datatype: nat
      nullable: false
      name: line
    - type:
        datatype: nat
      nullable: false
      name: column
  nullable: false
  name: endPos
- type:
    datatype: struct
    children:
    - type:
        datatype: nat
      nullable: false
      name: line
    - type:
        datatype: nat
      nullable: false
      name: column
  nullable: false
  name: nextStartPos
- type:
    item:
      datatype: struct
      children:
      - type:
          datatype: string
        nullable: false
        name: pp
      - type:
          datatype: string
        nullable: false
        name: ppTerm
      - type:
          datatype: bool
        nullable: false
        name: assigned
      - type:
          item:
            datatype: string
          datatype: list
        nullable: false
        name: usedConstants
      - type:
          item:
            datatype: string
          datatype: list
        nullable: false
        name: usedFVars
      - type:
          item:
            datatype: struct
            children:
            - type:
                datatype: bool
              nullable: false
              name: new
            - type:
                datatype: nat
              nullable: true
              name: index
            - type:
                datatype: string
              nullable: false
              name: kind
            - type:
                datatype: string
              nullable: false
              name: pp
            - type:
                datatype: string
              nullable: false
              name: ppTerm
          datatype: list
        nullable: false
        name: usedGoals
    datatype: list
  nullable: false
  name: goals
- type:
    item:
      datatype: string
    datatype: list
  nullable: false
  name: goalsAfter
- type:
    datatype: string
  nullable: false
  name: ppTac
- type:
    datatype: string
  nullable: false
  name: elaborator
- type:
    datatype: string
  nullable: false
  name: kind

Attribution

This dataset is derived from Mathlib, an open-source mathematical library developed by the leanprover-community. If you use this dataset, please cite the Mathlib paper or the Mathlib repository.

A full list of Mathlib contributors is available at: https://github.com/leanprover-community/mathlib4/graphs/contributors

Downloads last month
1,887