Principal is maximal iff irred
Ideal.principal_is_maximal_iff_irred
Project documentation
A principal ideal is an ideal generated by a single element. -/ def principalIdeal {F : Type} [Semiring F] (f : F) : Ideal F := Ideal.span {f} /- A principal ideal in a polynomial ring is maximal if and only if its generator is an irreducble polynomial.
Exact Lean statement
lemma principal_is_maximal_iff_irred {F : Type} [Field F] (f : F[X]) :
(principalIdeal f).IsMaximal ↔ Irreducible fFormal artifact
Lean source
lemma principal_is_maximal_iff_irred {F : Type} [Field F] (f : F[X]) : (principalIdeal f).IsMaximal ↔ Irreducible f := by constructor <;> intro h; · -- If the ideal generated by f is maximal, then f is non-zero. have h_nonzero : f ≠ 0 := by intro hf; subst hf rw [principalIdeal] at h rw [Ideal.isMaximal_iff] at h have hmax := h.2 (Ideal.span ({Polynomial.X} : Set F[X])) Polynomial.X have hXmem : (Polynomial.X : F[X]) ∈ Ideal.span ({Polynomial.X} : Set F[X]) := Ideal.mem_span_singleton_self _ have hXnotmem : (Polynomial.X : F[X]) ∉ Ideal.span ({0} : Set F[X]) := by simp have htop : (1 : F[X]) ∈ Ideal.span ({Polynomial.X} : Set F[X]) := by apply hmax · simp · exact hXnotmem · exact hXmem exact absurd (Polynomial.X_dvd_iff.mp (by simpa [Ideal.mem_span_singleton] using htop)) (by norm_num); -- If the ideal generated by f is maximal, then f is prime. have h_prime : Prime f := by rw [ ← Ideal.span_singleton_prime h_nonzero ]; exact h.isPrime; exact h_prime.irreducible; · rw [ Ideal.isMaximal_iff ]; constructor; · exact fun h' => h.not_isUnit <| isUnit_of_dvd_one <| Ideal.mem_span_singleton.mp h'; · intro J x hJ hx hxJ have h_coprime : IsCoprime f x := by exact h.coprime_iff_not_dvd.mpr fun h' => hx <| Ideal.mem_span_singleton.mpr h'; rcases h_coprime with ⟨ a, b, h ⟩; exact h.symm ▸ J.add_mem (J.mul_mem_left a (hJ (Ideal.subset_span (Set.mem_singleton f)))) (J.mul_mem_left b hxJ)- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Data/Polynomial/Prelims.lean:91-127
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Affine gaps lifted to interleaved codes
affine_gaps_lifted_to_interleaved_codes
Project documentation
This lemma proves the final algebraic step in the DG25 Theorem 3.1 proof. It shows that if R > e + 1, then e * (R / (R - 1)) < e + 1. The intuition is that the fraction R / (R - 1) is always greater than 1, but as R gets larger, it gets closer to 1. The hypothesis R > e + 1 provides a strong enough bound to ensure the product e * (fraction) do...
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose coeff
ArkLib.Lattices.Ajtai.gadgetDecompose_coeff
Plain-language statement
The k-th coefficient (k < deg φ) of a gadget-decomposition block is exactly the corresponding digit of the corresponding input coefficient.
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose lawful
ArkLib.Lattices.Ajtai.gadgetDecompose_lawful
Plain-language statement
The base-b gadget decomposition is a lawful gadget decomposition.
Source project: ArkLib
Person-level attribution pending.