@@ -59,7 +59,7 @@ def is_integral (x : A) : Prop :=
5959variable (A)
6060
6161/-- An algebra is integral if every element of the extension is integral over the base ring -/
62- def algebra.is_integral : Prop :=
62+ protected def algebra.is_integral : Prop :=
6363(algebra_map R A).is_integral
6464
6565variables {R A}
@@ -865,7 +865,7 @@ variables [algebra R A] [is_scalar_tower R A B]
865865
866866/-- If A is an R-algebra all of whose elements are integral over R,
867867and x is an element of an A-algebra that is integral over A, then x is integral over R.-/
868- lemma is_integral_trans (A_int : is_integral R A) (x : B) (hx : is_integral A x) :
868+ lemma is_integral_trans (A_int : algebra. is_integral R A) (x : B) (hx : is_integral A x) :
869869 is_integral R x :=
870870begin
871871 rcases hx with ⟨p, pmonic, hp⟩,
883883/-- If A is an R-algebra all of whose elements are integral over R,
884884and B is an A-algebra all of whose elements are integral over A,
885885then all elements of B are integral over R.-/
886- lemma algebra.is_integral_trans (hA : is_integral R A) (hB : is_integral A B) : is_integral R B :=
886+ lemma algebra.is_integral_trans (hA : algebra.is_integral R A) (hB : algebra.is_integral A B) :
887+ algebra.is_integral R B :=
887888λ x, is_integral_trans hA x (hB x)
888889
889890lemma ring_hom.is_integral_trans (hf : f.is_integral) (hg : g.is_integral) :
@@ -895,8 +896,8 @@ lemma ring_hom.is_integral_trans (hf : f.is_integral) (hg : g.is_integral) :
895896lemma ring_hom.is_integral_of_surjective (hf : function.surjective f) : f.is_integral :=
896897λ x, (hf x).rec_on (λ y hy, (hy ▸ f.is_integral_map : f.is_integral_elem x))
897898
898- lemma is_integral_of_surjective (h : function.surjective (algebra_map R A)) : is_integral R A :=
899- (algebra_map R A).is_integral_of_surjective h
899+ lemma is_integral_of_surjective (h : function.surjective (algebra_map R A)) :
900+ algebra.is_integral R A := (algebra_map R A).is_integral_of_surjective h
900901
901902/-- If `R → A → B` is an algebra tower with `A → B` injective,
902903then if the entire tower is an integral extension so is `R → A` -/
@@ -949,8 +950,8 @@ begin
949950 simpa only [hom_eval₂, eval₂_map] using congr_arg (ideal.quotient.mk I) hpx
950951end
951952
952- lemma is_integral_quotient_of_is_integral {I : ideal A} (hRA : is_integral R A) :
953- is_integral (R ⧸ I.comap (algebra_map R A)) (A ⧸ I) :=
953+ lemma is_integral_quotient_of_is_integral {I : ideal A} (hRA : algebra. is_integral R A) :
954+ algebra. is_integral (R ⧸ I.comap (algebra_map R A)) (A ⧸ I) :=
954955(algebra_map R A).is_integral_quotient_of_is_integral hRA
955956
956957lemma is_integral_quotient_map_iff {I : ideal S} :
967968/-- If the integral extension `R → S` is injective, and `S` is a field, then `R` is also a field. -/
968969lemma is_field_of_is_integral_of_is_field
969970 {R S : Type *} [comm_ring R] [nontrivial R] [comm_ring S] [is_domain S]
970- [algebra R S] (H : is_integral R S) (hRS : function.injective (algebra_map R S))
971+ [algebra R S] (H : algebra. is_integral R S) (hRS : function.injective (algebra_map R S))
971972 (hS : is_field S) : is_field R :=
972973begin
973974 refine ⟨⟨0 , 1 , zero_ne_one⟩, mul_comm, λ a ha, _⟩,
0 commit comments