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.Data.Nat.WithBot | {
"line": 32,
"column": 2
} | {
"line": 36,
"column": 26
} | {
"line": 38,
"column": 0
} | [
{
"pp": "n m : WithBot ℕ\n⊢ n + m = 0 ↔ n = 0 ∧ m = 0",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants": [
"False",
"Nat.instMulZeroClass",
"WithBot.some",
"WithBot",
"congrArg",
"Nat.add_eq_zero_iff._simp_1",
"WithBot.zero",
"false_and",
"W... | [] | cases n
· simp [WithBot.bot_add]
cases m
· simp [WithBot.add_bot]
simp [← WithBot.coe_add] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Data.Nat.WithBot | {
"line": 32,
"column": 2
} | {
"line": 36,
"column": 26
} | {
"line": 38,
"column": 0
} | [
{
"pp": "n m : WithBot ℕ\n⊢ n + m = 0 ↔ n = 0 ∧ m = 0",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants": [
"False",
"Nat.instMulZeroClass",
"WithBot.some",
"WithBot",
"congrArg",
"Nat.add_eq_zero_iff._simp_1",
"WithBot.zero",
"false_and",
"W... | [] | cases n
· simp [WithBot.bot_add]
cases m
· simp [WithBot.add_bot]
simp [← WithBot.coe_add] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.Polynomial.Degree.Operations | {
"line": 235,
"column": 2
} | {
"line": 240,
"column": 23
} | {
"line": 242,
"column": 0
} | [
{
"pp": "R : Type u\ninst✝ : Semiring R\np q : R[X]\nH : (p + q).natDegree < p.natDegree\n⊢ p.natDegree = q.natDegree",
"ppTerm": "?m.20",
"assigned": true,
"usedConstants": [
"False",
"AddMonoidAlgebra.semiring",
"congrArg",
"Nat.lt_or_lt_of_ne",
"lt_asymm",
"Nat... | [] | by_contra h
cases Nat.lt_or_lt_of_ne h with
| inl h => exact lt_asymm h (by rwa [natDegree_add_eq_right_of_natDegree_lt h] at H)
| inr h =>
rw [natDegree_add_eq_left_of_natDegree_lt h] at H
exact LT.lt.false H | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.Polynomial.Degree.Operations | {
"line": 235,
"column": 2
} | {
"line": 240,
"column": 23
} | {
"line": 242,
"column": 0
} | [
{
"pp": "R : Type u\ninst✝ : Semiring R\np q : R[X]\nH : (p + q).natDegree < p.natDegree\n⊢ p.natDegree = q.natDegree",
"ppTerm": "?m.20",
"assigned": true,
"usedConstants": [
"False",
"AddMonoidAlgebra.semiring",
"congrArg",
"Nat.lt_or_lt_of_ne",
"lt_asymm",
"Nat... | [] | by_contra h
cases Nat.lt_or_lt_of_ne h with
| inl h => exact lt_asymm h (by rwa [natDegree_add_eq_right_of_natDegree_lt h] at H)
| inr h =>
rw [natDegree_add_eq_left_of_natDegree_lt h] at H
exact LT.lt.false H | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.Polynomial.Degree.Operations | {
"line": 292,
"column": 12
} | {
"line": 292,
"column": 28
} | {
"line": 292,
"column": 28
} | [
{
"pp": "case refine_1\nR : Type u\ninst✝ : Semiring R\np q : R[X]\ni j : ℕ\nh₁ : (i, j) ∈ antidiagonal (p.natDegree + q.natDegree)\nh₂ : (i, j) ≠ (p.natDegree, q.natDegree)\n⊢ p.coeff (i, j).1 * q.coeff (i, j).2 = 0",
"ppTerm": "?refine_1",
"assigned": true,
"usedConstants": [
"congrArg",
... | [
"case refine_1\nR : Type u\ninst✝ : Semiring R\np q : R[X]\ni j : ℕ\nh₁ : (i, j).1 + (i, j).2 = p.natDegree + q.natDegree\nh₂ : (i, j) ≠ (p.natDegree, q.natDegree)\n⊢ p.coeff (i, j).1 * q.coeff (i, j).2 = 0"
] | mem_antidiagonal | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.MonoidAlgebra.Degree | {
"line": 422,
"column": 56
} | {
"line": 422,
"column": 74
} | {
"line": 422,
"column": 75
} | [
{
"pp": "R : Type u_1\nA : Type u_3\nB : Type u_5\ninst✝³ : Semiring R\ninst✝² : LinearOrder B\ninst✝¹ : OrderBot B\np q : R[A]\nD : A → B\ninst✝ : AddZeroClass A\nh : supDegree D q < supDegree D p\na : A\nhe : D a = supDegree D p\n⊢ (p.coeff + q.coeff) (Function.invFun D (supDegree D p)) = leadingCoeff D p",
... | [
"R : Type u_1\nA : Type u_3\nB : Type u_5\ninst✝³ : Semiring R\ninst✝² : LinearOrder B\ninst✝¹ : OrderBot B\np q : R[A]\nD : A → B\ninst✝ : AddZeroClass A\nh : supDegree D q < supDegree D p\na : A\nhe : D a = supDegree D p\n⊢ p.coeff (Function.invFun D (supDegree D p)) + q.coeff (Function.invFun D (supDegree D p)) ... | Finsupp.add_apply, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.Degree.Operations | {
"line": 311,
"column": 12
} | {
"line": 311,
"column": 28
} | {
"line": 311,
"column": 28
} | [
{
"pp": "case refine_2\nR : Type u\ninst✝ : Semiring R\np q : R[X]\nH : (p.natDegree, q.natDegree) ∉ antidiagonal (p.natDegree + q.natDegree)\n⊢ (p.natDegree, q.natDegree) ∈ antidiagonal (p.natDegree + q.natDegree)",
"ppTerm": "?refine_2",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"... | [
"case refine_2\nR : Type u\ninst✝ : Semiring R\np q : R[X]\nH : (p.natDegree, q.natDegree) ∉ antidiagonal (p.natDegree + q.natDegree)\n⊢ (p.natDegree, q.natDegree).1 + (p.natDegree, q.natDegree).2 = p.natDegree + q.natDegree"
] | mem_antidiagonal | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.Degree.Operations | {
"line": 363,
"column": 65
} | {
"line": 363,
"column": 76
} | {
"line": 364,
"column": 4
} | [
{
"pp": "R : Type u\ninst✝ : Semiring R\np : R[X]\nn : ℕ\nh : 0 ≠ 0\nthis : DecidableEq R := Classical.decEq R\nhp0 : ¬p = 0\nhpn0 : p ^ n = 0\nh1 : p.leadingCoeff ^ n ≠ 0\n⊢ False",
"ppTerm": "?m.119",
"assigned": true,
"usedConstants": [
"Zero.toOfNat0",
"OfNat.ofNat",
"rfl",
... | [] | exact h rfl | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.Algebra.Polynomial.Degree.Operations | {
"line": 449,
"column": 8
} | {
"line": 449,
"column": 24
} | {
"line": 449,
"column": 24
} | [
{
"pp": "case h\nR : Type u\ninst✝ : Semiring R\ndf dg : ℕ\nf g : R[X]\nhdf : f.natDegree ≤ df\nhdg : g.natDegree ≤ dg\n⊢ (df, dg) ∈ antidiagonal (df + dg)",
"ppTerm": "?h",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"congrArg",
"Finset",
"Membership.mem",
"id",
... | [
"case h\nR : Type u\ninst✝ : Semiring R\ndf dg : ℕ\nf g : R[X]\nhdf : f.natDegree ≤ df\nhdg : g.natDegree ≤ dg\n⊢ (df, dg).1 + (df, dg).2 = df + dg"
] | mem_antidiagonal | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.Degree.Operations | {
"line": 461,
"column": 2
} | {
"line": 461,
"column": 56
} | {
"line": 462,
"column": 2
} | [
{
"pp": "R : Type u\ninst✝¹ : Semiring R\nS : Type u_1\ninst✝ : SMulZeroClass S R\na : S\np : R[X]\n⊢ (a • p).degree ≤ p.degree",
"ppTerm": "?m.15",
"assigned": true,
"usedConstants": [
"Iff.mpr",
"Finsupp.instFunLike",
"WithBot.instPreorder",
"AddMonoidAlgebra.instAddMonoid"... | [
"R : Type u\ninst✝¹ : Semiring R\nS : Type u_1\ninst✝ : SMulZeroClass S R\na : S\np : R[X]\nm : ℕ\nhm : p.degree < ↑m\n⊢ (a • p).coeff m = 0"
] | refine (degree_le_iff_coeff_zero _ _).2 fun m hm => ?_ | Lean.Elab.Tactic.evalRefine | Lean.Parser.Tactic.refine |
Mathlib.Algebra.MonoidAlgebra.Degree | {
"line": 543,
"column": 61
} | {
"line": 543,
"column": 70
} | {
"line": 543,
"column": 71
} | [
{
"pp": "case inl\nR : Type u_1\nA : Type u_3\nB : Type u_5\ninst✝⁶ : Semiring R\ninst✝⁵ : LinearOrder B\ninst✝⁴ : OrderBot B\np q : R[A]\nD : A → B\ninst✝³ : AddZeroClass A\ninst✝² : Add B\ninst✝¹ : AddLeftStrictMono B\ninst✝ : AddRightStrictMono B\nhD : Function.Injective D\nhadd : ∀ (a1 a2 : A), D (a1 + a2) ... | [
"case inl\nR : Type u_1\nA : Type u_3\nB : Type u_5\ninst✝⁶ : Semiring R\ninst✝⁵ : LinearOrder B\ninst✝⁴ : OrderBot B\np q : R[A]\nD : A → B\ninst✝³ : AddZeroClass A\ninst✝² : Add B\ninst✝¹ : AddLeftStrictMono B\ninst✝ : AddRightStrictMono B\nhD : Function.Injective D\nhadd : ∀ (a1 a2 : A), D (a1 + a2) = D a1 + D a... | mul_zero, | Mathlib.Tactic._aux_Mathlib_Tactic_SimpRw___elabRules_Mathlib_Tactic_tacticSimp_rw____1 | null |
Mathlib.Algebra.MonoidAlgebra.Degree | {
"line": 552,
"column": 32
} | {
"line": 552,
"column": 41
} | {
"line": 552,
"column": 42
} | [
{
"pp": "case inr.inl\nR : Type u_1\nA : Type u_3\nB : Type u_5\ninst✝⁷ : Semiring R\ninst✝⁶ : LinearOrder B\ninst✝⁵ : OrderBot B\np : R[A]\nD : A → B\ninst✝⁴ : AddZeroClass A\ninst✝³ : Add B\ninst✝² : AddLeftStrictMono B\ninst✝¹ : AddRightStrictMono B\ninst✝ : NoZeroDivisors R\nhD : Function.Injective D\nhadd ... | [
"case inr.inl\nR : Type u_1\nA : Type u_3\nB : Type u_5\ninst✝⁷ : Semiring R\ninst✝⁶ : LinearOrder B\ninst✝⁵ : OrderBot B\np : R[A]\nD : A → B\ninst✝⁴ : AddZeroClass A\ninst✝³ : Add B\ninst✝² : AddLeftStrictMono B\ninst✝¹ : AddRightStrictMono B\ninst✝ : NoZeroDivisors R\nhD : Function.Injective D\nhadd : ∀ (a1 a2 :... | mul_zero, | Mathlib.Tactic._aux_Mathlib_Tactic_SimpRw___elabRules_Mathlib_Tactic_tacticSimp_rw____1 | null |
Mathlib.Algebra.Polynomial.Degree.Operations | {
"line": 620,
"column": 44
} | {
"line": 620,
"column": 56
} | {
"line": 620,
"column": 56
} | [
{
"pp": "R : Type u\ninst✝¹ : Nontrivial R\ninst✝ : Semiring R\nn : ℕ\nhn : 0 < n\na : R\nthis : (C a).degree < (X ^ n).degree\n⊢ (X ^ n).degree = ↑n",
"ppTerm": "?m.66",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"AddMonoidAlgebra.semiring",
"WithBot",
"congrArg",
... | [
"R : Type u\ninst✝¹ : Nontrivial R\ninst✝ : Semiring R\nn : ℕ\nhn : 0 < n\na : R\nthis : (C a).degree < (X ^ n).degree\n⊢ ↑n = ↑n"
] | degree_X_pow | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.Eval.Degree | {
"line": 79,
"column": 22
} | {
"line": 79,
"column": 30
} | {
"line": 79,
"column": 31
} | [
{
"pp": "S : Type v\ninst✝ : CommRing S\nd : ℕ\ny : S\ncast_succ : ↑d + 1 = ↑d.succ\n⊢ ↑d.succ * (∑ x ∈ range d, ↑(d.choose x) * y ^ x + ↑(d.choose d) * y ^ d) - ↑d.succ * y ^ d =\n ∑ x_1 ∈ range (d + 1), ↑((d + 1).choose x_1) * (↑x_1 * y ^ (x_1 - 1))",
"ppTerm": "?m.120",
"assigned": true,
"used... | [
"S : Type v\ninst✝ : CommRing S\nd : ℕ\ny : S\ncast_succ : ↑d + 1 = ↑d.succ\n⊢ ↑d.succ * ∑ x ∈ range d, ↑(d.choose x) * y ^ x + ↑d.succ * (↑(d.choose d) * y ^ d) - ↑d.succ * y ^ d =\n ∑ x_1 ∈ range (d + 1), ↑((d + 1).choose x_1) * (↑x_1 * y ^ (x_1 - 1))"
] | mul_add, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.Eval.Degree | {
"line": 80,
"column": 55
} | {
"line": 80,
"column": 64
} | {
"line": 80,
"column": 65
} | [
{
"pp": "S : Type v\ninst✝ : CommRing S\nd : ℕ\ny : S\ncast_succ : ↑d + 1 = ↑d.succ\n⊢ ∑ i ∈ range d, ↑d.succ * (↑(d.choose i) * y ^ i) =\n ∑ k ∈ range d, ↑((d + 1).choose (k + 1)) * (↑(k + 1) * y ^ (k + 1 - 1)) + ↑((d + 1).choose 0) * 0",
"ppTerm": "?m.161",
"assigned": true,
"usedConstants": [
... | [
"S : Type v\ninst✝ : CommRing S\nd : ℕ\ny : S\ncast_succ : ↑d + 1 = ↑d.succ\n⊢ ∑ i ∈ range d, ↑d.succ * (↑(d.choose i) * y ^ i) =\n ∑ k ∈ range d, ↑((d + 1).choose (k + 1)) * (↑(k + 1) * y ^ (k + 1 - 1)) + 0"
] | mul_zero, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.RingTheory.Adjoin.Polynomial.Basic | {
"line": 49,
"column": 2
} | {
"line": 49,
"column": 26
} | {
"line": 49,
"column": 26
} | [
{
"pp": "R : Type u\ninst✝ : CommSemiring R\np : R[X]\n_hp : p ∈ ⊤\nS : Subalgebra R R[X] := R[X]\n⊢ p ∈ S",
"ppTerm": "?m.47",
"assigned": true,
"usedConstants": [
"Subalgebra.instSetLike",
"Eq.mpr",
"AddMonoidAlgebra.semiring",
"Semiring.toModule",
"congrArg",
"... | [
"R : Type u\ninst✝ : CommSemiring R\np : R[X]\n_hp : p ∈ ⊤\nS : Subalgebra R R[X] := R[X]\n⊢ (p.sum fun n a ↦ (monomial n) a) ∈ S"
] | rw [← sum_monomial_eq p] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Algebra.Polynomial.Eval.Degree | {
"line": 146,
"column": 2
} | {
"line": 146,
"column": 56
} | {
"line": 147,
"column": 2
} | [
{
"pp": "R : Type u\nS : Type v\ninst✝¹ : Semiring R\ninst✝ : Semiring S\nf : R →+* S\np : R[X]\n⊢ (map f p).degree ≤ p.degree",
"ppTerm": "?m.17",
"assigned": true,
"usedConstants": [
"Iff.mpr",
"Finsupp.instFunLike",
"WithBot.instPreorder",
"WithBot",
"Preorder.toLT",... | [
"R : Type u\nS : Type v\ninst✝¹ : Semiring R\ninst✝ : Semiring S\nf : R →+* S\np : R[X]\nm : ℕ\nhm : p.degree < ↑m\n⊢ (map f p).coeff m = 0"
] | refine (degree_le_iff_coeff_zero _ _).2 fun m hm => ?_ | Lean.Elab.Tactic.evalRefine | Lean.Parser.Tactic.refine |
Mathlib.Algebra.Polynomial.Eval.Degree | {
"line": 156,
"column": 34
} | {
"line": 156,
"column": 45
} | {
"line": 156,
"column": 45
} | [
{
"pp": "R : Type u\nS : Type v\ninst✝¹ : Semiring R\ninst✝ : Semiring S\nf : R →+* S\np : R[X]\nhp : map f p = 0\nhp₀ : p ≠ 0\nhpq : (map f p).degree = p.degree\n⊢ degree 0 = ⊥",
"ppTerm": "?m.102",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"AddMonoidAlgebra.semiring",
"WithB... | [
"R : Type u\nS : Type v\ninst✝¹ : Semiring R\ninst✝ : Semiring S\nf : R →+* S\np : R[X]\nhp : map f p = 0\nhp₀ : p ≠ 0\nhpq : (map f p).degree = p.degree\n⊢ ⊥ = ⊥"
] | degree_zero | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.BigOperators.Finsupp.Fin | {
"line": 35,
"column": 6
} | {
"line": 35,
"column": 44
} | {
"line": 35,
"column": 45
} | [
{
"pp": "M : Type u_1\nN : Type u_2\ninst✝¹ : Zero M\ninst✝ : AddCommMonoid N\nn : ℕ\nσ : Fin n →₀ M\ni : M\nf : Fin (n + 1) → M → N\nh : ∀ (x : Fin (n + 1)), f x 0 = 0\n⊢ (cons i σ).sum f = f 0 i + σ.sum (Fin.tail f)",
"ppTerm": "?m.36",
"assigned": true,
"usedConstants": [
"Finsupp.instFunLi... | [
"M : Type u_1\nN : Type u_2\ninst✝¹ : Zero M\ninst✝ : AddCommMonoid N\nn : ℕ\nσ : Fin n →₀ M\ni : M\nf : Fin (n + 1) → M → N\nh : ∀ (x : Fin (n + 1)), f x 0 = 0\n⊢ ∑ i_1, f i_1 ((cons i σ) i_1) = f 0 i + σ.sum (Fin.tail f)"
] | sum_fintype _ _ (fun _ => by apply h), | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.AlgebraMap | {
"line": 613,
"column": 4
} | {
"line": 613,
"column": 90
} | {
"line": 614,
"column": 4
} | [
{
"pp": "case pos\nS : Type v\ninst✝ : CommRing S\nz p : S\nf : S[X]\ni : ℕ\ndvd_eval : p ∣ ∑ n ∈ f.support, (RingHom.id S) (f.coeff n) * z ^ n\ndvd_terms : ∀ (j : ℕ), j ≠ i → p ∣ f.coeff j * z ^ j\nhi : i ∈ f.support\n⊢ p ∣ f.coeff i * z ^ i",
"ppTerm": "?pos✝",
"assigned": true,
"usedConstants": [... | [
"case pos\nS : Type v\ninst✝ : CommRing S\nz p : S\nf : S[X]\ni : ℕ\ndvd_eval : p ∣ (RingHom.id S) (f.coeff i) * z ^ i + ∑ x ∈ f.support.erase i, (RingHom.id S) (f.coeff x) * z ^ x\ndvd_terms : ∀ (j : ℕ), j ≠ i → p ∣ f.coeff j * z ^ j\nhi : i ∈ f.support\n⊢ p ∣ f.coeff i * z ^ i"
] | rw [← Finset.insert_erase hi, Finset.sum_insert (Finset.notMem_erase _ _)] at dvd_eval | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Algebra.MvPolynomial.Rename | {
"line": 137,
"column": 22
} | {
"line": 139,
"column": 90
} | {
"line": 141,
"column": 0
} | [
{
"pp": "σ : Type u_1\nτ : Type u_2\nR : Type u_4\ninst✝ : CommSemiring R\nf : σ → τ\nhf : Injective f\ni : σ\n⊢ ((killCompl hf).comp (rename f)) (X i) = (AlgHom.id R (MvPolynomial σ R)) (X i)",
"ppTerm": "?m.38",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Nat.instMulZeroClass",
... | [] | by
dsimp
rw [rename_X, killCompl, aeval_X, dite_eq_left ⟨i, rfl⟩, Equiv.ofInjective_symm_apply] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Algebra.Polynomial.AlgebraMap | {
"line": 679,
"column": 2
} | {
"line": 679,
"column": 60
} | {
"line": 681,
"column": 0
} | [
{
"pp": "R : Type u\ninst✝ : CommRing R\np q : R[X]\na : R\n⊢ p ∣ q.comp (X + C a) ↔ p.comp (X - C a) ∣ q",
"ppTerm": "?m.34",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Polynomial.C",
"NegZeroClass.toNeg",
"RingHom.instRingHomClass",
"AddMonoidAlgebra.semiring",
... | [] | simpa [sub_eq_add_neg] using dvd_comp_X_sub_C_iff p q (-a) | Lean.Elab.Tactic.Simpa.evalSimpa | Lean.Parser.Tactic.simpa |
Mathlib.Algebra.Polynomial.AlgebraMap | {
"line": 679,
"column": 2
} | {
"line": 679,
"column": 60
} | {
"line": 681,
"column": 0
} | [
{
"pp": "R : Type u\ninst✝ : CommRing R\np q : R[X]\na : R\n⊢ p ∣ q.comp (X + C a) ↔ p.comp (X - C a) ∣ q",
"ppTerm": "?m.34",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Polynomial.C",
"NegZeroClass.toNeg",
"RingHom.instRingHomClass",
"AddMonoidAlgebra.semiring",
... | [] | simpa [sub_eq_add_neg] using dvd_comp_X_sub_C_iff p q (-a) | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.Polynomial.AlgebraMap | {
"line": 679,
"column": 2
} | {
"line": 679,
"column": 60
} | {
"line": 681,
"column": 0
} | [
{
"pp": "R : Type u\ninst✝ : CommRing R\np q : R[X]\na : R\n⊢ p ∣ q.comp (X + C a) ↔ p.comp (X - C a) ∣ q",
"ppTerm": "?m.34",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Polynomial.C",
"NegZeroClass.toNeg",
"RingHom.instRingHomClass",
"AddMonoidAlgebra.semiring",
... | [] | simpa [sub_eq_add_neg] using dvd_comp_X_sub_C_iff p q (-a) | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.MvPolynomial.Degrees | {
"line": 95,
"column": 45
} | {
"line": 97,
"column": 56
} | {
"line": 99,
"column": 0
} | [
{
"pp": "R : Type u\nσ : Type u_1\ninst✝ : CommSemiring R\ns : σ →₀ ℕ\na : R\nha : a ≠ 0\n⊢ ((monomial s) a).degrees = toMultiset s",
"ppTerm": "?m.18",
"assigned": true,
"usedConstants": [
"Finsupp.instAddZeroClass",
"AddMonoidAlgebra.supDegree_single",
"Nat.instMulZeroClass",
... | [] | by
classical
exact (supDegree_single s a).trans (ite_eq_right ha) | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Algebra.Polynomial.Degree.TrailingDegree | {
"line": 155,
"column": 21
} | {
"line": 155,
"column": 62
} | {
"line": 155,
"column": 62
} | [
{
"pp": "R : Type u\ninst✝ : Semiring R\np : R[X]\nh : p.coeff 0 ≠ 0\n⊢ p.coeff p.natTrailingDegree = p.coeff 0",
"ppTerm": "?m.26",
"assigned": true,
"usedConstants": [
"Iff.mpr",
"Finsupp.instFunLike",
"Eq.mpr",
"AddMonoidAlgebra.semiring",
"congrArg",
"Nat.inst... | [
"R : Type u\ninst✝ : Semiring R\np : R[X]\nh : p.coeff 0 ≠ 0\n⊢ p.coeff 0 = p.coeff 0"
] | (natTrailingDegree_eq_zero.mpr <| .inr h) | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.Degree.TrailingDegree | {
"line": 211,
"column": 2
} | {
"line": 211,
"column": 58
} | {
"line": 213,
"column": 0
} | [
{
"pp": "R : Type u\na : R\ninst✝ : Semiring R\nn : ℕ\nha : a ≠ 0\n⊢ (C a * X ^ n).trailingDegree = ↑n",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Polynomial.C",
"AddMonoidAlgebra.semiring",
"Semiring.toModule",
"HMul.hMul",
"ENat.instNatC... | [] | rw [C_mul_X_pow_eq_monomial, trailingDegree_monomial ha] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Algebra.Polynomial.Degree.TrailingDegree | {
"line": 211,
"column": 2
} | {
"line": 211,
"column": 58
} | {
"line": 213,
"column": 0
} | [
{
"pp": "R : Type u\na : R\ninst✝ : Semiring R\nn : ℕ\nha : a ≠ 0\n⊢ (C a * X ^ n).trailingDegree = ↑n",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Polynomial.C",
"AddMonoidAlgebra.semiring",
"Semiring.toModule",
"HMul.hMul",
"ENat.instNatC... | [] | rw [C_mul_X_pow_eq_monomial, trailingDegree_monomial ha] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.Polynomial.Degree.TrailingDegree | {
"line": 211,
"column": 2
} | {
"line": 211,
"column": 58
} | {
"line": 213,
"column": 0
} | [
{
"pp": "R : Type u\na : R\ninst✝ : Semiring R\nn : ℕ\nha : a ≠ 0\n⊢ (C a * X ^ n).trailingDegree = ↑n",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Polynomial.C",
"AddMonoidAlgebra.semiring",
"Semiring.toModule",
"HMul.hMul",
"ENat.instNatC... | [] | rw [C_mul_X_pow_eq_monomial, trailingDegree_monomial ha] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.Polynomial.Degree.Lemmas | {
"line": 49,
"column": 68
} | {
"line": 49,
"column": 96
} | {
"line": 50,
"column": 14
} | [
{
"pp": "R : Type u\ninst✝ : Semiring R\np q : R[X]\nthis : DecidableEq R := Classical.decEq R\nh0 : ¬p.comp q = 0\nn : ℕ\nhn : n ∈ p.support\n⊢ ↑(C (p.coeff n)).natDegree + n • q.degree ≤ ↑(C (p.coeff n)).natDegree + n • ↑q.natDegree",
"ppTerm": "?m.207",
"assigned": true,
"usedConstants": [
... | [] | by grw [degree_le_natDegree] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Algebra.Polynomial.Degree.TrailingDegree | {
"line": 320,
"column": 6
} | {
"line": 320,
"column": 22
} | {
"line": 320,
"column": 22
} | [
{
"pp": "R : Type u\ninst✝ : Semiring R\np q : R[X]\ni j : ℕ\nh₁ : (i, j) ∈ antidiagonal (p.natTrailingDegree + q.natTrailingDegree)\nh₂ : (i, j) ≠ (p.natTrailingDegree, q.natTrailingDegree)\n⊢ p.coeff (i, j).1 * q.coeff (i, j).2 = 0",
"ppTerm": "?m.70",
"assigned": true,
"usedConstants": [
"c... | [
"R : Type u\ninst✝ : Semiring R\np q : R[X]\ni j : ℕ\nh₁ : (i, j).1 + (i, j).2 = p.natTrailingDegree + q.natTrailingDegree\nh₂ : (i, j) ≠ (p.natTrailingDegree, q.natTrailingDegree)\n⊢ p.coeff (i, j).1 * q.coeff (i, j).2 = 0"
] | mem_antidiagonal | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.Degree.TrailingDegree | {
"line": 331,
"column": 2
} | {
"line": 331,
"column": 75
} | {
"line": 332,
"column": 2
} | [
{
"pp": "R : Type u\ninst✝ : Semiring R\np q : R[X]\nh : p.trailingCoeff * q.trailingCoeff ≠ 0\nhp : p ≠ 0\n⊢ (p * q).trailingDegree = p.trailingDegree + q.trailingDegree",
"ppTerm": "?m.37",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"AddMonoidAlgebra.semiring",
"HMul.hMul",
... | [
"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"
] | have hq : q ≠ 0 := fun hq => h (by rw [hq, trailingCoeff_zero, mul_zero]) | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1 | Lean.Parser.Tactic.tacticHave__ |
Mathlib.Algebra.Polynomial.Degree.TrailingDegree | {
"line": 341,
"column": 2
} | {
"line": 341,
"column": 75
} | {
"line": 342,
"column": 2
} | [
{
"pp": "R : Type u\ninst✝ : Semiring R\np q : R[X]\nh : p.trailingCoeff * q.trailingCoeff ≠ 0\nhp : p ≠ 0\n⊢ (p * q).natTrailingDegree = p.natTrailingDegree + q.natTrailingDegree",
"ppTerm": "?m.37",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"AddMonoidAlgebra.semiring",
"HMul... | [
"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).natTrailingDegree = p.natTrailingDegree + q.natTrailingDegree"
] | have hq : q ≠ 0 := fun hq => h (by rw [hq, trailingCoeff_zero, mul_zero]) | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1 | Lean.Parser.Tactic.tacticHave__ |
Mathlib.Algebra.Polynomial.Degree.TrailingDegree | {
"line": 442,
"column": 12
} | {
"line": 442,
"column": 24
} | {
"line": 442,
"column": 24
} | [
{
"pp": "R : Type u\ninst✝ : Semiring R\np : R[X]\nn : ℕ∞\nh : p.trailingDegree < n\nh₀ : p = 0\n⊢ n ≤ p.trailingDegree",
"ppTerm": "?m.15",
"assigned": true,
"usedConstants": [
"AddMonoidAlgebra.semiring",
"instTopENat",
"congrArg",
"le_top._simp_2",
"Preorder.toLE",
... | [] | by simp [h₀] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Algebra.Polynomial.Degree.Monomial | {
"line": 37,
"column": 4
} | {
"line": 37,
"column": 80
} | {
"line": 38,
"column": 4
} | [
{
"pp": "case succ\nR : Type u\ninst✝ : Semiring R\np : R[X]\nn : ℕ\nhf : p.natDegree ≤ n + 1\nhn : p.coeff (n + 1) = 0\nh : p.natDegree = n.succ\n⊢ False",
"ppTerm": "?succ",
"assigned": true,
"usedConstants": [
"Finsupp.instFunLike",
"AddMonoidAlgebra.semiring",
"Nat.succ_eq_add_... | [
"case succ\nR : Type u\ninst✝ : Semiring R\np : R[X]\nn : ℕ\nhf : p.natDegree ≤ n + 1\nhn : p = 0\nh : p.natDegree = n.succ\n⊢ False"
] | rw [← Nat.succ_eq_add_one, ← h, coeff_natDegree, leadingCoeff_eq_zero] at hn | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Algebra.Polynomial.Degree.Lemmas | {
"line": 208,
"column": 6
} | {
"line": 213,
"column": 76
} | {
"line": 214,
"column": 6
} | [
{
"pp": "case pos.refine_1\nR : Type u\nS : Type v\ninst✝ : Semiring R\nf : S → R[X]\ns : Finset S\nh : {i | i ∈ s ∧ f i ≠ 0}.Pairwise (Ne on natDegree ∘ f)\nx : S\nhx : x ∈ s\nhx' : f x ≠ 0\nhs : s.Nonempty\n⊢ (s.sup' hs fun i ↦ (f i).degree) ≤ s.sup' hs (WithBot.some ∘ fun i ↦ (f i).natDegree)",
"ppTerm":... | [
"case pos.refine_2\nR : Type u\nS : Type v\ninst✝ : Semiring R\nf : S → R[X]\ns : Finset S\nh : {i | i ∈ s ∧ f i ≠ 0}.Pairwise (Ne on natDegree ∘ f)\nx : S\nhx : x ∈ s\nhx' : f x ≠ 0\nhs : s.Nonempty\n⊢ s.sup' hs (WithBot.some ∘ fun i ↦ (f i).natDegree) ≤ s.sup' hs fun i ↦ (f i).degree"
] | · rw [Finset.sup'_le_iff]
intro b hb
by_cases hb' : f b = 0
· simpa [hb'] using! hs
rw [degree_eq_natDegree hb', Nat.cast_withBot]
exact Finset.le_sup' (fun i : S => (natDegree (f i) : WithBot ℕ)) hb | Lean.Elab.Tactic.evalTacticCDot | Lean.cdot |
Mathlib.Algebra.Polynomial.EraseLead | {
"line": 284,
"column": 2
} | {
"line": 285,
"column": 74
} | {
"line": 287,
"column": 2
} | [
{
"pp": "case neg\nR : Type u_2\ninst✝² : Ring R\ninst✝¹ : NoZeroDivisors R\ninst✝ : Nontrivial R\nx : R\nP : R[X]\nhx : x ≠ 0\nh : P.nextCoeff = 0\nhp : ¬P = 0\nhe : ¬P.eraseLead = 0\n⊢ ((X - C x) * P).eraseLead.eraseLead = (X - C x) * P.eraseLead",
"ppTerm": "?neg✝",
"assigned": true,
"usedConstan... | [
"case neg\nR : Type u_2\ninst✝² : Ring R\ninst✝¹ : NoZeroDivisors R\ninst✝ : Nontrivial R\nx : R\nP : R[X]\nhx : x ≠ 0\nh : P.nextCoeff = 0\nhp : ¬P = 0\nhe : ¬P.eraseLead = 0\nh₁ : ((X - C x) * P).natDegree = P.natDegree + 1\n⊢ ((X - C x) * P).eraseLead.eraseLead = (X - C x) * P.eraseLead"
] | have h₁ : ((X - C x) * P).natDegree = P.natDegree + 1 := by
rw [natDegree_mul (X_sub_C_ne_zero x) hp, natDegree_X_sub_C, add_comm] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1 | Lean.Parser.Tactic.tacticHave__ |
Mathlib.Algebra.MvPolynomial.Equiv | {
"line": 483,
"column": 4
} | {
"line": 483,
"column": 78
} | {
"line": 485,
"column": 0
} | [
{
"pp": "case add\nR : Type u\nS₁ : Type v\ninst✝ : CommSemiring R\np q : MvPolynomial (Option S₁) R\nhp : ∀ (n : Option S₁ →₀ ℕ), (((optionEquivLeft R S₁) p).coeff (n none)).coeff n.some = p.coeff n\nhq : ∀ (n : Option S₁ →₀ ℕ), (((optionEquivLeft R S₁) q).coeff (n none)).coeff n.some = q.coeff n\nn : Option S... | [] | simp only [map_add, AddMonoidAlgebra.coeff_add, Finsupp.add_apply, hp, hq] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Algebra.MvPolynomial.Equiv | {
"line": 483,
"column": 4
} | {
"line": 483,
"column": 78
} | {
"line": 485,
"column": 0
} | [
{
"pp": "case add\nR : Type u\nS₁ : Type v\ninst✝ : CommSemiring R\np q : MvPolynomial (Option S₁) R\nhp : ∀ (n : Option S₁ →₀ ℕ), (((optionEquivLeft R S₁) p).coeff (n none)).coeff n.some = p.coeff n\nhq : ∀ (n : Option S₁ →₀ ℕ), (((optionEquivLeft R S₁) q).coeff (n none)).coeff n.some = q.coeff n\nn : Option S... | [] | simp only [map_add, AddMonoidAlgebra.coeff_add, Finsupp.add_apply, hp, hq] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.MvPolynomial.Equiv | {
"line": 483,
"column": 4
} | {
"line": 483,
"column": 78
} | {
"line": 485,
"column": 0
} | [
{
"pp": "case add\nR : Type u\nS₁ : Type v\ninst✝ : CommSemiring R\np q : MvPolynomial (Option S₁) R\nhp : ∀ (n : Option S₁ →₀ ℕ), (((optionEquivLeft R S₁) p).coeff (n none)).coeff n.some = p.coeff n\nhq : ∀ (n : Option S₁ →₀ ℕ), (((optionEquivLeft R S₁) q).coeff (n none)).coeff n.some = q.coeff n\nn : Option S... | [] | simp only [map_add, AddMonoidAlgebra.coeff_add, Finsupp.add_apply, hp, hq] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.Polynomial.Degree.Lemmas | {
"line": 284,
"column": 2
} | {
"line": 284,
"column": 38
} | {
"line": 286,
"column": 0
} | [
{
"pp": "R : Type u\nS : Type v\ninst✝¹ : Semiring R\ninst✝ : Semiring S\nf : R →+* S\nhf : Function.Injective ⇑f\np : R[X]\n⊢ (map f p).degree = p.degree",
"ppTerm": "?m.18",
"assigned": true,
"usedConstants": [
"RingHom.instRingHomClass",
"AddMonoidAlgebra.semiring",
"WithBot",
... | [] | simp [hf, map_ne_zero_iff, ne_or_eq] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Algebra.Polynomial.Degree.Lemmas | {
"line": 284,
"column": 2
} | {
"line": 284,
"column": 38
} | {
"line": 286,
"column": 0
} | [
{
"pp": "R : Type u\nS : Type v\ninst✝¹ : Semiring R\ninst✝ : Semiring S\nf : R →+* S\nhf : Function.Injective ⇑f\np : R[X]\n⊢ (map f p).degree = p.degree",
"ppTerm": "?m.18",
"assigned": true,
"usedConstants": [
"RingHom.instRingHomClass",
"AddMonoidAlgebra.semiring",
"WithBot",
... | [] | simp [hf, map_ne_zero_iff, ne_or_eq] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.Polynomial.Degree.Lemmas | {
"line": 284,
"column": 2
} | {
"line": 284,
"column": 38
} | {
"line": 286,
"column": 0
} | [
{
"pp": "R : Type u\nS : Type v\ninst✝¹ : Semiring R\ninst✝ : Semiring S\nf : R →+* S\nhf : Function.Injective ⇑f\np : R[X]\n⊢ (map f p).degree = p.degree",
"ppTerm": "?m.18",
"assigned": true,
"usedConstants": [
"RingHom.instRingHomClass",
"AddMonoidAlgebra.semiring",
"WithBot",
... | [] | simp [hf, map_ne_zero_iff, ne_or_eq] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.Polynomial.EraseLead | {
"line": 307,
"column": 54
} | {
"line": 307,
"column": 63
} | {
"line": 307,
"column": 64
} | [
{
"pp": "case neg.inl.succ\nR : Type u_2\ninst✝² : Ring R\ninst✝¹ : NoZeroDivisors R\ninst✝ : Nontrivial R\nx : R\nP : R[X]\nhx : x ≠ 0\nh : P.nextCoeff = 0\nhp : ¬P = 0\nhe : ¬P.eraseLead = 0\nh₁ : ((X - C x) * P).natDegree = P.natDegree + 1\ndP : ℕ\nhdP : P.natDegree = dP + 2\nh₂ : ((X - C x) * P).nextCoeff ≠... | [
"case neg.inl.succ\nR : Type u_2\ninst✝² : Ring R\ninst✝¹ : NoZeroDivisors R\ninst✝ : Nontrivial R\nx : R\nP : R[X]\nhx : x ≠ 0\nh : P.nextCoeff = 0\nhp : ¬P = 0\nhe : ¬P.eraseLead = 0\nh₁ : ((X - C x) * P).natDegree = P.natDegree + 1\ndP : ℕ\nhdP : P.natDegree = dP + 2\nh₂ : ((X - C x) * P).nextCoeff ≠ 0\nn : ℕ\nh... | mul_zero, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.Reverse | {
"line": 159,
"column": 30
} | {
"line": 159,
"column": 39
} | {
"line": 159,
"column": 40
} | [
{
"pp": "case pos\nR : Type u_1\ninst✝ : Semiring R\nN O : ℕ\nf : R[X]\nCf : #f.support ≤ Nat.succ 0\nNf : f.natDegree ≤ N\ncg : ℕ\nhcg : ∀ (g : R[X]), #g.support ≤ cg.succ → g.natDegree ≤ O → reflect (N + O) (f * g) = reflect N f * reflect O g\ng : R[X]\nCg : #g.support ≤ (cg + 1).succ\nOg : g.natDegree ≤ O\ng... | [
"case pos\nR : Type u_1\ninst✝ : Semiring R\nN O : ℕ\nf : R[X]\nCf : #f.support ≤ Nat.succ 0\nNf : f.natDegree ≤ N\ncg : ℕ\nhcg : ∀ (g : R[X]), #g.support ≤ cg.succ → g.natDegree ≤ O → reflect (N + O) (f * g) = reflect N f * reflect O g\ng : R[X]\nCg : #g.support ≤ (cg + 1).succ\nOg : g.natDegree ≤ O\ng0 : g = 0\n⊢... | mul_zero, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.Reverse | {
"line": 159,
"column": 40
} | {
"line": 159,
"column": 49
} | {
"line": 159,
"column": 50
} | [
{
"pp": "case pos\nR : Type u_1\ninst✝ : Semiring R\nN O : ℕ\nf : R[X]\nCf : #f.support ≤ Nat.succ 0\nNf : f.natDegree ≤ N\ncg : ℕ\nhcg : ∀ (g : R[X]), #g.support ≤ cg.succ → g.natDegree ≤ O → reflect (N + O) (f * g) = reflect N f * reflect O g\ng : R[X]\nCg : #g.support ≤ (cg + 1).succ\nOg : g.natDegree ≤ O\ng... | [
"case pos\nR : Type u_1\ninst✝ : Semiring R\nN O : ℕ\nf : R[X]\nCf : #f.support ≤ Nat.succ 0\nNf : f.natDegree ≤ N\ncg : ℕ\nhcg : ∀ (g : R[X]), #g.support ≤ cg.succ → g.natDegree ≤ O → reflect (N + O) (f * g) = reflect N f * reflect O g\ng : R[X]\nCg : #g.support ≤ (cg + 1).succ\nOg : g.natDegree ≤ O\ng0 : g = 0\n⊢... | mul_zero, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.Reverse | {
"line": 160,
"column": 41
} | {
"line": 160,
"column": 49
} | {
"line": 160,
"column": 50
} | [
{
"pp": "case neg\nR : Type u_1\ninst✝ : Semiring R\nN O : ℕ\nf : R[X]\nCf : #f.support ≤ Nat.succ 0\nNf : f.natDegree ≤ N\ncg : ℕ\nhcg : ∀ (g : R[X]), #g.support ≤ cg.succ → g.natDegree ≤ O → reflect (N + O) (f * g) = reflect N f * reflect O g\ng : R[X]\nCg : #g.support ≤ (cg + 1).succ\nOg : g.natDegree ≤ O\ng... | [
"case neg\nR : Type u_1\ninst✝ : Semiring R\nN O : ℕ\nf : R[X]\nCf : #f.support ≤ Nat.succ 0\nNf : f.natDegree ≤ N\ncg : ℕ\nhcg : ∀ (g : R[X]), #g.support ≤ cg.succ → g.natDegree ≤ O → reflect (N + O) (f * g) = reflect N f * reflect O g\ng : R[X]\nCg : #g.support ≤ (cg + 1).succ\nOg : g.natDegree ≤ O\ng0 : ¬g = 0\n... | mul_add, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.MvPolynomial.Equiv | {
"line": 569,
"column": 2
} | {
"line": 570,
"column": 16
} | {
"line": 572,
"column": 0
} | [
{
"pp": "R : Type u\nσ : Type u_1\ninst✝ : CommSemiring R\np : MvPolynomial (Option σ) R\nm : ℕ\nd : σ →₀ ℕ\n⊢ (((optionEquivLeft R σ) p).coeff m).coeff d = p.coeff (optionElim m d)",
"ppTerm": "?m.22",
"assigned": true,
"usedConstants": [
"Finsupp.instFunLike",
"Eq.mpr",
"Nat.inst... | [] | rw [← optionEquivLeft_coeff_some_coeff_none]
congr <;> simp | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.MvPolynomial.Equiv | {
"line": 569,
"column": 2
} | {
"line": 570,
"column": 16
} | {
"line": 572,
"column": 0
} | [
{
"pp": "R : Type u\nσ : Type u_1\ninst✝ : CommSemiring R\np : MvPolynomial (Option σ) R\nm : ℕ\nd : σ →₀ ℕ\n⊢ (((optionEquivLeft R σ) p).coeff m).coeff d = p.coeff (optionElim m d)",
"ppTerm": "?m.22",
"assigned": true,
"usedConstants": [
"Finsupp.instFunLike",
"Eq.mpr",
"Nat.inst... | [] | rw [← optionEquivLeft_coeff_some_coeff_none]
congr <;> simp | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.Polynomial.Reverse | {
"line": 160,
"column": 76
} | {
"line": 160,
"column": 84
} | {
"line": 160,
"column": 85
} | [
{
"pp": "case neg\nR : Type u_1\ninst✝ : Semiring R\nN O : ℕ\nf : R[X]\nCf : #f.support ≤ Nat.succ 0\nNf : f.natDegree ≤ N\ncg : ℕ\nhcg : ∀ (g : R[X]), #g.support ≤ cg.succ → g.natDegree ≤ O → reflect (N + O) (f * g) = reflect N f * reflect O g\ng : R[X]\nCg : #g.support ≤ (cg + 1).succ\nOg : g.natDegree ≤ O\ng... | [
"case neg\nR : Type u_1\ninst✝ : Semiring R\nN O : ℕ\nf : R[X]\nCf : #f.support ≤ Nat.succ 0\nNf : f.natDegree ≤ N\ncg : ℕ\nhcg : ∀ (g : R[X]), #g.support ≤ cg.succ → g.natDegree ≤ O → reflect (N + O) (f * g) = reflect N f * reflect O g\ng : R[X]\nCg : #g.support ≤ (cg + 1).succ\nOg : g.natDegree ≤ O\ng0 : ¬g = 0\n... | mul_add, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.MvPolynomial.Equiv | {
"line": 648,
"column": 4
} | {
"line": 648,
"column": 78
} | {
"line": 649,
"column": 2
} | [
{
"pp": "case add\nR : Type u\ninst✝ : CommSemiring R\nn : ℕ\np q : MvPolynomial (Fin (n + 1)) R\nhp : ∀ (m : Fin n →₀ ℕ) (i : ℕ), (((finSuccEquiv R n) p).coeff i).coeff m = p.coeff (cons i m)\nhq : ∀ (m : Fin n →₀ ℕ) (i : ℕ), (((finSuccEquiv R n) q).coeff i).coeff m = q.coeff (cons i m)\nm : Fin n →₀ ℕ\ni : ℕ\... | [] | simp only [map_add, AddMonoidAlgebra.coeff_add, Finsupp.add_apply, hp, hq] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Algebra.MvPolynomial.Equiv | {
"line": 648,
"column": 4
} | {
"line": 648,
"column": 78
} | {
"line": 649,
"column": 2
} | [
{
"pp": "case add\nR : Type u\ninst✝ : CommSemiring R\nn : ℕ\np q : MvPolynomial (Fin (n + 1)) R\nhp : ∀ (m : Fin n →₀ ℕ) (i : ℕ), (((finSuccEquiv R n) p).coeff i).coeff m = p.coeff (cons i m)\nhq : ∀ (m : Fin n →₀ ℕ) (i : ℕ), (((finSuccEquiv R n) q).coeff i).coeff m = q.coeff (cons i m)\nm : Fin n →₀ ℕ\ni : ℕ\... | [] | simp only [map_add, AddMonoidAlgebra.coeff_add, Finsupp.add_apply, hp, hq] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.MvPolynomial.Equiv | {
"line": 648,
"column": 4
} | {
"line": 648,
"column": 78
} | {
"line": 649,
"column": 2
} | [
{
"pp": "case add\nR : Type u\ninst✝ : CommSemiring R\nn : ℕ\np q : MvPolynomial (Fin (n + 1)) R\nhp : ∀ (m : Fin n →₀ ℕ) (i : ℕ), (((finSuccEquiv R n) p).coeff i).coeff m = p.coeff (cons i m)\nhq : ∀ (m : Fin n →₀ ℕ) (i : ℕ), (((finSuccEquiv R n) q).coeff i).coeff m = q.coeff (cons i m)\nm : Fin n →₀ ℕ\ni : ℕ\... | [] | simp only [map_add, AddMonoidAlgebra.coeff_add, Finsupp.add_apply, hp, hq] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.Polynomial.Degree.Lemmas | {
"line": 417,
"column": 2
} | {
"line": 418,
"column": 59
} | {
"line": 419,
"column": 2
} | [
{
"pp": "R : Type u\ninst✝¹ : Semiring R\ninst✝ : NoZeroDivisors R\np q : R[X]\nh : p.comp q = 0\n⊢ p = 0 ∨ eval (q.coeff 0) p = 0 ∧ q = C (q.coeff 0)",
"ppTerm": "?m.38",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Nat.instCanonicallyOrderedAdd",
"Nat.instMulZeroClass",
... | [
"R : Type u\ninst✝¹ : Semiring R\ninst✝ : NoZeroDivisors R\np q : R[X]\nh : p.comp q = 0\nkey : p.natDegree = 0 ∨ q.natDegree = 0\n⊢ p = 0 ∨ eval (q.coeff 0) p = 0 ∧ q = C (q.coeff 0)"
] | have key : p.natDegree = 0 ∨ q.natDegree = 0 := by
rw [← mul_eq_zero, ← natDegree_comp, h, natDegree_zero] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1 | Lean.Parser.Tactic.tacticHave__ |
Mathlib.Algebra.Polynomial.Monic | {
"line": 289,
"column": 2
} | {
"line": 289,
"column": 99
} | {
"line": 291,
"column": 0
} | [
{
"pp": "case refine_2\nR : Type u\nι : Type y\ninst✝ : CommSemiring R\nt✝ : Multiset ι\nf : ι → R[X]\na : ι\nt : Multiset ι\nih : (∀ i ∈ t, (f i).Monic) → (Multiset.map f t).prod.Monic\nht : ∀ i ∈ a ::ₘ t, (f i).Monic\n⊢ (f a * (Multiset.map f t).prod).Monic",
"ppTerm": "?refine_2",
"assigned": true,
... | [] | exact (ht _ (Multiset.mem_cons_self _ _)).mul (ih fun _ hi => ht _ (Multiset.mem_cons_of_mem hi)) | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.Algebra.Polynomial.Monic | {
"line": 311,
"column": 4
} | {
"line": 311,
"column": 28
} | {
"line": 312,
"column": 2
} | [
{
"pp": "case refine_1\nR : Type u\nι : Type y\ninst✝ : CommSemiring R\nt : Multiset ι\nf : ι → R[X]\n⊢ (C 1).nextCoeff = 0",
"ppTerm": "?refine_1",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Polynomial.C",
"NonAssocSemiring.toAddCommMonoidWithOne",
"congrArg",
"Co... | [] | rw [nextCoeff_C_eq_zero] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Algebra.Polynomial.Reverse | {
"line": 280,
"column": 12
} | {
"line": 280,
"column": 21
} | {
"line": 280,
"column": 22
} | [
{
"pp": "case pos\nR : Type u_2\ninst✝¹ : Semiring R\ninst✝ : NoZeroDivisors R\nf g : R[X]\nf0 : ¬f = 0\ng0 : g = 0\n⊢ (f * 0).reverse = f.reverse * reverse 0",
"ppTerm": "?pos✝",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"AddMonoidAlgebra.semiring",
"HMul.hMul",
"MulZer... | [
"case pos\nR : Type u_2\ninst✝¹ : Semiring R\ninst✝ : NoZeroDivisors R\nf g : R[X]\nf0 : ¬f = 0\ng0 : g = 0\n⊢ reverse 0 = f.reverse * reverse 0"
] | mul_zero, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.EraseLead | {
"line": 430,
"column": 10
} | {
"line": 430,
"column": 40
} | {
"line": 430,
"column": 40
} | [
{
"pp": "case pos\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 =... | [
"case pos\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 = ∑ i, C (x i... | ← Fin.castSucc_lt_castSucc_iff | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Algebra.Polynomial.Monic | {
"line": 583,
"column": 4
} | {
"line": 588,
"column": 8
} | {
"line": 589,
"column": 2
} | [
{
"pp": "case mp\nR : Type u\ninst✝ : Semiring R\np : R[X]\nh : IsUnit p.leadingCoeff\nq : R[X]\n⊢ q * p = 0 → q = 0",
"ppTerm": "?mp",
"assigned": true,
"usedConstants": [
"Units.val",
"Polynomial.C",
"NonAssocSemiring.toAddCommMonoidWithOne",
"MulOne.toOne",
"AddMonoi... | [] | intro hp
replace hp := congr_arg (· * C ↑h.unit⁻¹) hp
simp only [zero_mul] at hp
rwa [mul_assoc, Monic.mul_left_eq_zero_iff] at hp
refine monic_mul_C_of_leadingCoeff_mul_eq_one ?_
simp | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.Polynomial.Monic | {
"line": 583,
"column": 4
} | {
"line": 588,
"column": 8
} | {
"line": 589,
"column": 2
} | [
{
"pp": "case mp\nR : Type u\ninst✝ : Semiring R\np : R[X]\nh : IsUnit p.leadingCoeff\nq : R[X]\n⊢ q * p = 0 → q = 0",
"ppTerm": "?mp",
"assigned": true,
"usedConstants": [
"Units.val",
"Polynomial.C",
"NonAssocSemiring.toAddCommMonoidWithOne",
"MulOne.toOne",
"AddMonoi... | [] | intro hp
replace hp := congr_arg (· * C ↑h.unit⁻¹) hp
simp only [zero_mul] at hp
rwa [mul_assoc, Monic.mul_left_eq_zero_iff] at hp
refine monic_mul_C_of_leadingCoeff_mul_eq_one ?_
simp | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.Ring.GeomSum | {
"line": 243,
"column": 15
} | {
"line": 243,
"column": 25
} | {
"line": 243,
"column": 26
} | [
{
"pp": "R : Type u_1\ninst✝ : Ring R\nx : R\nn : ℕ\nthis : -((∑ i ∈ range n, x ^ i) * (x - 1)) = 1 - x ^ n\n⊢ (∑ i ∈ range n, x ^ i) * (1 - x) = 1 - x ^ n",
"ppTerm": "?m.52",
"assigned": true,
"usedConstants": [
"HMul.hMul",
"Ring.toNonAssocRing",
"AddGroupWithOne.toAddGroup",
... | [
"R : Type u_1\ninst✝ : Ring R\nx : R\nn : ℕ\nthis : (∑ i ∈ range n, x ^ i) * -(x - 1) = 1 - x ^ n\n⊢ (∑ i ∈ range n, x ^ i) * (1 - x) = 1 - x ^ n"
] | ← mul_neg, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.RingTheory.Polynomial.Basic | {
"line": 174,
"column": 17
} | {
"line": 174,
"column": 28
} | {
"line": 174,
"column": 28
} | [
{
"pp": "case pos\nR : Type u\ninst✝ : Semiring R\ns : Set R[X]\np : R[X]\nhs : s.Nonempty\nhp : p ∈ Submodule.span R s\nh : ∀ p' ∈ s, p'.degree < degree 0\nhp_zero : p = 0\n⊢ False",
"ppTerm": "?pos✝",
"assigned": true,
"usedConstants": [
"AddMonoidAlgebra.semiring",
"WithBot",
"P... | [
"case pos\nR : Type u\ninst✝ : Semiring R\ns : Set R[X]\np : R[X]\nhs : s.Nonempty\nhp : p ∈ Submodule.span R s\nh : ∀ p' ∈ s, p'.degree < ⊥\nhp_zero : p = 0\n⊢ False"
] | degree_zero | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.RingTheory.Polynomial.Basic | {
"line": 197,
"column": 2
} | {
"line": 197,
"column": 29
} | {
"line": 198,
"column": 2
} | [
{
"pp": "R : Type u\ninst✝ : Semiring R\ns : Set R[X]\ns_fin : s.Finite\n⊢ ∃ n, Submodule.span R s ≤ degreeLE R ↑n",
"ppTerm": "?m.11",
"assigned": true,
"usedConstants": [
"Submodule",
"WithBot",
"Semiring.toModule",
"PartialOrder.toPreorder",
"WithBot.instNatCast",
... | [
"case pos\nR : Type u\ninst✝ : Semiring R\ns : Set R[X]\ns_fin : s.Finite\ns_emp : s.Nonempty\n⊢ ∃ n, Submodule.span R s ≤ degreeLE R ↑n",
"case neg\nR : Type u\ninst✝ : Semiring R\ns : Set R[X]\ns_fin : s.Finite\ns_emp : ¬s.Nonempty\n⊢ ∃ n, Submodule.span R s ≤ degreeLE R ↑n"
] | by_cases s_emp : s.Nonempty | «_aux_Init_ByCases___macroRules_tacticBy_cases_:__2» | «tacticBy_cases_:_» |
Mathlib.RingTheory.Adjoin.FG | {
"line": 53,
"column": 8
} | {
"line": 53,
"column": 18
} | {
"line": 54,
"column": 8
} | [
{
"pp": "R : Type u\nA : Type v\ninst✝² : CommSemiring R\ninst✝¹ : CommSemiring A\ninst✝ : Algebra R A\ns t : Set A\nh1 : (Subalgebra.toSubmodule (adjoin R s)).FG\nh2 : (Subalgebra.toSubmodule (adjoin (↥(adjoin R s)) t)).FG\np : Set A\nhp : p.Finite\nhp' : span R p = Subalgebra.toSubmodule (adjoin R s)\nq : Set... | [
"R : Type u\nA : Type v\ninst✝² : CommSemiring R\ninst✝¹ : CommSemiring A\ninst✝ : Algebra R A\ns t : Set A\nh1 : (Subalgebra.toSubmodule (adjoin R s)).FG\nh2 : (Subalgebra.toSubmodule (adjoin (↥(adjoin R s)) t)).FG\np : Set A\nhp : p.Finite\nhp' : span R p = Subalgebra.toSubmodule (adjoin R s)\nq : Set A\nhq : q.F... | rw [← hp'] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.RingTheory.Adjoin.Tower | {
"line": 40,
"column": 4
} | {
"line": 42,
"column": 13
} | {
"line": 43,
"column": 2
} | [
{
"pp": "C : Type u_1\nD : Type u_2\nE : Type u_3\ninst✝⁶ : CommSemiring C\ninst✝⁵ : CommSemiring D\ninst✝⁴ : CommSemiring E\ninst✝³ : Algebra C D\ninst✝² : Algebra C E\ninst✝¹ : Algebra D E\ninst✝ : IsScalarTower C D E\nS : Set E\nthis : Set.range ⇑(algebraMap D E) = Set.range ⇑(algebraMap (↥(Subalgebra.map (I... | [] | ext x
change x ∈ Subsemiring.closure (_ ∪ S) ↔ x ∈ Subsemiring.closure (_ ∪ S)
rw [this] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.RingTheory.Adjoin.Tower | {
"line": 40,
"column": 4
} | {
"line": 42,
"column": 13
} | {
"line": 43,
"column": 2
} | [
{
"pp": "C : Type u_1\nD : Type u_2\nE : Type u_3\ninst✝⁶ : CommSemiring C\ninst✝⁵ : CommSemiring D\ninst✝⁴ : CommSemiring E\ninst✝³ : Algebra C D\ninst✝² : Algebra C E\ninst✝¹ : Algebra D E\ninst✝ : IsScalarTower C D E\nS : Set E\nthis : Set.range ⇑(algebraMap D E) = Set.range ⇑(algebraMap (↥(Subalgebra.map (I... | [] | ext x
change x ∈ Subsemiring.closure (_ ∪ S) ↔ x ∈ Subsemiring.closure (_ ∪ S)
rw [this] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.Polynomial.EraseLead | {
"line": 476,
"column": 2
} | {
"line": 481,
"column": 7
} | {
"line": 482,
"column": 2
} | [
{
"pp": "case refine_1\nR : Type u_1\ninst✝ : Semiring R\nf : R[X]\nh : #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": "?refine_1",
"assigned": true,
"usedConstants": [
"E... | [
"case refine_2\nR : Type u_1\ninst✝ : Semiring R\nf : R[X]\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) →\n #f.support = 3"
] | · 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 | Lean.Elab.Tactic.evalTacticCDot | Lean.cdot |
Mathlib.RingTheory.Polynomial.Basic | {
"line": 325,
"column": 56
} | {
"line": 325,
"column": 73
} | {
"line": 327,
"column": 0
} | [
{
"pp": "R : Type u\ninst✝ : Ring R\ni : ℕ\n⊢ (if i = 0 then 1 else 0) = ↑(if i = 0 then 1 else 0)",
"ppTerm": "?m.41",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoidWithOne",
"Nat.instMulZeroClass",
"Subring.instSetLike",
"Ring.toNonAs... | [] | split_ifs <;> rfl | Lean.Parser.Tactic.«_aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tactic_<;>__1» | Lean.Parser.Tactic.«tactic_<;>_» |
Mathlib.Algebra.Algebra.Subalgebra.Operations | {
"line": 69,
"column": 2
} | {
"line": 69,
"column": 61
} | {
"line": 70,
"column": 2
} | [
{
"pp": "R : Type u_1\nS : Type u_2\ninst✝² : CommSemiring R\ninst✝¹ : CommSemiring S\ninst✝ : Algebra R S\nS' : Subalgebra R S\nι : Type u_3\nι' : Finset ι\ns l : ι → S\ne : ∑ i ∈ ι', l i * s i = 1\nhs : ∀ (i : ι), s i ∈ S'\nhl : ∀ (i : ι), l i ∈ S'\nx : S\nn : ι → ℕ\nhn : ∀ (i : ι), s i ^ n i • x ∈ S'\ns' : ι... | [
"R : Type u_1\nS : Type u_2\ninst✝² : CommSemiring R\ninst✝¹ : CommSemiring S\ninst✝ : Algebra R S\nS' : Subalgebra R S\nι : Type u_3\nι' : Finset ι\ns l : ι → S\ne : ∑ i ∈ ι', l i * s i = 1\nhs : ∀ (i : ι), s i ∈ S'\nhl : ∀ (i : ι), l i ∈ S'\nx : S\nn : ι → ℕ\nhn : ∀ (i : ι), s i ^ n i • x ∈ S'\ns' : ι → ↥S' := fu... | refine Submodule.smul_mem _ (⟨_, pow_mem (hs i) _⟩ : S') ?_ | Lean.Elab.Tactic.evalRefine | Lean.Parser.Tactic.refine |
Mathlib.LinearAlgebra.Dimension.Finite | {
"line": 113,
"column": 25
} | {
"line": 118,
"column": 32
} | {
"line": 120,
"column": 0
} | [
{
"pp": "R : Type u\nM : Type v\ninst✝³ : Semiring R\ninst✝² : AddCommMonoid M\ninst✝¹ : Module R M\ninst✝ : Free R M\nn : ℕ\nh : Module.rank R M = ↑n\n⊢ Module.Finite R M",
"ppTerm": "?m.13",
"assigned": true,
"usedConstants": [
"Nontrivial",
"Preorder.toLT",
"LE.le.trans_eq",
... | [] | by
nontriviality R
obtain ⟨⟨ι, b⟩⟩ := Module.Free.exists_basis (R := R) (M := M)
have := mk_lt_aleph0_iff.mp <|
b.linearIndependent.cardinal_le_rank |>.trans_eq h |>.trans_lt natCast_lt_aleph0
exact Module.Finite.of_basis b | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.RingTheory.Polynomial.Basic | {
"line": 862,
"column": 4
} | {
"line": 862,
"column": 81
} | {
"line": 863,
"column": 2
} | [
{
"pp": "R : Type u\nM : Type w\ninst✝² : CommRing R\ninst✝¹ : AddCommGroup M\ninst✝ : Module R M\nf : M →ₗ[R] M\np q : R[X]\nv : M\nhv : v ∈ ((aeval f) p).ker ⊔ ((aeval f) q).ker\nx : M\nhx : x ∈ ((aeval f) p).ker\ny : M\nhy : y ∈ ((aeval f) q).ker\nhxy : x + y = v\n⊢ ((aeval f) (p * q)) x = 0",
"ppTerm": ... | [] | rw [mul_comm, aeval_mul, mul_apply_eq_comp, LinearMap.mem_ker.1 hx, map_zero] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.LinearAlgebra.LinearPMap | {
"line": 179,
"column": 8
} | {
"line": 179,
"column": 34
} | {
"line": 180,
"column": 8
} | [
{
"pp": "case a\nR : Type u_1\nS : Type u_2\nT : Type u_3\ninst✝⁸ : Ring R\ninst✝⁷ : Ring S\ninst✝⁶ : Ring T\nσ : R →+* S\nτ : S →+* T\nE : Type u_4\ninst✝⁵ : AddCommGroup E\ninst✝⁴ : Module R E\nF : Type u_5\ninst✝³ : AddCommGroup F\ninst✝² : Module S F\nG : Type u_6\ninst✝¹ : AddCommGroup G\ninst✝ : Module T ... | [
"case a\nR : Type u_1\nS : Type u_2\nT : Type u_3\ninst✝⁸ : Ring R\ninst✝⁷ : Ring S\ninst✝⁶ : Ring T\nσ : R →+* S\nτ : S →+* T\nE : Type u_4\ninst✝⁵ : AddCommGroup E\ninst✝⁴ : Module R E\nF : Type u_5\ninst✝³ : AddCommGroup F\ninst✝² : Module S F\nG : Type u_6\ninst✝¹ : AddCommGroup G\ninst✝ : Module T G\nx : E\ny ... | simp only [mul_smul, this] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.RingTheory.FiniteType | {
"line": 671,
"column": 2
} | {
"line": 680,
"column": 59
} | {
"line": 681,
"column": 2
} | [
{
"pp": "case refine_2\nR : Type u_1\ninst✝ : CommRing R\nM : Type u_1\nx✝² : AddCommMonoid M\nx✝¹ : Module R M\nx✝ : Module.Finite R M\nN : Submodule R M\nf : ↥N →ₗ[R] M\nhf : Surjective ⇑f\nthis✝² : AddCommGroup M := addCommMonoidToAddCommGroup R\nthis✝¹ : AddCommGroup ↥N := addCommMonoidToAddCommGroup R\ni :... | [
"case refine_3\nR : Type u_1\ninst✝ : CommRing R\nM : Type u_1\nx✝³ : AddCommMonoid M\nx✝² : Module R M\nx✝¹ : Module.Finite R M\nN : Submodule R M\nf : ↥N →ₗ[R] M\nhf : Surjective ⇑f\nthis✝² : AddCommGroup M := addCommMonoidToAddCommGroup R\nthis✝¹ : AddCommGroup ↥N := addCommMonoidToAddCommGroup R\ni : ↥N →ₗ[R] M... | · induction hx using span_induction with
| mem x hx =>
change f x ∈ M'
simp only [Set.singleton_union, Set.mem_insert_iff, Set.mem_range] at hx
rcases hx with hx | ⟨j, rfl⟩
· rw [hx, hn]; exact zero_mem _
· exact subset_span (by simp [hnj])
| zero => simp
| add x _ y _ hx hy =>... | Lean.Elab.Tactic.evalTacticCDot | Lean.cdot |
Mathlib.LinearAlgebra.LinearPMap | {
"line": 360,
"column": 2
} | {
"line": 360,
"column": 42
} | {
"line": 361,
"column": 2
} | [
{
"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⊢ f ≤ f.sup g h",
"ppTer... | [
"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\nz₁ : ↥f.domain\nz₂ : ↥(f.sup g h).domain... | refine ⟨le_sup_left, fun z₁ z₂ hz => ?_⟩ | Lean.Elab.Tactic.evalRefine | Lean.Parser.Tactic.refine |
Mathlib.Data.Int.ModEq | {
"line": 246,
"column": 2
} | {
"line": 246,
"column": 43
} | {
"line": 248,
"column": 0
} | [
{
"pp": "n a b : ℤ\nh : a ≡ b [ZMOD n]\n⊢ a ≡ 0 [ZMOD n] ↔ b ≡ 0 [ZMOD n]",
"ppTerm": "?m.6",
"assigned": true,
"usedConstants": [
"Int.ModEq.symm",
"Int.ModEq.trans",
"Int",
"instOfNat",
"Int.ModEq",
"Iff.intro",
"OfNat.ofNat"
],
"usedFVars": [
... | [] | exact ⟨fun ha ↦ h.symm.trans ha, h.trans⟩ | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.Algebra.Algebra.Subalgebra.Unitization | {
"line": 142,
"column": 6
} | {
"line": 145,
"column": 24
} | {
"line": 146,
"column": 4
} | [
{
"pp": "case refine_1\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... | [] | have := AlgHomClass.unitization_injective s h1
((Subalgebra.val _).comp algHom) fun _ ↦ by simp [algHom]
rw [AlgHom.coe_comp] at this
exact this.of_comp | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.Algebra.Algebra.Subalgebra.Unitization | {
"line": 142,
"column": 6
} | {
"line": 145,
"column": 24
} | {
"line": 146,
"column": 4
} | [
{
"pp": "case refine_1\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... | [] | have := AlgHomClass.unitization_injective s h1
((Subalgebra.val _).comp algHom) fun _ ↦ by simp [algHom]
rw [AlgHom.coe_comp] at this
exact this.of_comp | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Algebra.CharP.Two | {
"line": 173,
"column": 6
} | {
"line": 173,
"column": 14
} | {
"line": 173,
"column": 15
} | [
{
"pp": "R : Type u_1\ninst✝¹ : NonAssocCommSemiring R\ninst✝ : CharP R 2\nx y : R\n⊢ (x + y) * (x + y) = x * x + y * y",
"ppTerm": "?m.29",
"assigned": true,
"usedConstants": [
"Distrib.leftDistribClass",
"Eq.mpr",
"HMul.hMul",
"congrArg",
"id",
"Distrib.toAdd",
... | [
"R : Type u_1\ninst✝¹ : NonAssocCommSemiring R\ninst✝ : CharP R 2\nx y : R\n⊢ (x + y) * x + (x + y) * y = x * x + y * y"
] | mul_add, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.GroupTheory.GroupAction.Basic | {
"line": 148,
"column": 4
} | {
"line": 148,
"column": 19
} | {
"line": 148,
"column": 19
} | [
{
"pp": "case h\nG : Type u_1\nα : Type u_2\nβ : Type u_3\ninst✝² : Group G\ninst✝¹ : MulAction G α\ninst✝ : MulAction G β\na : α\ng h : G\n⊢ ↑((h * g⁻¹) • ⟨(fun m ↦ m • a) g, ⋯⟩) = ↑⟨(fun m ↦ m • a) h, ⋯⟩",
"ppTerm": "?h",
"assigned": true,
"usedConstants": [
"instHSMul",
"HMul.hMul",
... | [] | simp [mul_smul] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.GroupTheory.GroupAction.Basic | {
"line": 209,
"column": 4
} | {
"line": 209,
"column": 19
} | {
"line": 211,
"column": 0
} | [
{
"pp": "case h\nG : Type u_1\nα : Type u_2\nβ : Type u_3\ninst✝² : Group G\ninst✝¹ : MulAction G α\ninst✝ : MulAction G β\na✝ : α\ng : G\nyh : (fun m ↦ m • a✝) g ∈ orbitRel.Quotient.orbit (Quotient.mk'' a✝)\nh : G\nzh : (fun m ↦ m • a✝) h ∈ orbitRel.Quotient.orbit (Quotient.mk'' a✝)\n⊢ ↑((h * g⁻¹) • ⟨(fun m ↦ ... | [] | simp [mul_smul] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.GroupTheory.GroupAction.Quotient | {
"line": 293,
"column": 34
} | {
"line": 293,
"column": 49
} | {
"line": 293,
"column": 49
} | [
{
"pp": "G : Type u\nX : Type v\ninst✝³ : Group G\ninst✝² : MulAction G X\nx : X\ninst✝¹ : IsPretransitive G X\nH : Subgroup G\ninst✝ : Finite (G ⧸ H)\nb : X\nh' : Finite (Quotient (rightRel H))\na : Quotient (rightRel H)\ng₁ g₂ : G\nr : g₁ * g₂⁻¹ ∈ H\n⊢ ⟨g₁ * g₂⁻¹, r⟩ • g₂ • b = g₁ • b",
"ppTerm": "?m.96",... | [] | simp [mul_smul] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.GroupTheory.GroupAction.Quotient | {
"line": 293,
"column": 34
} | {
"line": 293,
"column": 49
} | {
"line": 293,
"column": 49
} | [
{
"pp": "G : Type u\nX : Type v\ninst✝³ : Group G\ninst✝² : MulAction G X\nx : X\ninst✝¹ : IsPretransitive G X\nH : Subgroup G\ninst✝ : Finite (G ⧸ H)\nb : X\nh' : Finite (Quotient (rightRel H))\na : Quotient (rightRel H)\ng₁ g₂ : G\nr : g₁ * g₂⁻¹ ∈ H\n⊢ ⟨g₁ * g₂⁻¹, r⟩ • g₂ • b = g₁ • b",
"ppTerm": "?m.96",... | [] | simp [mul_smul] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.GroupTheory.GroupAction.Quotient | {
"line": 293,
"column": 34
} | {
"line": 293,
"column": 49
} | {
"line": 293,
"column": 49
} | [
{
"pp": "G : Type u\nX : Type v\ninst✝³ : Group G\ninst✝² : MulAction G X\nx : X\ninst✝¹ : IsPretransitive G X\nH : Subgroup G\ninst✝ : Finite (G ⧸ H)\nb : X\nh' : Finite (Quotient (rightRel H))\na : Quotient (rightRel H)\ng₁ g₂ : G\nr : g₁ * g₂⁻¹ ∈ H\n⊢ ⟨g₁ * g₂⁻¹, r⟩ • g₂ • b = g₁ • b",
"ppTerm": "?m.96",... | [] | simp [mul_smul] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.GroupTheory.GroupAction.Quotient | {
"line": 371,
"column": 22
} | {
"line": 371,
"column": 37
} | {
"line": 371,
"column": 37
} | [
{
"pp": "G : Type u\nX : Type v\ninst✝³ : Group G\ninst✝² : MulAction G X\nx : X\ninst✝¹ : IsPretransitive G X\ninst✝ : IsCancelSMul G X\nH : Subgroup G\nq : G ⧸ H\ng₁ g₂ : G\nh : g₁⁻¹ * g₂ ∈ H\n⊢ (fun m ↦ m • g₂⁻¹ • x) ⟨g₁⁻¹ * g₂, h⟩ = g₁⁻¹ • x",
"ppTerm": "?m.197",
"assigned": true,
"usedConstants... | [] | simp [mul_smul] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.GroupTheory.GroupAction.Quotient | {
"line": 371,
"column": 22
} | {
"line": 371,
"column": 37
} | {
"line": 371,
"column": 37
} | [
{
"pp": "G : Type u\nX : Type v\ninst✝³ : Group G\ninst✝² : MulAction G X\nx : X\ninst✝¹ : IsPretransitive G X\ninst✝ : IsCancelSMul G X\nH : Subgroup G\nq : G ⧸ H\ng₁ g₂ : G\nh : g₁⁻¹ * g₂ ∈ H\n⊢ (fun m ↦ m • g₂⁻¹ • x) ⟨g₁⁻¹ * g₂, h⟩ = g₁⁻¹ • x",
"ppTerm": "?m.197",
"assigned": true,
"usedConstants... | [] | simp [mul_smul] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.GroupTheory.GroupAction.Quotient | {
"line": 371,
"column": 22
} | {
"line": 371,
"column": 37
} | {
"line": 371,
"column": 37
} | [
{
"pp": "G : Type u\nX : Type v\ninst✝³ : Group G\ninst✝² : MulAction G X\nx : X\ninst✝¹ : IsPretransitive G X\ninst✝ : IsCancelSMul G X\nH : Subgroup G\nq : G ⧸ H\ng₁ g₂ : G\nh : g₁⁻¹ * g₂ ∈ H\n⊢ (fun m ↦ m • g₂⁻¹ • x) ⟨g₁⁻¹ * g₂, h⟩ = g₁⁻¹ • x",
"ppTerm": "?m.197",
"assigned": true,
"usedConstants... | [] | simp [mul_smul] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.Data.Nat.Factors | {
"line": 174,
"column": 8
} | {
"line": 174,
"column": 24
} | {
"line": 174,
"column": 24
} | [
{
"pp": "case refine_1\nl : List ℕ\nh₂ : ∀ (p : ℕ), p ∈ l → Prime p\nh₁ : l.prod = 0\n⊢ False",
"ppTerm": "?refine_1",
"assigned": true,
"usedConstants": [
"MulOne.toOne",
"IsDomain.to_noZeroDivisors",
"MulZeroClass.toMul",
"Nat.instNontrivial",
"congrArg",
"Membe... | [
"case refine_1\nl : List ℕ\nh₂ : ∀ (p : ℕ), p ∈ l → Prime p\nh₁ : 0 ∈ l\n⊢ False"
] | prod_eq_zero_iff | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.GroupTheory.Index | {
"line": 320,
"column": 59
} | {
"line": 321,
"column": 73
} | {
"line": 323,
"column": 0
} | [
{
"pp": "G : Type u_1\nG' : Type u_2\ninst✝¹ : Group G\ninst✝ : Group G'\nH : Subgroup G\nf : G →* G'\n⊢ (map f H).index = (H ⊔ f.ker).index * f.range.index",
"ppTerm": "?m.33",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"MonoidHom.range",
"Lattice.toSemilatticeSup",
"Sub... | [] | by
rw [← comap_map_eq, index_comap, relIndex_mul_index (H.map_le_range f)] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.GroupTheory.Index | {
"line": 436,
"column": 2
} | {
"line": 436,
"column": 36
} | {
"line": 438,
"column": 0
} | [
{
"pp": "G : Type u_1\ninst✝ : Group G\nJ K : Subgroup G\nhJK : J.relIndex K ≠ 0\nL : Subgroup G\n⊢ (comap L.subtype J).relIndex (comap L.subtype K) ≠ 0",
"ppTerm": "?m.67",
"assigned": true,
"usedConstants": [
"Subgroup.subtype",
"Membership.mem",
"Subtype",
"Subgroup",
... | [] | exact relIndex_comap_ne_zero _ hJK | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.GroupTheory.Index | {
"line": 509,
"column": 4
} | {
"line": 509,
"column": 24
} | {
"line": 510,
"column": 4
} | [
{
"pp": "G : Type u_1\ninst✝ : Group G\nH : Subgroup G\na : G\nha : ∀ (b : G), b * a ∈ H ∨ b ∈ H\n⊢ H.index ∣ 2",
"ppTerm": "?m.136",
"assigned": true,
"usedConstants": [
"Dvd.dvd",
"Classical.propDecidable",
"Membership.mem",
"Subgroup",
"instOfNatNat",
"dite",
... | [
"case pos\nG : Type u_1\ninst✝ : Group G\nH : Subgroup G\na : G\nha : ∀ (b : G), b * a ∈ H ∨ b ∈ H\nha' : a ∈ H\n⊢ H.index ∣ 2",
"case neg\nG : Type u_1\ninst✝ : Group G\nH : Subgroup G\na : G\nha : ∀ (b : G), b * a ∈ H ∨ b ∈ H\nha' : a ∉ H\n⊢ H.index ∣ 2"
] | by_cases ha' : a ∈ H | «_aux_Init_ByCases___macroRules_tacticBy_cases_:__2» | «tacticBy_cases_:_» |
Mathlib.Data.ZMod.Basic | {
"line": 155,
"column": 2
} | {
"line": 155,
"column": 30
} | {
"line": 156,
"column": 2
} | [
{
"pp": "p n q : ℕ\nh : n ≤ n + q\n⊢ ↑p ^ (n + q) = 0",
"ppTerm": "?m.33",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoidWithOne",
"HMul.hMul",
"ZMod.commRing",
"Monoid.toMulOneClass",
"congrArg",
"CommSemiring.toSemiring",
... | [
"p n q : ℕ\nh : n ≤ n + q\n⊢ ↑(p ^ n) * ↑p ^ q = 0"
] | rw [pow_add, ← Nat.cast_pow] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Algebra.Order.Ring.GeomSum | {
"line": 67,
"column": 4
} | {
"line": 67,
"column": 21
} | {
"line": 68,
"column": 4
} | [
{
"pp": "case refine_1\nR : Type u_1\ninst✝² : Ring R\ninst✝¹ : PartialOrder R\ninst✝ : IsStrictOrderedRing R\nn : ℕ\nx : R\nhx : x < 0\nhx' : 0 < x + 1\nhn : 1 < n\n⊢ 0 < ∑ i ∈ range 2, x ^ i ∧ ∑ i ∈ range 2, x ^ i < 1",
"ppTerm": "?refine_1",
"assigned": true,
"usedConstants": [
"Eq.mpr",
... | [
"case refine_1\nR : Type u_1\ninst✝² : Ring R\ninst✝¹ : PartialOrder R\ninst✝ : IsStrictOrderedRing R\nn : ℕ\nx : R\nhx : x < 0\nhx' : 0 < x + 1\nhn : 1 < n\n⊢ 0 < x + 1 ∧ x + 1 < 1"
] | rw [geom_sum_two] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.Data.ZMod.Basic | {
"line": 557,
"column": 36
} | {
"line": 557,
"column": 50
} | {
"line": 557,
"column": 51
} | [
{
"pp": "case succ\nR : Type u_1\ninst✝ : Ring R\nn : ℕ\n⊢ ↑n = ↑(n + 1) - 1",
"ppTerm": "?succ",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Nat.cast_succ",
"AddMonoid.toAddSemigroup",
"AddGroupWithOne.toAddGroup",
"congrArg",
"AddGroupWithOne.toAddMonoidWith... | [
"case succ\nR : Type u_1\ninst✝ : Ring R\nn : ℕ\n⊢ ↑n = ↑n + 1 - 1"
] | Nat.cast_succ, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.NumberTheory.Divisors | {
"line": 417,
"column": 20
} | {
"line": 417,
"column": 33
} | {
"line": 417,
"column": 34
} | [
{
"pp": "p : ℕ\npp : Prime p\na✝ : ℕ\n⊢ a✝ ∣ p ∧ p ≠ 0 ↔ a✝ ∈ {1, p}",
"ppTerm": "?m.19",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Dvd.dvd",
"congrArg",
"Finset",
"Membership.mem",
"id",
"Insert.insert",
"Ne",
"instOfNatNat",
"Nat.dv... | [
"p : ℕ\npp : Prime p\na✝ : ℕ\n⊢ (a✝ = 1 ∨ a✝ = p) ∧ p ≠ 0 ↔ a✝ ∈ {1, p}"
] | dvd_prime pp, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Data.List.Indexes | {
"line": 47,
"column": 2
} | {
"line": 47,
"column": 33
} | {
"line": 48,
"column": 2
} | [
{
"pp": "α : Type u\nβ : Type v\nl : List α\nf : ℕ → α → β\n⊢ mapIdx f l = ofFn fun i ↦ f (↑i) (l.get i)",
"ppTerm": "?m.8",
"assigned": true,
"usedConstants": [
"List.mapIdx",
"Fin.succ",
"congrArg",
"List.get",
"List.ofFn",
"Fin.isLt",
"id",
"instOfN... | [] | induction l generalizing f with | _private.Lean.Elab.Tactic.Induction.0.Lean.Elab.Tactic.evalInduction | null |
Mathlib.Data.ZMod.Basic | {
"line": 966,
"column": 25
} | {
"line": 966,
"column": 63
} | {
"line": 968,
"column": 0
} | [
{
"pp": "case inl\na : ℤ\nh✝ : a ≤ 0\n⊢ ↑|a| = ↑a",
"ppTerm": "?inl",
"assigned": true,
"usedConstants": [
"AddGroup.toSubtractionMonoid",
"Int.cast_neg",
"Int.cast",
"NegZeroClass.toNeg",
"ZMod.commRing",
"AddGroupWithOne.toAddGroup",
"abs",
"congrArg... | [] | simp [abs_of_nonneg, abs_of_nonpos, *] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Data.ZMod.Basic | {
"line": 966,
"column": 25
} | {
"line": 966,
"column": 63
} | {
"line": 968,
"column": 0
} | [
{
"pp": "case inr\na : ℤ\nh✝ : 0 ≤ a\n⊢ ↑|a| = ↑a",
"ppTerm": "?inr",
"assigned": true,
"usedConstants": [
"Int.cast",
"ZMod.commRing",
"abs",
"congrArg",
"instOfNatNat",
"Int",
"AddGroupWithOne.toIntCast",
"ZMod",
"Nat",
"True",
"eq_... | [] | simp [abs_of_nonneg, abs_of_nonpos, *] | Lean.Elab.Tactic.evalSimp | Lean.Parser.Tactic.simp |
Mathlib.Data.ZMod.Basic | {
"line": 993,
"column": 10
} | {
"line": 993,
"column": 19
} | {
"line": 993,
"column": 20
} | [
{
"pp": "case succ.mp.zero\nn✝ : ℕ\na : ZMod (n✝ + 1)\nhe : 2 * a.val = (n✝ + 1) * 0\n⊢ a = 0 ∨ 2 * a.val = n✝ + 1",
"ppTerm": "?succ.mp.zero",
"assigned": true,
"usedConstants": [
"Nat.instMulZeroClass",
"HMul.hMul",
"MulZeroClass.toMul",
"congrArg",
"Eq.mp",
"in... | [
"case succ.mp.zero\nn✝ : ℕ\na : ZMod (n✝ + 1)\nhe : 2 * a.val = 0\n⊢ a = 0 ∨ 2 * a.val = n✝ + 1"
] | mul_zero, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.Data.Nat.Digits.Defs | {
"line": 167,
"column": 77
} | {
"line": 172,
"column": 8
} | {
"line": 174,
"column": 0
} | [
{
"pp": "b : ℕ\nl1 l2 : List ℕ\n⊢ ofDigits b (l1 ++ l2) = ofDigits b l1 + b ^ l1.length * ofDigits b l2",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"Nat.pow_succ'",
"Mathlib.Tactic.Ring.Common.mul_pf_left",
"instPowNat",
"Eq.mpr",
"NonAssocSemiring.toAddCo... | [] | by
induction l1 with
| nil => simp [ofDigits]
| cons hd tl IH =>
rw [ofDigits, List.cons_append, ofDigits, IH, List.length_cons, pow_succ']
ring | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.Data.Nat.Digits.Defs | {
"line": 177,
"column": 43
} | {
"line": 177,
"column": 52
} | {
"line": 177,
"column": 53
} | [
{
"pp": "b : ℕ\nl : List ℕ\n⊢ ofDigits b l + b ^ l.length * 0 = ofDigits b l",
"ppTerm": "?m.23",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Nat.instMulZeroClass",
"HMul.hMul",
"MulZeroClass.toMul",
"congrArg",
"Nat.instMonoid",
"Nat.ofDigits",
"i... | [
"b : ℕ\nl : List ℕ\n⊢ ofDigits b l + 0 = ofDigits b l"
] | mul_zero, | Lean.Elab.Tactic.evalRewriteSeq | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.