cfahlgren1/math / lean /OAI /NumberTheory /PiExponent /Approximation /PersistentComponents.lean
cfahlgren1's picture
download
raw
6.72 kB
import Mathlib
namespace OAI
namespace PiExponent.PersistentComponents
variable {R : Type*} [CommRing R]
theorem prime_height_step {P Q : Ideal R} (hP : P.IsPrime) (hQ : Q.IsPrime)
(hPQ : P < Q) : P.height + 1 ≤ Q.height := by
let := hP
let := hQ
exact Ideal.height_add_one_le_of_lt_of_isPrime hPQ
theorem exists_adjacent_eq_of_height_bound (P : ℕ → Ideal R) (m : ℕ)
(hPrime : ∀ i ≤ m + 1, (P i).IsPrime)
(hstep : ∀ i ≤ m, P i ≤ P (i + 1))
(hheight : (P (m + 1)).height ≤ m) :
∃ i ≤ m, P i = P (i + 1) := by
by_contra h
have hneq : ∀ i ≤ m, P i ≠ P (i + 1) := by simpa only [not_exists, not_and] using h
have hgrowth : ∀ i ≤ m + 1, (i : ℕ∞) ≤ (P i).height := by
intro i hi
induction i with
| zero => exact bot_le
| succ i ih =>
have him : i ≤ m := by omega
have hip : i ≤ m + 1 := by omega
have hs := prime_height_step (hPrime i hip) (hPrime (i + 1) hi)
(lt_of_le_of_ne (hstep i him) (hneq i him))
have hadd : (i : ℕ∞) + 1 ≤ (P i).height + 1 := by
gcongr
exact ih hip
simpa only [Nat.cast_add, Nat.cast_one] using hadd.trans hs
have hf := (hgrowth (m + 1) le_rfl).trans hheight
exact (by exact_mod_cast (Nat.not_succ_le_self m) : ¬ ((m + 1 : ℕ) : ℕ∞) ≤ (m : ℕ∞)) hf
theorem exists_nested_minimalPrimes (I : ℕ → Ideal R) (hI : Monotone I)
(n : ℕ) (P : Ideal R) (hP : P.IsPrime) (hIP : I n ≤ P) :
∃ Q : ℕ → Ideal R,
(∀ i ≤ n, Q i ∈ (I i).minimalPrimes) ∧
(∀ i < n, Q i ≤ Q (i + 1)) ∧ Q n ≤ P := by
induction n generalizing P with
| zero =>
let := hP
obtain ⟨Q, hQ, hQP⟩ := Ideal.exists_minimalPrimes_le hIP
refine ⟨fun _ => Q, ?_, ?_, hQP⟩
· intro i hi
have hi0 : i = 0 := by omega
simpa only [hi0] using hQ
· intro i hi
omega
| succ n ih =>
let := hP
obtain ⟨Qlast, hQlast, hQlastP⟩ := Ideal.exists_minimalPrimes_le hIP
obtain ⟨Q, hQ, hstep, hQlastle⟩ :=
ih Qlast hQlast.isPrime ((hI (Nat.le_succ n)).trans hQlast.le)
refine ⟨fun i => if i = n + 1 then Qlast else Q i, ?_, ?_, ?_⟩
· intro i hi
by_cases hei : i = n + 1
· simpa [hei] using hQlast
· simpa [hei] using hQ i (by omega)
· intro i hi
have hin : i ≠ n + 1 := by omega
by_cases hei : i = n
· simpa [hei] using hQlastle
· have hip : i + 1 ≠ n + 1 := by omega
simpa [hin, hip, hei] using hstep i (by omega)
· simpa [Nat.succ_eq_add_one] using hQlastP
theorem exists_persistent_minimalPrime (I : ℕ → Ideal R) (hI : Monotone I)
(m : ℕ) (P : Ideal R) (hP : P.IsPrime)
(hIP : I (m + 2) ≤ P) (hheight : P.height ≤ m) :
∃ r < m + 2, ∃ Q : Ideal R,
Q ∈ (I r).minimalPrimes ∧ I (r + 1) ≤ Q ∧ Q ≤ P := by
obtain ⟨Q, hQ, hstep, hQP⟩ := exists_nested_minimalPrimes I hI (m + 2) P hP hIP
have hmono : ∀ i j, i ≤ j → j ≤ m + 2 → Q i ≤ Q j := by
intro i j hij hj
induction j with
| zero =>
have hi : i = 0 := by omega
simp only [hi, le_refl]
| succ j ih =>
by_cases heq : i = j + 1
· simp [heq]
· exact (ih (by omega) (by omega)).trans (hstep j (by omega))
have hbound : (Q (m + 1)).height ≤ m :=
(Ideal.height_mono ((hmono (m + 1) (m + 2) (by omega) le_rfl).trans hQP)).trans hheight
obtain ⟨r, hr, heq⟩ := exists_adjacent_eq_of_height_bound Q m
(fun i hi => (hQ i (by omega)).isPrime) (fun i hi => hstep i (by omega)) hbound
refine ⟨r, by omega, Q r, hQ r (by omega), ?_, ?_⟩
· rw [heq]
exact (hQ (r + 1) (by omega)).le
· exact (hmono r (m + 2) (by omega) le_rfl).trans hQP
theorem minimalPrime_persists {I J Q : Ideal R} (hIJ : I ≤ J)
(hQ : Q ∈ I.minimalPrimes) (hJQ : J ≤ Q) : Q ∈ J.minimalPrimes := by
refine ⟨⟨hQ.isPrime, hJQ⟩, ?_⟩
intro P hP hPQ
exact hQ.2 ⟨hP.1, hIJ.trans hP.2⟩ hPQ
theorem exists_persistent_minimalPrime_pair (I : ℕ → Ideal R) (hI : Monotone I)
(m : ℕ) (P : Ideal R) (hP : P.IsPrime)
(hIP : I (m + 2) ≤ P) (hheight : P.height ≤ m) :
∃ r < m + 2, ∃ Q : Ideal R,
Q ∈ (I r).minimalPrimes ∧ Q ∈ (I (r + 1)).minimalPrimes ∧ Q ≤ P := by
obtain ⟨r, hr, Q, hQ, hnext, hQP⟩ :=
exists_persistent_minimalPrime I hI m P hP hIP hheight
exact ⟨r, hr, Q, hQ, minimalPrime_persists (hI (Nat.le_succ r)) hQ hnext, hQP⟩
theorem minimalPrime_gives_irreducibleComponent (I Q : Ideal R) (hQ : Q ∈ I.minimalPrimes) :
∃ Z : Set (PrimeSpectrum.zeroLocus (I : Set R)),
Z ∈ irreducibleComponents (PrimeSpectrum.zeroLocus (I : Set R)) := by
exact ⟨((Ideal.minimalPrimes.equivIrreducibleComponents I) ⟨Q, hQ⟩).val,
((Ideal.minimalPrimes.equivIrreducibleComponents I) ⟨Q, hQ⟩).property⟩
theorem exists_persistent_operation_component (I : ℕ → Ideal R) (hI : Monotone I)
(m : ℕ) (P : Ideal R) (hP : P.IsPrime)
(hIP : I (m + 2) ≤ P) (hheight : P.height ≤ m)
{D : Type*} (op : D → R → R) (Allowed : ℕ → D → Prop)
(hshift : ∀ r d, Allowed r d → ∀ f ∈ I r, op d f ∈ I (r + 1)) :
∃ r < m + 2, ∃ Q : Ideal R,
Q ∈ (I r).minimalPrimes ∧ Q ∈ (I (r + 1)).minimalPrimes ∧ Q ≤ P ∧
∀ d, Allowed r d → ∀ f ∈ I r, op d f ∈ Q := by
obtain ⟨r, hr, Q, hQr, hQnext, hQP⟩ :=
exists_persistent_minimalPrime_pair I hI m P hP hIP hheight
exact ⟨r, hr, Q, hQr, hQnext, hQP, fun d hd f hf => hQnext.le (hshift r d hd f hf)⟩
theorem minimalPrime_height_pos_of_nonzero_mem [IsDomain R] {I Q : Ideal R}
(hQ : Q ∈ I.minimalPrimes) {F : R} (hF : F ≠ 0) (hFI : F ∈ I) :
1 ≤ Q.height := by
have hQbot : Q ≠ ⊥ := by
intro h
have hFQ := hQ.le hFI
simp only [h, Ideal.mem_bot] at hFQ
exact hF hFQ
exact Order.one_le_iff_ne_zero.mpr (mt Ideal.height_eq_zero_iff_eq_bot.mp hQbot)
theorem exists_persistent_component_positive_height [IsDomain R]
(I : ℕ → Ideal R) (hI : Monotone I) (m : ℕ) (P : Ideal R) (hP : P.IsPrime)
(hIP : I (m + 2) ≤ P) (hheight : P.height ≤ m)
{F : R} (hF : F ≠ 0) (hFI : F ∈ I 0) :
∃ r < m + 2, ∃ Q : Ideal R,
Q ∈ (I r).minimalPrimes ∧ Q ∈ (I (r + 1)).minimalPrimes ∧ Q ≤ P ∧
1 ≤ Q.height ∧ Q.height ≤ m := by
obtain ⟨r, hr, Q, hQr, hQnext, hQP⟩ :=
exists_persistent_minimalPrime_pair I hI m P hP hIP hheight
exact ⟨r, hr, Q, hQr, hQnext, hQP,
minimalPrime_height_pos_of_nonzero_mem hQr hF ((hI (Nat.zero_le r)) hFI),
(Ideal.height_mono hQP).trans hheight⟩
end PiExponent.PersistentComponents
end OAI

Xet Storage Details

Size:
6.72 kB
·
Xet hash:
3eca3e3970abb26239dd3b4716c99a275d641f00d9022243cc2352a3adcb2e8c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.