Download lean/OAI/LinearAlgebra/CirculantHadamard/IntegerLocalDivisibility.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.29 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/LinearAlgebra/CirculantHadamard/IntegerLocalDivisibility.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/LinearAlgebra/CirculantHadamard/IntegerLocalDivisibility.lean
-
curl -L -o IntegerLocalDivisibility.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/LinearAlgebra/CirculantHadamard/IntegerLocalDivisibility.lean
2.29 kB
Lean 4 · 2
declarations statementsfull
22Divisibility by a rational prime power in its actual integer localization implies the same divisibility in the integers.
theorem integer_prime_pow_dvd_of_localization
{A : Type uA} [CommRing A] [Algebra ℤ A]
{P : Ideal ℤ} [P.IsPrime] [IsLocalization.AtPrime A P]
{p : ℕ} (hp : p.Prime) (hP : P = Ideal.span ({(p : ℤ)} : Set ℤ))
(t : ℕ) (x : ℤ) (hx : (p : A) ^ t ∣ algebraMap ℤ A x) :
(p : ℤ) ^ t ∣ x := by proof · 14 lines
obtain ⟨y, hy⟩ := hx
obtain ⟨⟨a, s⟩, hs⟩ := IsLocalization.surj P.primeCompl y
have hinj : Function.Injective (algebraMap ℤ A) :=
IsLocalization.injective A P.primeCompl_le_nonZeroDivisors
have hclear : x * (s : ℤ) = (p : ℤ) ^ t * a := by
apply hinj
rw [map_mul, map_mul, map_pow, map_natCast, hy, mul_assoc, hs]
have hsprime : ¬ (p : ℤ) ∣ (s : ℤ) := by
intro hdiv
have hmem : (s : ℤ) ∈ Ideal.span ({(p : ℤ)} : Set ℤ) :=
Ideal.mem_span_singleton.mpr hdiv
exact s.property (hP.symm ▸ hmem)
exact (Nat.prime_iff_prime_int.mp hp).pow_dvd_of_dvd_mul_right t hsprime
⟨a, hclear⟩45Prime-power divisibility of integer coefficients is unchanged by localization at that prime.
theorem integer_prime_pow_dvd_localization_iff
{A : Type uA} [CommRing A] [Algebra ℤ A]
{P : Ideal ℤ} [P.IsPrime] [IsLocalization.AtPrime A P]
{p : ℕ} (hp : p.Prime) (hP : P = Ideal.span ({(p : ℤ)} : Set ℤ))
(t : ℕ) (x : ℤ) :
(p : A) ^ t ∣ algebraMap ℤ A x ↔ (p : ℤ) ^ t ∣ x := by proof · 4 lines
constructor
· exact integer_prime_pow_dvd_of_localization hp hP t x
· intro hx
simpa only [map_pow, map_natCast] using map_dvd (algebraMap ℤ A) hxOutline