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

[Merged by Bors] - chore(ring_theory/integral_closure): fix dot notation #14589

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/number_theory/function_field.lean
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ begin
end

lemma not_is_field : ¬ is_field (ring_of_integers Fq F) :=
by simpa [← (is_integral.is_field_iff_is_field (is_integral_closure.is_integral_algebra Fq[X] F)
by simpa [← ((is_integral_closure.is_integral_algebra Fq[X] F).is_field_iff_is_field
(algebra_map_injective Fq F))] using (polynomial.not_is_field Fq)

variables [function_field Fq F]
Expand Down
4 changes: 2 additions & 2 deletions src/number_theory/number_field.lean
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ begin
have h_inj : function.injective ⇑(algebra_map ℤ (𝓞 K)),
{ exact ring_hom.injective_int (algebra_map ℤ (𝓞 K)) },
intro hf,
exact int.not_is_field ((is_integral.is_field_iff_is_field
(is_integral_closure.is_integral_algebra ℤ K) h_inj).mpr hf)
exact int.not_is_field
(((is_integral_closure.is_integral_algebra ℤ K).is_field_iff_is_field h_inj).mpr hf)
end

instance [number_field K] : is_dedekind_domain (𝓞 K) :=
Expand Down
2 changes: 1 addition & 1 deletion src/ring_theory/integral_closure.lean
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ begin
exact ⟨y, subtype.ext_iff.mp hy⟩,
end

lemma is_integral.is_field_iff_is_field
lemma algebra.is_integral.is_field_iff_is_field
{R S : Type*} [comm_ring R] [nontrivial R] [comm_ring S] [is_domain S] [algebra R S]
(H : algebra.is_integral R S) (hRS : function.injective (algebra_map R S)) :
is_field R ↔ is_field S :=
Expand Down