cfahlgren1/math / lean /OAI /Computability /DepthThree /IrreduciblePolynomial.lean
cfahlgren1's picture
download
raw
1.09 kB
import Mathlib.FieldTheory.Finite.GaloisField
namespace OAI
namespace DepthThreeLowerBound
theorem exists_monic_irreducible_natDegree_two (r : ℕ) (hr : 0 < r) :
∃ P : Polynomial (ZMod 2),
P.Monic ∧ Irreducible P ∧ P.natDegree = r := by
let : Fact (Nat.Prime 2) := ⟨Nat.prime_two⟩
obtain ⟨α, hα⟩ := Field.exists_primitive_element_of_finite_top
(ZMod 2) (GaloisField 2 r)
have hαint : IsIntegral (ZMod 2) α := IsIntegral.of_finite (ZMod 2) α
refine ⟨minpoly (ZMod 2) α, minpoly.monic hαint,
minpoly.irreducible hαint, ?_⟩
exact ((Field.primitive_element_iff_minpoly_natDegree_eq
(ZMod 2) α).mp hα).trans
(GaloisField.finrank 2 (Nat.ne_of_gt hr))
theorem exists_monic_irreducible_degree_two (r : ℕ) (hr : 0 < r) :
∃ P : Polynomial (ZMod 2),
P.Monic ∧ Irreducible P ∧ P.degree = (r : WithBot ℕ) := by
obtain ⟨P, hP, hI, hdegree⟩ := exists_monic_irreducible_natDegree_two r hr
refine ⟨P, hP, hI, ?_⟩
rw [Polynomial.degree_eq_natDegree hP.ne_zero, hdegree]
end DepthThreeLowerBound
end OAI

Xet Storage Details

Size:
1.09 kB
·
Xet hash:
9b0673e5fabff0edd46b0a4e46d77c44d594455b5a0d2094345e2b57597dbe05

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