Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 4f840b8

Browse files
committed
feat(ring_theory/polynomial/quotient): generalise quotient_span_X_sub_C_alg_equiv (#19086)
1 parent 917c3c0 commit 4f840b8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/ring_theory/polynomial/quotient.lean

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,22 @@ rfl
3737
(quotient_span_X_sub_C_alg_equiv x).symm y = algebra_map R _ y :=
3838
rfl
3939

40+
/-- For a commutative ring $R$, evaluating a polynomial at an element $y \in R$ induces an
41+
isomorphism of $R$-algebras $R[X] / \langle x, X - y \rangle \cong R / \langle x \rangle$. -/
42+
noncomputable def quotient_span_C_X_sub_C_alg_equiv (x y : R) :
43+
(R[X] ⧸ (ideal.span {C x, X - C y} : ideal R[X])) ≃ₐ[R] R ⧸ (ideal.span {x} : ideal R) :=
44+
(ideal.quotient_equiv_alg_of_eq R $ by rw [ideal.span_insert, sup_comm]).trans $
45+
(double_quot.quot_quot_equiv_quot_supₐ R _ _).symm.trans $
46+
(ideal.quotient_equiv_alg _ _ (quotient_span_X_sub_C_alg_equiv y) rfl).trans $
47+
ideal.quotient_equiv_alg_of_eq R $
48+
by { simp only [ideal.map_span, set.image_singleton], congr' 2, exact eval_C }
49+
4050
end polynomial
4151

4252
namespace ideal
53+
4354
noncomputable theory
55+
4456
open polynomial
4557

4658
variables {R : Type*} [comm_ring R]

0 commit comments

Comments
 (0)