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.Algebra.Order.Group.Unbundled.Abs
{ "line": 166, "column": 12 }
{ "line": 166, "column": 35 }
{ "line": 166, "column": 35 }
[ { "pp": "α : Type u_1\ninst✝² : Lattice α\ninst✝¹ : CommGroup α\ninst✝ : MulLeftMono α\na b c : α\nthis : DistribLattice α := CommGroup.toDistribLattice α\n⊢ |(a ⊔ c) / (b ⊔ c)|ₘ * |(a ⊓ c) / (b ⊓ c)|ₘ = (b ⊔ c ⊔ (a ⊔ c)) / ((b ⊔ c) ⊓ (a ⊔ c)) * |(a ⊓ c) / (b ⊓ c)|ₘ", "ppTerm": "?m.101", "assigned": tru...
[ "α : Type u_1\ninst✝² : Lattice α\ninst✝¹ : CommGroup α\ninst✝ : MulLeftMono α\na b c : α\nthis : DistribLattice α := CommGroup.toDistribLattice α\n⊢ |(a ⊔ c) / (b ⊔ c)|ₘ * |(a ⊓ c) / (b ⊓ c)|ₘ = |(a ⊔ c) / (b ⊔ c)|ₘ * |(a ⊓ c) / (b ⊓ c)|ₘ" ]
sup_div_inf_eq_mabs_div
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Group.Unbundled.Abs
{ "line": 177, "column": 27 }
{ "line": 177, "column": 50 }
{ "line": 177, "column": 50 }
[ { "pp": "α : Type u_1\ninst✝² : Lattice α\ninst✝¹ : CommGroup α\ninst✝ : MulLeftMono α\na b c : α\nthis : DistribLattice α := CommGroup.toDistribLattice α\n⊢ (b ⊔ a) / (b ⊓ a) = |a / b|ₘ", "ppTerm": "?m.253", "assigned": true, "usedConstants": [ "sup_div_inf_eq_mabs_div", "Eq.mpr", ...
[ "α : Type u_1\ninst✝² : Lattice α\ninst✝¹ : CommGroup α\ninst✝ : MulLeftMono α\na b c : α\nthis : DistribLattice α := CommGroup.toDistribLattice α\n⊢ |a / b|ₘ = |a / b|ₘ" ]
sup_div_inf_eq_mabs_div
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Int.GCD
{ "line": 255, "column": 4 }
{ "line": 255, "column": 52 }
{ "line": 257, "column": 0 }
[ { "pp": "case right\na b : ℤ\nha : a ≠ 0\n⊢ ∀ ⦃a_1 : ℕ⦄, 0 < a_1 → a.gcd b ∣ a_1 → a.gcd b ≤ a_1", "ppTerm": "?right", "assigned": true, "usedConstants": [ "Int.gcd", "Dvd.dvd", "instOfNatNat", "Nat.instDvd", "Nat", "LT.lt", "instLTNat", "OfNat.ofNat",...
[]
exact fun n hn_pos hn => Nat.le_of_dvd hn_pos hn
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Algebra.Order.Ring.Int
{ "line": 93, "column": 36 }
{ "line": 93, "column": 50 }
{ "line": 93, "column": 51 }
[ { "pp": "n p q : ℕ\ndvd : ∃ x y, ↑n = ↑(p + 1) * x + ↑(q + 1) * y\nle : p * q ≤ n\na_n b_n : ℤ\neq : ↑n = ↑(p + 1) * a_n + ↑(q + 1) * b_n\na : ℤ := a_n % ↑q.succ\nb : ℤ := b_n + a_n / ↑q.succ * ↑p.succ\nthis : a * ↑p.succ + b * ↑q.succ = ↑n\nhb : b ≤ -1\nha : a_n % ↑q.succ < ↑(↑q.succ).natAbs\n⊢ ↑q * ↑p.succ + ...
[ "n p q : ℕ\ndvd : ∃ x y, ↑n = ↑(p + 1) * x + ↑(q + 1) * y\nle : p * q ≤ n\na_n b_n : ℤ\neq : ↑n = ↑(p + 1) * a_n + ↑(q + 1) * b_n\na : ℤ := a_n % ↑q.succ\nb : ℤ := b_n + a_n / ↑q.succ * ↑p.succ\nthis : a * ↑p.succ + b * ↑q.succ = ↑n\nhb : b ≤ -1\nha : a_n % ↑q.succ < ↑(↑q.succ).natAbs\n⊢ ↑q * (↑p + 1) + -1 * (↑q + ...
Nat.cast_succ,
Mathlib.Tactic._aux_Mathlib_Tactic_SimpRw___elabRules_Mathlib_Tactic_tacticSimp_rw____1
null
Mathlib.Algebra.Order.Ring.Int
{ "line": 93, "column": 51 }
{ "line": 93, "column": 59 }
{ "line": 93, "column": 60 }
[ { "pp": "n p q : ℕ\ndvd : ∃ x y, ↑n = ↑(p + 1) * x + ↑(q + 1) * y\nle : p * q ≤ n\na_n b_n : ℤ\neq : ↑n = ↑(p + 1) * a_n + ↑(q + 1) * b_n\na : ℤ := a_n % ↑q.succ\nb : ℤ := b_n + a_n / ↑q.succ * ↑p.succ\nthis : a * ↑p.succ + b * ↑q.succ = ↑n\nhb : b ≤ -1\nha : a_n % ↑q.succ < ↑(↑q.succ).natAbs\n⊢ ↑q * (↑p + 1) +...
[ "n p q : ℕ\ndvd : ∃ x y, ↑n = ↑(p + 1) * x + ↑(q + 1) * y\nle : p * q ≤ n\na_n b_n : ℤ\neq : ↑n = ↑(p + 1) * a_n + ↑(q + 1) * b_n\na : ℤ := a_n % ↑q.succ\nb : ℤ := b_n + a_n / ↑q.succ * ↑p.succ\nthis : a * ↑p.succ + b * ↑q.succ = ↑n\nhb : b ≤ -1\nha : a_n % ↑q.succ < ↑(↑q.succ).natAbs\n⊢ ↑q * ↑p + ↑q * 1 + (-1 * ↑q...
mul_add,
Mathlib.Tactic._aux_Mathlib_Tactic_SimpRw___elabRules_Mathlib_Tactic_tacticSimp_rw____1
null
Mathlib.Algebra.Order.AddGroupWithTop
{ "line": 278, "column": 2 }
{ "line": 278, "column": 42 }
{ "line": 280, "column": 0 }
[ { "pp": "G : Type u_1\ninst✝ : AddCommGroup G\nx y : WithTop G\n⊢ x - y = ⊤ ↔ x = ⊤ ∨ y = ⊤", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "False", "congrArg", "WithTop.coe_ne_top._simp_1", "WithTop.LinearOrderedAddCommGroup.sub_top", "HSub.hSub", "AddC...
[]
cases x <;> cases y <;> simp [← coe_sub]
Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1»
Lean.Parser.Tactic.«tactic_<;>_»
Mathlib.Algebra.Order.AddGroupWithTop
{ "line": 278, "column": 2 }
{ "line": 278, "column": 42 }
{ "line": 280, "column": 0 }
[ { "pp": "G : Type u_1\ninst✝ : AddCommGroup G\nx y : WithTop G\n⊢ x - y = ⊤ ↔ x = ⊤ ∨ y = ⊤", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "False", "congrArg", "WithTop.coe_ne_top._simp_1", "WithTop.LinearOrderedAddCommGroup.sub_top", "HSub.hSub", "AddC...
[]
cases x <;> cases y <;> simp [← coe_sub]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Order.AddGroupWithTop
{ "line": 278, "column": 2 }
{ "line": 278, "column": 42 }
{ "line": 280, "column": 0 }
[ { "pp": "G : Type u_1\ninst✝ : AddCommGroup G\nx y : WithTop G\n⊢ x - y = ⊤ ↔ x = ⊤ ∨ y = ⊤", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "False", "congrArg", "WithTop.coe_ne_top._simp_1", "WithTop.LinearOrderedAddCommGroup.sub_top", "HSub.hSub", "AddC...
[]
cases x <;> cases y <;> simp [← coe_sub]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Order.Monoid.Units
{ "line": 53, "column": 2 }
{ "line": 54, "column": 5 }
{ "line": 56, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝¹ : Monoid α\ninst✝ : LinearOrder α\na b : αˣ\n⊢ ↑(a ⊓ b) = min ↑a ↑b", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "Units.val_le_val._simp_2", "Units.val", "Eq.mpr", "Units.instMinOfLinearOrder", "congrArg", "PartialOrder.t...
[]
simp_rw [min_def, val_le_val, ← apply_ite] rfl
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Order.Monoid.Units
{ "line": 53, "column": 2 }
{ "line": 54, "column": 5 }
{ "line": 56, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝¹ : Monoid α\ninst✝ : LinearOrder α\na b : αˣ\n⊢ ↑(a ⊓ b) = min ↑a ↑b", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "Units.val_le_val._simp_2", "Units.val", "Eq.mpr", "Units.instMinOfLinearOrder", "congrArg", "PartialOrder.t...
[]
simp_rw [min_def, val_le_val, ← apply_ite] rfl
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Order.Sub.Unbundled.Basic
{ "line": 105, "column": 11 }
{ "line": 105, "column": 57 }
{ "line": 106, "column": 2 }
[ { "pp": "α : Type u_1\ninst✝⁵ : AddCommSemigroup α\ninst✝⁴ : PartialOrder α\ninst✝³ : ExistsAddOfLE α\ninst✝² : AddLeftMono α\ninst✝¹ : Sub α\ninst✝ : OrderedSub α\na b c : α\nhb : AddLECancellable b\nhba : b ≤ a\nh : a < b + c\n⊢ a - b < c", "ppTerm": "?m.37", "assigned": true, "usedConstants": [ ...
[ "α : Type u_1\ninst✝⁵ : AddCommSemigroup α\ninst✝⁴ : PartialOrder α\ninst✝³ : ExistsAddOfLE α\ninst✝² : AddLeftMono α\ninst✝¹ : Sub α\ninst✝ : OrderedSub α\na b c : α\nhb : AddLECancellable b\nhba : b ≤ a\nh : a < b + c\n⊢ a - b ≠ c" ]
refine (tsub_le_iff_left.mpr h.le).lt_of_ne ?_
Lean.Elab.Tactic.evalRefine
Lean.Parser.Tactic.refine
Mathlib.Algebra.Order.Floor.Semiring
{ "line": 158, "column": 31 }
{ "line": 158, "column": 98 }
{ "line": 158, "column": 98 }
[ { "pp": "case inr\nR : Type u_1\ninst✝³ : Semiring R\ninst✝² : LinearOrder R\ninst✝¹ : FloorSemiring R\ninst✝ : IsStrictOrderedRing R\nn : ℕ\nhn : n ≠ 0\na : R\nha : 0 ≤ a\nm : ℕ\n⊢ ↑m * ↑n ≤ a * ↑n ↔ ↑m ≤ a", "ppTerm": "?inr", "assigned": true, "usedConstants": [ "Iff.mpr", "Eq.mpr", ...
[ "case inr\nR : Type u_1\ninst✝³ : Semiring R\ninst✝² : LinearOrder R\ninst✝¹ : FloorSemiring R\ninst✝ : IsStrictOrderedRing R\nn : ℕ\nhn : n ≠ 0\na : R\nha : 0 ≤ a\nm : ℕ\n⊢ ↑m ≤ a ↔ ↑m ≤ a" ]
mul_le_mul_iff_of_pos_right (cast_pos'.mpr (zero_lt_of_ne_zero hn))
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Group.Invertible.Basic
{ "line": 90, "column": 4 }
{ "line": 91, "column": 14 }
{ "line": 93, "column": 0 }
[ { "pp": "α : Type u\ninst✝² : Monoid α\na b : α\ninst✝¹ : Invertible a\ninst✝ : Invertible (a * b)\n⊢ b * (⅟(a * b) * a) = 1", "ppTerm": "?m.45", "assigned": true, "usedConstants": [ "Eq.mpr", "MulOne.toOne", "Semigroup.toMul", "HMul.hMul", "isUnit_of_invertible", ...
[]
rw [← (isUnit_of_invertible a).mul_right_inj, ← mul_assoc, ← mul_assoc, mul_invOf_self, mul_one, one_mul]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Algebra.Group.Invertible.Basic
{ "line": 90, "column": 4 }
{ "line": 91, "column": 14 }
{ "line": 93, "column": 0 }
[ { "pp": "α : Type u\ninst✝² : Monoid α\na b : α\ninst✝¹ : Invertible a\ninst✝ : Invertible (a * b)\n⊢ b * (⅟(a * b) * a) = 1", "ppTerm": "?m.45", "assigned": true, "usedConstants": [ "Eq.mpr", "MulOne.toOne", "Semigroup.toMul", "HMul.hMul", "isUnit_of_invertible", ...
[]
rw [← (isUnit_of_invertible a).mul_right_inj, ← mul_assoc, ← mul_assoc, mul_invOf_self, mul_one, one_mul]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Group.Invertible.Basic
{ "line": 90, "column": 4 }
{ "line": 91, "column": 14 }
{ "line": 93, "column": 0 }
[ { "pp": "α : Type u\ninst✝² : Monoid α\na b : α\ninst✝¹ : Invertible a\ninst✝ : Invertible (a * b)\n⊢ b * (⅟(a * b) * a) = 1", "ppTerm": "?m.45", "assigned": true, "usedConstants": [ "Eq.mpr", "MulOne.toOne", "Semigroup.toMul", "HMul.hMul", "isUnit_of_invertible", ...
[]
rw [← (isUnit_of_invertible a).mul_right_inj, ← mul_assoc, ← mul_assoc, mul_invOf_self, mul_one, one_mul]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Ring.Invertible
{ "line": 88, "column": 6 }
{ "line": 88, "column": 14 }
{ "line": 88, "column": 15 }
[ { "pp": "R : Type u_1\ninst✝² : Semiring R\na b : R\ninst✝¹ : Invertible a\ninst✝ : Invertible b\n⊢ ⅟a + ⅟b = ⅟a * (a + b) * ⅟b", "ppTerm": "?m.40", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "HMul.hMu...
[ "R : Type u_1\ninst✝² : Semiring R\na b : R\ninst✝¹ : Invertible a\ninst✝ : Invertible b\n⊢ ⅟a + ⅟b = (⅟a * a + ⅟a * b) * ⅟b" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Ring.Invertible
{ "line": 107, "column": 74 }
{ "line": 107, "column": 82 }
{ "line": 107, "column": 83 }
[ { "pp": "R : Type u_1\ninst✝³ : Ring R\na b : R\ninst✝² : Invertible a\ninst✝¹ : Invertible b\ninst✝ : Invertible (a + b)\n⊢ 1 = (⅟a + ⅟b) * (a + b) ↔ 1 = ⅟a * a + ⅟b * a + (⅟a * b + ⅟b * b)", "ppTerm": "?m.410", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Eq.mpr", ...
[ "R : Type u_1\ninst✝³ : Ring R\na b : R\ninst✝² : Invertible a\ninst✝¹ : Invertible b\ninst✝ : Invertible (a + b)\n⊢ 1 = (⅟a + ⅟b) * a + (⅟a + ⅟b) * b ↔ 1 = ⅟a * a + ⅟b * a + (⅟a * b + ⅟b * b)" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.GroupWithZero.Units.Lemmas
{ "line": 113, "column": 4 }
{ "line": 114, "column": 46 }
{ "line": 116, "column": 0 }
[ { "pp": "case neg\nG₀ : Type u_3\nG₀' : Type u_5\nF : Type u_6\ninst✝³ : GroupWithZero G₀\ninst✝² : GroupWithZero G₀'\ninst✝¹ : FunLike F G₀ G₀'\ninst✝ : MonoidWithZeroHomClass F G₀ G₀'\nf : F\na : G₀\nh : ¬a = 0\n⊢ f a⁻¹ = (f a)⁻¹", "ppTerm": "?neg✝", "assigned": true, "usedConstants": [ "Eq....
[]
apply eq_inv_of_mul_eq_one_left rw [← map_mul, inv_mul_cancel₀ h, map_one]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.GroupWithZero.Units.Lemmas
{ "line": 113, "column": 4 }
{ "line": 114, "column": 46 }
{ "line": 116, "column": 0 }
[ { "pp": "case neg\nG₀ : Type u_3\nG₀' : Type u_5\nF : Type u_6\ninst✝³ : GroupWithZero G₀\ninst✝² : GroupWithZero G₀'\ninst✝¹ : FunLike F G₀ G₀'\ninst✝ : MonoidWithZeroHomClass F G₀ G₀'\nf : F\na : G₀\nh : ¬a = 0\n⊢ f a⁻¹ = (f a)⁻¹", "ppTerm": "?neg✝", "assigned": true, "usedConstants": [ "Eq....
[]
apply eq_inv_of_mul_eq_one_left rw [← map_mul, inv_mul_cancel₀ h, map_one]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Field.Basic
{ "line": 259, "column": 46 }
{ "line": 259, "column": 54 }
{ "line": 259, "column": 55 }
[ { "pp": "K : Type u_1\nL : Type u_2\ninst✝¹⁸ : Zero K\ninst✝¹⁷ : Add K\ninst✝¹⁶ : Neg K\ninst✝¹⁵ : Sub K\ninst✝¹⁴ : One K\ninst✝¹³ : Mul K\ninst✝¹² : Inv K\ninst✝¹¹ : Div K\ninst✝¹⁰ : SMul ℕ K\ninst✝⁹ : SMul ℤ K\ninst✝⁸ : SMul ℚ≥0 K\ninst✝⁷ : SMul ℚ K\ninst✝⁶ : Pow K ℕ\ninst✝⁵ : Pow K ℤ\ninst✝⁴ : NatCast K\nins...
[ "K : Type u_1\nL : Type u_2\ninst✝¹⁸ : Zero K\ninst✝¹⁷ : Add K\ninst✝¹⁶ : Neg K\ninst✝¹⁵ : Sub K\ninst✝¹⁴ : One K\ninst✝¹³ : Mul K\ninst✝¹² : Inv K\ninst✝¹¹ : Div K\ninst✝¹⁰ : SMul ℕ K\ninst✝⁹ : SMul ℤ K\ninst✝⁸ : SMul ℚ≥0 K\ninst✝⁷ : SMul ℚ K\ninst✝⁶ : Pow K ℕ\ninst✝⁵ : Pow K ℤ\ninst✝⁴ : NatCast K\ninst✝³ : IntCas...
intCast,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Basic
{ "line": 54, "column": 21 }
{ "line": 54, "column": 29 }
{ "line": 54, "column": 30 }
[ { "pp": "R : Type u_3\ninst✝² : Semiring R\ninst✝¹ : PartialOrder R\ninst✝ : IsOrderedRing R\nx y : R\nhx : 0 ≤ x\nhy : 0 ≤ y\nk : ℕ\nih : k + 1 ≠ 0 → x ^ (k + 1) + y ^ (k + 1) ≤ (x + y) ^ (k + 1)\nhn : k + 1 + 1 ≠ 0\nn : ℕ := k.succ\nh1 : 0 ≤ x * y ^ n + y * x ^ n\nh2 : 0 ≤ x + y\n⊢ x * x ^ n + y * y ^ n + (x ...
[ "R : Type u_3\ninst✝² : Semiring R\ninst✝¹ : PartialOrder R\ninst✝ : IsOrderedRing R\nx y : R\nhx : 0 ≤ x\nhy : 0 ≤ y\nk : ℕ\nih : k + 1 ≠ 0 → x ^ (k + 1) + y ^ (k + 1) ≤ (x + y) ^ (k + 1)\nhn : k + 1 + 1 ≠ 0\nn : ℕ := k.succ\nh1 : 0 ≤ x * y ^ n + y * x ^ n\nh2 : 0 ≤ x + y\n⊢ x * x ^ n + y * y ^ n + (x * y ^ n + y ...
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Basic
{ "line": 54, "column": 30 }
{ "line": 54, "column": 38 }
{ "line": 54, "column": 39 }
[ { "pp": "R : Type u_3\ninst✝² : Semiring R\ninst✝¹ : PartialOrder R\ninst✝ : IsOrderedRing R\nx y : R\nhx : 0 ≤ x\nhy : 0 ≤ y\nk : ℕ\nih : k + 1 ≠ 0 → x ^ (k + 1) + y ^ (k + 1) ≤ (x + y) ^ (k + 1)\nhn : k + 1 + 1 ≠ 0\nn : ℕ := k.succ\nh1 : 0 ≤ x * y ^ n + y * x ^ n\nh2 : 0 ≤ x + y\n⊢ x * x ^ n + y * y ^ n + (x ...
[ "R : Type u_3\ninst✝² : Semiring R\ninst✝¹ : PartialOrder R\ninst✝ : IsOrderedRing R\nx y : R\nhx : 0 ≤ x\nhy : 0 ≤ y\nk : ℕ\nih : k + 1 ≠ 0 → x ^ (k + 1) + y ^ (k + 1) ≤ (x + y) ^ (k + 1)\nhn : k + 1 + 1 ≠ 0\nn : ℕ := k.succ\nh1 : 0 ≤ x * y ^ n + y * x ^ n\nh2 : 0 ≤ x + y\n⊢ x * x ^ n + y * y ^ n + (x * y ^ n + y ...
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Basic
{ "line": 111, "column": 56 }
{ "line": 111, "column": 64 }
{ "line": 111, "column": 65 }
[ { "pp": "R : Type u_3\ninst✝³ : Semiring R\ninst✝² : LinearOrder R\ninst✝¹ : IsStrictOrderedRing R\na b : R\ninst✝ : ExistsAddOfLE R\n⊢ a * (a + b) + b * (a + b) = a * a + b * b + (a * b + b * a)", "ppTerm": "?m.169", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Eq.m...
[ "R : Type u_3\ninst✝³ : Semiring R\ninst✝² : LinearOrder R\ninst✝¹ : IsStrictOrderedRing R\na b : R\ninst✝ : ExistsAddOfLE R\n⊢ a * a + a * b + (b * a + b * b) = a * a + b * b + (a * b + b * a)" ]
mul_add,
Mathlib.Tactic._aux_Mathlib_Tactic_SimpRw___elabRules_Mathlib_Tactic_tacticSimp_rw____1
null
Mathlib.Algebra.Order.Ring.Basic
{ "line": 128, "column": 25 }
{ "line": 128, "column": 33 }
{ "line": 128, "column": 34 }
[ { "pp": "R : Type u_3\ninst✝³ : Semiring R\ninst✝² : LinearOrder R\ninst✝¹ : IsStrictOrderedRing R\na b : R\ninst✝ : ExistsAddOfLE R\nha : 0 ≤ a\nhb : 0 ≤ b\nn : ℕ\n⊢ 2 ^ n * ((a ^ (n + 1) + b ^ (n + 1)) * (a + b)) =\n 2 ^ n * (a ^ (n + 2) + b ^ (n + 2) + (a ^ (n + 1) * b + b ^ (n + 1) * a))", "ppTerm": ...
[ "R : Type u_3\ninst✝³ : Semiring R\ninst✝² : LinearOrder R\ninst✝¹ : IsStrictOrderedRing R\na b : R\ninst✝ : ExistsAddOfLE R\nha : 0 ≤ a\nhb : 0 ≤ b\nn : ℕ\n⊢ 2 ^ n * ((a ^ (n + 1) + b ^ (n + 1)) * a + (a ^ (n + 1) + b ^ (n + 1)) * b) =\n 2 ^ n * (a ^ (n + 2) + b ^ (n + 2) + (a ^ (n + 1) * b + b ^ (n + 1) * a))"...
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Basic
{ "line": 144, "column": 39 }
{ "line": 145, "column": 74 }
{ "line": 146, "column": 4 }
[ { "pp": "R : Type u_3\ninst✝³ : Semiring R\ninst✝² : LinearOrder R\ninst✝¹ : IsStrictOrderedRing R\na b : R\ninst✝ : ExistsAddOfLE R\nn : ℕ\n⊢ (2 * (a ^ 2 + b ^ 2)) ^ n = 2 ^ n * (a ^ 2 + b ^ 2) ^ n", "ppTerm": "?m.157", "assigned": true, "usedConstants": [ "Eq.mpr", "NonAssocSemiring.to...
[]
by -- TODO: Should be `Nat.cast_commute` rw [Commute.mul_pow]; simp [Commute, SemiconjBy, two_mul, mul_two]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Order.Antisymmetrization
{ "line": 458, "column": 17 }
{ "line": 458, "column": 32 }
{ "line": 459, "column": 2 }
[ { "pp": "α : Type u_1\nβ : Type u_2\na b c d : α\ninst✝¹ : Preorder α\ninst✝ : Preorder β\n⊢ LeftInverse (uncurry (Quotient.lift₂ (fun a b ↦ ⟦(a, b)⟧) ⋯)) (Quotient.lift (fun ab ↦ (⟦ab.1⟧, ⟦ab.2⟧)) ⋯)", "ppTerm": "?m.112", "assigned": true, "usedConstants": [ "AntisymmRel.setoid", "Prod....
[]
rintro ⟨_⟩; rfl
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Order.Antisymmetrization
{ "line": 458, "column": 17 }
{ "line": 458, "column": 32 }
{ "line": 459, "column": 2 }
[ { "pp": "α : Type u_1\nβ : Type u_2\na b c d : α\ninst✝¹ : Preorder α\ninst✝ : Preorder β\n⊢ LeftInverse (uncurry (Quotient.lift₂ (fun a b ↦ ⟦(a, b)⟧) ⋯)) (Quotient.lift (fun ab ↦ (⟦ab.1⟧, ⟦ab.2⟧)) ⋯)", "ppTerm": "?m.112", "assigned": true, "usedConstants": [ "AntisymmRel.setoid", "Prod....
[]
rintro ⟨_⟩; rfl
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Order.Ring.Abs
{ "line": 176, "column": 24 }
{ "line": 176, "column": 38 }
{ "line": 176, "column": 39 }
[ { "pp": "case succ\nα : Type u_1\ninst✝² : CommRing α\ninst✝¹ : LinearOrder α\na b : α\nn✝ : ℕ\ninst✝ : IsOrderedRing α\nn : ℕ\nih : |geomSum a b n| ≤ (↑n + 1) * max |a| |b| ^ n\n⊢ |a| * |geomSum a b n| + |b| ^ (n + 1) ≤ (↑(n + 1) + 1) * max |a| |b| ^ (n + 1)", "ppTerm": "?succ", "assigned": true, "...
[ "case succ\nα : Type u_1\ninst✝² : CommRing α\ninst✝¹ : LinearOrder α\na b : α\nn✝ : ℕ\ninst✝ : IsOrderedRing α\nn : ℕ\nih : |geomSum a b n| ≤ (↑n + 1) * max |a| |b| ^ n\n⊢ |a| * |geomSum a b n| + |b| ^ (n + 1) ≤ (↑n + 1 + 1) * max |a| |b| ^ (n + 1)" ]
Nat.cast_succ,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Ring.Abs
{ "line": 186, "column": 15 }
{ "line": 186, "column": 23 }
{ "line": 186, "column": 24 }
[ { "pp": "case succ\nα : Type u_1\ninst✝ : CommRing α\na b : α\nn✝ n : ℕ\nih : a ^ (n + 1) - b ^ (n + 1) = (a - b) * geomSum a b n\n⊢ a ^ (n + 1 + 1) - b ^ (n + 1 + 1) = (a - b) * (a * geomSum a b n + b ^ (n + 1))", "ppTerm": "?succ", "assigned": true, "usedConstants": [ "Distrib.leftDistribCla...
[ "case succ\nα : Type u_1\ninst✝ : CommRing α\na b : α\nn✝ n : ℕ\nih : a ^ (n + 1) - b ^ (n + 1) = (a - b) * geomSum a b n\n⊢ a ^ (n + 1 + 1) - b ^ (n + 1 + 1) = (a - b) * (a * geomSum a b n) + (a - b) * b ^ (n + 1)" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Set.NAry
{ "line": 307, "column": 6 }
{ "line": 307, "column": 28 }
{ "line": 307, "column": 29 }
[ { "pp": "α : Type u_1\nβ : Type u_3\nf : α → β → β\na : α\nh : ∀ (b : β), f a b = b\nt : Set β\n⊢ image2 f {a} t = t", "ppTerm": "?m.10", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "Set.instSingletonSet", "id", "Set.image2_singleton_left", "Set.ima...
[ "α : Type u_1\nβ : Type u_3\nf : α → β → β\na : α\nh : ∀ (b : β), f a b = b\nt : Set β\n⊢ f a '' t = t" ]
image2_singleton_left,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Order.Bounds.Image
{ "line": 371, "column": 4 }
{ "line": 371, "column": 63 }
{ "line": 372, "column": 2 }
[ { "pp": "case refine_1\nα : Type u_1\nβ : Type u_2\ninst✝¹ : Preorder α\ninst✝ : Preorder β\ns : Set (α × β)\np : α × β\nH : IsLUB s p\na : α\nha : a ∈ upperBounds (Prod.fst '' s)\n⊢ (a, p.2) ∈ upperBounds s", "ppTerm": "?refine_1", "assigned": true, "usedConstants": [ "Prod.instLE_mathlib", ...
[]
exact fun q hq => ⟨ha <| mem_image_of_mem _ hq, (H.1 hq).2⟩
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Order.WellFounded
{ "line": 227, "column": 87 }
{ "line": 231, "column": 24 }
{ "line": 233, "column": 0 }
[ { "pp": "β : Type u_2\ninst✝¹ : LinearOrder β\ninst✝ : WellFoundedLT β\nf : β → β\nhf : StrictMono f\n⊢ id ≤ f", "ppTerm": "?m.9", "assigned": true, "usedConstants": [ "Mathlib.Tactic.Push.not_forall_eq", "Eq.mpr", "False", "Preorder.toLT", "congrArg", "Classical....
[]
by rw [Pi.le_def] by_contra! H obtain ⟨m, hm, hm'⟩ := wellFounded_lt.has_min {i | f i < i} H exact hm' _ (hf hm) hm
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Order.Bounds.Basic
{ "line": 390, "column": 6 }
{ "line": 390, "column": 19 }
{ "line": 390, "column": 20 }
[ { "pp": "γ : Type u_3\ninst✝ : SemilatticeSup γ\ns : Set γ\nx₀ : γ\n⊢ BddAbove s ↔ ∃ x, x₀ ≤ x ∧ ∀ y ∈ s, y ≤ x", "ppTerm": "?m.13", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "PartialOrder.toPreorder", "Preorder.toLE", "Membership.mem", "Exists", ...
[ "γ : Type u_3\ninst✝ : SemilatticeSup γ\ns : Set γ\nx₀ : γ\n⊢ (∃ x, ∀ y ∈ s, y ≤ x) ↔ ∃ x, x₀ ≤ x ∧ ∀ y ∈ s, y ≤ x" ]
bddAbove_def,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Logic.Equiv.Set
{ "line": 535, "column": 2 }
{ "line": 536, "column": 6 }
{ "line": 538, "column": 0 }
[ { "pp": "α : Sort u_3\nβ : Type u_4\nf : α → β\nhf : Injective f\na : α\n⊢ (ofInjective f hf).symm ⟨f a, ⋯⟩ = a", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "Equiv.apply_symm_apply", "Equiv.instEquivLike", "congrArg", "Membership.mem", "Set.Elem", "Eq...
[]
apply (ofInjective f hf).injective simp
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Logic.Equiv.Set
{ "line": 535, "column": 2 }
{ "line": 536, "column": 6 }
{ "line": 538, "column": 0 }
[ { "pp": "α : Sort u_3\nβ : Type u_4\nf : α → β\nhf : Injective f\na : α\n⊢ (ofInjective f hf).symm ⟨f a, ⋯⟩ = a", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "Equiv.apply_symm_apply", "Equiv.instEquivLike", "congrArg", "Membership.mem", "Set.Elem", "Eq...
[]
apply (ofInjective f hf).injective simp
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.BigOperators.Group.List.Defs
{ "line": 56, "column": 4 }
{ "line": 58, "column": 38 }
{ "line": 60, "column": 0 }
[ { "pp": "case cons\nM : Type u_2\ninst✝¹ : Mul M\ninst✝ : One M\nl✝ : List M\np : M → Prop\nhom : ∀ (a b : M), p a → p b → p (a * b)\nunit : p 1\na : M\nl : List M\nih : (∀ (x : M), x ∈ l → p x) → p l.prod\nbase : ∀ (x : M), x ∈ a :: l → p x\n⊢ p (a :: l).prod", "ppTerm": "?cons", "assigned": true, ...
[]
rw [List.prod_cons] simp only [mem_cons, forall_eq_or_imp] at base exact hom _ _ (base.1) (ih base.2)
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.BigOperators.Group.List.Defs
{ "line": 56, "column": 4 }
{ "line": 58, "column": 38 }
{ "line": 60, "column": 0 }
[ { "pp": "case cons\nM : Type u_2\ninst✝¹ : Mul M\ninst✝ : One M\nl✝ : List M\np : M → Prop\nhom : ∀ (a b : M), p a → p b → p (a * b)\nunit : p 1\na : M\nl : List M\nih : (∀ (x : M), x ∈ l → p x) → p l.prod\nbase : ∀ (x : M), x ∈ a :: l → p x\n⊢ p (a :: l).prod", "ppTerm": "?cons", "assigned": true, ...
[]
rw [List.prod_cons] simp only [mem_cons, forall_eq_or_imp] at base exact hom _ _ (base.1) (ih base.2)
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Order.Field.Basic
{ "line": 123, "column": 48 }
{ "line": 124, "column": 65 }
{ "line": 126, "column": 0 }
[ { "pp": "α : Type u_2\ninst✝³ : Semifield α\ninst✝² : PartialOrder α\ninst✝¹ : PosMulReflectLT α\na : α\ninst✝ : IsStrictOrderedRing α\n⊢ a / 2 < a ↔ 0 < a", "ppTerm": "?m.18", "assigned": true, "usedConstants": [ "IsRightCancelAdd.addRightStrictMono_of_addRightMono", "Eq.mpr", "Gr...
[]
by rw [div_lt_iff₀ (zero_lt_two' α), mul_two, lt_add_iff_pos_left]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.Order.Field.Basic
{ "line": 703, "column": 33 }
{ "line": 703, "column": 41 }
{ "line": 703, "column": 42 }
[ { "pp": "α : Type u_2\ninst✝² : Field α\ninst✝¹ : LinearOrder α\ninst✝ : IsStrictOrderedRing α\na b ε : α\nhε : 0 < ε\nh : 2 * (ε * a) * b ≤ (ε * a) ^ 2 + b ^ 2\n⊢ ε⁻¹ * (ε ^ 2 * a ^ 2 + b ^ 2) = ε * a ^ 2 + ε⁻¹ * b ^ 2", "ppTerm": "?m.309", "assigned": true, "usedConstants": [ "NonUnitalNonAs...
[ "α : Type u_2\ninst✝² : Field α\ninst✝¹ : LinearOrder α\ninst✝ : IsStrictOrderedRing α\na b ε : α\nhε : 0 < ε\nh : 2 * (ε * a) * b ≤ (ε * a) ^ 2 + b ^ 2\n⊢ ε⁻¹ * (ε ^ 2 * a ^ 2) + ε⁻¹ * b ^ 2 = ε * a ^ 2 + ε⁻¹ * b ^ 2" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Tactic.FieldSimp.Lemmas
{ "line": 83, "column": 66 }
{ "line": 87, "column": 9 }
{ "line": 89, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : GroupWithZero α\na : α\nn : ℤ\n⊢ zpow' a (-n) = (zpow' a n)⁻¹", "ppTerm": "?m.10", "assigned": true, "usedConstants": [ "Int.instAddCommGroup", "Eq.mpr", "inv_eq_zero._simp_1", "GroupWithZero.toMonoidWithZero", "MulOne.toOne", "False...
[]
by simp +contextual [zpow', apply_ite] split_ifs with h · tauto · tauto
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.BigOperators.Group.List.Basic
{ "line": 272, "column": 2 }
{ "line": 272, "column": 64 }
{ "line": 273, "column": 2 }
[ { "pp": "M : Type u_4\ninst✝ : CommMonoid M\nl l' : List M\nh : l.length = l'.length\n⊢ l.prod * l'.prod = (zipWith (fun x1 x2 ↦ x1 * x2) l l').prod", "ppTerm": "?m.30", "assigned": true, "usedConstants": [ "MulOne.toOne", "List.zipWith", "HMul.hMul", "Monoid.toMulOneClass", ...
[ "M : Type u_4\ninst✝ : CommMonoid M\nl l' : List M\nh : l.length = l'.length\n⊢ (zipWith (fun x1 x2 ↦ x1 * x2) l l').prod * (drop l'.length l).prod * (drop l.length l').prod =\n (zipWith (fun x1 x2 ↦ x1 * x2) l l').prod" ]
apply (prod_mul_prod_eq_prod_zipWith_mul_prod_drop l l').trans
Lean.Elab.Tactic.evalApply
Lean.Parser.Tactic.apply
Mathlib.Data.Rat.Defs
{ "line": 129, "column": 2 }
{ "line": 129, "column": 58 }
{ "line": 131, "column": 0 }
[ { "pp": "q r : ℚ\n⊢ q / r = q.num * ↑r.den /. (↑q.den * r.num)", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "Eq.mpr", "Rat.num", "instHDiv", "HMul.hMul", "congrArg", "Rat.num_divInt_den", "Rat", "Rat.divInt", "Rat.den", "Rat.di...
[]
rw [← divInt_div_divInt, num_divInt_den, num_divInt_den]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Data.Rat.Defs
{ "line": 129, "column": 2 }
{ "line": 129, "column": 58 }
{ "line": 131, "column": 0 }
[ { "pp": "q r : ℚ\n⊢ q / r = q.num * ↑r.den /. (↑q.den * r.num)", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "Eq.mpr", "Rat.num", "instHDiv", "HMul.hMul", "congrArg", "Rat.num_divInt_den", "Rat", "Rat.divInt", "Rat.den", "Rat.di...
[]
rw [← divInt_div_divInt, num_divInt_den, num_divInt_den]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Rat.Defs
{ "line": 129, "column": 2 }
{ "line": 129, "column": 58 }
{ "line": 131, "column": 0 }
[ { "pp": "q r : ℚ\n⊢ q / r = q.num * ↑r.den /. (↑q.den * r.num)", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "Eq.mpr", "Rat.num", "instHDiv", "HMul.hMul", "congrArg", "Rat.num_divInt_den", "Rat", "Rat.divInt", "Rat.den", "Rat.di...
[]
rw [← divInt_div_divInt, num_divInt_den, num_divInt_den]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.List.Basic
{ "line": 841, "column": 2 }
{ "line": 841, "column": 33 }
{ "line": 842, "column": 2 }
[ { "pp": "α : Type u\nl : List (α → α)\nf : α → α\nhl : ∀ (f : α → α), f ∈ l → Injective f\nhf : Injective f\n⊢ Injective (foldl comp f l)", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "List.mem_cons_of_mem", "Function.comp", "Membership.mem", "List.rec", "Li...
[]
induction l generalizing f with
_private.Lean.Elab.Tactic.Induction.0.Lean.Elab.Tactic.evalInduction
null
Mathlib.Data.Rat.Lemmas
{ "line": 138, "column": 2 }
{ "line": 139, "column": 70 }
{ "line": 141, "column": 0 }
[ { "pp": "q₁ q₂ : ℚ\n⊢ q₁.den * q₂.den = (q₁ * q₂).den * (q₁.num * q₂.num).natAbs.gcd (q₁.den * q₂.den)", "ppTerm": "?m.22", "assigned": true, "usedConstants": [ "Nat.gcd", "Eq.mpr", "Rat.instMul", "Rat.num", "Dvd.dvd", "instHDiv", "Nat.dvd_iff_div_mul_eq", ...
[]
rw [mul_den] exact ((Nat.dvd_iff_div_mul_eq _ _).mp (Nat.gcd_dvd_right _ _)).symm
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Rat.Lemmas
{ "line": 138, "column": 2 }
{ "line": 139, "column": 70 }
{ "line": 141, "column": 0 }
[ { "pp": "q₁ q₂ : ℚ\n⊢ q₁.den * q₂.den = (q₁ * q₂).den * (q₁.num * q₂.num).natAbs.gcd (q₁.den * q₂.den)", "ppTerm": "?m.22", "assigned": true, "usedConstants": [ "Nat.gcd", "Eq.mpr", "Rat.instMul", "Rat.num", "Dvd.dvd", "instHDiv", "Nat.dvd_iff_div_mul_eq", ...
[]
rw [mul_den] exact ((Nat.dvd_iff_div_mul_eq _ _).mp (Nat.gcd_dvd_right _ _)).symm
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.Rat.Lemmas
{ "line": 239, "column": 2 }
{ "line": 239, "column": 25 }
{ "line": 240, "column": 2 }
[ { "pp": "q : ℚ\n⊢ (-q)⁻¹ = -q⁻¹", "ppTerm": "?m.10", "assigned": true, "usedConstants": [ "Eq.mpr", "Rat.num", "congrArg", "Rat.num_divInt_den", "Rat", "Rat.divInt", "Rat.den", "id", "Int", "Nat.cast", "Inv.inv", "Rat.instInv", ...
[ "q : ℚ\n⊢ (-(q.num /. ↑q.den))⁻¹ = -(q.num /. ↑q.den)⁻¹" ]
rw [← num_divInt_den q]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Tactic.CancelDenoms.Core
{ "line": 66, "column": 78 }
{ "line": 67, "column": 37 }
{ "line": 69, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : CommRing α\nn e1 t1 k l : α\ne2 : ℕ\nh1 : n * e1 = t1\nh2 : l * n ^ e2 = k\n⊢ k * e1 ^ e2 = l * t1 ^ e2", "ppTerm": "?m.33", "assigned": true, "usedConstants": [ "Eq.mpr", "Semigroup.toMul", "HMul.hMul", "CommRing.toNonUnitalCommRing", "Mo...
[]
by rw [← h2, ← h1, mul_pow, mul_assoc]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.Order.Ring.Canonical
{ "line": 98, "column": 35 }
{ "line": 98, "column": 44 }
{ "line": 98, "column": 45 }
[ { "pp": "case inl\nR : Type u\ninst✝⁵ : NonUnitalNonAssocSemiring R\ninst✝⁴ : PartialOrder R\ninst✝³ : CanonicallyOrderedAdd R\ninst✝² : Sub R\ninst✝¹ : OrderedSub R\ninst✝ : Std.Total fun x1 x2 ↦ x1 ≤ x2\na b c : R\nh : AddLECancellable (a * c)\nhbc : b ≤ c\n⊢ a * 0 = a * b - a * c", "ppTerm": "?inl", ...
[ "case inl\nR : Type u\ninst✝⁵ : NonUnitalNonAssocSemiring R\ninst✝⁴ : PartialOrder R\ninst✝³ : CanonicallyOrderedAdd R\ninst✝² : Sub R\ninst✝¹ : OrderedSub R\ninst✝ : Std.Total fun x1 x2 ↦ x1 ≤ x2\na b c : R\nh : AddLECancellable (a * c)\nhbc : b ≤ c\n⊢ 0 = a * b - a * c" ]
mul_zero,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Order.CompleteBooleanAlgebra
{ "line": 437, "column": 2 }
{ "line": 437, "column": 26 }
{ "line": 439, "column": 0 }
[ { "pp": "case neg\nα : Type u\ninst✝ : Frame α\nι : Type u_1\nf : ι → α\nh : Pairwise (Disjoint on f)\ns t : Set ι\nx✝¹ : ι × ι\ni j : ι\nx✝ : (i, j) ∈ s ×ˢ t\nhis : (i, j).1 ∈ s\nhjs : (i, j).2 ∈ t\nhij : ¬i = j\n⊢ f (i, j).1 ⊓ f (i, j).2 ≤ ⨆ i ∈ s ∩ t, f i", "ppTerm": "?neg✝", "assigned": true, "u...
[]
· simp [h hij |>.eq_bot]
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.Order.ConditionallyCompleteLattice.Basic
{ "line": 90, "column": 2 }
{ "line": 92, "column": 42 }
{ "line": 94, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝¹ : LE α\ninst✝ : SupSet α\ns : Set (WithTop α)\nh : ¬BddAbove (some ⁻¹' s)\n⊢ sSup s = ⊤", "ppTerm": "?m.11", "assigned": true, "usedConstants": [ "Classical.propDecidable", "Membership.mem", "WithTop.instSupSet", "WithTop.sSup_of_top_mem", ...
[]
by_cases hmem : ⊤ ∈ s · exact sSup_of_top_mem hmem · exact if_neg hmem |>.trans <| if_neg h
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Order.ConditionallyCompleteLattice.Basic
{ "line": 90, "column": 2 }
{ "line": 92, "column": 42 }
{ "line": 94, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝¹ : LE α\ninst✝ : SupSet α\ns : Set (WithTop α)\nh : ¬BddAbove (some ⁻¹' s)\n⊢ sSup s = ⊤", "ppTerm": "?m.11", "assigned": true, "usedConstants": [ "Classical.propDecidable", "Membership.mem", "WithTop.instSupSet", "WithTop.sSup_of_top_mem", ...
[]
by_cases hmem : ⊤ ∈ s · exact sSup_of_top_mem hmem · exact if_neg hmem |>.trans <| if_neg h
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Order.ConditionallyCompleteLattice.Basic
{ "line": 129, "column": 4 }
{ "line": 131, "column": 58 }
{ "line": 132, "column": 2 }
[ { "pp": "case pos\nα : Type u_1\ninst✝¹ : Preorder α\ninst✝ : InfSet α\ns : Set α\nh's : BddBelow s\nx : α\nhx : x ∈ s\nh : (fun a ↦ ↑a) '' s ⊆ {⊤} ∨ ¬BddBelow ((fun a ↦ ↑a) '' s)\n⊢ ↑(sInf s) = ⊤", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "WithTop.coe_mono", "WithTop.inst...
[]
rcases h with h1 | h2 · cases h1 (mem_image_of_mem _ hx) · exact (h2 (Monotone.map_bddBelow coe_mono h's)).elim
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Order.ConditionallyCompleteLattice.Basic
{ "line": 129, "column": 4 }
{ "line": 131, "column": 58 }
{ "line": 132, "column": 2 }
[ { "pp": "case pos\nα : Type u_1\ninst✝¹ : Preorder α\ninst✝ : InfSet α\ns : Set α\nh's : BddBelow s\nx : α\nhx : x ∈ s\nh : (fun a ↦ ↑a) '' s ⊆ {⊤} ∨ ¬BddBelow ((fun a ↦ ↑a) '' s)\n⊢ ↑(sInf s) = ⊤", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "WithTop.coe_mono", "WithTop.inst...
[]
rcases h with h1 | h2 · cases h1 (mem_image_of_mem _ hx) · exact (h2 (Monotone.map_bddBelow coe_mono h's)).elim
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Order.ConditionallyCompleteLattice.Basic
{ "line": 472, "column": 6 }
{ "line": 472, "column": 38 }
{ "line": 473, "column": 6 }
[ { "pp": "α : Type u_1\ninst✝ : ConditionallyCompleteLinearOrder α\ns t : Set α\nhs : ∀ x ∈ s, ∃ y ∈ t, x ≤ y\nht : ∀ y ∈ t, ∃ x ∈ s, y ≤ x\ns_ne : s.Nonempty\nt_ne : t.Nonempty\nB : BddAbove s ∨ BddAbove t\nBs : BddAbove s\nBt : BddAbove t\nx : α\nhx : x ∈ s\n⊢ x ≤ sSup t", "ppTerm": "?m.238", "assigned...
[ "α : Type u_1\ninst✝ : ConditionallyCompleteLinearOrder α\ns t : Set α\nhs : ∀ x ∈ s, ∃ y ∈ t, x ≤ y\nht : ∀ y ∈ t, ∃ x ∈ s, y ≤ x\ns_ne : s.Nonempty\nt_ne : t.Nonempty\nB : BddAbove s ∨ BddAbove t\nBs : BddAbove s\nBt : BddAbove t\nx : α\nhx : x ∈ s\ny : α\nyt : y ∈ t\nhxy : x ≤ y\n⊢ x ≤ sSup t" ]
rcases hs x hx with ⟨y, yt, hxy⟩
_private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalRCases
Lean.Parser.Tactic.rcases
Mathlib.Order.ConditionallyCompleteLattice.Basic
{ "line": 689, "column": 6 }
{ "line": 689, "column": 42 }
{ "line": 690, "column": 6 }
[ { "pp": "case neg.some\nβ : Type u_5\ninst✝ : ConditionallyCompleteLattice β\ns : Set (WithTop β)\nhs : BddBelow s\nh : ¬s ⊆ {⊤}\na : β\nha : Option.some a ∈ s\n⊢ ↑(sInf ((fun a ↦ ↑a) ⁻¹' s)) ≤ Option.some a", "ppTerm": "?neg.some✝", "assigned": true, "usedConstants": [ "Iff.mpr", "Parti...
[ "case neg.some\nβ : Type u_5\ninst✝ : ConditionallyCompleteLattice β\ns : Set (WithTop β)\nhs : BddBelow s\nh : ¬s ⊆ {⊤}\na : β\nha : Option.some a ∈ s\n⊢ BddBelow ((fun a ↦ ↑a) ⁻¹' s)" ]
refine coe_le_coe.2 (csInf_le ?_ ha)
Lean.Elab.Tactic.evalRefine
Lean.Parser.Tactic.refine
Mathlib.Order.ConditionallyCompleteLattice.Basic
{ "line": 705, "column": 6 }
{ "line": 708, "column": 60 }
{ "line": 709, "column": 6 }
[ { "pp": "case neg.none\nβ : Type u_5\ninst✝ : ConditionallyCompleteLattice β\ns : Set (WithTop β)\nhs : BddBelow s\nh : ¬s ⊆ {⊤}\nha : none ∈ lowerBounds s\n⊢ none ≤ ↑(sInf ((fun a ↦ ↑a) ⁻¹' s))", "ppTerm": "?neg.none✝", "assigned": true, "usedConstants": [ "Iff.mpr", "WithTop.instPartia...
[ "case neg.some\nβ : Type u_5\ninst✝ : ConditionallyCompleteLattice β\ns : Set (WithTop β)\nhs : BddBelow s\nh : ¬s ⊆ {⊤}\na : β\nha : Option.some a ∈ lowerBounds s\n⊢ Option.some a ≤ ↑(sInf ((fun a ↦ ↑a) ⁻¹' s))" ]
· exfalso apply h intro b hb exact Set.mem_singleton_iff.2 (top_le_iff.1 (ha hb))
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.Order.Interval.Set.LinearOrder
{ "line": 105, "column": 2 }
{ "line": 109, "column": 40 }
{ "line": 111, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : LinearOrder α\nx : α\n⊢ Ici x = {x} ↔ IsTop x", "ppTerm": "?m.11", "assigned": true, "usedConstants": [ "Set.ext", "Preorder.toLT", "lt_irrefl", "Set.Ici", "congrArg", "PartialOrder.toPreorder", "Preorder.toLE", "Membersh...
[]
refine ⟨fun h y ↦ ?_, fun h ↦ by ext y; simp [(h y).ge_iff_eq]⟩ by_contra! H have : y ∈ Ici x := H.le rw [h, mem_singleton_iff] at this exact lt_irrefl y (this.le.trans_lt H)
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Order.Interval.Set.LinearOrder
{ "line": 105, "column": 2 }
{ "line": 109, "column": 40 }
{ "line": 111, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : LinearOrder α\nx : α\n⊢ Ici x = {x} ↔ IsTop x", "ppTerm": "?m.11", "assigned": true, "usedConstants": [ "Set.ext", "Preorder.toLT", "lt_irrefl", "Set.Ici", "congrArg", "PartialOrder.toPreorder", "Preorder.toLE", "Membersh...
[]
refine ⟨fun h y ↦ ?_, fun h ↦ by ext y; simp [(h y).ge_iff_eq]⟩ by_contra! H have : y ∈ Ici x := H.le rw [h, mem_singleton_iff] at this exact lt_irrefl y (this.le.trans_lt H)
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Order.Preorder.Chain
{ "line": 267, "column": 2 }
{ "line": 267, "column": 55 }
{ "line": 269, "column": 0 }
[ { "pp": "α : Type u_1\nr : α → α → Prop\ns : Set α\nh' : s = ∅\nx : α\nh : ∀ ⦃t : Set α⦄, IsChain r t → ∅ = t\n⊢ False", "ppTerm": "?m.21", "assigned": true, "usedConstants": [ "IsChain.singleton", "Set.instSingletonSet", "Set.instEmptyCollection", "EmptyCollection.emptyColle...
[]
exact singleton_ne_empty x (h IsChain.singleton).symm
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Algebra.Notation.Support
{ "line": 61, "column": 39 }
{ "line": 63, "column": 88 }
{ "line": 65, "column": 0 }
[ { "pp": "ι : Type u_1\nM : Type u_3\ninst✝ : One M\nf g : ι → M\nx✝ : mulSupport f = mulSupport g ∧ ∀ (x : ι), x ∈ mulSupport f → f x = g x\nh₁ : mulSupport f = mulSupport g\nh₂ : ∀ (x : ι), x ∈ mulSupport f → f x = g x\nx : ι\n⊢ f x = g x", "ppTerm": "?m.38", "assigned": true, "usedConstants": [ ...
[]
by if hx : x ∈ f.mulSupport then exact h₂ x hx else rw [notMem_mulSupport.1 hx, notMem_mulSupport.1 (mt (Set.ext_iff.1 h₁ x).2 hx)]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.Notation.Support
{ "line": 221, "column": 78 }
{ "line": 221, "column": 95 }
{ "line": 221, "column": 95 }
[ { "pp": "ι : Type u_1\nM : Type u_3\ninst✝¹ : DecidableEq ι\ninst✝ : One M\ni : ι\na : M\nh : a ≠ 1\nx : ι\nhx : x ∈ {i}\n⊢ mulSingle i a i ≠ 1", "ppTerm": "?m.39", "assigned": true, "usedConstants": [ "Eq.mpr", "Pi.mulSingle_eq_same", "congrArg", "id", "Ne", "One...
[ "ι : Type u_1\nM : Type u_3\ninst✝¹ : DecidableEq ι\ninst✝ : One M\ni : ι\na : M\nh : a ≠ 1\nx : ι\nhx : x ∈ {i}\n⊢ a ≠ 1" ]
mulSingle_eq_same
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Nat.Factorial.Basic
{ "line": 460, "column": 22 }
{ "line": 462, "column": 96 }
{ "line": 464, "column": 0 }
[ { "pp": "n : ℕ\nhn : n ≠ 0\nk : ℕ\nx✝ : 2 ≤ k + 2\n⊢ n.descFactorial (k + 2) < n ^ (k + 2)", "ppTerm": "?m.29", "assigned": true, "usedConstants": [ "Nat.pow_succ'", "instPowNat", "Eq.mpr", "HMul.hMul", "congrArg", "HSub.hSub", "id", "Nat.mul_lt_mul_of...
[]
by rw [descFactorial_succ, pow_succ', Nat.mul_comm, Nat.mul_comm n] exact Nat.mul_lt_mul_of_le_of_lt (descFactorial_le_pow _ _) (by lia) (Nat.pow_pos <| by lia)
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Data.Rat.Cast.Lemmas
{ "line": 84, "column": 2 }
{ "line": 84, "column": 87 }
{ "line": 85, "column": 2 }
[ { "pp": "K : Type u_1\ninst✝ : DivisionRing K\nq : ℚ\nh : 0 ≤ q\n⊢ ↑⟨q, h⟩ = ↑q", "ppTerm": "?m.11", "assigned": true, "usedConstants": [ "Rat.instOfNat", "Int.cast", "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "Rat.num", "instHDiv", "GroupWithZero....
[ "K : Type u_1\ninst✝ : DivisionRing K\nq : ℚ\nh : 0 ≤ q\n⊢ ↑|q.num| / ↑q.den = ↑q.num / ↑q.den" ]
simp only [NNRat.cast_def, NNRat.num_mk, Nat.cast_natAbs, NNRat.den_mk, Rat.cast_def]
Lean.Elab.Tactic.evalSimp
Lean.Parser.Tactic.simp
Mathlib.Data.PNat.Basic
{ "line": 34, "column": 2 }
{ "line": 34, "column": 71 }
{ "line": 36, "column": 0 }
[ { "pp": "n : ℕ+\n⊢ 1 + n.natPred = ↑n", "ppTerm": "?m.8", "assigned": true, "usedConstants": [ "PNat.val", "Iff.mpr", "Eq.mpr", "Nat.instCanonicallyOrderedAdd", "Nat.instOrderedSub", "PNat.natPred.eq_1", "add_tsub_cancel_iff_le", "congrArg", "Par...
[]
rw [natPred, add_tsub_cancel_iff_le.mpr <| show 1 ≤ (n : ℕ) from n.2]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Data.PNat.Basic
{ "line": 34, "column": 2 }
{ "line": 34, "column": 71 }
{ "line": 36, "column": 0 }
[ { "pp": "n : ℕ+\n⊢ 1 + n.natPred = ↑n", "ppTerm": "?m.8", "assigned": true, "usedConstants": [ "PNat.val", "Iff.mpr", "Eq.mpr", "Nat.instCanonicallyOrderedAdd", "Nat.instOrderedSub", "PNat.natPred.eq_1", "add_tsub_cancel_iff_le", "congrArg", "Par...
[]
rw [natPred, add_tsub_cancel_iff_le.mpr <| show 1 ≤ (n : ℕ) from n.2]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.PNat.Basic
{ "line": 34, "column": 2 }
{ "line": 34, "column": 71 }
{ "line": 36, "column": 0 }
[ { "pp": "n : ℕ+\n⊢ 1 + n.natPred = ↑n", "ppTerm": "?m.8", "assigned": true, "usedConstants": [ "PNat.val", "Iff.mpr", "Eq.mpr", "Nat.instCanonicallyOrderedAdd", "Nat.instOrderedSub", "PNat.natPred.eq_1", "add_tsub_cancel_iff_le", "congrArg", "Par...
[]
rw [natPred, add_tsub_cancel_iff_le.mpr <| show 1 ≤ (n : ℕ) from n.2]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.PNat.Basic
{ "line": 288, "column": 16 }
{ "line": 288, "column": 25 }
{ "line": 288, "column": 26 }
[ { "pp": "m k : ℕ+\nh₀ : 0 + ↑k * 0 = ↑m\nhr : ↑m % ↑k = 0\nhq : ↑m / ↑k = 0\n⊢ False", "ppTerm": "?m.53", "assigned": true, "usedConstants": [ "PNat.val", "Nat.instMulZeroClass", "instHDiv", "HMul.hMul", "MulZeroClass.toMul", "congrArg", "Eq.mp", "HDiv...
[ "m k : ℕ+\nh₀ : 0 + 0 = ↑m\nhr : ↑m % ↑k = 0\nhq : ↑m / ↑k = 0\n⊢ False" ]
mul_zero,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Round
{ "line": 55, "column": 85 }
{ "line": 55, "column": 93 }
{ "line": 56, "column": 4 }
[ { "pp": "α : Type u_2\ninst✝³ : Ring α\ninst✝² : LinearOrder α\ninst✝¹ : IsStrictOrderedRing α\ninst✝ : FloorRing α\nx : α\n⊢ (if 2 * fract x < 1 then ⌊x⌋ + ⌊fract x⌋ else ⌈↑⌊x⌋ + fract x⌉) = (⌊2 * (↑⌊x⌋ + fract x)⌋ + 1) / 2", "ppTerm": "?m.66", "assigned": true, "usedConstants": [ "Distrib.le...
[ "α : Type u_2\ninst✝³ : Ring α\ninst✝² : LinearOrder α\ninst✝¹ : IsStrictOrderedRing α\ninst✝ : FloorRing α\nx : α\n⊢ (if 2 * fract x < 1 then ⌊x⌋ + ⌊fract x⌋ else ⌈↑⌊x⌋ + fract x⌉) = (⌊2 * ↑⌊x⌋ + 2 * fract x⌋ + 1) / 2" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Floor.Ring
{ "line": 483, "column": 22 }
{ "line": 483, "column": 30 }
{ "line": 483, "column": 31 }
[ { "pp": "case succ\nR : Type u_2\ninst✝³ : Ring R\ninst✝² : LinearOrder R\ninst✝¹ : FloorRing R\ninst✝ : IsOrderedRing R\na : R\nc : ℕ\nz : ℤ\nhz : fract a * ↑c - fract (a * ↑c) = ↑z\n⊢ ∃ z, fract a * (↑c + ↑1) - fract (a * (↑c + ↑1)) = ↑z", "ppTerm": "?succ", "assigned": true, "usedConstants": [ ...
[ "case succ\nR : Type u_2\ninst✝³ : Ring R\ninst✝² : LinearOrder R\ninst✝¹ : FloorRing R\ninst✝ : IsOrderedRing R\na : R\nc : ℕ\nz : ℤ\nhz : fract a * ↑c - fract (a * ↑c) = ↑z\n⊢ ∃ z, fract a * ↑c + fract a * ↑1 - fract (a * (↑c + ↑1)) = ↑z" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Floor.Ring
{ "line": 483, "column": 31 }
{ "line": 483, "column": 39 }
{ "line": 483, "column": 40 }
[ { "pp": "case succ\nR : Type u_2\ninst✝³ : Ring R\ninst✝² : LinearOrder R\ninst✝¹ : FloorRing R\ninst✝ : IsOrderedRing R\na : R\nc : ℕ\nz : ℤ\nhz : fract a * ↑c - fract (a * ↑c) = ↑z\n⊢ ∃ z, fract a * ↑c + fract a * ↑1 - fract (a * (↑c + ↑1)) = ↑z", "ppTerm": "?succ", "assigned": true, "usedConstant...
[ "case succ\nR : Type u_2\ninst✝³ : Ring R\ninst✝² : LinearOrder R\ninst✝¹ : FloorRing R\ninst✝ : IsOrderedRing R\na : R\nc : ℕ\nz : ℤ\nhz : fract a * ↑c - fract (a * ↑c) = ↑z\n⊢ ∃ z, fract a * ↑c + fract a * ↑1 - fract (a * ↑c + a * ↑1) = ↑z" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Floor.Ring
{ "line": 536, "column": 81 }
{ "line": 536, "column": 89 }
{ "line": 537, "column": 6 }
[ { "pp": "case inr.refine_3\nk : Type u_4\ninst✝³ : Field k\ninst✝² : LinearOrder k\ninst✝¹ : IsOrderedRing k\ninst✝ : FloorRing k\nm n : ℕ\nhn : n > 0\nhn' : 0 < ↑n\n⊢ ↑m = ↑n * (↑(m % n) / ↑n + ↑(↑m / ↑n))", "ppTerm": "?inr.refine_3", "assigned": true, "usedConstants": [ "Distrib.leftDistribC...
[ "case inr.refine_3\nk : Type u_4\ninst✝³ : Field k\ninst✝² : LinearOrder k\ninst✝¹ : IsOrderedRing k\ninst✝ : FloorRing k\nm n : ℕ\nhn : n > 0\nhn' : 0 < ↑n\n⊢ ↑m = ↑n * (↑(m % n) / ↑n) + ↑n * ↑(↑m / ↑n)" ]
mul_add,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Order.Floor.Ring
{ "line": 632, "column": 64 }
{ "line": 633, "column": 81 }
{ "line": 635, "column": 0 }
[ { "pp": "R : Type u_2\ninst✝³ : Ring R\ninst✝² : LinearOrder R\ninst✝¹ : FloorRing R\ninst✝ : IsOrderedRing R\na : R\nz : ℤ\n⊢ ⌈a + ↑z⌉ = ⌈a⌉ + z", "ppTerm": "?m.22", "assigned": true, "usedConstants": [ "Int.instAddCommGroup", "Int.cast", "Eq.mpr", "NegZeroClass.toNeg", ...
[]
by rw [← neg_inj, neg_add', ← floor_neg, ← floor_neg, neg_add', floor_sub_intCast]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.Order.Floor.Ring
{ "line": 759, "column": 6 }
{ "line": 760, "column": 28 }
{ "line": 762, "column": 0 }
[ { "pp": "k : Type u_4\ninst✝³ : Field k\ninst✝² : LinearOrder k\ninst✝¹ : IsOrderedRing k\ninst✝ : FloorRing k\na b : k\nhb₀ : 0 < b\nhb : b < 1\nhba : ↑⌈b / (1 - b)⌉ ≤ a\n⊢ b * (↑⌊a⌋ + 1) ≤ ↑⌊a⌋", "ppTerm": "?m.71", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Int.c...
[]
rwa [_root_.mul_add_one, ← le_sub_iff_add_le', ← one_sub_mul, ← div_le_iff₀' (by linarith), ← ceil_le, le_floor]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticRwa___1
Lean.Parser.Tactic.tacticRwa__
Mathlib.Algebra.Order.Floor.Ring
{ "line": 759, "column": 6 }
{ "line": 760, "column": 28 }
{ "line": 762, "column": 0 }
[ { "pp": "k : Type u_4\ninst✝³ : Field k\ninst✝² : LinearOrder k\ninst✝¹ : IsOrderedRing k\ninst✝ : FloorRing k\na b : k\nhb₀ : 0 < b\nhb : b < 1\nhba : ↑⌈b / (1 - b)⌉ ≤ a\n⊢ b * (↑⌊a⌋ + 1) ≤ ↑⌊a⌋", "ppTerm": "?m.71", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Int.c...
[]
rwa [_root_.mul_add_one, ← le_sub_iff_add_le', ← one_sub_mul, ← div_le_iff₀' (by linarith), ← ceil_le, le_floor]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Order.Floor.Ring
{ "line": 759, "column": 6 }
{ "line": 760, "column": 28 }
{ "line": 762, "column": 0 }
[ { "pp": "k : Type u_4\ninst✝³ : Field k\ninst✝² : LinearOrder k\ninst✝¹ : IsOrderedRing k\ninst✝ : FloorRing k\na b : k\nhb₀ : 0 < b\nhb : b < 1\nhba : ↑⌈b / (1 - b)⌉ ≤ a\n⊢ b * (↑⌊a⌋ + 1) ≤ ↑⌊a⌋", "ppTerm": "?m.71", "assigned": true, "usedConstants": [ "Distrib.leftDistribClass", "Int.c...
[]
rwa [_root_.mul_add_one, ← le_sub_iff_add_le', ← one_sub_mul, ← div_le_iff₀' (by linarith), ← ceil_le, le_floor]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Order.Archimedean.Basic
{ "line": 400, "column": 45 }
{ "line": 400, "column": 59 }
{ "line": 400, "column": 60 }
[ { "pp": "K : Type u_4\ninst✝³ : Field K\ninst✝² : LinearOrder K\ninst✝¹ : IsStrictOrderedRing K\ninst✝ : Archimedean K\nn : ℕ\nhn : n ≠ 0\nx y : K\nh : x < y\nhy : 0 < y\nδ : K\nδ_pos : δ > 0\ncont : ∀ (q r : K), |r| ≤ max 1 y → |q - r| ≤ δ → |q ^ n - r ^ n| < y - max x 0\nex : ∃ m, y ≤ (↑m * δ) ^ n\nm : ℕ := N...
[ "K : Type u_4\ninst✝³ : Field K\ninst✝² : LinearOrder K\ninst✝¹ : IsStrictOrderedRing K\ninst✝ : Archimedean K\nn : ℕ\nhn : n ≠ 0\nx y : K\nh : x < y\nhy : 0 < y\nδ : K\nδ_pos : δ > 0\ncont : ∀ (q r : K), |r| ≤ max 1 y → |q - r| ≤ δ → |q ^ n - r ^ n| < y - max x 0\nex : ∃ m, y ≤ (↑m * δ) ^ n\nm : ℕ := Nat.find ex\n...
Nat.cast_succ,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.List.Nodup
{ "line": 112, "column": 4 }
{ "line": 112, "column": 47 }
{ "line": 113, "column": 4 }
[ { "pp": "case pos\nα : Type u\nx hd : α\ntl : List α\nhl : tl ≠ [x] ↔ tl = [] ∨ ∃ y, y ∈ tl ∧ y ≠ x\nh : (hd :: tl).Nodup\nhx : tl = [x]\n⊢ hd :: tl ≠ [x] ↔ hd :: tl = [] ∨ ∃ y, y ∈ hd :: tl ∧ y ≠ x", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "_private.Mathlib.Data.List.Nodup.0.L...
[ "case neg\nα : Type u\nx hd : α\ntl : List α\nhl : tl ≠ [x] ↔ tl = [] ∨ ∃ y, y ∈ tl ∧ y ≠ x\nh : (hd :: tl).Nodup\nhx : ¬tl = [x]\n⊢ hd :: tl ≠ [x] ↔ hd :: tl = [] ∨ ∃ y, y ∈ hd :: tl ∧ y ≠ x" ]
· simpa [hx, and_comm, and_or_left] using h
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.Data.List.Nodup
{ "line": 250, "column": 8 }
{ "line": 251, "column": 39 }
{ "line": 252, "column": 8 }
[ { "pp": "case neg\nα : Type u\na : α\nl : List α\nih : l[0]? = l.getLast? → (l.dropLast.Nodup ↔ l.tail.Nodup)\nhl : ¬l = []\nh : a = l[l.length - 1]\n⊢ (l[l.length - 1] :: l.dropLast).Nodup ↔ l.Nodup", "ppTerm": "?neg✝", "assigned": true, "usedConstants": [ "List.getLast", "Nat.succ_lt_s...
[ "case neg\nα : Type u\na : α\nl : List α\nih : l[0]? = l.getLast? → (l.dropLast.Nodup ↔ l.tail.Nodup)\nhl : ¬l = []\nh : a = l[l.length - 1]\n⊢ (l[l.length - 1] :: l.dropLast).Nodup ↔ (l.dropLast ++ [l.getLast hl]).Nodup" ]
show l.Nodup = (l.dropLast ++ [l.getLast hl]).Nodup by simp [List.dropLast_eq_take],
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Multiset.AddSub
{ "line": 187, "column": 2 }
{ "line": 187, "column": 39 }
{ "line": 188, "column": 2 }
[ { "pp": "α : Type u_1\ninst✝ : DecidableEq α\ns t : Multiset α\na : α\n⊢ s + {a} = t ↔ a ∈ t ∧ s = t.erase a", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "Eq.mpr", "Multiset.singleton_add", "congrArg", "Multiset.add_comm", "Membership.mem", "Multiset"...
[ "α : Type u_1\ninst✝ : DecidableEq α\ns t : Multiset α\na : α\n⊢ a ::ₘ s = t ↔ a ∈ t ∧ s = t.erase a" ]
rw [Multiset.add_comm, singleton_add]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Data.List.Dedup
{ "line": 124, "column": 2 }
{ "line": 124, "column": 29 }
{ "line": 125, "column": 2 }
[ { "pp": "case cons\nα : Type u_1\ninst✝ : DecidableEq α\nl₂ : List α\na : α\nl₁ : List α\nIH : (l₁ ++ l₂).dedup = l₁ ∪ l₂.dedup\n⊢ (a :: l₁ ++ l₂).dedup = a :: l₁ ∪ l₂.dedup", "ppTerm": "?cons", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "List.cons_union", "Li...
[ "case cons\nα : Type u_1\ninst✝ : DecidableEq α\nl₂ : List α\na : α\nl₁ : List α\nIH : (l₁ ++ l₂).dedup = l₁ ∪ l₂.dedup\n⊢ (a :: l₁ ++ l₂).dedup = List.insert a (l₁ ∪ l₂.dedup)" ]
simp only [cons_union] at *
Lean.Elab.Tactic.evalSimp
Lean.Parser.Tactic.simp
Mathlib.Data.List.Dedup
{ "line": 127, "column": 8 }
{ "line": 127, "column": 29 }
{ "line": 127, "column": 30 }
[ { "pp": "case pos\nα : Type u_1\ninst✝ : DecidableEq α\nl₂ : List α\na : α\nl₁ : List α\nIH : (l₁ ++ l₂).dedup = l₁ ∪ l₂.dedup\nh : a ∈ (l₁ ++ l₂).dedup\n⊢ (a :: (l₁ ++ l₂)).dedup = List.insert a (l₁ ++ l₂).dedup", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "Eq.mpr", "List.d...
[ "case pos\nα : Type u_1\ninst✝ : DecidableEq α\nl₂ : List α\na : α\nl₁ : List α\nIH : (l₁ ++ l₂).dedup = l₁ ∪ l₂.dedup\nh : a ∈ (l₁ ++ l₂).dedup\n⊢ (l₁ ++ l₂).dedup = List.insert a (l₁ ++ l₂).dedup" ]
dedup_cons_of_mem' h,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.List.Lattice
{ "line": 262, "column": 44 }
{ "line": 262, "column": 68 }
{ "line": 262, "column": 68 }
[ { "pp": "α : Type u_1\ninst✝ : DecidableEq α\nhead✝ : α\ntail✝ : List α\nih : ∀ {l₂ : List α}, tail✝.bagInter l₂ <+ tail✝ ∩ l₂\nl₂ : List α\nh✝ : head✝ ∈ l₂\n⊢ l₂.erase head✝ <+ l₂", "ppTerm": "?m.69", "assigned": true, "usedConstants": [ "_private.Mathlib.Data.List.Lattice.0.List.Sublist.bagI...
[]
by grind [erase_sublist]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Data.Multiset.Dedup
{ "line": 116, "column": 31 }
{ "line": 118, "column": 81 }
{ "line": 120, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : DecidableEq α\ns t : Multiset α\nh : s ⊆ t\n⊢ (s + t).dedup = t.dedup", "ppTerm": "?m.12", "assigned": true, "usedConstants": [ "Multiset.instHasSubset", "Multiset.dedup", "List.dedup", "Multiset", "List.Subset.dedup_append_right", "...
[]
by induction s, t using Quot.induction_on₂ exact congr_arg ((↑) : List α → Multiset α) <| List.Subset.dedup_append_right h
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Data.Finset.Insert
{ "line": 186, "column": 76 }
{ "line": 187, "column": 66 }
{ "line": 189, "column": 0 }
[ { "pp": "α : Type u_1\ns : Finset α\na : α\nha : a ∈ s\n⊢ s = {a} ∨ s.Nontrivial", "ppTerm": "?m.11", "assigned": true, "usedConstants": [ "Finset.coe_eq_singleton", "Eq.mpr", "congrArg", "Finset", "Set.instSingletonSet", "id", "SetLike.coe", "Finset.i...
[]
by rw [← coe_eq_singleton]; exact Set.eq_singleton_or_nontrivial ha
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Data.Finset.Lattice.Lemmas
{ "line": 125, "column": 4 }
{ "line": 126, "column": 56 }
{ "line": 128, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : DecidableEq α\ns₁ s₂ : Finset α\na : α\nh : a ∈ s₂\nx : α\n⊢ x ∈ insert a s₁ ∩ s₂ ↔ x ∈ insert a (s₁ ∩ s₂)", "ppTerm": "?m.19", "assigned": true, "usedConstants": [ "congrArg", "Finset", "Membership.mem", "Insert.insert", "_private.Mathlib...
[]
have : x = a ∨ x ∈ s₂ ↔ x ∈ s₂ := or_iff_right_of_imp <| by rintro rfl; exact h simp only [mem_inter, mem_insert, or_and_left, this]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Finset.Lattice.Lemmas
{ "line": 125, "column": 4 }
{ "line": 126, "column": 56 }
{ "line": 128, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : DecidableEq α\ns₁ s₂ : Finset α\na : α\nh : a ∈ s₂\nx : α\n⊢ x ∈ insert a s₁ ∩ s₂ ↔ x ∈ insert a (s₁ ∩ s₂)", "ppTerm": "?m.19", "assigned": true, "usedConstants": [ "congrArg", "Finset", "Membership.mem", "Insert.insert", "_private.Mathlib...
[]
have : x = a ∨ x ∈ s₂ ↔ x ∈ s₂ := or_iff_right_of_imp <| by rintro rfl; exact h simp only [mem_inter, mem_insert, or_and_left, this]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.Finset.Basic
{ "line": 175, "column": 2 }
{ "line": 175, "column": 46 }
{ "line": 177, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : DecidableEq α\ns t : Finset α\na : α\nh : a ∈ t\n⊢ s.erase a ⊆ t ↔ s ⊆ t", "ppTerm": "?m.10", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "Finset", "Iff.rfl", "id", "Insert.insert", "HasSubset.Subset", "Fin...
[]
rw [← subset_insert_iff, insert_eq_of_mem h]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Data.Finset.Basic
{ "line": 175, "column": 2 }
{ "line": 175, "column": 46 }
{ "line": 177, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : DecidableEq α\ns t : Finset α\na : α\nh : a ∈ t\n⊢ s.erase a ⊆ t ↔ s ⊆ t", "ppTerm": "?m.10", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "Finset", "Iff.rfl", "id", "Insert.insert", "HasSubset.Subset", "Fin...
[]
rw [← subset_insert_iff, insert_eq_of_mem h]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Finset.Basic
{ "line": 175, "column": 2 }
{ "line": 175, "column": 46 }
{ "line": 177, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : DecidableEq α\ns t : Finset α\na : α\nh : a ∈ t\n⊢ s.erase a ⊆ t ↔ s ⊆ t", "ppTerm": "?m.10", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "Finset", "Iff.rfl", "id", "Insert.insert", "HasSubset.Subset", "Fin...
[]
rw [← subset_insert_iff, insert_eq_of_mem h]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.Finset.BooleanAlgebra
{ "line": 55, "column": 65 }
{ "line": 56, "column": 38 }
{ "line": 58, "column": 0 }
[ { "pp": "α : Type u_1\ninst✝ : Fintype α\n⊢ univ = ∅ ↔ IsEmpty α", "ppTerm": "?m.6", "assigned": true, "usedConstants": [ "Eq.mpr", "Mathlib.Tactic.Contrapose.contrapose_iff₁", "Finset.univ", "congrArg", "Finset", "id", "IsEmpty", "Finset.instEmptyColl...
[]
by contrapose!; exact univ_nonempty_iff
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Data.Finset.BooleanAlgebra
{ "line": 280, "column": 52 }
{ "line": 280, "column": 72 }
{ "line": 280, "column": 72 }
[ { "pp": "α : Type u_1\nβ : Type u_2\ninst✝² : Fintype α\nf : α → β\np : α → Prop\ninst✝¹ : DecidablePred p\ninst✝ : Fintype { a // p a }\n⊢ Multiset.map (Subtype.restrict p f) univ.val = Multiset.map (f ∘ Subtype.val) univ.val", "ppTerm": "?m.32", "assigned": true, "usedConstants": [ "Eq.mpr",...
[ "α : Type u_1\nβ : Type u_2\ninst✝² : Fintype α\nf : α → β\np : α → Prop\ninst✝¹ : DecidablePred p\ninst✝ : Fintype { a // p a }\n⊢ Multiset.map (f ∘ fun a ↦ ↑a) univ.val = Multiset.map (f ∘ Subtype.val) univ.val" ]
Subtype.restrict_def
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Finset.Image
{ "line": 370, "column": 18 }
{ "line": 370, "column": 77 }
{ "line": 372, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nγ : Type u_3\ninst✝¹ : DecidableEq β\nf : α → β\ns : Finset α\ninst✝ : DecidableEq γ\ng : β → γ\n⊢ (image g (image f s)).val = (image (g ∘ f) s).val", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "Multiset.map", "congrArg", "Multiset....
[]
simp only [image_val, dedup_map_dedup_eq, Multiset.map_map]
Lean.Elab.Tactic.evalSimp
Lean.Parser.Tactic.simp
Mathlib.Data.Finset.Image
{ "line": 370, "column": 18 }
{ "line": 370, "column": 77 }
{ "line": 372, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nγ : Type u_3\ninst✝¹ : DecidableEq β\nf : α → β\ns : Finset α\ninst✝ : DecidableEq γ\ng : β → γ\n⊢ (image g (image f s)).val = (image (g ∘ f) s).val", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "Multiset.map", "congrArg", "Multiset....
[]
simp only [image_val, dedup_map_dedup_eq, Multiset.map_map]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Finset.Image
{ "line": 370, "column": 18 }
{ "line": 370, "column": 77 }
{ "line": 372, "column": 0 }
[ { "pp": "α : Type u_1\nβ : Type u_2\nγ : Type u_3\ninst✝¹ : DecidableEq β\nf : α → β\ns : Finset α\ninst✝ : DecidableEq γ\ng : β → γ\n⊢ (image g (image f s)).val = (image (g ∘ f) s).val", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "Multiset.map", "congrArg", "Multiset....
[]
simp only [image_val, dedup_map_dedup_eq, Multiset.map_map]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Order.Fin.Basic
{ "line": 405, "column": 9 }
{ "line": 405, "column": 32 }
{ "line": 405, "column": 33 }
[ { "pp": "case h.refine_2\nm n : ℕ\ne : Fin n ≃o Fin m\ni : ℕ\nh : ∀ (m_1 : ℕ), m_1 < i → ∀ (hi : m_1 < n), ↑(e ⟨m_1, hi⟩) = m_1\nhi : i < n\nj : ℕ\nhj : j < i\n⊢ j < ↑(e ⟨i, hi⟩)", "ppTerm": "?h.refine_2", "assigned": true, "usedConstants": [ "Eq.mpr", "Preorder.toLT", "congrArg", ...
[ "case h.refine_2\nm n : ℕ\ne : Fin n ≃o Fin m\ni : ℕ\nh : ∀ (m_1 : ℕ), m_1 < i → ∀ (hi : m_1 < n), ↑(e ⟨m_1, hi⟩) = m_1\nhi : i < n\nj : ℕ\nhj : j < i\n⊢ ↑(e ⟨j, ⋯⟩) < ↑(e ⟨i, hi⟩)" ]
← h j hj (hj.trans hi),
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Finset.Card
{ "line": 664, "column": 2 }
{ "line": 664, "column": 69 }
{ "line": 666, "column": 0 }
[ { "pp": "α : Type u_1\ns : Finset α\nn : ℕ\nhns : n ≤ #s\n⊢ ∃ t ⊆ s, #t = n", "ppTerm": "?m.10", "assigned": true, "usedConstants": [ "congrArg", "Finset", "Exists", "Eq.mp", "HasSubset.Subset", "instOfNatNat", "LE.le", "instLENat", "Finset.empty...
[]
simpa using exists_subsuperset_card_eq s.empty_subset (by simp) hns
Lean.Elab.Tactic.Simpa.evalSimpa
Lean.Parser.Tactic.simpa
Mathlib.Data.Finset.Card
{ "line": 664, "column": 2 }
{ "line": 664, "column": 69 }
{ "line": 666, "column": 0 }
[ { "pp": "α : Type u_1\ns : Finset α\nn : ℕ\nhns : n ≤ #s\n⊢ ∃ t ⊆ s, #t = n", "ppTerm": "?m.10", "assigned": true, "usedConstants": [ "congrArg", "Finset", "Exists", "Eq.mp", "HasSubset.Subset", "instOfNatNat", "LE.le", "instLENat", "Finset.empty...
[]
simpa using exists_subsuperset_card_eq s.empty_subset (by simp) hns
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Finset.Card
{ "line": 664, "column": 2 }
{ "line": 664, "column": 69 }
{ "line": 666, "column": 0 }
[ { "pp": "α : Type u_1\ns : Finset α\nn : ℕ\nhns : n ≤ #s\n⊢ ∃ t ⊆ s, #t = n", "ppTerm": "?m.10", "assigned": true, "usedConstants": [ "congrArg", "Finset", "Exists", "Eq.mp", "HasSubset.Subset", "instOfNatNat", "LE.le", "instLENat", "Finset.empty...
[]
simpa using exists_subsuperset_card_eq s.empty_subset (by simp) hns
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq