Exact selected-relation memberships over the principal quotient lift to actual polynomial identities over the original base.
Source context 4 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
noncomputable section
namespace MvPolynomial
variable {R n m κ : Type*} [CommRing R] [Fintype κ]theorem exists_lift_principal_relation_coefficients
(π : R) (f : m → MvPolynomial n R) (a : κ → m)
(qbar : MvPolynomial n (R ⧸ Ideal.span {π ^ 2}))
(hrel : ∀ j, qbar * map (Ideal.Quotient.mk (Ideal.span {π ^ 2})) (f j) ∈
Ideal.span (Set.range fun i =>
map (Ideal.Quotient.mk (Ideal.span {π ^ 2})) (f (a i)))) :
∃ (q : MvPolynomial n R) (h : m → κ → MvPolynomial n R)
(g : m → MvPolynomial n R),
map (Ideal.Quotient.mk (Ideal.span {π ^ 2})) q = qbar ∧
∀ j, q * f j = ∑ i, h j i * f (a i) + C (π ^ 2) * g j := by
classical
let Q := R ⧸ Ideal.span {π ^ 2}
let ρ : R →+* Q := Ideal.Quotient.mk (Ideal.span {π ^ 2})
have hsur : Function.Surjective (map (σ := n) ρ) :=
map_surjective ρ Ideal.Quotient.mk_surjective
obtain ⟨q, hq⟩ := hsur qbar
have hcoeff (j : m) : ∃ c : κ → MvPolynomial n Q,
qbar * map ρ (f j) = ∑ i, c i * map ρ (f (a i)) := by
obtain ⟨c, hc⟩ := (Submodule.mem_span_range_iff_exists_fun _).mp (hrel j)
exact ⟨c, hc.symm⟩
choose c hc using hcoeff
have hcoeffLift (j : m) (i : κ) : ∃ p : MvPolynomial n R, map ρ p = c j i :=
hsur (c j i)
choose h hh using hcoeffLift
have hrem (j : m) : ∃ g : MvPolynomial n R,
q * f j = ∑ i, h j i * f (a i) + C (π ^ 2) * g := by
have hzero : map ρ (q * f j - ∑ i, h j i * f (a i)) = 0 := by
rw [map_sub, map_mul, hq, map_sum]
simp only [map_mul, hh]
exact sub_eq_zero.mpr (hc j)
have hdiv : C (π ^ 2) ∣ q * f j - ∑ i, h j i * f (a i) := by
apply (C_dvd_iff_map_hom_eq_zero ρ (π ^ 2) (fun r => ?_) _).mpr hzero
change Ideal.Quotient.mk (Ideal.span {π ^ 2}) r = 0 ↔ π ^ 2 ∣ r
rw [Ideal.Quotient.eq_zero_iff_mem, Ideal.mem_span_singleton]
obtain ⟨g, hg⟩ := hdiv
exact ⟨g, sub_eq_iff_eq_add.mp hg |>.trans (add_comm _ _)⟩
choose g hg using hrem
exact ⟨q, h, g, hq, hg⟩