Buckets:
| import Mathlib.Algebra.Group.ForwardDiff | |
| import Mathlib.Analysis.Normed.Group.Rat | |
| import Mathlib.Analysis.Polynomial.Basic | |
| import Mathlib.RingTheory.Ideal.Prime | |
| import Mathlib.Tactic | |
| import OAI.NumberTheory.PiExponent.LocalAlgebra.QuotientSections | |
| namespace OAI | |
| namespace PiExponentJets.W27 | |
| open scoped BigOperators | |
| open Filter Polynomial | |
| open PiExponentJets.W64 | |
| variable {k σ : Type*} [Field k] [Fintype σ] | |
| theorem prime_quotientSection_finrank_pos | |
| (P : Ideal (MvPolynomial σ k)) [hP : P.IsPrime] | |
| (i : σ) (hi : MvPolynomial.X i ∉ P) (n : ℕ) : | |
| 0 < Module.finrank k (quotientSection P n) := by | |
| apply Module.finrank_pos_iff_exists_ne_zero.mpr | |
| let x : quotientSection P n := | |
| ⟨Ideal.Quotient.mk P (MvPolynomial.X i ^ n), | |
| Submodule.mem_map.mpr ⟨MvPolynomial.X i ^ n, | |
| MvPolynomial.isHomogeneous_X_pow i n, rfl⟩⟩ | |
| refine ⟨x, ?_⟩ | |
| intro hx | |
| have hx' : Ideal.Quotient.mk P (MvPolynomial.X i ^ n) = 0 := | |
| congrArg Subtype.val hx | |
| exact hi (hP.mem_of_pow_mem n (Ideal.Quotient.eq_zero_iff_mem.mp hx')) | |
| theorem polynomial_leadingCoeff_nonneg_of_eventually_nonneg | |
| (p : Polynomial ℚ) (N : ℕ) | |
| (hp : ∀ n : ℕ, N ≤ n → 0 ≤ p.eval (n : ℚ)) : | |
| 0 ≤ p.leadingCoeff := by | |
| by_cases hd : p.natDegree = 0 | |
| · have he : p = Polynomial.C p.leadingCoeff := by | |
| simpa [Polynomial.leadingCoeff, hd] using Polynomial.eq_C_of_natDegree_eq_zero hd | |
| have hconst := hp N le_rfl | |
| rw [he, Polynomial.eval_C] at hconst | |
| exact hconst | |
| · by_contra hneg | |
| have hneg' : p.leadingCoeff < 0 := lt_of_not_ge hneg | |
| have hdeg : 0 < p.degree := Polynomial.natDegree_pos_iff_degree_pos.mp (Nat.pos_of_ne_zero hd) | |
| have ht : Tendsto (fun n : ℕ => p.eval (n : ℚ)) atTop atBot := | |
| (p.tendsto_atBot_of_leadingCoeff_nonpos hdeg hneg'.le).comp | |
| tendsto_natCast_atTop_atTop | |
| obtain ⟨n, hnN, hn⟩ := ((eventually_ge_atTop N).and | |
| (ht.eventually_lt_atBot 0)).exists | |
| exact (not_lt_of_ge (hp n hnN)) hn | |
| theorem polynomial_leadingCoeff_pos_of_eventually_pos | |
| (p : Polynomial ℚ) (N : ℕ) | |
| (hp : ∀ n : ℕ, N ≤ n → 0 < p.eval (n : ℚ)) : | |
| 0 < p.leadingCoeff := by | |
| have hn := polynomial_leadingCoeff_nonneg_of_eventually_nonneg p N | |
| (fun n hn => (hp n hn).le) | |
| have hp0 : p ≠ 0 := by | |
| intro h | |
| simpa [h] using hp N le_rfl | |
| exact lt_of_le_of_ne hn (Polynomial.leadingCoeff_ne_zero.mpr hp0).symm | |
| theorem factorial_leadingCoeff_is_integer | |
| (p : Polynomial ℚ) (values : ℕ → ℕ) (N : ℕ) | |
| (hp : ∀ n : ℕ, N ≤ n → p.eval (n : ℚ) = (values n : ℚ)) : | |
| ∃ z : ℤ, (z : ℚ) = p.leadingCoeff * (p.natDegree.factorial : ℚ) := by | |
| let d := p.natDegree | |
| let z : ℤ := ∑ j ∈ Finset.range (d + 1), | |
| ((-1 : ℤ) ^ (d-j) * (d.choose j : ℤ)) * (values (N+j) : ℤ) | |
| refine ⟨z, ?_⟩ | |
| have hd := congrFun p.fwdDiff_iter_degree_eq_factorial (N : ℚ) | |
| rw [fwdDiff_iter_eq_sum_shift] at hd | |
| have he (j : ℕ) : p.eval ((N : ℚ) + j • (1 : ℚ)) = (values (N+j) : ℚ) := by | |
| simpa using hp (N+j) (Nat.le_add_right N j) | |
| simp only [he] at hd | |
| simpa [z, d, Int.cast_sum, Int.cast_mul, Int.cast_pow, zsmul_eq_mul, | |
| Pi.smul_apply, smul_eq_mul] using hd | |
| theorem eventual_hilbert_degree_ge_one | |
| (p : Polynomial ℚ) (values : ℕ → ℕ) (N : ℕ) | |
| (hp : ∀ n : ℕ, N ≤ n → p.eval (n : ℚ) = (values n : ℚ)) | |
| (hv : ∀ n : ℕ, N ≤ n → 0 < values n) : | |
| 1 ≤ p.leadingCoeff * (p.natDegree.factorial : ℚ) := by | |
| have hl := polynomial_leadingCoeff_pos_of_eventually_pos p N (by | |
| intro n hn | |
| rw [hp n hn] | |
| exact_mod_cast hv n hn) | |
| have hpos : 0 < p.leadingCoeff * (p.natDegree.factorial : ℚ) := | |
| mul_pos hl (by exact_mod_cast Nat.factorial_pos p.natDegree) | |
| obtain ⟨z, hz⟩ := factorial_leadingCoeff_is_integer p values N hp | |
| have hzpos : 0 < z := by exact_mod_cast (hz.symm ▸ hpos) | |
| have hzge : (1 : ℤ) ≤ z := by omega | |
| rw [← hz] | |
| exact_mod_cast hzge | |
| theorem prime_eventual_hilbert_degree_ge_one | |
| (P : Ideal (MvPolynomial σ k)) [P.IsPrime] | |
| (i : σ) (hi : MvPolynomial.X i ∉ P) | |
| (p : Polynomial ℚ) (N : ℕ) | |
| (hp : ∀ n : ℕ, N ≤ n → p.eval (n : ℚ) = | |
| (Module.finrank k (quotientSection P n) : ℚ)) : | |
| 1 ≤ p.leadingCoeff * (p.natDegree.factorial : ℚ) := | |
| eventual_hilbert_degree_ge_one p _ N hp | |
| (fun n _ => prime_quotientSection_finrank_pos P i hi n) | |
| theorem prime_eventual_hilbert_coefficient_ge_one | |
| (P : Ideal (MvPolynomial σ k)) [P.IsPrime] | |
| (i : σ) (hi : MvPolynomial.X i ∉ P) | |
| (p : Polynomial ℚ) (N d : ℕ) | |
| (hp : ∀ n : ℕ, N ≤ n → p.eval (n : ℚ) = | |
| (Module.finrank k (quotientSection P n) : ℚ)) | |
| (hd : p.natDegree = d) : | |
| 1 ≤ p.coeff d * (d.factorial : ℚ) := by | |
| simpa [Polynomial.leadingCoeff, hd] using | |
| prime_eventual_hilbert_degree_ge_one P i hi p N hp | |
| end PiExponentJets.W27 | |
| end OAI | |
Xet Storage Details
- Size:
- 4.91 kB
- Xet hash:
- 48709d79cc5fc7e4c4940075561e33a0fff79246080cf9d4eb85935226c21d42
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.