Skip to content

Commit

Permalink
feat(ring_theory/localization): the algebraic elements over Frac(R)
Browse files Browse the repository at this point in the history
… are those over `R` (#8826)

We had this lemma for `L / K` is algebraic iff `L / A` is, but now we also have it elementwise!
  • Loading branch information
Vierkantor committed Aug 23, 2021
1 parent 2a69dc2 commit 700effa
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions src/ring_theory/localization.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1590,21 +1590,32 @@ begin
exact to_map_eq_zero_iff.mp h }
end

/-- A field is algebraic over the ring `A` iff it is algebraic over the field of fractions of `A`.
variables (A K)

/-- An element of a field is algebraic over the ring `A` iff it is algebraic
over the field of fractions of `A`.
-/
lemma comap_is_algebraic_iff [algebra A L] [algebra K L] [is_scalar_tower A K L] :
algebra.is_algebraic A Lalgebra.is_algebraic K L :=
lemma is_algebraic_iff [algebra A L] [algebra K L] [is_scalar_tower A K L] {x : L} :
is_algebraic A x ↔ is_algebraic K x :=
begin
split; intros h x; obtain ⟨p, hp, px⟩ := h x,
split; rintros ⟨p, hp, px⟩,
{ refine ⟨p.map (algebra_map A K), λ h, hp (polynomial.ext (λ i, _)), _⟩,
{ have : algebra_map A K (p.coeff i) = 0 := trans (polynomial.coeff_map _ _).symm (by simp [h]),
exact to_map_eq_zero_iff.mp this },
{ rwa is_scalar_tower.aeval_apply _ K at px } },
{ have : algebra_map A K (p.coeff i) = 0 := trans (polynomial.coeff_map _ _).symm (by simp [h]),
exact to_map_eq_zero_iff.mp this },
{ rwa is_scalar_tower.aeval_apply _ K at px } },
{ exact ⟨integer_normalization _ p,
mt integer_normalization_eq_zero_iff.mp hp,
integer_normalization_aeval_eq_zero _ p px⟩ },
end

variables {A K}

/-- A field is algebraic over the ring `A` iff it is algebraic over the field of fractions of `A`.
-/
lemma comap_is_algebraic_iff [algebra A L] [algebra K L] [is_scalar_tower A K L] :
algebra.is_algebraic A L ↔ algebra.is_algebraic K L :=
⟨λ h x, (is_algebraic_iff A K).mp (h x), λ h x, (is_algebraic_iff A K).mpr (h x)⟩

section num_denom

variables (A) [unique_factorization_monoid A]
Expand Down

0 comments on commit 700effa

Please sign in to comment.