Lift actual selected-ideal membership through coefficient reduction modulo a principal square. The extra term is in the square-parameter ideal.
Source context 4 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
noncomputable section
namespace MvPolynomial
open scoped BigOperatorstheorem mem_selected_sup_principalSquare_of_map_mem
{R n κ : Type*} [CommRing R] (π : R) (f : κ → MvPolynomial n R)
(x : MvPolynomial n R)
(hx : map (Ideal.Quotient.mk (Ideal.span {π ^ 2})) x ∈
Ideal.span (Set.range fun i =>
map (Ideal.Quotient.mk (Ideal.span {π ^ 2})) (f i))) :
x ∈ Ideal.span (Set.range f) ⊔ Ideal.span {C (π ^ 2)} := by
let ρ : R →+* R ⧸ Ideal.span {π ^ 2} := Ideal.Quotient.mk (Ideal.span {π ^ 2})
let μ : MvPolynomial n R →+* MvPolynomial n (R ⧸ Ideal.span {π ^ 2}) := map ρ
have hsur : Function.Surjective μ := map_surjective ρ Ideal.Quotient.mk_surjective
have hx' : μ x ∈ (Ideal.span (Set.range f)).map μ := by
rw [Ideal.map_span, ← Set.range_comp]
exact hx
obtain ⟨y, hy, heq⟩ := (Ideal.mem_map_iff_of_surjective μ hsur).mp hx'
have hzero : map ρ (x - y) = 0 := by
change μ (x - y) = 0
rw [map_sub, heq, sub_self]
have hdiv : C (π ^ 2) ∣ x - y := 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]
have hrem : x - y ∈ Ideal.span {C (π ^ 2)} := Ideal.mem_span_singleton.mpr hdiv
have hsum : y + (x - y) ∈ Ideal.span (Set.range f) ⊔ Ideal.span {C (π ^ 2)} :=
(Ideal.span (Set.range f) ⊔ Ideal.span {C (π ^ 2)}).add_mem
((show Ideal.span (Set.range f) ≤
Ideal.span (Set.range f) ⊔ Ideal.span {C (π ^ 2)} from le_sup_left) hy)
((show Ideal.span {C (π ^ 2)} ≤
Ideal.span (Set.range f) ⊔ Ideal.span {C (π ^ 2)} from le_sup_right) hrem)
convert hsum using 1
ring