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.ModelTheory.Arithmetic.Presburger.Semilinear.Basic | {
"line": 254,
"column": 2
} | {
"line": 254,
"column": 13
} | {
"line": 254,
"column": 14
} | [
{
"pp": "case e_a\nM : Type u_1\ninst✝ : AddCommMonoid M\na : M\nt : Set M\nht : t.Finite\nx : M\n⊢ x ∈ t ↔ x ∈ ⇑(closure (insert a t)).subtype '' ⇑(closure (insert a t)).subtype ⁻¹' t",
"ppTerm": "?e_a✝",
"assigned": true,
"usedConstants": [
"AddSubmonoid.subtype",
"Eq.mpr",
"Iff.... | [
"case e_a\nM : Type u_1\ninst✝ : AddCommMonoid M\na : M\nt : Set M\nht : t.Finite\nx : M\n⊢ x ∈ t → x ∈ closure (insert a t)"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Basic | {
"line": 319,
"column": 4
} | {
"line": 319,
"column": 15
} | {
"line": 319,
"column": 16
} | [
{
"pp": "case insert\nM : Type u_1\ninst✝¹ : AddCommMonoid M\ninst✝ : AddMonoid.FG M\nS : Set (Set M)\na✝¹ : Set M\ns✝ : Set (Set M)\na✝ : a✝¹ ∉ s✝\nhs✝ : s✝.Finite\nih : (∀ s ∈ s✝, IsSemilinearSet s) → IsSemilinearSet (⋂₀ s✝)\nhS' : IsSemilinearSet a✝¹ ∧ ∀ a ∈ s✝, IsSemilinearSet a\n⊢ IsSemilinearSet (⋂₀ inser... | [
"case insert\nM : Type u_1\ninst✝¹ : AddCommMonoid M\ninst✝ : AddMonoid.FG M\nS : Set (Set M)\na✝¹ : Set M\ns✝ : Set (Set M)\na✝ : a✝¹ ∉ s✝\nhs✝ : s✝.Finite\nih : (∀ s ∈ s✝, IsSemilinearSet s) → IsSemilinearSet (⋂₀ s✝)\nhS' : IsSemilinearSet a✝¹ ∧ ∀ a ∈ s✝, IsSemilinearSet a\n⊢ IsSemilinearSet (a✝¹ ∩ ⋂₀ s✝)"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Basic | {
"line": 362,
"column": 2
} | {
"line": 362,
"column": 24
} | {
"line": 362,
"column": 25
} | [
{
"pp": "ι : Type u_3\nx y : ι → ℕ\nh : toRatVec x = toRatVec y\ni : ι\n⊢ x i = y i",
"ppTerm": "?m.24",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"ι : Type u_3\nx y : ι → ℕ\nh : toRatVec x = toRatVec y\ni : ι\n⊢ x i = y i"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Basic | {
"line": 386,
"column": 4
} | {
"line": 386,
"column": 15
} | {
"line": 386,
"column": 16
} | [
{
"pp": "ι : Type u_3\ns : Set (ι → ℕ)\nt : Finset (ι → ℕ)\nf : (ι → ℕ) → ℤ\nht : ↑t ⊆ s\nhf : ∀ i ∉ t, f i = 0\nheq : ∑ i ∈ t, f i • toRatVec i = 0\ni : ι → ℕ\nhs : (Int.toNat ∘ f) i = (Int.toNat ∘ (fun x ↦ -x) ∘ f) i\nhi : i ∈ t\n⊢ (f i).toNat = (-f i).toNat",
"ppTerm": "?m.167",
"assigned": false,
... | [
"ι : Type u_3\ns : Set (ι → ℕ)\nt : Finset (ι → ℕ)\nf : (ι → ℕ) → ℤ\nht : ↑t ⊆ s\nhf : ∀ i ∉ t, f i = 0\nheq : ∑ i ∈ t, f i • toRatVec i = 0\ni : ι → ℕ\nhs : (Int.toNat ∘ f) i = (Int.toNat ∘ (fun x ↦ -x) ∘ f) i\nhi : i ∈ t\n⊢ (f i).toNat = (-f i).toNat"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.ModelTheory.DirectLimit | {
"line": 67,
"column": 4
} | {
"line": 68,
"column": 31
} | {
"line": 70,
"column": 0
} | [
{
"pp": "case succ\nL : Language\nG' : ℕ → Type w\ninst✝ : (i : ℕ) → L.Structure (G' i)\nf' : (n : ℕ) → G' n ↪[L] G' (n + 1)\nm : ℕ\nx : G' m\nk : ℕ\nih : ∀ (h : m ≤ m + k), (natLERec f' m (m + k) h) x = Nat.leRecOn h (fun k ↦ ⇑(f' k)) x\nh : m ≤ m + (k + 1)\n⊢ (natLERec f' m (m + (k + 1)) h) x = Nat.leRecOn h ... | [] | rw [Nat.leRecOn_succ le_self_add, natLERec, Nat.leRecOn_succ le_self_add, ← natLERec,
Embedding.comp_apply, ih] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.ModelTheory.DirectLimit | {
"line": 67,
"column": 4
} | {
"line": 68,
"column": 31
} | {
"line": 70,
"column": 0
} | [
{
"pp": "case succ\nL : Language\nG' : ℕ → Type w\ninst✝ : (i : ℕ) → L.Structure (G' i)\nf' : (n : ℕ) → G' n ↪[L] G' (n + 1)\nm : ℕ\nx : G' m\nk : ℕ\nih : ∀ (h : m ≤ m + k), (natLERec f' m (m + k) h) x = Nat.leRecOn h (fun k ↦ ⇑(f' k)) x\nh : m ≤ m + (k + 1)\n⊢ (natLERec f' m (m + (k + 1)) h) x = Nat.leRecOn h ... | [] | rw [Nat.leRecOn_succ le_self_add, natLERec, Nat.leRecOn_succ le_self_add, ← natLERec,
Embedding.comp_apply, ih] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.ModelTheory.DirectLimit | {
"line": 67,
"column": 4
} | {
"line": 68,
"column": 31
} | {
"line": 70,
"column": 0
} | [
{
"pp": "case succ\nL : Language\nG' : ℕ → Type w\ninst✝ : (i : ℕ) → L.Structure (G' i)\nf' : (n : ℕ) → G' n ↪[L] G' (n + 1)\nm : ℕ\nx : G' m\nk : ℕ\nih : ∀ (h : m ≤ m + k), (natLERec f' m (m + k) h) x = Nat.leRecOn h (fun k ↦ ⇑(f' k)) x\nh : m ≤ m + (k + 1)\n⊢ (natLERec f' m (m + (k + 1)) h) x = Nat.leRecOn h ... | [] | rw [Nat.leRecOn_succ le_self_add, natLERec, Nat.leRecOn_succ le_self_add, ← natLERec,
Embedding.comp_apply, ih] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Basic | {
"line": 507,
"column": 4
} | {
"line": 507,
"column": 57
} | {
"line": 507,
"column": 58
} | [
{
"pp": "case mem\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx y✝ : ι → ℕ\ni : ↑hs.basisSet\nt : Set (ι → ℕ)\nht : t ⊆ hs.basisSet\nhi : ↑i ∉ t\ny : ι → ℕ\nhy : y ∈ t\n⊢ (hs.basis.repr (hs.basis ⟨y, ⋯⟩)) i = 0",
"ppTerm": "?mem",
"assigned": true,
"usedConstants": [
... | [
"case mem\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx y✝ : ι → ℕ\ni : ↑hs.basisSet\nt : Set (ι → ℕ)\nht : t ⊆ hs.basisSet\nhi : ↑i ∉ t\ny : ι → ℕ\nhy : y ∈ t\n⊢ ¬y = ↑i"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.MeasureTheory.VectorMeasure.WithDensityVec | {
"line": 344,
"column": 2
} | {
"line": 344,
"column": 45
} | {
"line": 345,
"column": 2
} | [
{
"pp": "case h₂\nX : Type u_1\nE : Type u_2\nF : Type u_3\nG : Type u_4\nmX : MeasurableSpace X\ninst✝⁶ : NormedAddCommGroup E\ninst✝⁵ : NormedSpace ℝ E\ninst✝⁴ : NormedAddCommGroup F\ninst✝³ : NormedSpace ℝ F\ninst✝² : NormedAddCommGroup G\ninst✝¹ : NormedSpace ℝ G\nμ : VectorMeasure X F\nf : X → E\nB : E →L[... | [
"case h₂\nX : Type u_1\nE : Type u_2\nF : Type u_3\nG : Type u_4\nmX : MeasurableSpace X\ninst✝⁶ : NormedAddCommGroup E\ninst✝⁵ : NormedSpace ℝ E\ninst✝⁴ : NormedAddCommGroup F\ninst✝³ : NormedSpace ℝ F\ninst✝² : NormedAddCommGroup G\ninst✝¹ : NormedSpace ℝ G\nμ : VectorMeasure X F\nf : X → E\nB : E →L[ℝ] F →L[ℝ] G... | apply ContinuousLinearMap.opNNNorm_le_bound | Lean.Elab.Tactic.evalApply | Lean.Parser.Tactic.apply |
Mathlib.MeasureTheory.VectorMeasure.WithDensityVec | {
"line": 376,
"column": 4
} | {
"line": 376,
"column": 15
} | {
"line": 376,
"column": 16
} | [
{
"pp": "case e_f.inr\nX : Type u_1\nE : Type u_2\nmX : MeasurableSpace X\ninst✝² : NormedAddCommGroup E\ninst✝¹ : NormedSpace ℝ E\ninst✝ : CompleteSpace E\nμ : Measure X\nf : X → E\nhf : Integrable f μ\nhE : Nontrivial E\nthis : IsFiniteMeasure (μ.withDensity fun x ↦ ‖f x‖ₑ)\nI : VectorMeasure.Integrable (μ.wi... | [
"case e_f.inr\nX : Type u_1\nE : Type u_2\nmX : MeasurableSpace X\ninst✝² : NormedAddCommGroup E\ninst✝¹ : NormedSpace ℝ E\ninst✝ : CompleteSpace E\nμ : Measure X\nf : X → E\nhf : Integrable f μ\nhE : Nontrivial E\nthis : IsFiniteMeasure (μ.withDensity fun x ↦ ‖f x‖ₑ)\nI : VectorMeasure.Integrable (μ.withDensity fu... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.MeasureTheory.VectorMeasure.WithDensityVec | {
"line": 386,
"column": 33
} | {
"line": 386,
"column": 44
} | {
"line": 386,
"column": 45
} | [
{
"pp": "X : Type u_1\nE : Type u_2\nmX : MeasurableSpace X\ninst✝² : NormedAddCommGroup E\ninst✝¹ : NormedSpace ℝ E\ninst✝ : CompleteSpace E\nμ : Measure X\nf : X → E\nhf : Integrable f μ\nhE : Nontrivial E\nthis✝ : IsFiniteMeasure (μ.withDensity fun x ↦ ‖f x‖ₑ)\nI : VectorMeasure.Integrable (μ.withDensity fun... | [
"X : Type u_1\nE : Type u_2\nmX : MeasurableSpace X\ninst✝² : NormedAddCommGroup E\ninst✝¹ : NormedSpace ℝ E\ninst✝ : CompleteSpace E\nμ : Measure X\nf : X → E\nhf : Integrable f μ\nhE : Nontrivial E\nthis✝ : IsFiniteMeasure (μ.withDensity fun x ↦ ‖f x‖ₑ)\nI : VectorMeasure.Integrable (μ.withDensity fun x ↦ ‖f x‖ₑ)... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Basic | {
"line": 655,
"column": 8
} | {
"line": 655,
"column": 37
} | {
"line": 655,
"column": 38
} | [
{
"pp": "case mp.refine_2\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx : ι → ℕ\nhx : hs.fract x = hs.base\ni : ↑hs.basisSet\nhi : hs.floor x i < 0\nj : ↑hs.basisSet\nhj : j ∈ Finset.univ.erase i\n⊢ ↑j ∈ hs.basisSet \\ {↑i}",
"ppTerm": "?mp.refine_2",
"assigned": true,
... | [
"case mp.refine_2\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx : ι → ℕ\nhx : hs.fract x = hs.base\ni : ↑hs.basisSet\nhi : hs.floor x i < 0\nj : ↑hs.basisSet\nhj : j ∈ Finset.univ.erase i\n⊢ ¬j = i"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Basic | {
"line": 657,
"column": 8
} | {
"line": 657,
"column": 37
} | {
"line": 657,
"column": 38
} | [
{
"pp": "case mp.refine_3\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx : ι → ℕ\nhx : hs.fract x = hs.base\ni : ↑hs.basisSet\nhi : hs.floor x i < 0\nj : ↑hs.basisSet\nhj : j ∈ Finset.univ.erase i\n⊢ ↑j ∈ hs.basisSet \\ {↑i}",
"ppTerm": "?mp.refine_3",
"assigned": true,
... | [
"case mp.refine_3\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx : ι → ℕ\nhx : hs.fract x = hs.base\ni : ↑hs.basisSet\nhi : hs.floor x i < 0\nj : ↑hs.basisSet\nhj : j ∈ Finset.univ.erase i\n⊢ ¬j = i"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Basic | {
"line": 681,
"column": 8
} | {
"line": 681,
"column": 25
} | {
"line": 681,
"column": 26
} | [
{
"pp": "case mpr.refine_2\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx : ι → ℕ\ni : ↑hs.basisSet\nz : ι → ℕ\nhz : z ∈ closure (hs.basisSet \\ {↑i})\nz' : ι → ℕ\nhz' : z' ∈ closure (hs.basisSet \\ {↑i})\nn : ℕ\nheq : hs.floor x i = -↑(n + 1)\n⊢ hs.floor x i < 0",
"ppTerm": "... | [
"case mpr.refine_2\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx : ι → ℕ\ni : ↑hs.basisSet\nz : ι → ℕ\nhz : z ∈ closure (hs.basisSet \\ {↑i})\nz' : ι → ℕ\nhz' : z' ∈ closure (hs.basisSet \\ {↑i})\nn : ℕ\nheq : hs.floor x i = -↑(n + 1)\n⊢ -1 < ↑n"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Basic | {
"line": 718,
"column": 8
} | {
"line": 718,
"column": 37
} | {
"line": 718,
"column": 38
} | [
{
"pp": "case mp.refine_2\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx : ι → ℕ\nhx : hs.fract x = hs.base\ni : ↑hs.basisSet\nhi : ↑i ∉ hs.periods\nhi' : 0 < hs.floor x i\nj : ↑hs.basisSet\nhj : j ∈ Finset.univ.erase i\n⊢ ↑j ∈ hs.basisSet \\ {↑i}",
"ppTerm": "?mp.refine_2",
... | [
"case mp.refine_2\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx : ι → ℕ\nhx : hs.fract x = hs.base\ni : ↑hs.basisSet\nhi : ↑i ∉ hs.periods\nhi' : 0 < hs.floor x i\nj : ↑hs.basisSet\nhj : j ∈ Finset.univ.erase i\n⊢ ¬j = i"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Basic | {
"line": 720,
"column": 8
} | {
"line": 720,
"column": 37
} | {
"line": 720,
"column": 38
} | [
{
"pp": "case mp.refine_3\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx : ι → ℕ\nhx : hs.fract x = hs.base\ni : ↑hs.basisSet\nhi : ↑i ∉ hs.periods\nhi' : 0 < hs.floor x i\nj : ↑hs.basisSet\nhj : j ∈ Finset.univ.erase i\n⊢ ↑j ∈ hs.basisSet \\ {↑i}",
"ppTerm": "?mp.refine_3",
... | [
"case mp.refine_3\nι : Type u_3\ns : Set (ι → ℕ)\nhs : IsProperLinearSet s\ninst✝ : Finite ι\nx : ι → ℕ\nhx : hs.fract x = hs.base\ni : ↑hs.basisSet\nhi : ↑i ∉ hs.periods\nhi' : 0 < hs.floor x i\nj : ↑hs.basisSet\nhj : j ∈ Finset.univ.erase i\n⊢ ¬j = i"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.Order.CountableDenseLinearOrder | {
"line": 257,
"column": 6
} | {
"line": 257,
"column": 40
} | {
"line": 258,
"column": 6
} | [
{
"pp": "α : Type u_1\nβ : Type u_2\ninst✝¹¹ : LinearOrder α\ninst✝¹⁰ : LinearOrder β\ninst✝⁹ : Countable α\ninst✝⁸ : DenselyOrdered α\ninst✝⁷ : NoMinOrder α\ninst✝⁶ : NoMaxOrder α\ninst✝⁵ : Nonempty α\ninst✝⁴ : Countable β\ninst✝³ : DenselyOrdered β\ninst✝² : NoMinOrder β\ninst✝¹ : NoMaxOrder β\ninst✝ : Nonemp... | [
"α : Type u_1\nβ : Type u_2\ninst✝¹¹ : LinearOrder α\ninst✝¹⁰ : LinearOrder β\ninst✝⁹ : Countable α\ninst✝⁸ : DenselyOrdered α\ninst✝⁷ : NoMinOrder α\ninst✝⁶ : NoMaxOrder α\ninst✝⁵ : Nonempty α\ninst✝⁴ : Countable β\ninst✝³ : DenselyOrdered β\ninst✝² : NoMinOrder β\ninst✝¹ : NoMaxOrder β\ninst✝ : Nonempty β\nval✝¹ ... | rcases (F a).prop with ⟨f, hf, ha⟩ | _private.Lean.Elab.Tactic.RCases.0.Lean.Elab.Tactic.RCases.evalRCases | Lean.Parser.Tactic.rcases |
Mathlib.NumberTheory.ADEInequality | {
"line": 208,
"column": 59
} | {
"line": 208,
"column": 70
} | {
"line": 208,
"column": 71
} | [
{
"pp": "p q r : ℕ+\nhs : [p, q, r].SortedLE\nx✝ : [p, q, r].length = 3\nH : 1 < sumInv ↑[p, q, r]\n⊢ (p ≤ q ∧ p ≤ r) ∧ q ≤ r",
"ppTerm": "?m.225",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"p q r : ℕ+\nhs : [p, q, r].SortedLE\nx✝ : [p, q, r].length = 3\nH : 1 < sumInv ↑[p, q, r]\n⊢ (p ≤ q ∧ p ≤ r) ∧ q ≤ r"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.AlmostPrime | {
"line": 68,
"column": 2
} | {
"line": 68,
"column": 13
} | {
"line": 68,
"column": 14
} | [
{
"pp": "p : ℕ\nhp : Prime p\n⊢ IsAlmostPrime 1 p",
"ppTerm": "?m.3",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Nat.Prime",
"Nat.isAlmostPrime_one_iff._simp_1",
"id",
"instOfNatNat",
"Nat.IsAlmostPrime",
"Nat",
"OfNat.ofNat",
"Eq"
],
... | [
"p : ℕ\nhp : Prime p\n⊢ Prime p"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.AlmostPrime | {
"line": 87,
"column": 2
} | {
"line": 87,
"column": 13
} | {
"line": 87,
"column": 14
} | [
{
"pp": "p q : ℕ\nhp : Prime p\nhq : Prime q\n⊢ IsAlmostPrime 2 (p * q)",
"ppTerm": "?m.7",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"p q : ℕ\nhp : Prime p\nhq : Prime q\n⊢ IsAlmostPrime 2 (p * q)"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.AlmostPrime | {
"line": 90,
"column": 2
} | {
"line": 90,
"column": 23
} | {
"line": 90,
"column": 24
} | [
{
"pp": "p : ℕ\nhp : Prime p\n⊢ IsAlmostPrime 2 (p ^ 2)",
"ppTerm": "?m.14",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"HMul.hMul",
"pow_two",
"Monoid.toMulOneClass",
"congrArg",
"Nat.instMonoid",
"id",
"MulOne.toMul",
"instOfNatNat",
... | [
"p : ℕ\nhp : Prime p\n⊢ IsAlmostPrime 2 (p * p)"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.AddCharacter.Trace | {
"line": 88,
"column": 2
} | {
"line": 88,
"column": 70
} | {
"line": 88,
"column": 71
} | [
{
"pp": "n : ℕ\ninst✝³ : NeZero n\nA : Type u_1\ninst✝² : CommRing A\ninst✝¹ : Algebra (ZMod n) A\nR : Type u_2\ninst✝ : CommRing R\nζ : R\nhζ : IsPrimitiveRoot ζ n\n𝓟 : Ideal R\nh : ζ - 1 ∈ 𝓟\nx : A\nthis :\n Polynomial.eval (1 + (Ideal.Quotient.mk (𝓟 ^ 2)) (ζ - 1)) (Polynomial.X ^ ((Algebra.trace (ZMod n)... | [
"n : ℕ\ninst✝³ : NeZero n\nA : Type u_1\ninst✝² : CommRing A\ninst✝¹ : Algebra (ZMod n) A\nR : Type u_2\ninst✝ : CommRing R\nζ : R\nhζ : IsPrimitiveRoot ζ n\n𝓟 : Ideal R\nh : ζ - 1 ∈ 𝓟\nx : A\nthis :\n Polynomial.eval (1 + (Ideal.Quotient.mk (𝓟 ^ 2)) (ζ - 1)) (Polynomial.X ^ ((Algebra.trace (ZMod n) A) x).val) ... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.ArithmeticFunction.Carmichael | {
"line": 126,
"column": 2
} | {
"line": 126,
"column": 87
} | {
"line": 128,
"column": 0
} | [
{
"pp": "n : ℕ\nhn : n ≤ 2\n⊢ exponent (ZMod (2 ^ n))ˣ = Nat.card (ZMod (2 ^ n))ˣ",
"ppTerm": "?m.32",
"assigned": true,
"usedConstants": [
"Iff.mpr",
"ZMod.commRing",
"CommSemiring.toSemiring",
"Nat.instMonoid",
"DivInvMonoid.toZPow",
"Units",
"Nat.card",
... | [] | exact IsCyclic.iff_exponent_eq_card.mp <| ZMod.isCyclic_units_two_pow_iff n |>.mpr hn | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.NumberTheory.ArithmeticFunction.Carmichael | {
"line": 131,
"column": 40
} | {
"line": 133,
"column": 29
} | {
"line": 135,
"column": 0
} | [
{
"pp": "n : ℕ\nhn : n ≤ 2\n⊢ λ (2 ^ n) = 2 ^ (n - 1)",
"ppTerm": "?m.25",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Nat.zero_le",
"Nat.instMulZeroClass",
"ArithmeticFunction.instFunLikeNat",
"of_decide_eq_true",
"Nat.rawCast",
"congrArg",
"Nat.i... | [] | by
rw [carmichael_two_pow_of_le_two_eq_totient hn]
interval_cases n <;> decide | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.NumberTheory.ArithmeticFunction.VonMangoldt | {
"line": 120,
"column": 9
} | {
"line": 120,
"column": 49
} | {
"line": 120,
"column": 49
} | [
{
"pp": "n : ℕ\n⊢ (Λ * ↑ζ) n = log n",
"ppTerm": "?m.12",
"assigned": true,
"usedConstants": [
"ArithmeticFunction.vonMangoldt",
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoidWithOne",
"Real",
"HMul.hMul",
"ArithmeticFunction.instFunLikeNat",
"ArithmeticFunctio... | [
"n : ℕ\n⊢ Real.log ↑n = log n"
] | rw [coe_mul_zeta_apply, vonMangoldt_sum] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.NumberTheory.ArithmeticFunction.VonMangoldt | {
"line": 145,
"column": 19
} | {
"line": 145,
"column": 30
} | {
"line": 145,
"column": 31
} | [
{
"pp": "n : ℕ\nhn : ¬n = 0\nmn : 0 ∣ n\n⊢ n = 0",
"ppTerm": "?m.108",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"n : ℕ\nhn : ¬n = 0\nmn : 0 ∣ n\n⊢ n = 0"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.RingTheory.MvPowerSeries.Derivative | {
"line": 145,
"column": 2
} | {
"line": 145,
"column": 65
} | {
"line": 146,
"column": 4
} | [
{
"pp": "σ : Type u_1\nR : Type u_2\ninst✝ : CommSemiring R\ni j : σ\nh : j ≠ i\nn : σ →₀ ℕ\n⊢ (coeff n) ((pderiv i) (X j)) = (coeff n) 0",
"ppTerm": "?m.20",
"assigned": true,
"usedConstants": [
"Derivation",
"Finsupp.instFunLike",
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoid... | [
"σ : Type u_1\nR : Type u_2\ninst✝ : CommSemiring R\ni j : σ\nh : j ≠ i\nn : σ →₀ ℕ\n⊢ (if n + single i 1 = single j 1 then ↑(n i) + 1 else 0) = 0"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.RingTheory.ZMod.UnitsCyclic | {
"line": 204,
"column": 4
} | {
"line": 204,
"column": 15
} | {
"line": 204,
"column": 16
} | [
{
"pp": "p : ℕ\nhp : Nat.Prime p\nhp2 : p ≠ 2\nn : ℕ\nH : ↑p ∣ 1\n⊢ p = 1",
"ppTerm": "?m.199",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"p : ℕ\nhp : Nat.Prime p\nhp2 : p ≠ 2\nn : ℕ\nH : ↑p ∣ 1\n⊢ p = 1"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.RingTheory.PowerSeries.Derivative | {
"line": 79,
"column": 2
} | {
"line": 79,
"column": 13
} | {
"line": 79,
"column": 14
} | [
{
"pp": "R : Type u_1\ninst✝ : CommSemiring R\nf : R⟦X⟧\nn : ℕ\n⊢ constantCoeff ((⇑d⁄dX)^[n] f) = ↑n ! * (coeff n) f",
"ppTerm": "?m.16",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"R : Type u_1\ninst✝ : CommSemiring R\nf : R⟦X⟧\nn : ℕ\n⊢ constantCoeff ((⇑d⁄dX)^[n] f) = ↑n ! * (coeff n) f"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.AbelSummation | {
"line": 151,
"column": 2
} | {
"line": 155,
"column": 71
} | {
"line": 156,
"column": 2
} | [
{
"pp": "case inr\n𝕜 : Type u_1\ninst✝ : RCLike 𝕜\nc : ℕ → 𝕜\nf : ℝ → 𝕜\na b : ℝ\nha : 0 ≤ a\nhab : a ≤ b\nhf_diff : ∀ t ∈ Set.Icc a b, DifferentiableAt ℝ f t\nhf_int : IntegrableOn (deriv f) (Set.Icc a b) volume\naux1 : ↑⌊a⌋₊ ≤ a\naux2 : b ≤ ↑⌊b⌋₊ + 1\nhb : ⌊a⌋₊ < ⌊b⌋₊\naux3 : a ≤ ↑⌊a⌋₊ + 1\naux4 : ↑⌊a⌋₊ +... | [
"case inr\n𝕜 : Type u_1\ninst✝ : RCLike 𝕜\nc : ℕ → 𝕜\nf : ℝ → 𝕜\na b : ℝ\nha : 0 ≤ a\nhab : a ≤ b\nhf_diff : ∀ t ∈ Set.Icc a b, DifferentiableAt ℝ f t\nhf_int : IntegrableOn (deriv f) (Set.Icc a b) volume\naux1 : ↑⌊a⌋₊ ≤ a\naux2 : b ≤ ↑⌊b⌋₊ + 1\nhb : ⌊a⌋₊ < ⌊b⌋₊\naux3 : a ≤ ↑⌊a⌋₊ + 1\naux4 : ↑⌊a⌋₊ + 1 ≤ b\naux5... | rw [this, sum_integral_adjacent_intervals_Ico hb, Nat.cast_add, Nat.cast_one,
← integral_interval_sub_left (a := a) (c := ⌊a⌋₊ + 1),
← integral_add_adjacent_intervals (b := ⌊b⌋₊) (c := b),
integralmulsum c hf_diff hf_int _ _ _ aux3 aux1 le_rfl le_rfl aux4,
integralmulsum c hf_diff hf_int _ _ _ aux5 le_r... | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.RingTheory.ZMod.UnitsCyclic | {
"line": 260,
"column": 2
} | {
"line": 261,
"column": 10
} | {
"line": 263,
"column": 0
} | [
{
"pp": "n : ℕ\n⊢ orderOf 5 = 2 ^ n",
"ppTerm": "?m.24",
"assigned": true,
"usedConstants": [
"Monoid",
"Int.cast",
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoidWithOne",
"Mathlib.Meta.NormNum.isNat_add",
"HMul.hMul",
"Mathlib.Meta.NormNum.isNat_eq_true",
... | [] | convert orderOf_one_add_four_mul 1 (by simp) n
norm_num | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.RingTheory.ZMod.UnitsCyclic | {
"line": 260,
"column": 2
} | {
"line": 261,
"column": 10
} | {
"line": 263,
"column": 0
} | [
{
"pp": "n : ℕ\n⊢ orderOf 5 = 2 ^ n",
"ppTerm": "?m.24",
"assigned": true,
"usedConstants": [
"Monoid",
"Int.cast",
"Eq.mpr",
"NonAssocSemiring.toAddCommMonoidWithOne",
"Mathlib.Meta.NormNum.isNat_add",
"HMul.hMul",
"Mathlib.Meta.NormNum.isNat_eq_true",
... | [] | convert orderOf_one_add_four_mul 1 (by simp) n
norm_num | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.RingTheory.ZMod.UnitsCyclic | {
"line": 276,
"column": 27
} | {
"line": 276,
"column": 38
} | {
"line": 276,
"column": 39
} | [
{
"pp": "n : ℕ\nhn0 : 2 * n ≠ 0\nhn1 : 2 * n ≠ 1\n⊢ n ≠ 0",
"ppTerm": "?m.112",
"assigned": true,
"usedConstants": [
"Nat.instMulZeroClass",
"id",
"Ne",
"Nat",
"Zero.toOfNat0",
"OfNat.ofNat",
"MulZeroClass.toZero"
],
"usedFVars": [
"n"
],
... | [
"n : ℕ\nhn0 : 2 * n ≠ 0\nhn1 : 2 * n ≠ 1\n⊢ ¬n = 0"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.RingTheory.ZMod.UnitsCyclic | {
"line": 284,
"column": 25
} | {
"line": 284,
"column": 60
} | {
"line": 284,
"column": 61
} | [
{
"pp": "n : ℕ\nhn0 : n ≠ 0\nhn1 : n ≠ 1\nh2n : ¬2 ∣ n\nthis✝ : Nat.Coprime 4 n\nh : (Nat.card (ZMod 4)ˣ).Coprime (Nat.card (ZMod n)ˣ)\nthis : NeZero n\n⊢ Odd (φ n)",
"ppTerm": "?m.229",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"n : ℕ\nhn0 : n ≠ 0\nhn1 : n ≠ 1\nh2n : ¬2 ∣ n\nthis✝ : Nat.Coprime 4 n\nh : (Nat.card (ZMod 4)ˣ).Coprime (Nat.card (ZMod n)ˣ)\nthis : NeZero n\n⊢ Odd (φ n)"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.RingTheory.ZMod.UnitsCyclic | {
"line": 323,
"column": 6
} | {
"line": 323,
"column": 61
} | {
"line": 323,
"column": 62
} | [
{
"pp": "case neg.refine_1.refine_1\nn : ℕ\nhn : Odd n\nhn0 : n ≠ 0\nh1 : n ≠ 1\np : ℕ\nhp : Nat.Prime p\ndvd : p ∣ n\nodd : Odd p\nhnp : ¬n = p ^ n.factorization p\nthis : p ^ n.factorization p ∣ n\n⊢ p ^ n.factorization p ≠ 1",
"ppTerm": "?neg.refine_1.refine_1✝",
"assigned": true,
"usedConstants"... | [
"case neg.refine_1.refine_1\nn : ℕ\nhn : Odd n\nhn0 : n ≠ 0\nh1 : n ≠ 1\np : ℕ\nhp : Nat.Prime p\ndvd : p ∣ n\nodd : Odd p\nhnp : ¬n = p ^ n.factorization p\nthis : p ^ n.factorization p ∣ n\n⊢ ¬p = 1"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.RingTheory.PowerSeries.Exp | {
"line": 161,
"column": 4
} | {
"line": 162,
"column": 34
} | {
"line": 162,
"column": 35
} | [
{
"pp": "case succ\nA : Type u_4\ninst✝¹ : CommRing A\ninst✝ : Algebra ℚ A\nk : ℕ\nh : exp A ^ k = (rescale ↑k) (exp A)\n⊢ exp A ^ (k + 1) = (rescale ↑(k + 1)) (exp A)",
"ppTerm": "?succ",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"HMul.hMul",
"AddMonoid.toAddSemigroup",
... | [
"case succ\nA : Type u_4\ninst✝¹ : CommRing A\ninst✝ : Algebra ℚ A\nk : ℕ\nh : exp A ^ k = (rescale ↑k) (exp A)\n⊢ exp A ^ (k + 1) = exp A ^ k * exp A"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.RingTheory.ZMod.UnitsCyclic | {
"line": 371,
"column": 2
} | {
"line": 372,
"column": 7
} | {
"line": 373,
"column": 2
} | [
{
"pp": "case neg.inr.inr.ha\nn : ℕ\nh0 : ¬2 * (2 * n) = 0\nh1 : ¬2 * (2 * n) = 1\nh2 : ¬2 * (2 * n) = 2\nh4 : ¬2 * (2 * n) = 4\nhn✝ : Even (2 * (2 * n))\nhn : Even (2 * n)\n⊢ ¬IsCyclic (ZMod (2 * (2 * n)))ˣ",
"ppTerm": "?neg.inr.inr.ha✝",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"... | [
"case neg.inr.inr.hb\nn : ℕ\nh0 : ¬2 * (2 * n) = 0\nh1 : ¬2 * (2 * n) = 1\nh2 : ¬2 * (2 * n) = 2\nh4 : ¬2 * (2 * n) = 4\nhn✝ : Even (2 * (2 * n))\nhn : Even (2 * n)\n⊢ ¬((∃ x x_1, Nat.Prime x ∧ Odd x ∧ 1 ≤ x_1 ∧ 2 * (2 * n) = x ^ x_1) ∨\n ∃ x x_1, Nat.Prime x ∧ Odd x ∧ 1 ≤ x_1 ∧ 2 * (2 * n) = 2 * x ^ x_1)"
] | · rw [← mul_assoc, show 2 * 2 = 4 from rfl, isCyclic_units_four_mul_iff]
lia | Lean.Elab.Tactic.evalTacticCDot | Lean.cdot |
Mathlib.NumberTheory.BernoulliPolynomials | {
"line": 87,
"column": 2
} | {
"line": 87,
"column": 20
} | {
"line": 88,
"column": 2
} | [
{
"pp": "n : ℕ\n⊢ (if n = 1 then 1 else 0) + _root_.bernoulli n = bernoulli' n",
"ppTerm": "?m.8",
"assigned": true,
"usedConstants": [
"Rat.instOfNat",
"AddMonoid.toAddZeroClass",
"bernoulli",
"Rat",
"AddZeroClass.toAddZero",
"instOfNatNat",
"dite",
"... | [
"case pos\nn : ℕ\nh : n = 1\n⊢ (if n = 1 then 1 else 0) + _root_.bernoulli n = bernoulli' n",
"case neg\nn : ℕ\nh : ¬n = 1\n⊢ (if n = 1 then 1 else 0) + _root_.bernoulli n = bernoulli' n"
] | by_cases h : n = 1 | «_aux_Init_ByCases___macroRules_tacticBy_cases_:__2» | «tacticBy_cases_:_» |
Mathlib.NumberTheory.AbelSummation | {
"line": 278,
"column": 4
} | {
"line": 279,
"column": 28
} | {
"line": 281,
"column": 0
} | [
{
"pp": "case neg\n𝕜 : Type u_1\ninst✝ : RCLike 𝕜\nc : ℕ → 𝕜\na : ℝ\nm : ℕ\nha : 0 ≤ a\ng : ℝ → 𝕜\nhg : LocallyIntegrableOn g (Set.Ici a) volume\nK : Set ℝ\nhK₁ : K ⊆ Set.Ici a\nhK₂ : IsCompact K\nhK₃ : ¬K.Nonempty\n⊢ IntegrableOn (fun t ↦ g t * ∑ k ∈ Icc m ⌊t⌋₊, c k) K volume",
"ppTerm": "?neg✝",
"... | [] | rw [Set.not_nonempty_iff_eq_empty.mp hK₃]
exact integrableOn_empty | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.NumberTheory.AbelSummation | {
"line": 278,
"column": 4
} | {
"line": 279,
"column": 28
} | {
"line": 281,
"column": 0
} | [
{
"pp": "case neg\n𝕜 : Type u_1\ninst✝ : RCLike 𝕜\nc : ℕ → 𝕜\na : ℝ\nm : ℕ\nha : 0 ≤ a\ng : ℝ → 𝕜\nhg : LocallyIntegrableOn g (Set.Ici a) volume\nK : Set ℝ\nhK₁ : K ⊆ Set.Ici a\nhK₂ : IsCompact K\nhK₃ : ¬K.Nonempty\n⊢ IntegrableOn (fun t ↦ g t * ∑ k ∈ Icc m ⌊t⌋₊, c k) K volume",
"ppTerm": "?neg✝",
"... | [] | rw [Set.not_nonempty_iff_eq_empty.mp hK₃]
exact integrableOn_empty | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.NumberTheory.AbelSummation | {
"line": 291,
"column": 37
} | {
"line": 291,
"column": 78
} | {
"line": 291,
"column": 78
} | [
{
"pp": "𝕜 : Type u_1\ninst✝ : RCLike 𝕜\nc : ℕ → 𝕜\nf : ℝ → 𝕜\nhf_diff : ∀ t ∈ Set.Ici 0, DifferentiableAt ℝ f t\nhf_int : LocallyIntegrableOn (deriv f) (Set.Ici 0) volume\nl : 𝕜\nh_lim : Tendsto (fun n ↦ f ↑n * ∑ k ∈ Icc 0 n, c k) atTop (𝓝 l)\ng : ℝ → 𝕜\nhg_dom : (fun t ↦ deriv f t * ∑ k ∈ Icc 0 ⌊t⌋₊, c... | [] | rw [← integral_of_le (Nat.cast_nonneg _)] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.NumberTheory.AbelSummation | {
"line": 291,
"column": 37
} | {
"line": 291,
"column": 78
} | {
"line": 291,
"column": 78
} | [
{
"pp": "𝕜 : Type u_1\ninst✝ : RCLike 𝕜\nc : ℕ → 𝕜\nf : ℝ → 𝕜\nhf_diff : ∀ t ∈ Set.Ici 0, DifferentiableAt ℝ f t\nhf_int : LocallyIntegrableOn (deriv f) (Set.Ici 0) volume\nl : 𝕜\nh_lim : Tendsto (fun n ↦ f ↑n * ∑ k ∈ Icc 0 n, c k) atTop (𝓝 l)\ng : ℝ → 𝕜\nhg_dom : (fun t ↦ deriv f t * ∑ k ∈ Icc 0 ⌊t⌋₊, c... | [] | rw [← integral_of_le (Nat.cast_nonneg _)] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.NumberTheory.AbelSummation | {
"line": 291,
"column": 37
} | {
"line": 291,
"column": 78
} | {
"line": 291,
"column": 78
} | [
{
"pp": "𝕜 : Type u_1\ninst✝ : RCLike 𝕜\nc : ℕ → 𝕜\nf : ℝ → 𝕜\nhf_diff : ∀ t ∈ Set.Ici 0, DifferentiableAt ℝ f t\nhf_int : LocallyIntegrableOn (deriv f) (Set.Ici 0) volume\nl : 𝕜\nh_lim : Tendsto (fun n ↦ f ↑n * ∑ k ∈ Icc 0 n, c k) atTop (𝓝 l)\ng : ℝ → 𝕜\nhg_dom : (fun t ↦ deriv f t * ∑ k ∈ Icc 0 ⌊t⌋₊, c... | [] | rw [← integral_of_le (Nat.cast_nonneg _)] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.NumberTheory.Bernoulli | {
"line": 168,
"column": 4
} | {
"line": 168,
"column": 40
} | {
"line": 168,
"column": 41
} | [
{
"pp": "A : Type u_1\ninst✝¹ : CommRing A\ninst✝ : Algebra ℚ A\nn : ℕ\nthis : ∑ p ∈ antidiagonal n, bernoulli' p.1 / ↑p.1! * ((↑p.2 + 1) * ↑p.2!)⁻¹ = (↑n !)⁻¹\n⊢ (coeff (n + 1, 0).1) (PowerSeries.mk fun n ↦ (algebraMap ℚ A) (bernoulli' n / ↑n !)) *\n (coeff (n + 1, 0).2) (exp A - 1) +\n ∑ p ∈ antid... | [
"A : Type u_1\ninst✝¹ : CommRing A\ninst✝ : Algebra ℚ A\nn : ℕ\nthis : ∑ p ∈ antidiagonal n, bernoulli' p.1 / ↑p.1! * ((↑p.2 + 1) * ↑p.2!)⁻¹ = (↑n !)⁻¹\n⊢ ∑ x ∈ antidiagonal n,\n (algebraMap ℚ A) (bernoulli' x.1 / ↑x.1!) * ((algebraMap ℚ A) (↑x.2!)⁻¹ * (algebraMap ℚ A) (↑x.2 + 1)⁻¹) =\n (algebraMap ℚ A) (↑n... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Bernoulli | {
"line": 186,
"column": 6
} | {
"line": 186,
"column": 20
} | {
"line": 186,
"column": 21
} | [
{
"pp": "case inl\nn : ℕ\nh_odd : Odd n\nhlt : 1 < n\nB : ℚ⟦X⟧ := PowerSeries.mk fun n ↦ bernoulli' n / ↑n !\nthis : (B - evalNegHom B) * (exp ℚ - 1) = X * (exp ℚ - 1)\nh : (coeff n) (B - (rescale (-1)) B) = if n = 1 then 1 else 0\n⊢ -bernoulli' n = bernoulli' n",
"ppTerm": "?inl",
"assigned": true,
... | [
"case pos\nn : ℕ\nh_odd : Odd n\nhlt : 1 < n\nB : ℚ⟦X⟧ := PowerSeries.mk fun n ↦ bernoulli' n / ↑n !\nthis : (B - evalNegHom B) * (exp ℚ - 1) = X * (exp ℚ - 1)\nh✝ : n = 1\nh : (coeff n) (B - (rescale (-1)) B) = 1\n⊢ -bernoulli' n = bernoulli' n",
"case neg\nn : ℕ\nh_odd : Odd n\nhlt : 1 < n\nB : ℚ⟦X⟧ := PowerSer... | split_ifs at h | Mathlib.Tactic._aux_Mathlib_Tactic_SplitIfs___elabRules_Mathlib_Tactic_splitIfs_1 | Mathlib.Tactic.splitIfs |
Mathlib.NumberTheory.Bernoulli | {
"line": 187,
"column": 6
} | {
"line": 187,
"column": 41
} | {
"line": 187,
"column": 42
} | [
{
"pp": "case inr\nn : ℕ\nh_odd : Odd n\nhlt : 1 < n\nB : ℚ⟦X⟧ := PowerSeries.mk fun n ↦ bernoulli' n / ↑n !\nthis : (B - evalNegHom B) * (exp ℚ - 1) = X * (exp ℚ - 1)\nh : ∀ (n : ℕ), (coeff n) (exp ℚ - 1) = (coeff n) 0\n⊢ bernoulli' n = 0",
"ppTerm": "?inr",
"assigned": false,
"usedConstants": [],
... | [
"case inr\nn : ℕ\nh_odd : Odd n\nhlt : 1 < n\nB : ℚ⟦X⟧ := PowerSeries.mk fun n ↦ bernoulli' n / ↑n !\nthis : (B - evalNegHom B) * (exp ℚ - 1) = X * (exp ℚ - 1)\nh : ∀ (n : ℕ), (coeff n) (exp ℚ - 1) = (coeff n) 0\n⊢ bernoulli' n = 0"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Bernoulli | {
"line": 189,
"column": 4
} | {
"line": 189,
"column": 39
} | {
"line": 189,
"column": 40
} | [
{
"pp": "n : ℕ\nh_odd : Odd n\nhlt : 1 < n\nB : ℚ⟦X⟧ := PowerSeries.mk fun n ↦ bernoulli' n / ↑n !\n⊢ B * (exp ℚ - 1) = X * exp ℚ",
"ppTerm": "?m.154",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"n : ℕ\nh_odd : Odd n\nhlt : 1 < n\nB : ℚ⟦X⟧ := PowerSeries.mk fun n ↦ bernoulli' n / ↑n !\n⊢ B * (exp ℚ - 1) = X * exp ℚ"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.BernoulliPolynomials | {
"line": 205,
"column": 2
} | {
"line": 205,
"column": 13
} | {
"line": 205,
"column": 14
} | [
{
"pp": "n : ℕ\nx : ℚ\nthis : (bernoulli n).comp (1 + X) = bernoulli n + n • X ^ (n - 1)\n⊢ eval (1 + x) (bernoulli n) = eval x (bernoulli n) + ↑n * x ^ (n - 1)",
"ppTerm": "?m.32",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"n : ℕ\nx : ℚ\nthis : (bernoulli n).comp (1 + X) = bernoulli n + n • X ^ (n - 1)\n⊢ eval (1 + x) (bernoulli n) = eval x (bernoulli n) + ↑n * x ^ (n - 1)"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.BernoulliPolynomials | {
"line": 228,
"column": 2
} | {
"line": 228,
"column": 23
} | {
"line": 228,
"column": 24
} | [
{
"pp": "n : ℕ\nx : ℚ\n⊢ eval (-x) (bernoulli n) = (-1) ^ n * (eval x (bernoulli n) + ↑n * x ^ (n - 1))",
"ppTerm": "?m.38",
"assigned": true,
"usedConstants": [
"Rat.instOfNat",
"Distrib.leftDistribClass",
"Eq.mpr",
"Polynomial.eval",
"Rat.instMul",
"HMul.hMul",
... | [
"n : ℕ\nx : ℚ\n⊢ eval (-x) (bernoulli n) = (-1) ^ n * eval x (bernoulli n) + (-1) ^ n * (↑n * x ^ (n - 1))"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.BernoulliPolynomials | {
"line": 231,
"column": 59
} | {
"line": 238,
"column": 8
} | {
"line": 240,
"column": 0
} | [
{
"pp": "n : ℕ\n⊢ (bernoulli n).comp (1 - X) = (-1) ^ n * bernoulli n",
"ppTerm": "?m.26",
"assigned": true,
"usedConstants": [
"Rat.addCommMonoid",
"Mathlib.Tactic.Ring.Common.mul_pf_left",
"AddGroup.toSubtractionMonoid",
"Int.cast_neg",
"Int.cast",
"Mathlib.Tact... | [] | by
cases n with
| zero => simp
| succ n =>
trans ((bernoulli (n + 1)).comp (1 + X)).comp (-X)
· simp [comp_assoc, sub_eq_add_neg]
simp [bernoulli_comp_one_add_X, bernoulli_comp_neg_X, neg_pow (X : Polynomial ℚ)]
ring | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.NumberTheory.BernoulliPolynomials | {
"line": 242,
"column": 2
} | {
"line": 242,
"column": 13
} | {
"line": 242,
"column": 14
} | [
{
"pp": "n : ℕ\nx : ℚ\n⊢ eval (1 - x) (bernoulli n) = (-1) ^ n * eval x (bernoulli n)",
"ppTerm": "?m.24",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"n : ℕ\nx : ℚ\n⊢ eval (1 - x) (bernoulli n) = (-1) ^ n * eval x (bernoulli n)"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Bernoulli | {
"line": 312,
"column": 29
} | {
"line": 312,
"column": 40
} | {
"line": 312,
"column": 41
} | [
{
"pp": "n p : ℕ\nhne : ∀ (m : ℕ), ↑m ! ≠ 0\nq : ℕ\nf : ℕ → ℕ → ℚ := fun a b ↦ bernoulli a / ↑a ! * (coeff (b + 1)) (exp ℚ ^ n)\nm : ℕ\nh : m ∈ range q.succ\n⊢ m < q + 1",
"ppTerm": "?m.213",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Nat.instOne",
"PartialOrder.toPreorder",
... | [
"n p : ℕ\nhne : ∀ (m : ℕ), ↑m ! ≠ 0\nq : ℕ\nf : ℕ → ℕ → ℚ := fun a b ↦ bernoulli a / ↑a ! * (coeff (b + 1)) (exp ℚ ^ n)\nm : ℕ\nh : m ∈ range q.succ\n⊢ m ≤ q"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Bernoulli | {
"line": 317,
"column": 83
} | {
"line": 317,
"column": 93
} | {
"line": 318,
"column": 6
} | [
{
"pp": "n p : ℕ\nhne : ∀ (m : ℕ), ↑m ! ≠ 0\nq : ℕ\nf : ℕ → ℕ → ℚ := fun a b ↦ bernoulli a / ↑a ! * (coeff (b + 1)) (exp ℚ ^ n)\nm : ℕ\nh✝ : m ∈ range q.succ\nh : m < q + 1\n⊢ bernoulli m * ↑((q + 1)! / (m ! * (q + 1 - m)!)) * ↑n ^ (q + 1 - m) =\n bernoulli m * ↑q.succ ! / ↑m ! * (↑(q - m + 1)!)⁻¹ * ↑n ^ (q ... | [
"n p : ℕ\nhne : ∀ (m : ℕ), ↑m ! ≠ 0\nq : ℕ\nf : ℕ → ℕ → ℚ := fun a b ↦ bernoulli a / ↑a ! * (coeff (b + 1)) (exp ℚ ^ n)\nm : ℕ\nh✝ : m ∈ range q.succ\nh : m < q + 1\n⊢ bernoulli m * ↑((q + 1)! / (m ! * (q + 1 - m)!)) * ↑n ^ (q + 1 - m) =\n bernoulli m * ↑q.succ ! / ↑m ! * (1 / ↑(q - m + 1)!) * ↑n ^ (q - m + 1)"
... | ← one_div, | Lean.Elab.Tactic.evalRewriteSeq | null |
Mathlib.NumberTheory.Bernoulli | {
"line": 333,
"column": 6
} | {
"line": 333,
"column": 17
} | {
"line": 333,
"column": 18
} | [
{
"pp": "n p : ℕ\nhne : ∀ (m : ℕ), ↑m ! ≠ 0\nh_cauchy :\n ((PowerSeries.mk fun p ↦ bernoulli p / ↑p !) * PowerSeries.mk fun q ↦ (coeff (q + 1)) (exp ℚ ^ n)) =\n PowerSeries.mk fun p ↦ ∑ i ∈ range (p + 1), bernoulli i * ↑((p + 1).choose i) * ↑n ^ (p + 1 - i) / ↑(p + 1)!\nthis :\n ∀ (n_1 : ℕ),\n (coeff n_... | [
"n p : ℕ\nhne : ∀ (m : ℕ), ↑m ! ≠ 0\nh_cauchy :\n ((PowerSeries.mk fun p ↦ bernoulli p / ↑p !) * PowerSeries.mk fun q ↦ (coeff (q + 1)) (exp ℚ ^ n)) =\n PowerSeries.mk fun p ↦ ∑ i ∈ range (p + 1), bernoulli i * ↑((p + 1).choose i) * ↑n ^ (p + 1 - i) / ↑(p + 1)!\nthis :\n ∀ (n_1 : ℕ),\n (coeff n_1) (PowerSer... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.FermatPsp | {
"line": 148,
"column": 20
} | {
"line": 148,
"column": 41
} | {
"line": 149,
"column": 4
} | [
{
"pp": "a b : ℕ\nha : 2 ≤ a\nhb : 2 < b\n⊢ a ^ 2 * a = a ^ 3",
"ppTerm": "?m.76",
"assigned": true,
"usedConstants": [
"instPowNat",
"Eq.mpr",
"HMul.hMul",
"congrArg",
"Nat.instMonoid",
"Nat.pow_succ",
"id",
"instMulNat",
"instOfNatNat",
"... | [] | rw [Nat.pow_succ a 2] | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_rwSeq_1 | Lean.Parser.Tactic.rwSeq |
Mathlib.NumberTheory.FermatPsp | {
"line": 148,
"column": 20
} | {
"line": 148,
"column": 41
} | {
"line": 149,
"column": 4
} | [
{
"pp": "a b : ℕ\nha : 2 ≤ a\nhb : 2 < b\n⊢ a ^ 2 * a = a ^ 3",
"ppTerm": "?m.76",
"assigned": true,
"usedConstants": [
"instPowNat",
"Eq.mpr",
"HMul.hMul",
"congrArg",
"Nat.instMonoid",
"Nat.pow_succ",
"id",
"instMulNat",
"instOfNatNat",
"... | [] | rw [Nat.pow_succ a 2] | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.NumberTheory.FermatPsp | {
"line": 148,
"column": 20
} | {
"line": 148,
"column": 41
} | {
"line": 149,
"column": 4
} | [
{
"pp": "a b : ℕ\nha : 2 ≤ a\nhb : 2 < b\n⊢ a ^ 2 * a = a ^ 3",
"ppTerm": "?m.76",
"assigned": true,
"usedConstants": [
"instPowNat",
"Eq.mpr",
"HMul.hMul",
"congrArg",
"Nat.instMonoid",
"Nat.pow_succ",
"id",
"instMulNat",
"instOfNatNat",
"... | [] | rw [Nat.pow_succ a 2] | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.NumberTheory.FermatPsp | {
"line": 153,
"column": 36
} | {
"line": 153,
"column": 62
} | {
"line": 153,
"column": 63
} | [
{
"pp": "b p : ℕ\nhp : Odd p\n⊢ b - 1 ∣ b ^ p - 1",
"ppTerm": "?m.104",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"b p : ℕ\nhp : Odd p\n⊢ b - 1 ∣ b ^ p - 1"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.FermatPsp | {
"line": 154,
"column": 36
} | {
"line": 154,
"column": 62
} | {
"line": 154,
"column": 63
} | [
{
"pp": "b p : ℕ\nhp : Odd p\nq₁ : b - 1 ∣ b ^ p - 1\n⊢ b + 1 ∣ b ^ p + 1",
"ppTerm": "?m.136",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"b p : ℕ\nhp : Odd p\nq₁ : b - 1 ∣ b ^ p - 1\n⊢ b + 1 ∣ b ^ p + 1"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Bertrand | {
"line": 154,
"column": 41
} | {
"line": 154,
"column": 80
} | {
"line": 154,
"column": 81
} | [
{
"pp": "n : ℕ\nn_large : 2 < n\nno_prime : ∀ (p : ℕ), Nat.Prime p → n < p → 2 * n < p\nx : ℕ\nhx : x ≤ 2 * n\nh2x : 2 * n < 3 * x\n⊢ ¬Nat.Prime x ∨ x ≤ n",
"ppTerm": "?m.174",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"n : ℕ\nn_large : 2 < n\nno_prime : ∀ (p : ℕ), Nat.Prime p → n < p → 2 * n < p\nx : ℕ\nhx : x ≤ 2 * n\nh2x : 2 * n < 3 * x\n⊢ ¬Nat.Prime x ∨ x ≤ n"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.FermatPsp | {
"line": 218,
"column": 4
} | {
"line": 218,
"column": 39
} | {
"line": 218,
"column": 40
} | [
{
"pp": "b : ℕ\nb_ge_two : 2 ≤ b\np : ℕ\np_prime : Prime p\np_gt_two : 2 < p\nnot_dvd : ¬p ∣ b * (b ^ 2 - 1)\nA : ℕ := (b ^ p - 1) / (b - 1)\nB : ℕ := (b ^ p + 1) / (b + 1)\nhA : p < A\nhi_A : 1 < A\nhi_B : 1 < B\nhi_b : 0 < b\nhi_bsquared : 0 < b ^ 2 - 1\nhi_bpowtwop : 1 ≤ b ^ (2 * p)\nhi_bpowpsubone : 1 ≤ b ^... | [
"b : ℕ\nb_ge_two : 2 ≤ b\np : ℕ\np_prime : Prime p\np_gt_two : 2 < p\nnot_dvd : ¬p ∣ b * (b ^ 2 - 1)\nA : ℕ := (b ^ p - 1) / (b - 1)\nB : ℕ := (b ^ p + 1) / (b + 1)\nhA : p < A\nhi_A : 1 < A\nhi_B : 1 < B\nhi_b : 0 < b\nhi_bsquared : 0 < b ^ 2 - 1\nhi_bpowtwop : 1 ≤ b ^ (2 * p)\nhi_bpowpsubone : 1 ≤ b ^ (p - 1)\np_... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.FermatPsp | {
"line": 251,
"column": 6
} | {
"line": 251,
"column": 32
} | {
"line": 251,
"column": 33
} | [
{
"pp": "b : ℕ\nb_ge_two : 2 ≤ b\np : ℕ\np_prime : Prime p\np_gt_two : 2 < p\nnot_dvd : ¬p ∣ b * (b ^ 2 - 1)\nA : ℕ := (b ^ p - 1) / (b - 1)\nB : ℕ := (b ^ p + 1) / (b + 1)\nhA : p < A\nhi_A : 1 < A\nhi_B : 1 < B\nhi_b : 0 < b\nhi_bsquared : 0 < b ^ 2 - 1\nhi_bpowtwop : 1 ≤ b ^ (2 * p)\nhi_bpowpsubone : 1 ≤ b ^... | [
"b : ℕ\nb_ge_two : 2 ≤ b\np : ℕ\np_prime : Prime p\np_gt_two : 2 < p\nnot_dvd : ¬p ∣ b * (b ^ 2 - 1)\nA : ℕ := (b ^ p - 1) / (b - 1)\nB : ℕ := (b ^ p + 1) / (b + 1)\nhA : p < A\nhi_A : 1 < A\nhi_B : 1 < B\nhi_b : 0 < b\nhi_bsquared : 0 < b ^ 2 - 1\nhi_bpowtwop : 1 ≤ b ^ (2 * p)\nhi_bpowpsubone : 1 ≤ b ^ (p - 1)\nAB... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.CarmichaelNumber | {
"line": 69,
"column": 2
} | {
"line": 69,
"column": 13
} | {
"line": 69,
"column": 14
} | [
{
"pp": "h : IsCarmichael 0\n⊢ False",
"ppTerm": "?m.4",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"h : IsCarmichael 0\n⊢ False"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.CarmichaelNumber | {
"line": 74,
"column": 2
} | {
"line": 74,
"column": 13
} | {
"line": 74,
"column": 14
} | [
{
"pp": "h : IsCarmichael 1\n⊢ False",
"ppTerm": "?m.4",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"h : IsCarmichael 1\n⊢ False"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.CarmichaelNumber | {
"line": 123,
"column": 27
} | {
"line": 123,
"column": 38
} | {
"line": 123,
"column": 39
} | [
{
"pp": "n p : ℕ\nh : n.IsCarmichael\nhp : Prime p\nhpn : p ∣ n\n⊢ p ∣ n",
"ppTerm": "?m.29",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"n p : ℕ\nh : n.IsCarmichael\nhp : Prime p\nhpn : p ∣ n\n⊢ p ∣ n"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.FermatPsp | {
"line": 279,
"column": 4
} | {
"line": 279,
"column": 86
} | {
"line": 279,
"column": 87
} | [
{
"pp": "case h\nb : ℕ\nb_ge_two : 2 ≤ b\np : ℕ\np_prime : Prime p\np_gt_two : 2 < p\nnot_dvd : ¬p ∣ b * (b ^ 2 - 1)\nA : ℕ := (b ^ p - 1) / (b - 1)\nB : ℕ := (b ^ p + 1) / (b + 1)\nhA : p < A\nhi_A : 1 < A\nhi_B : 1 < B\nhi_b : 0 < b\nhi_bsquared : 0 < b ^ 2 - 1\nhi_bpowtwop : 1 ≤ b ^ (2 * p)\nhi_bpowpsubone :... | [
"case h\nb : ℕ\nb_ge_two : 2 ≤ b\np : ℕ\np_prime : Prime p\np_gt_two : 2 < p\nnot_dvd : ¬p ∣ b * (b ^ 2 - 1)\nA : ℕ := (b ^ p - 1) / (b - 1)\nB : ℕ := (b ^ p + 1) / (b + 1)\nhA : p < A\nhi_A : 1 < A\nhi_B : 1 < B\nhi_b : 0 < b\nhi_bsquared : 0 < b ^ 2 - 1\nhi_bpowtwop : 1 ≤ b ^ (2 * p)\nhi_bpowpsubone : 1 ≤ b ^ (p ... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.FermatPsp | {
"line": 285,
"column": 4
} | {
"line": 285,
"column": 43
} | {
"line": 285,
"column": 44
} | [
{
"pp": "b : ℕ\nb_ge_two : 2 ≤ b\np : ℕ\np_prime : Prime p\np_gt_two : 2 < p\nnot_dvd : ¬p ∣ b * (b ^ 2 - 1)\nA : ℕ := (b ^ p - 1) / (b - 1)\nB : ℕ := (b ^ p + 1) / (b + 1)\nhA : p < A\nhi_A : 1 < A\nhi_B : 1 < B\nhi_b : 0 < b\nhi_bsquared : 0 < b ^ 2 - 1\nhi_bpowtwop : 1 ≤ b ^ (2 * p)\nhi_bpowpsubone : 1 ≤ b ^... | [
"b : ℕ\nb_ge_two : 2 ≤ b\np : ℕ\np_prime : Prime p\np_gt_two : 2 < p\nnot_dvd : ¬p ∣ b * (b ^ 2 - 1)\nA : ℕ := (b ^ p - 1) / (b - 1)\nB : ℕ := (b ^ p + 1) / (b + 1)\nhA : p < A\nhi_A : 1 < A\nhi_B : 1 < B\nhi_b : 0 < b\nhi_bsquared : 0 < b ^ 2 - 1\nhi_bpowtwop : 1 ≤ b ^ (2 * p)\nhi_bpowpsubone : 1 ≤ b ^ (p - 1)\np_... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.ClassNumber.AdmissibleAbsoluteValue | {
"line": 100,
"column": 12
} | {
"line": 100,
"column": 58
} | {
"line": 100,
"column": 59
} | [
{
"pp": "R : Type u_1\ninst✝ : EuclideanDomain R\nabv : AbsoluteValue R ℤ\nh : abv.IsAdmissible\nthis : DecidableEq R\nn : ℕ\nih :\n ∀ {ε : ℝ},\n 0 < ε →\n ∀ {b : R},\n b ≠ 0 →\n ∀ (A : Fin (h.card ε ^ n).succ → Fin n → R),\n ∃ i₀ i₁, i₀ ≠ i₁ ∧ ∀ (k : Fin n), ↑(abv (A i₁ k % ... | [
"R : Type u_1\ninst✝ : EuclideanDomain R\nabv : AbsoluteValue R ℤ\nh : abv.IsAdmissible\nthis : DecidableEq R\nn : ℕ\nih :\n ∀ {ε : ℝ},\n 0 < ε →\n ∀ {b : R},\n b ≠ 0 →\n ∀ (A : Fin (h.card ε ^ n).succ → Fin n → R),\n ∃ i₀ i₁, i₀ ≠ i₁ ∧ ∀ (k : Fin n), ↑(abv (A i₁ k % b - A i₀ k %... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.ClassNumber.AdmissibleAbsoluteValue | {
"line": 105,
"column": 6
} | {
"line": 105,
"column": 72
} | {
"line": 105,
"column": 73
} | [
{
"pp": "case refine_1\nR : Type u_1\ninst✝ : EuclideanDomain R\nabv : AbsoluteValue R ℤ\nh✝ : abv.IsAdmissible\nthis✝ : DecidableEq R\nn : ℕ\nih :\n ∀ {ε : ℝ},\n 0 < ε →\n ∀ {b : R},\n b ≠ 0 →\n ∀ (A : Fin (h✝.card ε ^ n).succ → Fin n → R),\n ∃ i₀ i₁, i₀ ≠ i₁ ∧ ∀ (k : Fin n)... | [
"case refine_1\nR : Type u_1\ninst✝ : EuclideanDomain R\nabv : AbsoluteValue R ℤ\nh✝ : abv.IsAdmissible\nthis✝ : DecidableEq R\nn : ℕ\nih :\n ∀ {ε : ℝ},\n 0 < ε →\n ∀ {b : R},\n b ≠ 0 →\n ∀ (A : Fin (h✝.card ε ^ n).succ → Fin n → R),\n ∃ i₀ i₁, i₀ ≠ i₁ ∧ ∀ (k : Fin n), ↑(abv (A i... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.ClassNumber.AdmissibleCardPowDegree | {
"line": 49,
"column": 4
} | {
"line": 49,
"column": 15
} | {
"line": 49,
"column": 16
} | [
{
"pp": "Fq : Type u_1\ninst✝¹ : Fintype Fq\ninst✝ : Semiring Fq\nd m : ℕ\nhm : Fintype.card Fq ^ d ≤ m\nb : Fq[X]\nhb : b.natDegree ≤ d\nA : Fin m.succ → Fq[X]\nhA : ∀ (i : Fin m.succ), (A i).degree < b.degree\nf : Fin m.succ → Fin d → Fq := fun i j ↦ (A i).coeff ↑j\n⊢ Fintype.card (Fin d → Fq) < Fintype.card ... | [
"Fq : Type u_1\ninst✝¹ : Fintype Fq\ninst✝ : Semiring Fq\nd m : ℕ\nhm : Fintype.card Fq ^ d ≤ m\nb : Fq[X]\nhb : b.natDegree ≤ d\nA : Fin m.succ → Fq[X]\nhA : ∀ (i : Fin m.succ), (A i).degree < b.degree\nf : Fin m.succ → Fin d → Fq := fun i j ↦ (A i).coeff ↑j\n⊢ Fintype.card Fq ^ d ≤ m"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.ClassNumber.AdmissibleCardPowDegree | {
"line": 79,
"column": 4
} | {
"line": 79,
"column": 15
} | {
"line": 79,
"column": 16
} | [
{
"pp": "Fq : Type u_1\ninst✝¹ : Fintype Fq\ninst✝ : Ring Fq\nd m : ℕ\nhm : Fintype.card Fq ^ d ≤ m\nb : Fq[X]\nA : Fin m.succ → Fq[X]\nhA : ∀ (i : Fin m.succ), (A i).degree < b.degree\nhb : b ≠ 0\nf : Fin m.succ → Fin d → Fq := fun i j ↦ (A i).coeff (b.natDegree - ↑j.succ)\n⊢ Fintype.card (Fin d → Fq) < Fintyp... | [
"Fq : Type u_1\ninst✝¹ : Fintype Fq\ninst✝ : Ring Fq\nd m : ℕ\nhm : Fintype.card Fq ^ d ≤ m\nb : Fq[X]\nA : Fin m.succ → Fq[X]\nhA : ∀ (i : Fin m.succ), (A i).degree < b.degree\nhb : b ≠ 0\nf : Fin m.succ → Fin d → Fq := fun i j ↦ (A i).coeff (b.natDegree - ↑j.succ)\n⊢ Fintype.card Fq ^ d ≤ m"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Chebyshev | {
"line": 90,
"column": 4
} | {
"line": 90,
"column": 15
} | {
"line": 90,
"column": 16
} | [
{
"pp": "case refine_2\nx : ℝ\nhy : 2 ≤ x\nthis : 0 ≤ x\n⊢ 2 ∈ {p ∈ Ioc 0 ⌊x⌋₊ | Nat.Prime p}",
"ppTerm": "?refine_2",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Nat.instMulZeroClass",
"Real.partialOrder",
"Real",
"Finset.mem_filter._simp_1",
"Nat.Prime",
... | [
"case refine_2\nx : ℝ\nhy : 2 ≤ x\nthis : 0 ≤ x\n⊢ 2 ≤ ⌊x⌋₊ ∧ Nat.Prime 2"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.ClassNumber.Finite | {
"line": 173,
"column": 4
} | {
"line": 176,
"column": 14
} | {
"line": 177,
"column": 2
} | [
{
"pp": "case mp\nR : Type u_1\nS : Type u_2\ninst✝⁷ : EuclideanDomain R\ninst✝⁶ : CommRing S\ninst✝⁵ : IsDomain S\ninst✝⁴ : Algebra R S\nabv : AbsoluteValue R ℤ\nι : Type u_5\ninst✝³ : DecidableEq ι\ninst✝² : Fintype ι\nbS : Basis ι R S\nadm : abv.IsAdmissible\ninst✝¹ : Infinite R\ninst✝ : DecidableEq R\nx : R... | [] | rintro ⟨hx, ⟨i, j⟩, _, rfl⟩
refine ⟨i, j, ?_, rfl⟩
rintro rfl
simp at hx | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.NumberTheory.ClassNumber.Finite | {
"line": 173,
"column": 4
} | {
"line": 176,
"column": 14
} | {
"line": 177,
"column": 2
} | [
{
"pp": "case mp\nR : Type u_1\nS : Type u_2\ninst✝⁷ : EuclideanDomain R\ninst✝⁶ : CommRing S\ninst✝⁵ : IsDomain S\ninst✝⁴ : Algebra R S\nabv : AbsoluteValue R ℤ\nι : Type u_5\ninst✝³ : DecidableEq ι\ninst✝² : Fintype ι\nbS : Basis ι R S\nadm : abv.IsAdmissible\ninst✝¹ : Infinite R\ninst✝ : DecidableEq R\nx : R... | [] | rintro ⟨hx, ⟨i, j⟩, _, rfl⟩
refine ⟨i, j, ?_, rfl⟩
rintro rfl
simp at hx | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.NumberTheory.Chebyshev | {
"line": 325,
"column": 4
} | {
"line": 325,
"column": 68
} | {
"line": 326,
"column": 2
} | [
{
"pp": "case h\nn k : ℕ\nhk : k ∈ range (n + 1)\n⊢ n.choose k ≤ n.lcmUpto",
"ppTerm": "?h",
"assigned": true,
"usedConstants": [
"Nat.choose",
"Nat.lcmUpto_pos",
"Nat.lcmUpto",
"_private.Mathlib.NumberTheory.Chebyshev.0.Chebyshev.two_pow_le_mul_lcmUpto._proof_1_1",
"Ch... | [] | exact le_of_dvd (lcmUpto_pos n) (choose_dvd_lcmUpto <| by grind) | Lean.Elab.Tactic.evalExact | Lean.Parser.Tactic.exact |
Mathlib.NumberTheory.Chebyshev | {
"line": 343,
"column": 2
} | {
"line": 344,
"column": 65
} | {
"line": 346,
"column": 0
} | [
{
"pp": "n : ℕ\nhn : n ≠ 0\n⊢ n * 4 ^ n ≤ (2 * n + 1).lcmUpto",
"ppTerm": "?m.28",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Chebyshev.mul_mul_choose_dvd_lcmUpto",
"le_refl",
"IsOrderedMonoid.toMulRightMono",
"Semigroup.toMul",
"Nat.choose",
"HMul.hMul... | [] | grw [four_pow_le_add_one_mul_choose, ← mul_assoc]
exact le_of_dvd (lcmUpto_pos _) (mul_mul_choose_dvd_lcmUpto hn) | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.NumberTheory.Chebyshev | {
"line": 343,
"column": 2
} | {
"line": 344,
"column": 65
} | {
"line": 346,
"column": 0
} | [
{
"pp": "n : ℕ\nhn : n ≠ 0\n⊢ n * 4 ^ n ≤ (2 * n + 1).lcmUpto",
"ppTerm": "?m.28",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Chebyshev.mul_mul_choose_dvd_lcmUpto",
"le_refl",
"IsOrderedMonoid.toMulRightMono",
"Semigroup.toMul",
"Nat.choose",
"HMul.hMul... | [] | grw [four_pow_le_add_one_mul_choose, ← mul_assoc]
exact le_of_dvd (lcmUpto_pos _) (mul_mul_choose_dvd_lcmUpto hn) | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.NumberTheory.Chebyshev | {
"line": 370,
"column": 4
} | {
"line": 388,
"column": 10
} | {
"line": 389,
"column": 2
} | [
{
"pp": "R : Type u_1\ninst✝ : AddCommMonoid R\nf : ℕ → R\nx : ℝ\nhx : 0 ≤ x\nN : ℕ\nhN : ⌊log x / log 2⌋₊ ≤ N\n⊢ ∑ n ∈ Ioc 0 ⌊x⌋₊ with IsPrimePow n, f n =\n ∑ x ∈ Icc 1 N ×ˢ filter Nat.Prime (Ioc 0 ⌊x⌋₊) with\n match x with\n | (k, p) => p ≤ ⌊x ^ (↑k)⁻¹⌋₊,\n match x with\n | (k, p) => f ... | [] | refine (sum_bij (i := fun ⟨k, p⟩ _ ↦ p ^ k) ?_ ?_ ?_ ?_).symm
· simp +contextual [hx, rpow_nonneg, le_floor_iff, ← pos_iff_ne_zero, Prime.isPrimePow,
one_le_iff_ne_zero, le_rpow_inv_iff_of_pos, isPrimePow_pow_iff, prime_iff]
· simp +contextual only [hx, rpow_nonneg, le_floor_iff, mem_filter, mem_product... | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Mathlib.NumberTheory.Chebyshev | {
"line": 370,
"column": 4
} | {
"line": 388,
"column": 10
} | {
"line": 389,
"column": 2
} | [
{
"pp": "R : Type u_1\ninst✝ : AddCommMonoid R\nf : ℕ → R\nx : ℝ\nhx : 0 ≤ x\nN : ℕ\nhN : ⌊log x / log 2⌋₊ ≤ N\n⊢ ∑ n ∈ Ioc 0 ⌊x⌋₊ with IsPrimePow n, f n =\n ∑ x ∈ Icc 1 N ×ˢ filter Nat.Prime (Ioc 0 ⌊x⌋₊) with\n match x with\n | (k, p) => p ≤ ⌊x ^ (↑k)⁻¹⌋₊,\n match x with\n | (k, p) => f ... | [] | refine (sum_bij (i := fun ⟨k, p⟩ _ ↦ p ^ k) ?_ ?_ ?_ ?_).symm
· simp +contextual [hx, rpow_nonneg, le_floor_iff, ← pos_iff_ne_zero, Prime.isPrimePow,
one_le_iff_ne_zero, le_rpow_inv_iff_of_pos, isPrimePow_pow_iff, prime_iff]
· simp +contextual only [hx, rpow_nonneg, le_floor_iff, mem_filter, mem_product... | Lean.Elab.Tactic.evalTacticSeq | Lean.Parser.Tactic.tacticSeq |
Mathlib.NumberTheory.Bernoulli | {
"line": 641,
"column": 22
} | {
"line": 641,
"column": 33
} | {
"line": 641,
"column": 34
} | [
{
"pp": "case h.e_a\nk p : ℕ\nhk : k > 0\ninst✝ : Fact (Nat.Prime p)\nhcast : ↑(∑ v ∈ Ico 1 p, ↑v ^ (2 * k) + if p - 1 ∣ 2 * k then 1 else 0) = 0\nT : ℤ\nhT_int : (∑ v ∈ Ico 1 p, ↑v ^ (2 * k) + if p - 1 ∣ 2 * k then 1 else 0) = ↑p * T\nhT : ∑ v ∈ Ico 1 p, ↑v ^ (2 * k) + vonStaudtIndicator (2 * k) p = ↑p * ↑T\nh... | [
"case h.e_a\nk p : ℕ\nhk : k > 0\ninst✝ : Fact (Nat.Prime p)\nhcast : ↑(∑ v ∈ Ico 1 p, ↑v ^ (2 * k) + if p - 1 ∣ 2 * k then 1 else 0) = 0\nT : ℤ\nhT_int : (∑ v ∈ Ico 1 p, ↑v ^ (2 * k) + if p - 1 ∣ 2 * k then 1 else 0) = ↑p * T\nhT : ∑ v ∈ Ico 1 p, ↑v ^ (2 * k) + vonStaudtIndicator (2 * k) p = ↑p * ↑T\nhp_ne : ↑p ≠ ... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Chebyshev | {
"line": 433,
"column": 2
} | {
"line": 433,
"column": 21
} | {
"line": 434,
"column": 2
} | [
{
"pp": "x : ℝ\n⊢ θ x ≤ ψ x",
"ppTerm": "?m.3",
"assigned": true,
"usedConstants": [
"Real.instLE",
"Real",
"PartialOrder.toPreorder",
"Nat.instAtLeastTwoHAddOfNat",
"Real.decidableLT",
"Real.instLT",
"Preorder.toLE",
"Eq.mp",
"instOfNatNat",
... | [
"case pos\nx : ℝ\nh : x < 2\n⊢ θ x ≤ ψ x",
"case neg\nx : ℝ\nh : 2 ≤ x\n⊢ θ x ≤ ψ x"
] | by_cases! h : x < 2 | Mathlib.Tactic.ByCases._aux_Mathlib_Tactic_ByCases___macroRules_Mathlib_Tactic_ByCases_byCases!_1 | Mathlib.Tactic.ByCases.byCases! |
Mathlib.NumberTheory.ClassNumber.AdmissibleCardPowDegree | {
"line": 196,
"column": 6
} | {
"line": 196,
"column": 17
} | {
"line": 196,
"column": 18
} | [
{
"pp": "case succ.refine_1.refine_1\nFq : Type u_1\ninst✝¹ : Fintype Fq\ninst✝ : Field Fq\nε : ℝ\nhε : 0 < ε\nb : Fq[X]\nhb : b ≠ 0\nhbε : 0 < cardPowDegree b • ε\nn : ℕ\nih :\n ∀ (A : Fin n → Fq[X]),\n ∃ t, ∀ (i₀ i₁ : Fin n), t i₀ = t i₁ ↔ ↑(cardPowDegree (A i₁ % b - A i₀ % b)) < cardPowDegree b • ε\nA : ... | [
"case succ.refine_1.refine_1\nFq : Type u_1\ninst✝¹ : Fintype Fq\ninst✝ : Field Fq\nε : ℝ\nhε : 0 < ε\nb : Fq[X]\nhb : b ≠ 0\nhbε : 0 < cardPowDegree b • ε\nn : ℕ\nih :\n ∀ (A : Fin n → Fq[X]),\n ∃ t, ∀ (i₀ i₁ : Fin n), t i₀ = t i₁ ↔ ↑(cardPowDegree (A i₁ % b - A i₀ % b)) < cardPowDegree b • ε\nA : Fin (n + 1) ... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Bernoulli | {
"line": 691,
"column": 2
} | {
"line": 691,
"column": 13
} | {
"line": 691,
"column": 14
} | [
{
"pp": "k p : ℕ\ninst✝ : Fact (Nat.Prime p)\nhk : 0 < k\nhpk : p - 1 ∣ 2 * k\nhkey : ¬p ∣ (bernoulli (2 * k) + 1 / ↑p).den\nh1 : 1 < (Rat.padicValuation p) (1 / ↑p)\n⊢ (Rat.padicValuation p) (bernoulli (2 * k)) = WithZero.exp 1",
"ppTerm": "?m.66",
"assigned": false,
"usedConstants": [],
"usedF... | [
"k p : ℕ\ninst✝ : Fact (Nat.Prime p)\nhk : 0 < k\nhpk : p - 1 ∣ 2 * k\nhkey : ¬p ∣ (bernoulli (2 * k) + 1 / ↑p).den\nh1 : 1 < (Rat.padicValuation p) (1 / ↑p)\n⊢ (Rat.padicValuation p) (bernoulli (2 * k)) = WithZero.exp 1"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Bernoulli | {
"line": 720,
"column": 2
} | {
"line": 720,
"column": 48
} | {
"line": 721,
"column": 2
} | [
{
"pp": "k p : ℕ\ninst✝ : Fact (Nat.Prime p)\nhk : 0 < k\nhpk : p - 1 ∣ 2 * k\nhp : Nat.Prime p\n⊢ ¬p ^ 2 ∣ (bernoulli (2 * k)).den",
"ppTerm": "?m.43",
"assigned": true,
"usedConstants": [
"Rat.instOfNat",
"congrArg",
"AddMonoid.toAddZeroClass",
"Rat",
"AddGroupWithOne... | [
"k p : ℕ\ninst✝ : Fact (Nat.Prime p)\nhk : 0 < k\nhpk : p - 1 ∣ 2 * k\nhp : Nat.Prime p\nhpne : ↑p ≠ 0\n⊢ ¬p ^ 2 ∣ (bernoulli (2 * k)).den"
] | have hpne : (p : ℚ) ≠ 0 := mod_cast hp.ne_zero | Lean.Parser.Tactic._aux_Init_Tactics___macroRules_Lean_Parser_Tactic_tacticHave___1 | Lean.Parser.Tactic.tacticHave__ |
Mathlib.NumberTheory.Bernoulli | {
"line": 727,
"column": 2
} | {
"line": 727,
"column": 56
} | {
"line": 727,
"column": 57
} | [
{
"pp": "k p : ℕ\ninst✝ : Fact (Nat.Prime p)\nhk : 0 < k\nhpk : p - 1 ∣ 2 * k\nhp : Nat.Prime p\nhpne : ↑p ≠ 0\nh2 : (bernoulli (2 * k)).den ∣ p * (↑p * bernoulli (2 * k)).den\nh1 : p ^ 2 ∣ (bernoulli (2 * k)).den\n⊢ p ∣ (↑p * bernoulli (2 * k)).den",
"ppTerm": "?m.136",
"assigned": false,
"usedCons... | [
"k p : ℕ\ninst✝ : Fact (Nat.Prime p)\nhk : 0 < k\nhpk : p - 1 ∣ 2 * k\nhp : Nat.Prime p\nhpne : ↑p ≠ 0\nh2 : (bernoulli (2 * k)).den ∣ p * (↑p * bernoulli (2 * k)).den\nh1 : p ^ 2 ∣ (bernoulli (2 * k)).den\n⊢ p ∣ (↑p * bernoulli (2 * k)).den"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.ClassNumber.Finite | {
"line": 222,
"column": 65
} | {
"line": 222,
"column": 88
} | {
"line": 222,
"column": 89
} | [
{
"pp": "R : Type u_1\nS : Type u_2\ninst✝⁷ : EuclideanDomain R\ninst✝⁶ : CommRing S\ninst✝⁵ : IsDomain S\ninst✝⁴ : Algebra R S\nabv : AbsoluteValue R ℤ\nι : Type u_5\ninst✝³ : DecidableEq ι\ninst✝² : Fintype ι\nbS : Basis ι R S\nadm : abv.IsAdmissible\ninst✝¹ : Infinite R\ninst✝ : DecidableEq R\na : S\nb : R\n... | [
"R : Type u_1\nS : Type u_2\ninst✝⁷ : EuclideanDomain R\ninst✝⁶ : CommRing S\ninst✝⁵ : IsDomain S\ninst✝⁴ : Algebra R S\nabv : AbsoluteValue R ℤ\nι : Type u_5\ninst✝³ : DecidableEq ι\ninst✝² : Fintype ι\nbS : Basis ι R S\nadm : abv.IsAdmissible\ninst✝¹ : Infinite R\ninst✝ : DecidableEq R\na : S\nb : R\nhb : b ≠ 0\n... | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.FunctionField | {
"line": 121,
"column": 2
} | {
"line": 122,
"column": 39
} | {
"line": 123,
"column": 4
} | [
{
"pp": "F : Type u_1\nK : Type u_2\ninst✝⁴ : Field F\ninst✝³ : Field K\ninst✝² : Algebra F[X] K\ninst✝¹ : Algebra F⟮X⟯ K\ninst✝ : IsScalarTower F[X] F⟮X⟯ K\n⊢ ¬IsField ↥(ringOfIntegers F K)",
"ppTerm": "?m.16",
"assigned": true,
"usedConstants": [
"Subalgebra.instSetLike",
"Eq.mpr",
... | [
"F : Type u_1\nK : Type u_2\ninst✝⁴ : Field F\ninst✝³ : Field K\ninst✝² : Algebra F[X] K\ninst✝¹ : Algebra F⟮X⟯ K\ninst✝ : IsScalarTower F[X] F⟮X⟯ K\n⊢ ¬IsField F[X]"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Padics.RingHoms | {
"line": 132,
"column": 2
} | {
"line": 132,
"column": 13
} | {
"line": 132,
"column": 14
} | [
{
"pp": "p : ℕ\nhp_prime : Fact (Nat.Prime p)\nn : ℕ\nx : ℤ_[p]\na b : ℕ\nha : x - ↑a ∈ Ideal.span {↑p ^ n}\nhb : x - ↑b ∈ Ideal.span {↑p ^ n}\n⊢ ↑a = ↑b",
"ppTerm": "?m.41",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"p : ℕ\nhp_prime : Fact (Nat.Prime p)\nn : ℕ\nx : ℤ_[p]\na b : ℕ\nha : x - ↑a ∈ Ideal.span {↑p ^ n}\nhb : x - ↑b ∈ Ideal.span {↑p ^ n}\n⊢ ↑a = ↑b"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Padics.RingHoms | {
"line": 142,
"column": 2
} | {
"line": 142,
"column": 37
} | {
"line": 142,
"column": 38
} | [
{
"pp": "p : ℕ\nhp_prime : Fact (Nat.Prime p)\nx : ℤ_[p]\nm n : ℕ\nhm : x - ↑m ∈ Ideal.span {↑p}\nhn : x - ↑n ∈ Ideal.span {↑p}\nthis : ↑↑m = ↑↑n\n⊢ ↑m = ↑n",
"ppTerm": "?m.146",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"p : ℕ\nhp_prime : Fact (Nat.Prime p)\nx : ℤ_[p]\nm n : ℕ\nhm : x - ↑m ∈ Ideal.span {↑p}\nhn : x - ↑n ∈ Ideal.span {↑p}\nthis : ↑↑m = ↑↑n\n⊢ ↑m = ↑n"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Padics.RingHoms | {
"line": 165,
"column": 2
} | {
"line": 165,
"column": 13
} | {
"line": 165,
"column": 14
} | [
{
"pp": "case h.right\np : ℕ\nhp_prime : Fact (Nat.Prime p)\nx : ℤ_[p]\nr : ℚ\nhr : ‖↑x - ↑r‖ < 1\nH : ‖↑r‖ ≤ 1\nn : ℕ\nhnp : ↑n < ↑p\nhn : ‖↑r - ↑↑↑n‖ < 1\n⊢ ‖↑r - ↑n‖ < 1",
"ppTerm": "?h.right",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"case h.right\np : ℕ\nhp_prime : Fact (Nat.Prime p)\nx : ℤ_[p]\nr : ℚ\nhr : ‖↑x - ↑r‖ < 1\nH : ‖↑r‖ ≤ 1\nn : ℕ\nhnp : ↑n < ↑p\nhn : ‖↑r - ↑↑↑n‖ < 1\n⊢ ‖↑r - ↑n‖ < 1"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.ClassNumber.Finite | {
"line": 250,
"column": 2
} | {
"line": 253,
"column": 23
} | {
"line": 254,
"column": 2
} | [
{
"pp": "R : Type u_1\nS : Type u_2\ninst✝⁸ : EuclideanDomain R\ninst✝⁷ : CommRing S\ninst✝⁶ : IsDomain S\ninst✝⁵ : Algebra R S\nabv : AbsoluteValue R ℤ\nι : Type u_5\ninst✝⁴ : DecidableEq ι\ninst✝³ : Fintype ι\nbS : Basis ι R S\nadm : abv.IsAdmissible\ninst✝² : Infinite R\ninst✝¹ : DecidableEq R\ninst✝ : Algeb... | [
"R : Type u_1\nS : Type u_2\ninst✝⁸ : EuclideanDomain R\ninst✝⁷ : CommRing S\ninst✝⁶ : IsDomain S\ninst✝⁵ : Algebra R S\nabv : AbsoluteValue R ℤ\nι : Type u_5\ninst✝⁴ : DecidableEq ι\ninst✝³ : Fintype ι\nbS : Basis ι R S\nadm : abv.IsAdmissible\ninst✝² : Infinite R\ninst✝¹ : DecidableEq R\ninst✝ : Algebra.IsAlgebra... | refine
lt_of_le_of_lt (le_of_eq ?_)
(mul_lt_mul hqr le_rfl (abv.pos ((Algebra.norm_ne_zero_iff_of_basis bS).mpr hb))
(abv.nonneg _)) | Lean.Elab.Tactic.evalRefine | Lean.Parser.Tactic.refine |
Mathlib.NumberTheory.Padics.RingHoms | {
"line": 324,
"column": 2
} | {
"line": 324,
"column": 29
} | {
"line": 324,
"column": 30
} | [
{
"pp": "p' : ℕ\nhp_prime : Fact (Nat.Prime (0 + p' + 1))\nx : ℤ_[0 + p' + 1]\n⊢ x.zmodRepr < (0 + p').succ",
"ppTerm": "?m.199",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"PadicInt.zmodRepr",
"congrArg",
"AddMonoid.toAddZeroClass",
"Nat.instAddMonoid",
"id",... | [
"p' : ℕ\nhp_prime : Fact (Nat.Prime (0 + p' + 1))\nx : ℤ_[0 + p' + 1]\n⊢ x.zmodRepr < p'.succ"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Padics.RingHoms | {
"line": 331,
"column": 4
} | {
"line": 331,
"column": 50
} | {
"line": 331,
"column": 51
} | [
{
"pp": "case mp\np : ℕ\nhp_prime : Fact (Nat.Prime p)\nx : ℤ_[p]\nh : toZMod x = 0\n⊢ x ∈ maximalIdeal ℤ_[p]",
"ppTerm": "?mp",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoals": []
}
] | [
"case mp\np : ℕ\nhp_prime : Fact (Nat.Prime p)\nx : ℤ_[p]\nh : toZMod x = 0\n⊢ x ∈ maximalIdeal ℤ_[p]"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Padics.RingHoms | {
"line": 342,
"column": 45
} | {
"line": 342,
"column": 56
} | {
"line": 342,
"column": 57
} | [
{
"pp": "p : ℕ\nhp_prime : Fact (Nat.Prime p)\nx : ℤ_[p]\n⊢ x - ↑(toZMod x).val ∈ maximalIdeal ℤ_[p]",
"ppTerm": "?m.17",
"assigned": true,
"usedConstants": [
"Eq.mpr",
"Nat.instMulZeroClass",
"mem_nonunits_iff._simp_1",
"Semiring.toModule",
"LinearOrderedCommMonoidWith... | [
"p : ℕ\nhp_prime : Fact (Nat.Prime p)\nx : ℤ_[p]\n⊢ ¬IsUnit (x - (toZMod x).cast)"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Cyclotomic.CyclotomicCharacter | {
"line": 87,
"column": 2
} | {
"line": 87,
"column": 13
} | {
"line": 87,
"column": 14
} | [
{
"pp": "L : Type u\ninst✝² : CommRing L\ninst✝¹ : IsDomain L\nn : ℕ\ninst✝ : NeZero n\ng : L ≃+* L\n⊢ ∃ m, ∀ t ∈ rootsOfUnity n L, g ↑t = ↑(t ^ m)",
"ppTerm": "?m.22",
"assigned": true,
"usedConstants": [
"Units.val",
"Eq.mpr",
"congrArg",
"CommSemiring.toSemiring",
"R... | [
"L : Type u\ninst✝² : CommRing L\ninst✝¹ : IsDomain L\nn : ℕ\ninst✝ : NeZero n\ng : L ≃+* L\n⊢ ∃ m, ∀ (t : Lˣ), t ^ n = 1 → g ↑t = ↑(t ^ m)"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Padics.RingHoms | {
"line": 455,
"column": 8
} | {
"line": 455,
"column": 19
} | {
"line": 455,
"column": 20
} | [
{
"pp": "case ha\np : ℕ\nhp_prime : Fact (Nat.Prime p)\nr : ℚ\nx✝ : ℤ_[p]\nn : ℕ\nx : ℤ_[p]\na b : ℕ\nha : x - ↑a ∈ Ideal.span {↑(p ^ n)}\nhb : x - ↑b ∈ Ideal.span {↑(p ^ n)}\n⊢ x - ↑a ∈ Ideal.span {↑p ^ n}",
"ppTerm": "?ha",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoal... | [
"case ha\np : ℕ\nhp_prime : Fact (Nat.Prime p)\nr : ℚ\nx✝ : ℤ_[p]\nn : ℕ\nx : ℤ_[p]\na b : ℕ\nha : x - ↑a ∈ Ideal.span {↑(p ^ n)}\nhb : x - ↑b ∈ Ideal.span {↑(p ^ n)}\n⊢ x - ↑a ∈ Ideal.span {↑p ^ n}"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Padics.RingHoms | {
"line": 456,
"column": 8
} | {
"line": 456,
"column": 19
} | {
"line": 456,
"column": 20
} | [
{
"pp": "case hb\np : ℕ\nhp_prime : Fact (Nat.Prime p)\nr : ℚ\nx✝ : ℤ_[p]\nn : ℕ\nx : ℤ_[p]\na b : ℕ\nha : x - ↑a ∈ Ideal.span {↑(p ^ n)}\nhb : x - ↑b ∈ Ideal.span {↑(p ^ n)}\n⊢ x - ↑b ∈ Ideal.span {↑p ^ n}",
"ppTerm": "?hb",
"assigned": false,
"usedConstants": [],
"usedFVars": [],
"usedGoal... | [
"case hb\np : ℕ\nhp_prime : Fact (Nat.Prime p)\nr : ℚ\nx✝ : ℤ_[p]\nn : ℕ\nx : ℤ_[p]\na b : ℕ\nha : x - ↑a ∈ Ideal.span {↑(p ^ n)}\nhb : x - ↑b ∈ Ideal.span {↑(p ^ n)}\n⊢ x - ↑b ∈ Ideal.span {↑p ^ n}"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Chebyshev | {
"line": 752,
"column": 46
} | {
"line": 752,
"column": 89
} | {
"line": 753,
"column": 2
} | [
{
"pp": "x : ℝ\nhx : 2 ≤ x\na : ℕ → ℝ := (Set.ofPred Nat.Prime).indicator fun n ↦ 1\nf : ℝ → ℝ\nu : ℝ\nx✝ : u ∈ Set.uIcc 2 x\n⊢ deriv (fun x ↦ log x) u * f u = f u / u",
"ppTerm": "?m.230",
"assigned": true,
"usedConstants": [
"NonUnitalNonAssocCommRing.toNonUnitalNonAssocCommSemiring",
... | [] | by rw [deriv_log, mul_comm, div_eq_mul_inv] | [anonymous] | Lean.Parser.Term.byTactic |
Mathlib.NumberTheory.Cyclotomic.CyclotomicCharacter | {
"line": 247,
"column": 2
} | {
"line": 251,
"column": 35
} | {
"line": 251,
"column": 36
} | [
{
"pp": "L : Type u\ninst✝⁴ : CommRing L\ninst✝³ : IsDomain L\nn : ℕ\ninst✝² : NeZero n\nR : Type u_1\ninst✝¹ : CommRing R\ninst✝ : Algebra R L\nμ : L\nhμ : IsPrimitiveRoot μ n\ng : L ≃ₐ[R] L\n⊢ μ ^ (↑((autToPow R hμ) g)).val = μ ^ (↑((modularCyclotomicCharacter L ⋯) g.toRingEquiv)).val",
"ppTerm": "?m.59",... | [
"L : Type u\ninst✝⁴ : CommRing L\ninst✝³ : IsDomain L\nn : ℕ\ninst✝² : NeZero n\nR : Type u_1\ninst✝¹ : CommRing R\ninst✝ : Algebra R L\nμ : L\nhμ : IsPrimitiveRoot μ n\ng : L ≃ₐ[R] L\n⊢ g μ = μ ^ (modularCyclotomicCharacter.toFun n g.toRingEquiv).val"
] | simpa using | Lean.Elab.Tactic.Simpa.evalSimpa | null |
Mathlib.NumberTheory.Cyclotomic.CyclotomicCharacter | {
"line": 244,
"column": 2
} | {
"line": 251,
"column": 80
} | {
"line": 258,
"column": 0
} | [
{
"pp": "L : Type u\ninst✝⁴ : CommRing L\ninst✝³ : IsDomain L\nn : ℕ\ninst✝² : NeZero n\nR : Type u_1\ninst✝¹ : CommRing R\ninst✝ : Algebra R L\nμ : L\nhμ : IsPrimitiveRoot μ n\ng : L ≃ₐ[R] L\n⊢ (autToPow R hμ) g = (modularCyclotomicCharacter L ⋯) g.toRingEquiv",
"ppTerm": "?m.36",
"assigned": true,
... | [] | ext
apply ZMod.val_injective
apply hμ.pow_inj (ZMod.val_lt _) (ZMod.val_lt _)
simpa only [autToPow_spec R hμ g, modularCyclotomicCharacter, RingEquiv.toMulEquiv_eq_coe,
MulEquiv.toMonoidHom_eq_coe, modularCyclotomicCharacter', MonoidHom.coe_comp,
MonoidHom.coe_ofClass, Function.comp_apply, Units.coe_mapEq... | Lean.Elab.Tactic.evalTacticSeq1Indented | Lean.Parser.Tactic.tacticSeq1Indented |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.