module
stringlengths
17
90
startPos
dict
endPos
dict
nextStartPos
dict
goals
listlengths
0
96
goalsAfter
listlengths
0
96
ppTac
stringlengths
1
12.3k
elaborator
stringclasses
379 values
kind
stringclasses
383 values
Mathlib.Algebra.Polynomial.Degree.Operations
{ "line": 206, "column": 4 }
{ "line": 206, "column": 70 }
{ "line": 207, "column": 2 }
[ { "pp": "case pos\nR : Type u\ninst✝ : Semiring R\np : R[X]\na : R\nhp : p ≠ 0\nhpd : p.degree ≤ 0\n⊢ (p + C a).natDegree = p.natDegree", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "Eq.mpr", "Polynomial.C", "AddMonoidAlgebra.semiring", ...
[]
rw [eq_C_of_degree_le_zero hpd, ← C_add, natDegree_C, natDegree_C]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Algebra.Polynomial.Degree.Operations
{ "line": 206, "column": 4 }
{ "line": 206, "column": 70 }
{ "line": 207, "column": 2 }
[ { "pp": "case pos\nR : Type u\ninst✝ : Semiring R\np : R[X]\na : R\nhp : p ≠ 0\nhpd : p.degree ≤ 0\n⊢ (p + C a).natDegree = p.natDegree", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "Eq.mpr", "Polynomial.C", "AddMonoidAlgebra.semiring", ...
[]
rw [eq_C_of_degree_le_zero hpd, ← C_add, natDegree_C, natDegree_C]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Polynomial.Degree.Operations
{ "line": 206, "column": 4 }
{ "line": 206, "column": 70 }
{ "line": 207, "column": 2 }
[ { "pp": "case pos\nR : Type u\ninst✝ : Semiring R\np : R[X]\na : R\nhp : p ≠ 0\nhpd : p.degree ≤ 0\n⊢ (p + C a).natDegree = p.natDegree", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "Eq.mpr", "Polynomial.C", "AddMonoidAlgebra.semiring", ...
[]
rw [eq_C_of_degree_le_zero hpd, ← C_add, natDegree_C, natDegree_C]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Polynomial.Degree.Operations
{ "line": 337, "column": 2 }
{ "line": 337, "column": 73 }
{ "line": 339, "column": 0 }
[ { "pp": "R : Type u\ninst✝ : Semiring R\np q : R[X]\nh : p.leadingCoeff * q.leadingCoeff ≠ 0\n⊢ (p * q).leadingCoeff = p.leadingCoeff * q.leadingCoeff", "ppTerm": "?m.29", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "HMul.hMul", "congrArg", "Polynomial.natDegr...
[]
simp [← coeff_natDegree, natDegree_mul' h, coeff_mul_degree_add_degree]
Lean.Elab.Tactic.evalSimp
Lean.Parser.Tactic.simp
Mathlib.Algebra.Polynomial.Degree.Operations
{ "line": 337, "column": 2 }
{ "line": 337, "column": 73 }
{ "line": 339, "column": 0 }
[ { "pp": "R : Type u\ninst✝ : Semiring R\np q : R[X]\nh : p.leadingCoeff * q.leadingCoeff ≠ 0\n⊢ (p * q).leadingCoeff = p.leadingCoeff * q.leadingCoeff", "ppTerm": "?m.29", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "HMul.hMul", "congrArg", "Polynomial.natDegr...
[]
simp [← coeff_natDegree, natDegree_mul' h, coeff_mul_degree_add_degree]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Polynomial.Degree.Operations
{ "line": 337, "column": 2 }
{ "line": 337, "column": 73 }
{ "line": 339, "column": 0 }
[ { "pp": "R : Type u\ninst✝ : Semiring R\np q : R[X]\nh : p.leadingCoeff * q.leadingCoeff ≠ 0\n⊢ (p * q).leadingCoeff = p.leadingCoeff * q.leadingCoeff", "ppTerm": "?m.29", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "HMul.hMul", "congrArg", "Polynomial.natDegr...
[]
simp [← coeff_natDegree, natDegree_mul' h, coeff_mul_degree_add_degree]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.MonoidAlgebra.Degree
{ "line": 452, "column": 4 }
{ "line": 452, "column": 90 }
{ "line": 454, "column": 0 }
[ { "pp": "case refine_2\nA : Type u_3\nB : Type u_5\ninst✝³ : LinearOrder B\ninst✝² : OrderBot B\nD : A → B\ninst✝¹ : AddZeroClass A\nhD : Function.Injective D\nR : Type u_8\ninst✝ : Ring R\np q : R[A]\nhd : supDegree D p = supDegree D q\nhc : leadingCoeff D p = leadingCoeff D q\nhe : ¬(p - q).coeff (Function.in...
[]
rwa [h, coeff_sub, Finsupp.sub_apply, ← leadingCoeff, hd, ← leadingCoeff, sub_eq_zero]
Lean.Elab.Tactic.evalRwa
Lean.Parser.Tactic.rwa
Mathlib.Algebra.Polynomial.Eval.Coeff
{ "line": 65, "column": 6 }
{ "line": 65, "column": 82 }
{ "line": 67, "column": 0 }
[ { "pp": "R : Type u\ninst✝ : Semiring R\np : R[X]\n⊢ (p.sum fun e a ↦ a * 0 ^ e) = p.coeff 0 * 0 ^ 0", "ppTerm": "?m.64", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "MulOne.toOne", "HMul.hMul", "Classical.not_not._simp_1", "Monoid.toMulOneClass", ...
[]
exact Finset.sum_eq_single _ (fun b _ hb => by simp [zero_pow hb]) (by simp)
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Algebra.Polynomial.AlgebraMap
{ "line": 442, "column": 49 }
{ "line": 442, "column": 66 }
{ "line": 444, "column": 0 }
[ { "pp": "R : Type u\nA : Type z\nB : Type u_2\ninst✝⁴ : CommSemiring R\ninst✝³ : Semiring A\ninst✝² : Semiring B\ninst✝¹ : Algebra R A\ninst✝ : Algebra R B\nx : A × B\np : R[X]\n⊢ (aeval x) p = ((aeval x.1) p, (aeval x.2) p)", "ppTerm": "?m.33", "assigned": true, "usedConstants": [ "AddMonoidA...
[]
simp [aeval_prod]
Lean.Elab.Tactic.evalSimp
Lean.Parser.Tactic.simp
Mathlib.Algebra.Polynomial.AlgebraMap
{ "line": 442, "column": 49 }
{ "line": 442, "column": 66 }
{ "line": 444, "column": 0 }
[ { "pp": "R : Type u\nA : Type z\nB : Type u_2\ninst✝⁴ : CommSemiring R\ninst✝³ : Semiring A\ninst✝² : Semiring B\ninst✝¹ : Algebra R A\ninst✝ : Algebra R B\nx : A × B\np : R[X]\n⊢ (aeval x) p = ((aeval x.1) p, (aeval x.2) p)", "ppTerm": "?m.33", "assigned": true, "usedConstants": [ "AddMonoidA...
[]
simp [aeval_prod]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Polynomial.AlgebraMap
{ "line": 442, "column": 49 }
{ "line": 442, "column": 66 }
{ "line": 444, "column": 0 }
[ { "pp": "R : Type u\nA : Type z\nB : Type u_2\ninst✝⁴ : CommSemiring R\ninst✝³ : Semiring A\ninst✝² : Semiring B\ninst✝¹ : Algebra R A\ninst✝ : Algebra R B\nx : A × B\np : R[X]\n⊢ (aeval x) p = ((aeval x.1) p, (aeval x.2) p)", "ppTerm": "?m.33", "assigned": true, "usedConstants": [ "AddMonoidA...
[]
simp [aeval_prod]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Polynomial.AlgebraMap
{ "line": 659, "column": 73 }
{ "line": 661, "column": 40 }
{ "line": 663, "column": 0 }
[ { "pp": "R : Type u\ninst✝² : CommRing R\nM : Type u_3\ninst✝¹ : AddCommGroup M\ninst✝ : Module R M\nf : M →ₗ[R] M\nv : M\np : R[X]\n⊢ ((aeval f) p) v = p.sum fun n b ↦ b • (f ^ n) v", "ppTerm": "?m.37", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "LinearMap.applyₗ", ...
[]
by rw [aeval_def, eval₂_eq_sum] exact map_sum (LinearMap.applyₗ v) _ _
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.MvPolynomial.Degrees
{ "line": 269, "column": 26 }
{ "line": 271, "column": 25 }
{ "line": 273, "column": 0 }
[ { "pp": "R : Type u\nσ : Type u_1\ninst✝ : CommSemiring R\ni : σ\nf : MvPolynomial σ R\nm : σ →₀ ℕ\nh_m : m ∈ f.support\n⊢ m i ≤ degreeOf i f", "ppTerm": "?m.18", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "Eq.mpr", "Nat.instMulZeroClass", "Nat.instLattice", ...
[]
by rw [degreeOf_eq_sup i] apply Finset.le_sup h_m
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.Polynomial.Degree.TrailingDegree
{ "line": 99, "column": 6 }
{ "line": 99, "column": 45 }
{ "line": 99, "column": 46 }
[ { "pp": "R : Type u\ninst✝ : Semiring R\np : R[X]\nn : ℕ\nhp : p ≠ 0\n⊢ p.trailingDegree = ↑n ↔ p.natTrailingDegree = n", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "Eq.mpr", "ENat.instNatCast", "congrArg", "id", "Nat.cast", "Iff", "Nat", ...
[ "R : Type u\ninst✝ : Semiring R\np : R[X]\nn : ℕ\nhp : p ≠ 0\n⊢ ↑p.natTrailingDegree = ↑n ↔ p.natTrailingDegree = n" ]
trailingDegree_eq_natTrailingDegree hp,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Polynomial.Degree.TrailingDegree
{ "line": 163, "column": 7 }
{ "line": 163, "column": 46 }
{ "line": 163, "column": 47 }
[ { "pp": "R : Type u\ninst✝ : Semiring R\np : R[X]\nn : ℕ\nhp : p ≠ 0\nH : ↑n ≤ p.trailingDegree\n⊢ n ≤ p.natTrailingDegree", "ppTerm": "?m.15", "assigned": true, "usedConstants": [ "ENat.instNatCast", "congrArg", "Eq.mp", "LE.le", "Nat.cast", "instLEENat", "...
[ "R : Type u\ninst✝ : Semiring R\np : R[X]\nn : ℕ\nhp : p ≠ 0\nH : ↑n ≤ ↑p.natTrailingDegree\n⊢ n ≤ p.natTrailingDegree" ]
trailingDegree_eq_natTrailingDegree hp,
Lean.Elab.Tactic.evalRwaAt
null
Mathlib.Algebra.Polynomial.Degree.TrailingDegree
{ "line": 333, "column": 6 }
{ "line": 333, "column": 45 }
{ "line": 333, "column": 46 }
[ { "pp": "R : Type u\ninst✝ : Semiring R\np q : R[X]\nh : p.trailingCoeff * q.trailingCoeff ≠ 0\nhp : p ≠ 0\nhq : q ≠ 0\n⊢ (p * q).trailingDegree ≤ p.trailingDegree + q.trailingDegree", "ppTerm": "?m.67", "assigned": true, "usedConstants": [ "Eq.mpr", "HMul.hMul", "ENat.instNatCast"...
[ "R : Type u\ninst✝ : Semiring R\np q : R[X]\nh : p.trailingCoeff * q.trailingCoeff ≠ 0\nhp : p ≠ 0\nhq : q ≠ 0\n⊢ (p * q).trailingDegree ≤ ↑p.natTrailingDegree + q.trailingDegree" ]
trailingDegree_eq_natTrailingDegree hp,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Polynomial.Degree.Lemmas
{ "line": 180, "column": 10 }
{ "line": 180, "column": 15 }
{ "line": 180, "column": 16 }
[ { "pp": "case insert.inl\nR : Type u\nS : Type v\ninst✝ : Semiring R\nf : S → R[X]\nx : S\ns : Finset S\nhx : x ∉ s\nIH : (s.sum f).degree = s.sup fun i ↦ (f i).degree\nh : {i | i ∈ insert x s ∧ f i ≠ 0}.Pairwise (Ne on degree ∘ f)\nH : (f x).degree < (s.sum f).degree\n⊢ (f x + ∑ x ∈ s, f x).degree = max (f x)....
[ "case insert.inl\nR : Type u\nS : Type v\ninst✝ : Semiring R\nf : S → R[X]\nx : S\ns : Finset S\nhx : x ∉ s\nIH : (s.sum f).degree = s.sup fun i ↦ (f i).degree\nh : {i | i ∈ insert x s ∧ f i ≠ 0}.Pairwise (Ne on degree ∘ f)\nH : (f x).degree < (s.sum f).degree\n⊢ (f x + ∑ x ∈ s, f x).degree = max (f x).degree (s.su...
← IH,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Polynomial.Degree.Lemmas
{ "line": 194, "column": 10 }
{ "line": 194, "column": 15 }
{ "line": 194, "column": 16 }
[ { "pp": "case insert.inr.inr\nR : Type u\nS : Type v\ninst✝ : Semiring R\nf : S → R[X]\nx : S\ns : Finset S\nhx : x ∉ s\nIH : (s.sum f).degree = s.sup fun i ↦ (f i).degree\nh : {i | i ∈ insert x s ∧ f i ≠ 0}.Pairwise (Ne on degree ∘ f)\nH : (s.sum f).degree < (f x).degree\n⊢ (f x + ∑ x ∈ s, f x).degree = max (f...
[ "case insert.inr.inr\nR : Type u\nS : Type v\ninst✝ : Semiring R\nf : S → R[X]\nx : S\ns : Finset S\nhx : x ∉ s\nIH : (s.sum f).degree = s.sup fun i ↦ (f i).degree\nh : {i | i ∈ insert x s ∧ f i ≠ 0}.Pairwise (Ne on degree ∘ f)\nH : (s.sum f).degree < (f x).degree\n⊢ (f x + ∑ x ∈ s, f x).degree = max (f x).degree (...
← IH,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Polynomial.EraseLead
{ "line": 163, "column": 4 }
{ "line": 163, "column": 89 }
{ "line": 164, "column": 2 }
[ { "pp": "case pos\nR : Type u_1\ninst✝ : Semiring R\np q : R[X]\npq : q.degree < p.degree\nn : ℕ\nnd : n = p.natDegree\n⊢ 0 = (p.eraseLead + q).coeff p.natDegree", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "WithBot.instPreorder", "Eq.mpr", ...
[]
simpa using (coeff_eq_zero_of_degree_lt (lt_of_lt_of_le pq degree_le_natDegree)).symm
Lean.Elab.Tactic.Simpa.evalSimpa
Lean.Parser.Tactic.simpa
Mathlib.Algebra.Polynomial.EraseLead
{ "line": 177, "column": 4 }
{ "line": 177, "column": 89 }
{ "line": 178, "column": 2 }
[ { "pp": "case pos\nR : Type u_1\ninst✝ : Semiring R\np q : R[X]\npq : p.degree < q.degree\nn : ℕ\nnd : n = q.natDegree\n⊢ 0 = (p + q.eraseLead).coeff q.natDegree", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "WithBot.instPreorder", "Eq.mpr", ...
[]
simpa using (coeff_eq_zero_of_degree_lt (lt_of_lt_of_le pq degree_le_natDegree)).symm
Lean.Elab.Tactic.Simpa.evalSimpa
Lean.Parser.Tactic.simpa
Mathlib.Algebra.Polynomial.EraseLead
{ "line": 242, "column": 76 }
{ "line": 242, "column": 92 }
{ "line": 242, "column": 92 }
[ { "pp": "R : Type u_1\ninst✝ : Semiring R\nf : R[X]\nhnext : f.nextCoeff = 0\nhlead : (∃ x, C x = f) ∨ f.natDegree = 1\n⊢ f.eraseLead = 0", "ppTerm": "?m.41", "assigned": true, "usedConstants": [ "Polynomial.C", "AddMonoidAlgebra.semiring", "HMul.hMul", "congrArg", "Add...
[ "R : Type u_1\ninst✝ : Semiring R\nf : R[X]\nhnext : f.nextCoeff = 0\nhlead : (∃ x, C x = f) ∨ ∃ a, a ≠ 0 ∧ ∃ b, C a * X + C b = f\n⊢ f.eraseLead = 0" ]
natDegree_eq_one
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Polynomial.Reverse
{ "line": 78, "column": 2 }
{ "line": 78, "column": 35 }
{ "line": 80, "column": 0 }
[ { "pp": "n o n' : ℕ\nhn : n ≤ n + n'\no' : ℕ\nho : o ≤ o + o'\n⊢ n + o + (n' + o') - (n + o) = n + n' - n + (o + o' - o)", "ppTerm": "?m.126", "assigned": true, "usedConstants": [ "Eq.mpr", "Nat.instOrderedSub", "Nat.instIsOrderedAddMonoid", "AddLeftCancelSemigroup.toIsLeftCa...
[]
repeat' rw [add_tsub_cancel_left]
Lean.Elab.Tactic.evalRepeat'
Lean.Parser.Tactic.repeat'
Mathlib.Algebra.Polynomial.Reverse
{ "line": 153, "column": 36 }
{ "line": 153, "column": 60 }
{ "line": 153, "column": 60 }
[ { "pp": "case zero.zero\nR : Type u_1\ninst✝ : Semiring R\nN O : ℕ\nf : R[X]\nCf : #f.support ≤ Nat.succ 0\nNf : f.natDegree ≤ N\ng : R[X]\nCg : #g.support ≤ Nat.succ 0\nOg : g.natDegree ≤ O\n⊢ reflect (N + O) (C f.leadingCoeff * X ^ f.natDegree * g) =\n reflect N (C f.leadingCoeff * X ^ f.natDegree) * refle...
[ "case zero.zero\nR : Type u_1\ninst✝ : Semiring R\nN O : ℕ\nf : R[X]\nCf : #f.support ≤ Nat.succ 0\nNf : f.natDegree ≤ N\ng : R[X]\nCg : #g.support ≤ Nat.succ 0\nOg : g.natDegree ≤ O\n⊢ reflect (N + O) (C f.leadingCoeff * X ^ f.natDegree * (C g.leadingCoeff * X ^ g.natDegree)) =\n reflect N (C f.leadingCoeff * X...
← C_mul_X_pow_eq_self Cg
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Polynomial.Degree.Lemmas
{ "line": 354, "column": 77 }
{ "line": 354, "column": 93 }
{ "line": 354, "column": 93 }
[ { "pp": "R : Type u\ninst✝¹ : Semiring R\np : R[X]\ninst✝ : IsLeftCancelMulZero R\nh : p.natDegree = 1\nr₁ : R\n⊢ ∃ a, a ≠ 0 ∧ ∃ b, C a * X + C b = p", "ppTerm": "?m.60", "assigned": true, "usedConstants": [ "Polynomial.C", "AddMonoidAlgebra.semiring", "HMul.hMul", "congrArg"...
[ "R : Type u\ninst✝¹ : Semiring R\np : R[X]\ninst✝ : IsLeftCancelMulZero R\nh : ∃ a, a ≠ 0 ∧ ∃ b, C a * X + C b = p\nr₁ : R\n⊢ ∃ a, a ≠ 0 ∧ ∃ b, C a * X + C b = p" ]
natDegree_eq_one
Lean.Elab.Tactic.evalRwaAt
null
Mathlib.Algebra.Polynomial.EraseLead
{ "line": 328, "column": 4 }
{ "line": 328, "column": 51 }
{ "line": 329, "column": 2 }
[ { "pp": "R : Type u_1\ninst✝ : Semiring R\nmotive : R[X] → Prop\nN : ℕ\nzero : motive 0\nC_mul_pow : ∀ (n : ℕ) (r : R), r ≠ 0 → n ≤ N → motive (C r * X ^ n)\nadd : ∀ (f g : R[X]), f.natDegree < g.natDegree → g.natDegree ≤ N → motive f → motive g → motive (f + g)\nf : R[X]\ndf : f.natDegree ≤ N\nhf : #f.support ...
[]
simpa [support_eq_empty, card_eq_zero] using hf
Lean.Elab.Tactic.Simpa.evalSimpa
Lean.Parser.Tactic.simpa
Mathlib.Algebra.MvPolynomial.Equiv
{ "line": 621, "column": 93 }
{ "line": 622, "column": 41 }
{ "line": 624, "column": 0 }
[ { "pp": "R : Type u\ninst✝ : CommSemiring R\nn : ℕ\np : MvPolynomial (Fin (n + 1)) R\n⊢ (finSuccEquiv R n) p =\n (eval₂Hom (Polynomial.C.comp C) fun i ↦ Fin.cases Polynomial.X (fun k ↦ Polynomial.C (X k)) i) p", "ppTerm": "?m.55", "assigned": true, "usedConstants": [ "Finsupp.instAddZeroCla...
[]
by rw [← finSuccEquiv_eq, RingHom.coe_coe]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.Polynomial.Monic
{ "line": 153, "column": 2 }
{ "line": 153, "column": 21 }
{ "line": 154, "column": 2 }
[ { "pp": "R : Type u\ninst✝ : Semiring R\np q : R[X]\nhp : p.Monic\nhq : q ≠ 0\n⊢ (p * q).natDegree = p.natDegree + q.natDegree", "ppTerm": "?m.24", "assigned": true, "usedConstants": [ "Eq.mpr", "HMul.hMul", "congrArg", "Polynomial.natDegree_mul'", "id", "Polynomi...
[ "R : Type u\ninst✝ : Semiring R\np q : R[X]\nhp : p.Monic\nhq : q ≠ 0\n⊢ p.leadingCoeff * q.leadingCoeff ≠ 0" ]
rw [natDegree_mul']
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Algebra.Polynomial.Reverse
{ "line": 252, "column": 4 }
{ "line": 252, "column": 69 }
{ "line": 253, "column": 4 }
[ { "pp": "case a\nR : Type u_1\ninst✝ : Semiring R\nf : R[X]\nhf : ¬f = 0\n⊢ f.coeff (f.natDegree - f.reverse.natDegree) ≠ 0", "ppTerm": "?a✝", "assigned": true, "usedConstants": [ "AddMonoidAlgebra.semiring", "Polynomial.reverse_eq_zero", "Nat.instAddMonoid", "mt", "Pol...
[ "case a\nR : Type u_1\ninst✝ : Semiring R\nf : R[X]\nhf : ¬f = 0\nkey : ¬f.reverse.leadingCoeff = 0\n⊢ f.coeff (f.natDegree - f.reverse.natDegree) ≠ 0" ]
have key := mt leadingCoeff_eq_zero.mp (mt reverse_eq_zero.mp hf)
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1
Lean.Parser.Tactic.tacticHave__
Mathlib.Algebra.Polynomial.EraseLead
{ "line": 448, "column": 64 }
{ "line": 448, "column": 89 }
{ "line": 448, "column": 89 }
[ { "pp": "case succ.refine_3\nR : Type u_1\ninst✝ : Semiring R\nn : ℕ\nhn : ∀ {f : R[X]}, #f.support = n → ∃ k x, ∃ (_ : StrictMono k) (_ : ∀ (i : Fin n), x i ≠ 0), f = ∑ i, C (x i) * X ^ k i\nf : R[X]\nh : #f.support = n + 1\nk : Fin n → ℕ\nx : Fin n → R\nhk : StrictMono k\nhx : ∀ (i : Fin n), x i ≠ 0\nhf : f.e...
[ "case succ.refine_3\nR : Type u_1\ninst✝ : Semiring R\nn : ℕ\nhn : ∀ {f : R[X]}, #f.support = n → ∃ k x, ∃ (_ : StrictMono k) (_ : ∀ (i : Fin n), x i ≠ 0), f = ∑ i, C (x i) * X ^ k i\nf : R[X]\nh : #f.support = n + 1\nk : Fin n → ℕ\nx : Fin n → R\nhk : StrictMono k\nhx : ∀ (i : Fin n), x i ≠ 0\nhf : f.eraseLead = ∑...
eraseLead_add_C_mul_X_pow
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Polynomial.EraseLead
{ "line": 474, "column": 55 }
{ "line": 483, "column": 49 }
{ "line": 485, "column": 0 }
[ { "pp": "R : Type u_1\ninst✝ : Semiring R\nf : R[X]\n⊢ #f.support = 3 ↔\n ∃ k m n,\n ∃ (_ : k < m) (_ : m < n),\n ∃ x y z, ∃ (_ : x ≠ 0) (_ : y ≠ 0) (_ : z ≠ 0), f = C x * X ^ k + C y * X ^ m + C z * X ^ n", "ppTerm": "?m.257", "assigned": true, "usedConstants": [ "Eq.mpr", ...
[]
by refine ⟨fun h => ?_, ?_⟩ · obtain ⟨k, x, hk, hx, rfl⟩ := card_support_eq.mp h refine ⟨k 0, k 1, k 2, hk Nat.zero_lt_one, hk (Nat.lt_succ_self 1), x 0, x 1, x 2, hx 0, hx 1, hx 2, ?_⟩ rw [Fin.sum_univ_castSucc, Fin.sum_univ_castSucc, Fin.sum_univ_one] rfl · rintro ⟨k, m, n, hkm, hmn, x...
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.RingTheory.Polynomial.Basic
{ "line": 586, "column": 30 }
{ "line": 586, "column": 44 }
{ "line": 586, "column": 45 }
[ { "pp": "case mpr.ne_top'\nR : Type u\ninst✝ : CommRing R\nP : Ideal R\nh : P.IsPrime\n⊢ 1 ∉ map C P", "ppTerm": "?mpr.ne_top'", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "Eq.mpr", "Polynomial.C", "NonAssocSemiring.toAddCommMonoidWithOne", "AddMonoidAl...
[ "case mpr.ne_top'\nR : Type u\ninst✝ : CommRing R\nP : Ideal R\nh : P.IsPrime\n⊢ ¬∀ (n : ℕ), (AddMonoidAlgebra.coeff 1) n ∈ P" ]
mem_map_C_iff,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.RingTheory.Polynomial.Basic
{ "line": 663, "column": 4 }
{ "line": 663, "column": 9 }
{ "line": 664, "column": 2 }
[ { "pp": "R : Type u\ninst✝ : Semiring R\nf : R[X]\np : Ideal R[X] := Ideal.span {g | ∃ i, g = C (f.coeff i)}\nn : ℕ\n_hn : n ∈ f.support\n⊢ ∃ i, C (f.coeff n) = C (f.coeff i)", "ppTerm": "?m.81", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "Polynomial.C", "AddMonoid...
[]
use n
Mathlib.Tactic._aux_Mathlib_Tactic_Use___elabRules_Mathlib_Tactic_useSyntax_1
Mathlib.Tactic.useSyntax
Mathlib.RingTheory.Polynomial.Basic
{ "line": 780, "column": 8 }
{ "line": 782, "column": 84 }
{ "line": 783, "column": 8 }
[ { "pp": "case ind.inl\nR : Type u\ninst✝ : CommRing R\ninst : IsNoetherianRing R\nI : Ideal R[X]\nM : Submodule R R := WellFounded.min ⋯ (Set.range I.leadingCoeffNth) ⋯\nhm : M ∈ Set.range I.leadingCoeffNth\nN : ℕ\nHN : I.leadingCoeffNth N = M\ns : Finset R[X]\nhs : Submodule.span R ↑s = I.degreeLE ↑N\nhm2 : ∀ ...
[ "case ind.inr\nR : Type u\ninst✝ : CommRing R\ninst : IsNoetherianRing R\nI : Ideal R[X]\nM : Submodule R R := WellFounded.min ⋯ (Set.range I.leadingCoeffNth) ⋯\nhm : M ∈ Set.range I.leadingCoeffNth\nN : ℕ\nHN : I.leadingCoeffNth N = M\ns : Finset R[X]\nhs : Submodule.span R ↑s = I.degreeLE ↑N\nhm2 : ∀ (k : ℕ), I.l...
· subst k refine hs2 ⟨Polynomial.mem_degreeLE.2 (le_trans Polynomial.degree_le_natDegree <| WithBot.coe_le_coe.2 h), hp⟩
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.LinearAlgebra.Dimension.Finite
{ "line": 262, "column": 65 }
{ "line": 262, "column": 80 }
{ "line": 262, "column": 80 }
[ { "pp": "ι : Type w\nR : Type u\nM : Type v\ninst✝⁶ : Ring R\ninst✝⁵ : AddCommGroup M\ninst✝⁴ : Module R M\ninst✝³ : IsDomain R\ninst✝² : IsTorsionFree R M\ninst✝¹ : Module.Finite R M\ninst✝ : StrongRankCondition R\np : ι → Submodule R M\nhp : iSupIndep p\n⊢ lift.{w, v} (Module.rank R M) = lift.{w, v} ↑(finrank...
[ "ι : Type w\nR : Type u\nM : Type v\ninst✝⁶ : Ring R\ninst✝⁵ : AddCommGroup M\ninst✝⁴ : Module R M\ninst✝³ : IsDomain R\ninst✝² : IsTorsionFree R M\ninst✝¹ : Module.Finite R M\ninst✝ : StrongRankCondition R\np : ι → Submodule R M\nhp : iSupIndep p\n⊢ lift.{w, v} (Module.rank R M) = lift.{w, v} (Module.rank R M)" ]
finrank_eq_rank
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.RingTheory.Polynomial.Basic
{ "line": 909, "column": 4 }
{ "line": 909, "column": 39 }
{ "line": 910, "column": 2 }
[ { "pp": "σ : Type v\nR : Type u_2\ninst✝ : CommSemiring R\nm n : ℕ\nF : MvPolynomial σ R\nhF : F.totalDegree ≤ m\nf : σ → R[X]\nhf : ∀ (i : σ), (f i).natDegree ≤ n\nd : σ →₀ ℕ\nhd : d ∈ F.coeff.support\n⊢ ∑ i ∈ d.support, d i ≤ F.support.sup fun s ↦ s.sum fun x e ↦ e", "ppTerm": "?m.147", "assigned": tr...
[]
exact Finset.le_sup_of_le hd le_rfl
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.RingTheory.Ideal.Quotient.Operations
{ "line": 155, "column": 4 }
{ "line": 155, "column": 79 }
{ "line": 156, "column": 4 }
[ { "pp": "case mpr\nR : Type u\nS : Type v\ninst✝² : Ring R\ninst✝¹ : Semiring S\nI : Ideal R\ninst✝ : I.IsTwoSided\nf : R →+* S\nH : I ≤ ker f\nx : R ⧸ I\nhx : x ∈ map (Quotient.mk I) (ker f)\n⊢ x ∈ ker (Quotient.lift I f H)", "ppTerm": "?mpr", "assigned": true, "usedConstants": [ "RingHom.ins...
[ "case mpr\nR : Type u\nS : Type v\ninst✝² : Ring R\ninst✝¹ : Semiring S\nI : Ideal R\ninst✝ : I.IsTwoSided\nf : R →+* S\nH : I ≤ ker f\nx : R ⧸ I\nhx : ∃ x_1 ∈ ker f, (Quotient.mk I) x_1 = x\n⊢ x ∈ ker (Quotient.lift I f H)" ]
rw [mem_map_iff_of_surjective (Quotient.mk I) Quotient.mk_surjective] at hx
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.RingTheory.Ideal.Quotient.Operations
{ "line": 432, "column": 63 }
{ "line": 432, "column": 70 }
{ "line": 432, "column": 71 }
[ { "pp": "A : Type u_3\ninst✝¹ : Ring A\nI : Ideal A\ninst✝ : I.IsTwoSided\nh : I = ⊥\n⊢ ker (mk I) = ⊥", "ppTerm": "?m.71", "assigned": true, "usedConstants": [ "Eq.mpr", "RingHom.instRingHomClass", "Semiring.toModule", "congrArg", "Ideal.Quotient.mk", "RingHom", ...
[ "A : Type u_3\ninst✝¹ : Ring A\nI : Ideal A\ninst✝ : I.IsTwoSided\nh : I = ⊥\n⊢ I = ⊥" ]
mk_ker,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.RingTheory.Ideal.Quotient.Operations
{ "line": 798, "column": 73 }
{ "line": 800, "column": 5 }
{ "line": 802, "column": 0 }
[ { "pp": "R₁ : Type u_1\nA : Type u_3\ninst✝⁴ : CommSemiring R₁\ninst✝³ : Ring A\ninst✝² : Algebra R₁ A\nI J : Ideal A\ninst✝¹ : I.IsTwoSided\ninst✝ : J.IsTwoSided\nh : I = J\n⊢ (quotientEquivAlgOfEq R₁ h).symm = quotientEquivAlgOfEq R₁ ⋯", "ppTerm": "?m.40", "assigned": true, "usedConstants": [ ...
[]
by ext rfl
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.RingTheory.Ideal.Quotient.Operations
{ "line": 902, "column": 74 }
{ "line": 902, "column": 81 }
{ "line": 903, "column": 4 }
[ { "pp": "R : Type u\ninst✝ : CommRing R\nI J : Ideal R\n⊢ comap (Ideal.Quotient.mk I) (RingHom.ker (Ideal.Quotient.mk (map (Ideal.Quotient.mk I) J))) = I ⊔ J", "ppTerm": "?m.48", "assigned": true, "usedConstants": [ "Eq.mpr", "RingHom.instRingHomClass", "congrArg", "CommSemir...
[ "R : Type u\ninst✝ : CommRing R\nI J : Ideal R\n⊢ comap (Ideal.Quotient.mk I) (map (Ideal.Quotient.mk I) J) = I ⊔ J" ]
mk_ker,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.RingTheory.Ideal.Quotient.Operations
{ "line": 904, "column": 4 }
{ "line": 904, "column": 11 }
{ "line": 904, "column": 12 }
[ { "pp": "R : Type u\ninst✝ : CommRing R\nI J : Ideal R\n⊢ J ⊔ RingHom.ker (Ideal.Quotient.mk I) = I ⊔ J", "ppTerm": "?m.78", "assigned": true, "usedConstants": [ "Eq.mpr", "RingHom.instRingHomClass", "Lattice.toSemilatticeSup", "Semiring.toModule", "congrArg", "Co...
[ "R : Type u\ninst✝ : CommRing R\nI J : Ideal R\n⊢ J ⊔ I = I ⊔ J" ]
mk_ker,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.LinearAlgebra.LinearPMap
{ "line": 315, "column": 2 }
{ "line": 336, "column": 41 }
{ "line": 338, "column": 0 }
[ { "pp": "R : Type u_1\nS : Type u_2\ninst✝⁵ : Ring R\ninst✝⁴ : Ring S\nσ : R →+* S\nE : Type u_4\ninst✝³ : AddCommGroup E\ninst✝² : Module R E\nF : Type u_5\ninst✝¹ : AddCommGroup F\ninst✝ : Module S F\nf g : E →ₛₗ.[σ] F\nh : ∀ (x : ↥f.domain) (y : ↥g.domain), ↑x = ↑y → ↑f x = ↑g y\n⊢ ∃ fg, ∀ (x : ↥f.domain) (y...
[]
choose x hx y hy hxy using fun z : ↥(f.domain ⊔ g.domain) => mem_sup.1 z.prop set fg := fun z => f ⟨x z, hx z⟩ + g ⟨y z, hy z⟩ have fg_eq : ∀ (x' : f.domain) (y' : g.domain) (z' : ↥(f.domain ⊔ g.domain)) (_H : (x' : E) + y' = z'), fg z' = f x' + g y' := by intro x' y' z' H dsimp [fg] rw [add_comm,...
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.LinearAlgebra.LinearPMap
{ "line": 315, "column": 2 }
{ "line": 336, "column": 41 }
{ "line": 338, "column": 0 }
[ { "pp": "R : Type u_1\nS : Type u_2\ninst✝⁵ : Ring R\ninst✝⁴ : Ring S\nσ : R →+* S\nE : Type u_4\ninst✝³ : AddCommGroup E\ninst✝² : Module R E\nF : Type u_5\ninst✝¹ : AddCommGroup F\ninst✝ : Module S F\nf g : E →ₛₗ.[σ] F\nh : ∀ (x : ↥f.domain) (y : ↥g.domain), ↑x = ↑y → ↑f x = ↑g y\n⊢ ∃ fg, ∀ (x : ↥f.domain) (y...
[]
choose x hx y hy hxy using fun z : ↥(f.domain ⊔ g.domain) => mem_sup.1 z.prop set fg := fun z => f ⟨x z, hx z⟩ + g ⟨y z, hy z⟩ have fg_eq : ∀ (x' : f.domain) (y' : g.domain) (z' : ↥(f.domain ⊔ g.domain)) (_H : (x' : E) + y' = z'), fg z' = f x' + g y' := by intro x' y' z' H dsimp [fg] rw [add_comm,...
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.RingTheory.Ideal.Quotient.Operations
{ "line": 969, "column": 90 }
{ "line": 971, "column": 5 }
{ "line": 973, "column": 0 }
[ { "pp": "R : Type u\ninst✝ : CommRing R\nI J : Ideal R\nh : I ≤ J\n⊢ (↑(quotQuotEquivQuotOfLE h)).comp (quotQuotMk I J) = Ideal.Quotient.mk J", "ppTerm": "?m.22", "assigned": true, "usedConstants": [ "CommSemiring.toSemiring", "Ideal.Quotient.mk", "RingEquiv.instEquivLike", "...
[]
by ext rfl
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.RingTheory.Ideal.Quotient.Operations
{ "line": 974, "column": 93 }
{ "line": 976, "column": 5 }
{ "line": 978, "column": 0 }
[ { "pp": "R : Type u\ninst✝ : CommRing R\nI J : Ideal R\nh : I ≤ J\n⊢ (↑(quotQuotEquivQuotOfLE h).symm).comp (Ideal.Quotient.mk J) = quotQuotMk I J", "ppTerm": "?m.28", "assigned": true, "usedConstants": [ "CommSemiring.toSemiring", "Ideal.Quotient.mk", "RingEquiv.instEquivLike", ...
[]
by ext rfl
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.LinearAlgebra.FiniteDimensional.Basic
{ "line": 86, "column": 2 }
{ "line": 86, "column": 64 }
{ "line": 87, "column": 2 }
[ { "pp": "K : Type u\nV : Type v\ninst✝³ : DivisionRing K\ninst✝² : AddCommGroup V\ninst✝¹ : Module K V\ninst✝ : FiniteDimensional K V\nS : Submodule K V\nh : finrank K ↥S = finrank K V\nbS : Basis (↑(Basis.ofVectorSpaceIndex K ↥S)) K ↥S := Basis.ofVectorSpace K ↥S\nbS_eq : bS = Basis.ofVectorSpace K ↥S\nthis✝¹ ...
[ "K : Type u\nV : Type v\ninst✝³ : DivisionRing K\ninst✝² : AddCommGroup V\ninst✝¹ : Module K V\ninst✝ : FiniteDimensional K V\nS : Submodule K V\nh : finrank K ↥S = finrank K V\nbS : Basis (↑(Basis.ofVectorSpaceIndex K ↥S)) K ↥S := Basis.ofVectorSpace K ↥S\nbS_eq : bS = Basis.ofVectorSpace K ↥S\nthis✝¹ : LinearInde...
rw [bS_eq, Basis.coe_ofVectorSpace, Subtype.range_coe] at this
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.LinearAlgebra.LinearPMap
{ "line": 655, "column": 8 }
{ "line": 655, "column": 31 }
{ "line": 655, "column": 32 }
[ { "pp": "case w.refine_1\nR : Type u_1\nS : Type u_2\ninst✝⁵ : Ring R\ninst✝⁴ : Ring S\nσ : R →+* S\nE : Type u_4\ninst✝³ : AddCommGroup E\ninst✝² : Module R E\nF : Type u_5\ninst✝¹ : AddCommGroup F\ninst✝ : Module S F\nc : Set (E →ₛₗ.[σ] F)\nhc : DirectedOn (fun x1 x2 ↦ x1 ≤ x2) c\ncne : c.Nonempty\nhdir : Dir...
[ "case w.refine_1\nR : Type u_1\nS : Type u_2\ninst✝⁵ : Ring R\ninst✝⁴ : Ring S\nσ : R →+* S\nE : Type u_4\ninst✝³ : AddCommGroup E\ninst✝² : Module R E\nF : Type u_5\ninst✝¹ : AddCommGroup F\ninst✝ : Module S F\nc : Set (E →ₛₗ.[σ] F)\nhc : DirectedOn (fun x1 x2 ↦ x1 ≤ x2) c\ncne : c.Nonempty\nhdir : DirectedOn (fun...
f_eq ⟨p, hpc⟩ x x' rfl,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Algebra.Subalgebra.Pointwise
{ "line": 58, "column": 4 }
{ "line": 59, "column": 71 }
{ "line": 60, "column": 4 }
[ { "pp": "case refine_1.inl\nR : Type u_3\nA : Type u_4\ninst✝² : CommSemiring R\ninst✝¹ : CommSemiring A\ninst✝ : Algebra R A\nS T : Subalgebra R A\nx✝ : A\nhx : x✝ ∈ Algebra.adjoin R (↑S ∪ ↑T)\nx : A\nhxS : x ∈ ↑S\n⊢ x ∈ toSubmodule S * toSubmodule T", "ppTerm": "?refine_1.inl", "assigned": true, "...
[ "case refine_1.inr\nR : Type u_3\nA : Type u_4\ninst✝² : CommSemiring R\ninst✝¹ : CommSemiring A\ninst✝ : Algebra R A\nS T : Subalgebra R A\nx✝ : A\nhx : x✝ ∈ Algebra.adjoin R (↑S ∪ ↑T)\nx : A\nhxT : x ∈ ↑T\n⊢ x ∈ toSubmodule S * toSubmodule T" ]
· rw [← mul_one x] exact Submodule.mul_mem_mul hxS (show (1 : A) ∈ T from one_mem T)
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.Data.Int.ModEq
{ "line": 388, "column": 20 }
{ "line": 388, "column": 45 }
{ "line": 388, "column": 46 }
[ { "pp": "case left\na b : ℤ\nhb : 0 < b\nz : ℤ\nhz1 : 0 ≤ z\nhz2 : z < b\nhz3 : z ≡ a [ZMOD b]\n⊢ ↑z.natAbs < b", "ppTerm": "?left", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "id", "Int", "Nat.cast", "Int.natAbs_of_nonneg", "Int.instLTInt", ...
[ "case left\na b : ℤ\nhb : 0 < b\nz : ℤ\nhz1 : 0 ≤ z\nhz2 : z < b\nhz3 : z ≡ a [ZMOD b]\n⊢ z < b" ]
rw [natAbs_of_nonneg hz1]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Data.Int.ModEq
{ "line": 388, "column": 20 }
{ "line": 388, "column": 45 }
{ "line": 388, "column": 46 }
[ { "pp": "case right\na b : ℤ\nhb : 0 < b\nz : ℤ\nhz1 : 0 ≤ z\nhz2 : z < b\nhz3 : z ≡ a [ZMOD b]\n⊢ ↑z.natAbs ≡ a [ZMOD b]", "ppTerm": "?right", "assigned": true, "usedConstants": [ "Eq.mpr", "congrArg", "id", "Int", "Nat.cast", "Int.natAbs_of_nonneg", "Int.M...
[ "case right\na b : ℤ\nhb : 0 < b\nz : ℤ\nhz1 : 0 ≤ z\nhz2 : z < b\nhz3 : z ≡ a [ZMOD b]\n⊢ z ≡ a [ZMOD b]" ]
rw [natAbs_of_nonneg hz1]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Algebra.Algebra.Subalgebra.Unitization
{ "line": 146, "column": 4 }
{ "line": 148, "column": 31 }
{ "line": 150, "column": 0 }
[ { "pp": "case refine_2\nR : Type u_1\nS : Type u_2\nA : Type u_3\ninst✝³ : Field R\ninst✝² : Ring A\ninst✝¹ : Algebra R A\ninst✝ : SetLike S A\nhSA : NonUnitalSubringClass S A\nhSRA : SMulMemClass S R A\ns : S\nh1 : 1 ∉ s\nalgHom : Unitization R ↥s →ₐ[R] ↥(Algebra.adjoin R ↑s) := (unitization s).codRestrict (Al...
[]
· obtain (⟨a, ha⟩ : (x : A) ∈ (unitization s).range) := (unitization_range s).ge x.property exact ⟨a, Subtype.ext ha⟩
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.Algebra.Algebra.Subalgebra.Unitization
{ "line": 271, "column": 4 }
{ "line": 273, "column": 31 }
{ "line": 275, "column": 0 }
[ { "pp": "case refine_2\nR : Type u_1\nS : Type u_2\nA : Type u_3\ninst✝⁷ : Field R\ninst✝⁶ : StarRing R\ninst✝⁵ : Ring A\ninst✝⁴ : StarRing A\ninst✝³ : Algebra R A\ninst✝² : StarModule R A\ninst✝¹ : SetLike S A\nhSA : NonUnitalSubringClass S A\nhSRA : SMulMemClass S R A\ninst✝ : StarMemClass S A\ns : S\nh1 : 1 ...
[]
· obtain (⟨a, ha⟩ : (x : A) ∈ (unitization s).range) := (unitization_range s).ge x.property exact ⟨a, Subtype.ext ha⟩
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.Data.Nat.Prime.Basic
{ "line": 176, "column": 2 }
{ "line": 178, "column": 72 }
{ "line": 180, "column": 0 }
[ { "pp": "p a k : ℕ\nhp : Prime p\n⊢ a ^ k = p ↔ a = p ∧ k = 1", "ppTerm": "?m.10", "assigned": true, "usedConstants": [ "Eq.mpr", "Nat.Prime", "and_true", "congrArg", "Nat.instMonoid", "Eq.mp", "id", "instOfNatNat", "Nat.Prime.eq_one_of_pow", ...
[]
refine ⟨fun h => ?_, fun h => by rw [h.1, h.2, pow_one]⟩ rw [← h] at hp rw [← h, hp.eq_one_of_pow, eq_self_iff_true, _root_.and_true, pow_one]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Nat.Prime.Basic
{ "line": 176, "column": 2 }
{ "line": 178, "column": 72 }
{ "line": 180, "column": 0 }
[ { "pp": "p a k : ℕ\nhp : Prime p\n⊢ a ^ k = p ↔ a = p ∧ k = 1", "ppTerm": "?m.10", "assigned": true, "usedConstants": [ "Eq.mpr", "Nat.Prime", "and_true", "congrArg", "Nat.instMonoid", "Eq.mp", "id", "instOfNatNat", "Nat.Prime.eq_one_of_pow", ...
[]
refine ⟨fun h => ?_, fun h => by rw [h.1, h.2, pow_one]⟩ rw [← h] at hp rw [← h, hp.eq_one_of_pow, eq_self_iff_true, _root_.and_true, pow_one]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Star.Subalgebra
{ "line": 438, "column": 8 }
{ "line": 438, "column": 23 }
{ "line": 438, "column": 24 }
[ { "pp": "R : Type u_1\nA : Type u_2\ninst✝⁵ : CommSemiring R\ninst✝⁴ : StarRing R\ninst✝³ : Semiring A\ninst✝² : Algebra R A\ninst✝¹ : StarRing A\ninst✝ : StarModule R A\ns : Set A\na✝ : A\nhx : a✝ ∈ (Algebra.adjoin R (s ∪ star s)).carrier\n⊢ a✝ ∈ Algebra.adjoin R (star (s ∪ star s))", "ppTerm": "?m.65", ...
[ "R : Type u_1\nA : Type u_2\ninst✝⁵ : CommSemiring R\ninst✝⁴ : StarRing R\ninst✝³ : Semiring A\ninst✝² : Algebra R A\ninst✝¹ : StarRing A\ninst✝ : StarModule R A\ns : Set A\na✝ : A\nhx : a✝ ∈ (Algebra.adjoin R (s ∪ star s)).carrier\n⊢ a✝ ∈ Algebra.adjoin R (star s ∪ star (star s))" ]
Set.union_star,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Nat.Factors
{ "line": 210, "column": 4 }
{ "line": 210, "column": 40 }
{ "line": 211, "column": 2 }
[ { "pp": "case inr.inl\na : ℕ\nha : a > 0\nhab : a.Coprime 0\n⊢ (a * 0).primeFactorsList ~ a.primeFactorsList ++ primeFactorsList 0", "ppTerm": "?inr.inl", "assigned": true, "usedConstants": [ "Nat.Coprime", "Nat.instMulZeroClass", "Nat.coprime_zero_right", "List.Perm.refl._si...
[]
simp [(coprime_zero_right _).mp hab]
Lean.Elab.Tactic.evalSimp
Lean.Parser.Tactic.simp
Mathlib.Data.Nat.Factors
{ "line": 210, "column": 4 }
{ "line": 210, "column": 40 }
{ "line": 211, "column": 2 }
[ { "pp": "case inr.inl\na : ℕ\nha : a > 0\nhab : a.Coprime 0\n⊢ (a * 0).primeFactorsList ~ a.primeFactorsList ++ primeFactorsList 0", "ppTerm": "?inr.inl", "assigned": true, "usedConstants": [ "Nat.Coprime", "Nat.instMulZeroClass", "Nat.coprime_zero_right", "List.Perm.refl._si...
[]
simp [(coprime_zero_right _).mp hab]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Nat.Factors
{ "line": 210, "column": 4 }
{ "line": 210, "column": 40 }
{ "line": 211, "column": 2 }
[ { "pp": "case inr.inl\na : ℕ\nha : a > 0\nhab : a.Coprime 0\n⊢ (a * 0).primeFactorsList ~ a.primeFactorsList ++ primeFactorsList 0", "ppTerm": "?inr.inl", "assigned": true, "usedConstants": [ "Nat.Coprime", "Nat.instMulZeroClass", "Nat.coprime_zero_right", "List.Perm.refl._si...
[]
simp [(coprime_zero_right _).mp hab]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.Nat.Factors
{ "line": 287, "column": 4 }
{ "line": 287, "column": 40 }
{ "line": 288, "column": 2 }
[ { "pp": "case inr.inl\na p : ℕ\nha : a > 0\nhab : a.Coprime 0\n⊢ p ∈ (a * 0).primeFactorsList ↔ p ∈ a.primeFactorsList ∪ primeFactorsList 0", "ppTerm": "?inr.inl", "assigned": true, "usedConstants": [ "List.nil_union", "Nat.Coprime", "False", "Nat.instMulZeroClass", "Na...
[]
simp [(coprime_zero_right _).mp hab]
Lean.Elab.Tactic.evalSimp
Lean.Parser.Tactic.simp
Mathlib.Data.Nat.Factors
{ "line": 287, "column": 4 }
{ "line": 287, "column": 40 }
{ "line": 288, "column": 2 }
[ { "pp": "case inr.inl\na p : ℕ\nha : a > 0\nhab : a.Coprime 0\n⊢ p ∈ (a * 0).primeFactorsList ↔ p ∈ a.primeFactorsList ∪ primeFactorsList 0", "ppTerm": "?inr.inl", "assigned": true, "usedConstants": [ "List.nil_union", "Nat.Coprime", "False", "Nat.instMulZeroClass", "Na...
[]
simp [(coprime_zero_right _).mp hab]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Nat.Factors
{ "line": 287, "column": 4 }
{ "line": 287, "column": 40 }
{ "line": 288, "column": 2 }
[ { "pp": "case inr.inl\na p : ℕ\nha : a > 0\nhab : a.Coprime 0\n⊢ p ∈ (a * 0).primeFactorsList ↔ p ∈ a.primeFactorsList ∪ primeFactorsList 0", "ppTerm": "?inr.inl", "assigned": true, "usedConstants": [ "List.nil_union", "Nat.Coprime", "False", "Nat.instMulZeroClass", "Na...
[]
simp [(coprime_zero_right _).mp hab]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.GroupTheory.Index
{ "line": 638, "column": 2 }
{ "line": 639, "column": 52 }
{ "line": 641, "column": 0 }
[ { "pp": "G : Type u_1\nG' : Type u_2\ninst✝¹ : Group G\ninst✝ : Group G'\nH : Subgroup G\nK : Subgroup G'\n⊢ (H.prod K).index = H.index * K.index", "ppTerm": "?m.23", "assigned": true, "usedConstants": [ "Eq.mpr", "HMul.hMul", "_private.Mathlib.GroupTheory.Index.0.Subgroup.index_pr...
[]
simp_rw [index, ← Nat.card_prod] exact Nat.card_congr (QuotientGroup.prodEquiv H K)
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.GroupTheory.Index
{ "line": 638, "column": 2 }
{ "line": 639, "column": 52 }
{ "line": 641, "column": 0 }
[ { "pp": "G : Type u_1\nG' : Type u_2\ninst✝¹ : Group G\ninst✝ : Group G'\nH : Subgroup G\nK : Subgroup G'\n⊢ (H.prod K).index = H.index * K.index", "ppTerm": "?m.23", "assigned": true, "usedConstants": [ "Eq.mpr", "HMul.hMul", "_private.Mathlib.GroupTheory.Index.0.Subgroup.index_pr...
[]
simp_rw [index, ← Nat.card_prod] exact Nat.card_congr (QuotientGroup.prodEquiv H K)
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.GroupTheory.Index
{ "line": 975, "column": 2 }
{ "line": 978, "column": 100 }
{ "line": 980, "column": 0 }
[ { "pp": "G : Type u_1\nM : Type u_2\ninst✝³ : Group G\ninst✝² : Group M\ninst✝¹ : Finite G\ninst✝ : Finite M\nf : G →* M\nh : Nat.card ↥f.ker ≤ Nat.card G / Nat.card M\n⊢ Function.Surjective ⇑f", "ppTerm": "?m.16", "assigned": true, "usedConstants": [ "Subgroup.instFiniteSubtypeMem", "Eq...
[]
refine range_eq_top.1 <| SetLike.ext' <| Set.eq_of_subset_of_ncard_le (Set.subset_univ _) ?_ rw [Subgroup.coe_top, Set.ncard_univ, ← Nat.card_coe_set_eq, SetLike.coe_sort_coe, ← Nat.card_congr (QuotientGroup.quotientKerEquivRange f).toEquiv] exact Nat.le_of_mul_le_mul_left (f.ker.card_mul_index ▸ Nat.mul_le_of_...
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.GroupTheory.Index
{ "line": 975, "column": 2 }
{ "line": 978, "column": 100 }
{ "line": 980, "column": 0 }
[ { "pp": "G : Type u_1\nM : Type u_2\ninst✝³ : Group G\ninst✝² : Group M\ninst✝¹ : Finite G\ninst✝ : Finite M\nf : G →* M\nh : Nat.card ↥f.ker ≤ Nat.card G / Nat.card M\n⊢ Function.Surjective ⇑f", "ppTerm": "?m.16", "assigned": true, "usedConstants": [ "Subgroup.instFiniteSubtypeMem", "Eq...
[]
refine range_eq_top.1 <| SetLike.ext' <| Set.eq_of_subset_of_ncard_le (Set.subset_univ _) ?_ rw [Subgroup.coe_top, Set.ncard_univ, ← Nat.card_coe_set_eq, SetLike.coe_sort_coe, ← Nat.card_congr (QuotientGroup.quotientKerEquivRange f).toEquiv] exact Nat.le_of_mul_le_mul_left (f.ker.card_mul_index ▸ Nat.mul_le_of_...
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.ZMod.Basic
{ "line": 441, "column": 31 }
{ "line": 444, "column": 86 }
{ "line": 445, "column": 8 }
[ { "pp": "n✝ : ℕ\nR : Type u_1\ninst✝¹ : Ring R\ninst✝ : CharP R n✝\nm n : ℕ\nh : m + 1 = n + 1\na b : ZMod (m + 1)\n⊢ (finCongr h).toFun (a * b) = (finCongr h).toFun a * (finCongr h).toFun b", "ppTerm": "?m.79", "assigned": true, "usedConstants": [ "Eq.mpr", "HMul.hMul", "ZMod.comm...
[]
by dsimp [ZMod] ext rw [Fin.val_cast, Fin.val_mul, Fin.val_mul, Fin.val_cast, Fin.val_cast, ← h]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.NumberTheory.Divisors
{ "line": 127, "column": 2 }
{ "line": 136, "column": 69 }
{ "line": 138, "column": 0 }
[ { "pp": "n : ℕ\nx : ℕ × ℕ\n⊢ x ∈ n.divisorsAntidiagonal ↔ x.1 * x.2 = n ∧ n ≠ 0", "ppTerm": "?m.16", "assigned": true, "usedConstants": [ "Eq.mpr", "Nat.instCanonicallyOrderedAdd", "False", "Nat.instMulZeroClass", "Dvd.dvd", "instHDiv", "_private.Mathlib.Num...
[]
obtain ⟨a, b⟩ := x simp only [divisorsAntidiagonal, mul_div_eq_iff_dvd, mem_filterMap, mem_Icc, one_le_iff_ne_zero, Option.ite_none_right_eq_some, Option.some.injEq, Prod.ext_iff, and_left_comm, exists_eq_left] constructor · rintro ⟨han, ⟨ha, han'⟩, rfl⟩ simp [Nat.mul_div_eq_iff_dvd, han] lia · rint...
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.NumberTheory.Divisors
{ "line": 127, "column": 2 }
{ "line": 136, "column": 69 }
{ "line": 138, "column": 0 }
[ { "pp": "n : ℕ\nx : ℕ × ℕ\n⊢ x ∈ n.divisorsAntidiagonal ↔ x.1 * x.2 = n ∧ n ≠ 0", "ppTerm": "?m.16", "assigned": true, "usedConstants": [ "Eq.mpr", "Nat.instCanonicallyOrderedAdd", "False", "Nat.instMulZeroClass", "Dvd.dvd", "instHDiv", "_private.Mathlib.Num...
[]
obtain ⟨a, b⟩ := x simp only [divisorsAntidiagonal, mul_div_eq_iff_dvd, mem_filterMap, mem_Icc, one_le_iff_ne_zero, Option.ite_none_right_eq_some, Option.some.injEq, Prod.ext_iff, and_left_comm, exists_eq_left] constructor · rintro ⟨han, ⟨ha, han'⟩, rfl⟩ simp [Nat.mul_div_eq_iff_dvd, han] lia · rint...
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.NumberTheory.Divisors
{ "line": 151, "column": 2 }
{ "line": 151, "column": 31 }
{ "line": 153, "column": 0 }
[ { "pp": "n a b : ℕ\nc : a < b\nd : ℕ × ℕ\nh : a * (n / a) = n ∧ (a, n / a) = d\nha : ℕ × ℕ\nh' : b * (n / b) = n ∧ (b, n / b) = ha\n⊢ d.1 < ha.1", "ppTerm": "?m.79", "assigned": true, "usedConstants": [ "Eq.mpr", "instHDiv", "HMul.hMul", "congrArg", "id", "HDiv.hD...
[]
simpa [← h.right, ← h'.right]
Lean.Elab.Tactic.Simpa.evalSimpa
Lean.Parser.Tactic.simpa
Mathlib.NumberTheory.Divisors
{ "line": 406, "column": 2 }
{ "line": 409, "column": 28 }
{ "line": 411, "column": 0 }
[ { "pp": "n : ℕ\nh : 0 < n\n⊢ n.Perfect ↔ ∑ i ∈ n.divisors, i = 2 * n", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "Nat.perfect_iff_sum_properDivisors", "Nat.instIsOrderedAddMonoid", "HMul.hMul", "Ad...
[]
rw [perfect_iff_sum_properDivisors h, sum_divisors_eq_sum_properDivisors_add_self, two_mul] constructor <;> intro h · rw [h] · apply add_right_cancel h
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.NumberTheory.Divisors
{ "line": 406, "column": 2 }
{ "line": 409, "column": 28 }
{ "line": 411, "column": 0 }
[ { "pp": "n : ℕ\nh : 0 < n\n⊢ n.Perfect ↔ ∑ i ∈ n.divisors, i = 2 * n", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "Eq.mpr", "NonAssocSemiring.toAddCommMonoidWithOne", "Nat.perfect_iff_sum_properDivisors", "Nat.instIsOrderedAddMonoid", "HMul.hMul", "Ad...
[]
rw [perfect_iff_sum_properDivisors h, sum_divisors_eq_sum_properDivisors_add_self, two_mul] constructor <;> intro h · rw [h] · apply add_right_cancel h
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Data.Nat.Digits.Defs
{ "line": 120, "column": 80 }
{ "line": 123, "column": 78 }
{ "line": 125, "column": 0 }
[ { "pp": "b x : ℕ\nhx : x ≠ 0\nhxb : x < b\n⊢ b.digits x = [x]", "ppTerm": "?m.9", "assigned": true, "usedConstants": [ "Eq.mpr", "instHDiv", "congrArg", "Nat.le_add_left", "Nat.digits_add_two_add_one", "Exists", "id", "HDiv.hDiv", "Nat.instMod", ...
[]
by rcases exists_eq_succ_of_ne_zero hx with ⟨x, rfl⟩ rcases Nat.exists_eq_add_of_le' ((Nat.le_add_left 1 x).trans_lt hxb) with ⟨b, rfl⟩ rw [digits_add_two_add_one, div_eq_of_lt hxb, digits_zero, mod_eq_of_lt hxb]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Data.Nat.Digits.Lemmas
{ "line": 67, "column": 4 }
{ "line": 67, "column": 62 }
{ "line": 68, "column": 4 }
[ { "pp": "case neg\nb : ℕ\nhb : 1 < b\nn : ℕ\nIH : ∀ m < n, m ≠ 0 → (b.digits m).length = log b m + 1\nhn : n ≠ 0\nh : ¬n / b = 0\n⊢ (b.digits (n / b)).length + 1 = log b n + 1", "ppTerm": "?neg✝", "assigned": true, "usedConstants": [ "instHDiv", "HDiv.hDiv", "Nat.div_lt_self", ...
[ "case neg\nb : ℕ\nhb : 1 < b\nn : ℕ\nIH : ∀ m < n, m ≠ 0 → (b.digits m).length = log b m + 1\nhn : n ≠ 0\nh : ¬n / b = 0\nthis : n / b < n\n⊢ (b.digits (n / b)).length + 1 = log b n + 1" ]
have : n / b < n := div_lt_self (Nat.pos_of_ne_zero hn) hb
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1
Lean.Parser.Tactic.tacticHave__
Mathlib.Data.Nat.PadicValNat
{ "line": 107, "column": 2 }
{ "line": 107, "column": 68 }
{ "line": 108, "column": 2 }
[ { "pp": "case inl\nk n : ℕ\nhn : n ≠ 0\nhp : 0 ≠ 1\n⊢ 0 ^ k ∣ n ↔ k ≤ multiplicity 0 n", "ppTerm": "?inl", "assigned": true, "usedConstants": [ "MulOne.toOne", "False", "Nat.instMulZeroClass", "Dvd.dvd", "LinearOrderedCommMonoidWithZero.toIsBotZeroClass", "eq_fals...
[ "case inr\np k n : ℕ\nhp : p ≠ 1\nhn : n ≠ 0\nhp₁ : 1 < p\n⊢ p ^ k ∣ n ↔ k ≤ multiplicity p n" ]
· rcases k.eq_zero_or_pos with rfl | hk <;> simp [Nat.ne_of_gt, *]
Lean.Elab.Tactic.evalTacticCDot
Lean.cdot
Mathlib.Data.Nat.Digits.Lemmas
{ "line": 136, "column": 6 }
{ "line": 136, "column": 39 }
{ "line": 136, "column": 39 }
[ { "pp": "b : ℕ\nl : List ℕ\nhl : l ≠ []\nhl2 : l.getLast hl ≠ 0\n⊢ (b + 2) ^ l.length ≤ (b + 2) * ofDigits (b + 2) l", "ppTerm": "?m.38", "assigned": true, "usedConstants": [ "List.getLast", "Eq.mpr", "HMul.hMul", "congrArg", "Nat.instMonoid", "Nat.ofDigits", ...
[ "b : ℕ\nl : List ℕ\nhl : l ≠ []\nhl2 : l.getLast hl ≠ 0\n⊢ (b + 2) ^ (l.dropLast ++ [l.getLast hl]).length ≤ (b + 2) * ofDigits (b + 2) (l.dropLast ++ [l.getLast hl])" ]
← List.dropLast_append_getLast hl
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.GroupTheory.OrderOfElement
{ "line": 231, "column": 8 }
{ "line": 231, "column": 19 }
{ "line": 231, "column": 19 }
[ { "pp": "case pos\nG : Type u_1\ninst✝ : Monoid G\nx : G\nn : ℕ\nh : 0 < n\nh1 : 1 ∈ periodicPts fun x_1 ↦ x * x_1\n⊢ Nat.find h1 = n ↔ IsPeriodicPt (fun x_1 ↦ x * x_1) n 1 ∧ ∀ m < n, 0 < m → ¬IsPeriodicPt (fun x_1 ↦ x * x_1) m 1", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "Eq.mp...
[ "case pos\nG : Type u_1\ninst✝ : Monoid G\nx : G\nn : ℕ\nh : 0 < n\nh1 : 1 ∈ periodicPts fun x_1 ↦ x * x_1\n⊢ ((n > 0 ∧ IsPeriodicPt (fun x_1 ↦ x * x_1) n 1) ∧ ∀ n_1 < n, ¬(n_1 > 0 ∧ IsPeriodicPt (fun x_1 ↦ x * x_1) n_1 1)) ↔\n IsPeriodicPt (fun x_1 ↦ x * x_1) n 1 ∧ ∀ m < n, 0 < m → ¬IsPeriodicPt (fun x_1 ↦ x * ...
find_eq_iff
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.GroupTheory.OrderOfElement
{ "line": 310, "column": 2 }
{ "line": 310, "column": 34 }
{ "line": 311, "column": 2 }
[ { "pp": "G : Type u_1\ninst✝ : Monoid G\nx : G\nn a b : ℕ\nh : a ≡ b [MOD n]\nhx : x ^ n = 1\n⊢ x ^ a = x ^ b", "ppTerm": "?m.17", "assigned": true, "usedConstants": [ "PartialOrder.toPreorder", "Preorder.toLE", "le_total", "LE.le", "NPow.toPow", "Or.casesOn", ...
[ "case inl\nG : Type u_1\ninst✝ : Monoid G\nx : G\nn a b : ℕ\nh : a ≡ b [MOD n]\nhx : x ^ n = 1\nhle : a ≤ b\n⊢ x ^ a = x ^ b", "case inr\nG : Type u_1\ninst✝ : Monoid G\nx : G\nn a b : ℕ\nh : a ≡ b [MOD n]\nhx : x ^ n = 1\nhle : b ≤ a\n⊢ x ^ a = x ^ b" ]
obtain hle | hle := le_total a b
_private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalObtain
Lean.Parser.Tactic.obtain
Mathlib.Data.Nat.Factorization.Basic
{ "line": 77, "column": 2 }
{ "line": 78, "column": 6 }
{ "line": 80, "column": 0 }
[ { "pp": "n p k : ℕ\nhn : n ≠ 0\nh : n.factorization = single p k\n⊢ n = p ^ k", "ppTerm": "?m.13", "assigned": true, "usedConstants": [ "Eq.mpr", "MulOne.toOne", "Nat.instMulZeroClass", "Monoid.toMulOneClass", "congrArg", "Nat.instMonoid", "id", "NPow....
[]
rw [← Nat.prod_factorization_pow_eq_self hn, h] simp
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Nat.Factorization.Basic
{ "line": 77, "column": 2 }
{ "line": 78, "column": 6 }
{ "line": 80, "column": 0 }
[ { "pp": "n p k : ℕ\nhn : n ≠ 0\nh : n.factorization = single p k\n⊢ n = p ^ k", "ppTerm": "?m.13", "assigned": true, "usedConstants": [ "Eq.mpr", "MulOne.toOne", "Nat.instMulZeroClass", "Monoid.toMulOneClass", "congrArg", "Nat.instMonoid", "id", "NPow....
[]
rw [← Nat.prod_factorization_pow_eq_self hn, h] simp
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.GroupTheory.OrderOfElement
{ "line": 683, "column": 37 }
{ "line": 683, "column": 52 }
{ "line": 684, "column": 6 }
[ { "pp": "G : Type u_1\ninst✝ : RightCancelMonoid G\nx : G\nm✝ n m k : ℕ\nhmn : m ≤ m + k\nh : m + k ≡ m [MOD orderOf x]\nhk : x ^ k = 1\n⊢ x ^ (m + k) = x ^ m * x ^ k", "ppTerm": "?m.230", "assigned": true, "usedConstants": [ "Eq.mpr", "HMul.hMul", "Monoid.toMulOneClass", "co...
[]
by rw [pow_add]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Data.Nat.Digits.Lemmas
{ "line": 501, "column": 2 }
{ "line": 501, "column": 23 }
{ "line": 503, "column": 0 }
[ { "pp": "b : ℕ\nhb : 1 < b\nl d : ℕ\nw✝ : List ℕ\nleft✝ : w✝ ∈ fixedLengthDigits hb l\nhL : d :: w✝ ∈ consFixedLengthDigits hb l d\n⊢ d :: w✝ ≠ []", "ppTerm": "?m.43", "assigned": true, "usedConstants": [ "Nat", "List.cons_ne_nil" ], "usedFVars": [ "d", "w✝" ], ...
[]
exact cons_ne_nil d _
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.GroupTheory.OrderOfElement
{ "line": 1100, "column": 71 }
{ "line": 1100, "column": 88 }
{ "line": 1100, "column": 88 }
[ { "pp": "G : Type u_1\ninst✝ : Group G\ng : G\nk : ℤ\n⊢ g ∈ zpowers (g ^ k) ↔ ∃ x, (g ^ k) ^ x = g", "ppTerm": "?m.24", "assigned": true, "usedConstants": [ "_private.Mathlib.GroupTheory.OrderOfElement.0.mem_zpowers_zpow_iff._simp_1_7", "congrArg", "DivInvMonoid.toZPow", "Gro...
[]
← mem_zpowers_iff
Mathlib.Tactic._aux_Mathlib_Tactic_SimpRw___elabRules_Mathlib_Tactic_tacticSimp_rw____1
null
Mathlib.Data.Nat.Digits.Lemmas
{ "line": 543, "column": 4 }
{ "line": 543, "column": 79 }
{ "line": 544, "column": 4 }
[ { "pp": "case refine_1\nb : ℕ\nhb : 1 < b\nl : ℕ\nL : List ℕ\nhL : L ∈ fixedLengthDigits hb (l + 1)\nhL₁ : L.length = l + 1\nhL₂ : ∀ x ∈ L, x < b\nhL₃ : L ≠ []\n⊢ ∃ a < b, ∃ a_1 ∈ fixedLengthDigits hb l, a :: a_1 = L", "ppTerm": "?refine_1", "assigned": true, "usedConstants": [ "List.head", ...
[ "case refine_1\nb : ℕ\nhb : 1 < b\nl : ℕ\nL : List ℕ\nhL : L ∈ fixedLengthDigits hb (l + 1)\nhL₁ : L.length = l + 1\nhL₂ : ∀ x ∈ L, x < b\nhL₃ : L ≠ []\n⊢ L.tail ∈ fixedLengthDigits hb l" ]
refine ⟨L.head hL₃, hL₂ _ (L.head_mem hL₃), L.tail, ?_, cons_head_tail hL₃⟩
Lean.Elab.Tactic.evalRefine
Lean.Parser.Tactic.refine
Mathlib.Data.Nat.Factorization.Basic
{ "line": 511, "column": 7 }
{ "line": 511, "column": 59 }
{ "line": 511, "column": 60 }
[ { "pp": "n : ℕ\nhn : n ≠ 0\ni : ℕ\nhi : i ∈ n.primeFactors\n⊢ n.factorization i ≤ n", "ppTerm": "?m.37", "assigned": true, "usedConstants": [ "Finsupp.instFunLike", "Eq.mpr", "Nat.instMulZeroClass", "congrArg", "Nat.instMonoid", "LE.le", "instLENat", "...
[ "n : ℕ\nhn : n ≠ 0\ni : ℕ\nhi : i ∈ n.primeFactors\n⊢ multiplicity i n ≤ n" ]
n.factorization_def <| prime_of_mem_primeFactors hi,
Mathlib.Tactic.GRewrite.evalGRewriteSeq
null
Mathlib.Data.Nat.Choose.Factorization
{ "line": 229, "column": 4 }
{ "line": 235, "column": 52 }
{ "line": 236, "column": 4 }
[ { "pp": "case inr.inr.inr\np n k : ℕ\nhp' : p ≠ 2\nhk : p ≤ k\nhk' : p ≤ n - k\nhn : n < 3 * p\nhp : Prime p\nhkn : k ≤ n\ni : ℕ\nhi₁ : 1 ≤ i\nhi✝ : i < log p n + 1\nhi : 1 < i\n⊢ k % p ^ i + (n - k) % p ^ i < p ^ i", "ppTerm": "?inr.inr.inr", "assigned": true, "usedConstants": [ "le_refl", ...
[ "case inr.inr.inr\np n k : ℕ\nhp' : p ≠ 2\nhk : p ≤ k\nhk' : p ≤ n - k\nhp : Prime p\nhkn : k ≤ n\ni : ℕ\nhi₁ : 1 ≤ i\nhi✝ : i < log p n + 1\nhi : 1 < i\nhn : n < p ^ i\n⊢ k % p ^ i + (n - k) % p ^ i < p ^ i" ]
replace hn : n < p ^ i := by have : 3 ≤ p := lt_of_le_of_ne hp.two_le hp'.symm calc n < 3 * p := hn _ ≤ p * p := by gcongr _ = p ^ 2 := (sq p).symm _ ≤ p ^ i := pow_right_mono₀ hp.one_lt.le hi
Lean.Elab.Tactic.evalReplace
Lean.Parser.Tactic.replace
Mathlib.Data.Nat.Factorization.Basic
{ "line": 570, "column": 4 }
{ "line": 572, "column": 38 }
{ "line": 573, "column": 2 }
[ { "pp": "a b m n : ℕ\nhmn : m.Coprime n\nh : a ^ m = b ^ n\nha0 : ¬a = 0\nhn0 : ¬n = 0\nfactors : ℕ →₀ ℕ := mapRange (fun x ↦ x / n) ⋯ a.factorization\nc : ℕ := factors.prod fun x1 x2 ↦ x1 ^ x2\nhc : c = factors.prod fun x1 x2 ↦ x1 ^ x2\nha : a = c ^ n\n⊢ a = c ^ n ∧ b = c ^ m", "ppTerm": "?m.131", "ass...
[]
refine ⟨ha, ?_⟩ apply Nat.pow_left_injective hn0 simp [← h, ha, Nat.pow_right_comm]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Data.Nat.Factorization.Basic
{ "line": 570, "column": 4 }
{ "line": 572, "column": 38 }
{ "line": 573, "column": 2 }
[ { "pp": "a b m n : ℕ\nhmn : m.Coprime n\nh : a ^ m = b ^ n\nha0 : ¬a = 0\nhn0 : ¬n = 0\nfactors : ℕ →₀ ℕ := mapRange (fun x ↦ x / n) ⋯ a.factorization\nc : ℕ := factors.prod fun x1 x2 ↦ x1 ^ x2\nhc : c = factors.prod fun x1 x2 ↦ x1 ^ x2\nha : a = c ^ n\n⊢ a = c ^ n ∧ b = c ^ m", "ppTerm": "?m.131", "ass...
[]
refine ⟨ha, ?_⟩ apply Nat.pow_left_injective hn0 simp [← h, ha, Nat.pow_right_comm]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.CharP.Lemmas
{ "line": 60, "column": 39 }
{ "line": 60, "column": 56 }
{ "line": 60, "column": 56 }
[ { "pp": "case a\nR : Type u_1\ninst✝ : Semiring R\np : ℕ\nhp : Nat.Prime p\nx y : R\nh : Commute x y\nn k : ℕ\nhk✝ : k ∈ Ioo 0 (p ^ n)\nhk₀ : 0 < k\nhk : k < p ^ n\n⊢ x * y * (x ^ (k - 1) * y ^ (p ^ n - k - 1)) * ↑((p ^ n).choose k / p) =\n x * y * (x ^ (k - 1) * y ^ (p ^ n - k - 1) * ↑((p ^ n).choose k / p)...
[ "case a\nR : Type u_1\ninst✝ : Semiring R\np : ℕ\nhp : Nat.Prime p\nx y : R\nh : Commute x y\nn k : ℕ\nhk✝ : k ∈ Ioo 0 (p ^ n)\nhk₀ : 0 < k\nhk : k < p ^ n\n⊢ x * y * (x ^ (k - 1) * y ^ (p ^ n - k - 1) * ↑((p ^ n).choose k / p)) =\n x * y * (x ^ (k - 1) * y ^ (p ^ n - k - 1) * ↑((p ^ n).choose k / p))" ]
mul_assoc (x * y)
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Data.Nat.Multiplicity
{ "line": 233, "column": 6 }
{ "line": 236, "column": 23 }
{ "line": 237, "column": 6 }
[ { "pp": "p n k : ℕ\nhp : Prime p\nhkn : k ≤ p ^ n\nhk0 : k ≠ 0\nhdisj : Disjoint ({i ∈ Ico 1 n.succ | p ^ i ≤ k % p ^ i + (p ^ n - k) % p ^ i}) ({i ∈ Ico 1 n.succ | p ^ i ∣ k})\n⊢ emultiplicity p ((p ^ n).choose k) + emultiplicity p k ≤ ↑n", "ppTerm": "?m.114", "assigned": true, "usedConstants": [ ...
[ "p n k : ℕ\nhp : Prime p\nhkn : k ≤ p ^ n\nhk0 : k ≠ 0\nhdisj : Disjoint ({i ∈ Ico 1 n.succ | p ^ i ≤ k % p ^ i + (p ^ n - k) % p ^ i}) ({i ∈ Ico 1 n.succ | p ^ i ∣ k})\n⊢ ↑(#({i ∈ Ico 1 (log p (p ^ n)).succ | p ^ i ≤ k % p ^ i + (p ^ n - k) % p ^ i}) +\n #({i ∈ Ico 1 (log p (p ^ n)).succ | p ^ i ∣ k})) ≤\n ...
rw [emultiplicity_choose hp hkn (lt_succ_self _), emultiplicity_eq_card_pow_dvd (ne_of_gt hp.one_lt) hk0.bot_lt (lt_succ_of_le (log_mono_right hkn)), ← Nat.cast_add]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq
Mathlib.Tactic.ComputeDegree
{ "line": 118, "column": 4 }
{ "line": 119, "column": 50 }
{ "line": 120, "column": 2 }
[ { "pp": "case pos\nR : Type u_1\ninst✝ : Semiring R\nd df dg : ℕ\na b : R\nf g : R[X]\nh_mul_left✝ : f.natDegree ≤ df\nh_mul_right✝ : g.natDegree ≤ dg\nh_mul_left : f.coeff df = a\nh_mul_right : g.coeff dg = b\nddf : df + dg ≤ d\nh : d = df + dg\n⊢ (f * g).coeff d = a * b", "ppTerm": "?pos✝", "assigned"...
[]
subst h_mul_left h_mul_right h exact coeff_mul_add_eq_of_natDegree_le ‹_› ‹_›
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Tactic.ComputeDegree
{ "line": 118, "column": 4 }
{ "line": 119, "column": 50 }
{ "line": 120, "column": 2 }
[ { "pp": "case pos\nR : Type u_1\ninst✝ : Semiring R\nd df dg : ℕ\na b : R\nf g : R[X]\nh_mul_left✝ : f.natDegree ≤ df\nh_mul_right✝ : g.natDegree ≤ dg\nh_mul_left : f.coeff df = a\nh_mul_right : g.coeff dg = b\nddf : df + dg ≤ d\nh : d = df + dg\n⊢ (f * g).coeff d = a * b", "ppTerm": "?pos✝", "assigned"...
[]
subst h_mul_left h_mul_right h exact coeff_mul_add_eq_of_natDegree_le ‹_› ‹_›
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Polynomial.RingDivision
{ "line": 112, "column": 8 }
{ "line": 112, "column": 47 }
{ "line": 112, "column": 48 }
[ { "pp": "case neg\nR : Type u\ninst✝¹ : Semiring R\ninst✝ : NoZeroDivisors R\np q : R[X]\nhp : ¬p = 0\nhq : ¬q = 0\n⊢ (p * q).trailingDegree = p.trailingDegree + q.trailingDegree", "ppTerm": "?neg✝", "assigned": true, "usedConstants": [ "Eq.mpr", "HMul.hMul", "ENat.instNatCast", ...
[ "case neg\nR : Type u\ninst✝¹ : Semiring R\ninst✝ : NoZeroDivisors R\np q : R[X]\nhp : ¬p = 0\nhq : ¬q = 0\n⊢ (p * q).trailingDegree = ↑p.natTrailingDegree + q.trailingDegree" ]
trailingDegree_eq_natTrailingDegree hp,
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Polynomial.RingDivision
{ "line": 220, "column": 2 }
{ "line": 227, "column": 26 }
{ "line": 229, "column": 0 }
[ { "pp": "R : Type u\ninst✝ : CommRing R\np : R[X]\nhp : p.Monic\n⊢ ((-1) ^ p.natDegree * p.comp (-X)).Monic", "ppTerm": "?m.26", "assigned": true, "usedConstants": [ "one_pow", "NonUnitalNonAssocCommRing.toNonUnitalNonAssocCommSemiring", "Polynomial.C", "NegZeroClass.toNeg", ...
[]
simp only [Monic] calc ((-1) ^ p.natDegree * p.comp (-X)).leadingCoeff = (p.comp (-X) * C ((-1) ^ p.natDegree)).leadingCoeff := by simp [mul_comm] _ = 1 := by apply monic_mul_C_of_leadingCoeff_mul_eq_one simp [← pow_add, hp]
Lean.Elab.Tactic.evalTacticSeq1Indented
Lean.Parser.Tactic.tacticSeq1Indented
Mathlib.Algebra.Polynomial.RingDivision
{ "line": 220, "column": 2 }
{ "line": 227, "column": 26 }
{ "line": 229, "column": 0 }
[ { "pp": "R : Type u\ninst✝ : CommRing R\np : R[X]\nhp : p.Monic\n⊢ ((-1) ^ p.natDegree * p.comp (-X)).Monic", "ppTerm": "?m.26", "assigned": true, "usedConstants": [ "one_pow", "NonUnitalNonAssocCommRing.toNonUnitalNonAssocCommSemiring", "Polynomial.C", "NegZeroClass.toNeg", ...
[]
simp only [Monic] calc ((-1) ^ p.natDegree * p.comp (-X)).leadingCoeff = (p.comp (-X) * C ((-1) ^ p.natDegree)).leadingCoeff := by simp [mul_comm] _ = 1 := by apply monic_mul_C_of_leadingCoeff_mul_eq_one simp [← pow_add, hp]
Lean.Elab.Tactic.evalTacticSeq
Lean.Parser.Tactic.tacticSeq
Mathlib.Algebra.Polynomial.Div
{ "line": 182, "column": 4 }
{ "line": 182, "column": 65 }
{ "line": 184, "column": 0 }
[ { "pp": "case neg\nR : Type u\ninst✝ : Ring R\np q : R[X]\nhmq : q.Monic\nhq : q ≠ 1\nhpq : ¬p %ₘ q = 0\nthis : Nontrivial R\n⊢ (p %ₘ q).natDegree < q.natDegree", "ppTerm": "?neg✝", "assigned": true, "usedConstants": [ "Polynomial.modByMonic", "Polynomial.degree_modByMonic_lt", "Po...
[]
exact natDegree_lt_natDegree hpq (degree_modByMonic_lt p hmq)
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Algebra.Polynomial.Expand
{ "line": 78, "column": 38 }
{ "line": 78, "column": 54 }
{ "line": 78, "column": 54 }
[ { "pp": "R : Type u\ninst✝ : CommSemiring R\nf : R[X]\nr : R\n⊢ (expand R 1) (C r) = C r", "ppTerm": "?m.14", "assigned": true, "usedConstants": [ "Eq.mpr", "Polynomial.C", "AddMonoidAlgebra.semiring", "congrArg", "CommSemiring.toSemiring", "AlgHom", "AlgHom...
[]
by rw [expand_C]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.Polynomial.Expand
{ "line": 148, "column": 6 }
{ "line": 148, "column": 37 }
{ "line": 149, "column": 4 }
[ { "pp": "case pos\nR : Type u\ninst✝ : CommSemiring R\np : ℕ\nf : R[X]\nhp : p > 0\nhf : ¬f = 0\nhf1 : (expand R p) f ≠ 0\nn : ℕ\nhpn : p ∣ n\nhn : n / p ≤ f.natDegree\n⊢ n / p * p ≤ f.natDegree * p", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "instHDiv", "CommSemiring.toSem...
[]
exact Nat.mul_le_mul_right p hn
Lean.Elab.Tactic.evalExact
Lean.Parser.Tactic.exact
Mathlib.Algebra.Polynomial.Div
{ "line": 334, "column": 7 }
{ "line": 335, "column": 88 }
{ "line": 337, "column": 0 }
[ { "pp": "R : Type u\ninst✝ : Ring R\np q : R[X]\nhp0 : p ≠ 0\nh0q : 0 < q.degree\nthis : DecidableEq R := Classical.decEq R\nhq : ¬q.Monic\n⊢ (p /ₘ q).degree < p.degree", "ppTerm": "?m.47", "assigned": true, "usedConstants": [ "WithBot.instPreorder", "Eq.mpr", "AddMonoidAlgebra.sem...
[]
by rwa [divByMonic_eq_of_not_monic _ hq, degree_zero, bot_lt_iff_ne_bot, degree_ne_bot]
[anonymous]
Lean.Parser.Term.byTactic
Mathlib.Algebra.Polynomial.Div
{ "line": 364, "column": 2 }
{ "line": 364, "column": 75 }
{ "line": 365, "column": 2 }
[ { "pp": "R : Type u\ninst✝ : Ring R\nf g q r : R[X]\nhg : g.Monic\nh : r + g * q = f ∧ r.degree < g.degree\na✝ : Nontrivial R\nh₁ : r - f %ₘ g = -g * (q - f /ₘ g)\n⊢ f /ₘ g = q ∧ f %ₘ g = r", "ppTerm": "?m.68", "assigned": true, "usedConstants": [ "NegZeroClass.toNeg", "WithBot", "...
[ "R : Type u\ninst✝ : Ring R\nf g q r : R[X]\nhg : g.Monic\nh : r + g * q = f ∧ r.degree < g.degree\na✝ : Nontrivial R\nh₁ : r - f %ₘ g = -g * (q - f /ₘ g)\nh₂ : (r - f %ₘ g).degree = (g * (q - f /ₘ g)).degree\n⊢ f /ₘ g = q ∧ f %ₘ g = r" ]
have h₂ : degree (r - f %ₘ g) = degree (g * (q - f /ₘ g)) := by simp [h₁]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1
Lean.Parser.Tactic.tacticHave__
Mathlib.Algebra.Polynomial.Derivative
{ "line": 543, "column": 51 }
{ "line": 543, "column": 63 }
{ "line": 543, "column": 63 }
[ { "pp": "R : Type u\ninst✝ : CommSemiring R\nn k : ℕ\n⊢ ↑(n.descFactorial k) * X ^ (n - k) = C ↑(n.descFactorial k) * X ^ (n - k)", "ppTerm": "?m.35", "assigned": true, "usedConstants": [ "Eq.mpr", "Polynomial.C", "NonAssocSemiring.toAddCommMonoidWithOne", "AddMonoidAlgebra.s...
[ "R : Type u\ninst✝ : CommSemiring R\nn k : ℕ\n⊢ ↑(n.descFactorial k) * X ^ (n - k) = ↑(n.descFactorial k) * X ^ (n - k)" ]
C_eq_natCast
Lean.Elab.Tactic.evalRewriteSeq
null
Mathlib.Algebra.Polynomial.Div
{ "line": 485, "column": 4 }
{ "line": 485, "column": 68 }
{ "line": 486, "column": 4 }
[ { "pp": "case pos\nR : Type u\ninst✝ : Ring R\np : R[X]\na : R\nn : ℕ\nh : p.natDegree ≤ n\na✝ : Nontrivial R\nhp : p.natDegree = 0\n⊢ (p /ₘ (X - C a)).coeff n = 0", "ppTerm": "?pos✝", "assigned": true, "usedConstants": [ "Iff.mpr", "Finsupp.instFunLike", "Polynomial.monic_X_sub_C"...
[ "case pos\nR : Type u\ninst✝ : Ring R\np : R[X]\na : R\nn : ℕ\nh : p.natDegree ≤ n\na✝ : Nontrivial R\nhp : p.natDegree = 0\n⊢ p.degree < (X - C a).degree" ]
rw [(divByMonic_eq_zero_iff <| monic_X_sub_C a).mpr, coeff_zero]
Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1
Lean.Parser.Tactic.rwSeq