English
Characterizes when an element of an algebra lies in the image of an ideal via the adjoin construction, via polynomials and aeval.
Русский
Характеризует принадлежность элемента алгебры образу идеала через adjoin и aeval.
LaTeX
$$Theorem about mem_ideal_map_adjoin: for x ∈ S, I ⊆ R, etc., there exists p ∈ R[X] with coefficients in I such that aeval x p = y.$$
Lean4
theorem _root_.Algebra.mem_ideal_map_adjoin {R S : Type*} [CommSemiring R] [Semiring S] [Algebra R S] (x : S)
(I : Ideal R) {y : adjoin R ({ x } : Set S)} :
y ∈ I.map (algebraMap R (adjoin R ({ x } : Set S))) ↔ ∃ p : R[X], (∀ i, p.coeff i ∈ I) ∧ Polynomial.aeval x p = y :=
by
constructor
· intro H
induction H using Submodule.span_induction with
| mem a ha =>
obtain ⟨a, ha, rfl⟩ := ha
exact ⟨C a, fun i ↦ by rw [coeff_C]; aesop, aeval_C _ _⟩
| zero => exact ⟨0, by simp, aeval_zero _⟩
| add a b ha hb ha' hb' =>
obtain ⟨a, ha, ha'⟩ := ha'
obtain ⟨b, hb, hb'⟩ := hb'
exact ⟨a + b, fun i ↦ by simpa using add_mem (ha i) (hb i), by simp [ha', hb']⟩
| smul a b hb hb' =>
obtain ⟨b', hb, hb'⟩ := hb'
obtain ⟨a, ha⟩ := a
rw [Algebra.adjoin_singleton_eq_range_aeval] at ha
obtain ⟨p, hp : aeval x p = a⟩ := ha
refine ⟨p * b', fun i ↦ ?_, by simp [hp, hb']⟩
rw [coeff_mul]
exact sum_mem fun i hi ↦ Ideal.mul_mem_left _ _ (hb _)
· rintro ⟨p, hp, hp'⟩
have : y = ∑ i ∈ p.support, p.coeff i • ⟨_, (X ^ i).aeval_mem_adjoin_singleton _ x⟩ :=
by
trans ∑ i ∈ p.support, ⟨_, (C (p.coeff i) * X ^ i).aeval_mem_adjoin_singleton _ x⟩
· ext1
simp only [AddSubmonoidClass.coe_finset_sum, ← map_sum, ← hp', ← as_sum_support_C_mul_X_pow]
· congr with i
simp [Algebra.smul_def]
simp_rw [this, Algebra.smul_def]
exact sum_mem fun i _ ↦ Ideal.mul_mem_right _ _ (Ideal.mem_map_of_mem _ (hp i))