@@ -104,7 +104,7 @@ variable (S : Subalgebra R A)
104104instance instSMulMemClass : SMulMemClass (Subalgebra R A) R A where
105105 smul_mem {S} r x hx := (Algebra.smul_def r x).symm ▸ mul_mem (S.algebraMap_mem' r) hx
106106
107- theorem _root_.algebraMap_mem {S R A : Type _ } [CommSemiring R] [Semiring A] [Algebra R A]
107+ theorem _root_.algebraMap_mem {S R A : Type * } [CommSemiring R] [Semiring A] [Algebra R A]
108108 [SetLike S A] [OneMemClass S A] [SMulMemClass S R A] (s : S) (r : R) :
109109 algebraMap R A r ∈ s :=
110110 Algebra.algebraMap_eq_smul_one (A := A) r ▸ SMulMemClass.smul_mem r (one_mem s)
@@ -184,7 +184,7 @@ protected theorem prod_mem {R : Type u} {A : Type v} [CommSemiring R] [CommSemir
184184 prod_mem h
185185#align subalgebra.prod_mem Subalgebra.prod_mem
186186
187- instance {R A : Type _ } [CommRing R] [Ring A] [Algebra R A] : SubringClass (Subalgebra R A) A :=
187+ instance {R A : Type* } [CommRing R] [Ring A] [Algebra R A] : SubringClass (Subalgebra R A) A :=
188188 { Subalgebra.SubsemiringClass with
189189 neg_mem := fun {S x} hx => neg_one_smul R x ▸ S.smul_mem hx _ }
190190
@@ -454,7 +454,7 @@ theorem toSubsemiring_subtype : S.toSubsemiring.subtype = (S.val : S →+* A) :=
454454#align subalgebra.to_subsemiring_subtype Subalgebra.toSubsemiring_subtype
455455
456456@[simp]
457- theorem toSubring_subtype {R A : Type _ } [CommRing R] [Ring A] [Algebra R A] (S : Subalgebra R A) :
457+ theorem toSubring_subtype {R A : Type * } [CommRing R] [Ring A] [Algebra R A] (S : Subalgebra R A) :
458458 S.toSubring.subtype = (S.val : S →+* A) := rfl
459459#align subalgebra.to_subring_subtype Subalgebra.toSubring_subtype
460460
@@ -532,12 +532,12 @@ theorem coe_comap (S : Subalgebra R B) (f : A →ₐ[R] B) : (S.comap f : Set A)
532532 rfl
533533#align subalgebra.coe_comap Subalgebra.coe_comap
534534
535- instance noZeroDivisors {R A : Type _ } [CommSemiring R] [Semiring A] [NoZeroDivisors A]
535+ instance noZeroDivisors {R A : Type * } [CommSemiring R] [Semiring A] [NoZeroDivisors A]
536536 [Algebra R A] (S : Subalgebra R A) : NoZeroDivisors S :=
537537 inferInstanceAs (NoZeroDivisors S.toSubsemiring)
538538#align subalgebra.no_zero_divisors Subalgebra.noZeroDivisors
539539
540- instance isDomain {R A : Type _ } [CommRing R] [Ring A] [IsDomain A] [Algebra R A]
540+ instance isDomain {R A : Type * } [CommRing R] [Ring A] [IsDomain A] [Algebra R A]
541541 (S : Subalgebra R A) : IsDomain S :=
542542 inferInstanceAs (IsDomain S.toSubring)
543543#align subalgebra.is_domain Subalgebra.isDomain
@@ -546,7 +546,7 @@ end Subalgebra
546546
547547namespace Submodule
548548
549- variable {R A : Type _ } [CommSemiring R] [Semiring A] [Algebra R A]
549+ variable {R A : Type * } [CommSemiring R] [Semiring A] [Algebra R A]
550550
551551variable (p : Submodule R A)
552552
@@ -733,7 +733,7 @@ theorem ofInjective_apply (f : A →ₐ[R] B) (hf : Function.Injective f) (x : A
733733#align alg_equiv.of_injective_apply AlgEquiv.ofInjective_apply
734734
735735/-- Restrict an algebra homomorphism between fields to an algebra isomorphism -/
736- noncomputable def ofInjectiveField {E F : Type _ } [DivisionRing E] [Semiring F] [Nontrivial F]
736+ noncomputable def ofInjectiveField {E F : Type * } [DivisionRing E] [Semiring F] [Nontrivial F]
737737 [Algebra R E] [Algebra R F] (f : E →ₐ[R] F) : E ≃ₐ[R] f.range :=
738738 ofInjective f f.toRingHom.injective
739739#align alg_equiv.of_injective_field AlgEquiv.ofInjectiveField
@@ -798,7 +798,7 @@ theorem top_toSubsemiring : (⊤ : Subalgebra R A).toSubsemiring = ⊤ := rfl
798798#align algebra.top_to_subsemiring Algebra.top_toSubsemiring
799799
800800@[simp]
801- theorem top_toSubring {R A : Type _ } [CommRing R] [Ring A] [Algebra R A] :
801+ theorem top_toSubring {R A : Type * } [CommRing R] [Ring A] [Algebra R A] :
802802 (⊤ : Subalgebra R A).toSubring = ⊤ := rfl
803803#align algebra.top_to_subring Algebra.top_toSubring
804804
@@ -813,7 +813,7 @@ theorem toSubsemiring_eq_top {S : Subalgebra R A} : S.toSubsemiring = ⊤ ↔ S
813813#align algebra.to_subsemiring_eq_top Algebra.toSubsemiring_eq_top
814814
815815@[simp]
816- theorem toSubring_eq_top {R A : Type _ } [CommRing R] [Ring A] [Algebra R A] {S : Subalgebra R A} :
816+ theorem toSubring_eq_top {R A : Type * } [CommRing R] [Ring A] [Algebra R A] {S : Subalgebra R A} :
817817 S.toSubring = ⊤ ↔ S = ⊤ :=
818818 Subalgebra.toSubring_injective.eq_iff' top_toSubring
819819#align algebra.to_subring_eq_top Algebra.toSubring_eq_top
@@ -955,7 +955,7 @@ theorem surjective_algebraMap_iff :
955955 fun h y => Algebra.mem_bot.1 <| eq_bot_iff.1 h (Algebra.mem_top : y ∈ _)⟩
956956#align algebra.surjective_algebra_map_iff Algebra.surjective_algebraMap_iff
957957
958- theorem bijective_algebraMap_iff {R A : Type _ } [Field R] [Semiring A] [Nontrivial A]
958+ theorem bijective_algebraMap_iff {R A : Type * } [Field R] [Semiring A] [Nontrivial A]
959959 [Algebra R A] : Function.Bijective (algebraMap R A) ↔ (⊤ : Subalgebra R A) = ⊥ :=
960960 ⟨fun h => surjective_algebraMap_iff.1 h.2 , fun h =>
961961 ⟨(algebraMap R A).injective, surjective_algebraMap_iff.2 h⟩⟩
@@ -973,7 +973,7 @@ noncomputable def botEquivOfInjective (h : Function.Injective (algebraMap R A))
973973
974974/-- The bottom subalgebra is isomorphic to the field. -/
975975@ [simps! symm_apply]
976- noncomputable def botEquiv (F R : Type _ ) [Field F] [Semiring R] [Nontrivial R] [Algebra F R] :
976+ noncomputable def botEquiv (F R : Type * ) [Field F] [Semiring R] [Nontrivial R] [Algebra F R] :
977977 (⊥ : Subalgebra F R) ≃ₐ[F] F :=
978978 botEquivOfInjective (RingHom.injective _)
979979#align algebra.bot_equiv Algebra.botEquiv
@@ -1146,7 +1146,7 @@ end Prod
11461146
11471147section SuprLift
11481148
1149- variable {ι : Type _ }
1149+ variable {ι : Type * }
11501150
11511151theorem coe_iSup_of_directed [Nonempty ι] {S : ι → Subalgebra R A} (dir : Directed (· ≤ ·) S) :
11521152 ↑(iSup S) = ⋃ i, (S i : Set A) :=
@@ -1246,7 +1246,7 @@ These are just copies of the definitions about `Subsemiring` starting from
12461246
12471247section Actions
12481248
1249- variable {α β : Type _ }
1249+ variable {α β : Type * }
12501250
12511251/-- The action by a subalgebra is the action by the underlying algebra. -/
12521252instance [SMul A α] (S : Subalgebra R A) : SMul S α :=
@@ -1271,7 +1271,7 @@ instance isScalarTower_left [SMul α β] [SMul A α] [SMul A β] [IsScalarTower
12711271 inferInstanceAs (IsScalarTower S.toSubsemiring α β)
12721272#align subalgebra.is_scalar_tower_left Subalgebra.isScalarTower_left
12731273
1274- instance isScalarTower_mid {R S T : Type _ } [CommSemiring R] [Semiring S] [AddCommMonoid T]
1274+ instance isScalarTower_mid {R S T : Type * } [CommSemiring R] [Semiring S] [AddCommMonoid T]
12751275 [Algebra R S] [Module R T] [Module S T] [IsScalarTower R S T] (S' : Subalgebra R S) :
12761276 IsScalarTower R S' T :=
12771277 ⟨fun _x y _z => (smul_assoc _ (y : S) _ : _)⟩
@@ -1302,25 +1302,25 @@ instance moduleLeft [AddCommMonoid α] [Module A α] (S : Subalgebra R A) : Modu
13021302#align subalgebra.module_left Subalgebra.moduleLeft
13031303
13041304/-- The action by a subalgebra is the action by the underlying algebra. -/
1305- instance toAlgebra {R A : Type _ } [CommSemiring R] [CommSemiring A] [Semiring α] [Algebra R A]
1305+ instance toAlgebra {R A : Type * } [CommSemiring R] [CommSemiring A] [Semiring α] [Algebra R A]
13061306 [Algebra A α] (S : Subalgebra R A) : Algebra S α :=
13071307 Algebra.ofSubsemiring S.toSubsemiring
13081308#align subalgebra.to_algebra Subalgebra.toAlgebra
13091309
1310- theorem algebraMap_eq {R A : Type _ } [CommSemiring R] [CommSemiring A] [Semiring α] [Algebra R A]
1310+ theorem algebraMap_eq {R A : Type * } [CommSemiring R] [CommSemiring A] [Semiring α] [Algebra R A]
13111311 [Algebra A α] (S : Subalgebra R A) : algebraMap S α = (algebraMap A α).comp S.val :=
13121312 rfl
13131313#align subalgebra.algebra_map_eq Subalgebra.algebraMap_eq
13141314
13151315@[simp]
1316- theorem rangeS_algebraMap {R A : Type _ } [CommSemiring R] [CommSemiring A] [Algebra R A]
1316+ theorem rangeS_algebraMap {R A : Type * } [CommSemiring R] [CommSemiring A] [Algebra R A]
13171317 (S : Subalgebra R A) : (algebraMap S A).rangeS = S.toSubsemiring := by
13181318 rw [algebraMap_eq, Algebra.id.map_eq_id, RingHom.id_comp, ← toSubsemiring_subtype,
13191319 Subsemiring.rangeS_subtype]
13201320#align subalgebra.srange_algebra_map Subalgebra.rangeS_algebraMap
13211321
13221322@[simp]
1323- theorem range_algebraMap {R A : Type _ } [CommRing R] [CommRing A] [Algebra R A]
1323+ theorem range_algebraMap {R A : Type * } [CommRing R] [CommRing A] [Algebra R A]
13241324 (S : Subalgebra R A) : (algebraMap S A).range = S.toSubring := by
13251325 rw [algebraMap_eq, Algebra.id.map_eq_id, RingHom.id_comp, ← toSubring_subtype,
13261326 Subring.range_subtype]
@@ -1358,13 +1358,13 @@ theorem center_toSubsemiring : (center R A).toSubsemiring = Subsemiring.center A
13581358#align subalgebra.center_to_subsemiring Subalgebra.center_toSubsemiring
13591359
13601360@[simp]
1361- theorem center_toSubring (R A : Type _ ) [CommRing R] [Ring A] [Algebra R A] :
1361+ theorem center_toSubring (R A : Type * ) [CommRing R] [Ring A] [Algebra R A] :
13621362 (center R A).toSubring = Subring.center A :=
13631363 rfl
13641364#align subalgebra.center_to_subring Subalgebra.center_toSubring
13651365
13661366@[simp]
1367- theorem center_eq_top (A : Type _ ) [CommSemiring A] [Algebra R A] : center R A = ⊤ :=
1367+ theorem center_eq_top (A : Type * ) [CommSemiring A] [Algebra R A] : center R A = ⊤ :=
13681368 SetLike.coe_injective (Set.center_eq_univ A)
13691369#align subalgebra.center_eq_top Subalgebra.center_eq_top
13701370
@@ -1373,7 +1373,7 @@ variable {R A}
13731373instance : CommSemiring (center R A) :=
13741374 inferInstanceAs (CommSemiring (Subsemiring.center A))
13751375
1376- instance {A : Type _ } [Ring A] [Algebra R A] : CommRing (center R A) :=
1376+ instance {A : Type* } [Ring A] [Algebra R A] : CommRing (center R A) :=
13771377 inferInstanceAs (CommRing (Subring.center A))
13781378
13791379theorem mem_center_iff {a : A} : a ∈ center R A ↔ ∀ b : A, b * a = a * b :=
@@ -1429,8 +1429,8 @@ end Centralizer
14291429/-- Suppose we are given `∑ i, lᵢ * sᵢ = 1` in `S`, and `S'` a subalgebra of `S` that contains
14301430`lᵢ` and `sᵢ`. To check that an `x : S` falls in `S'`, we only need to show that
14311431`sᵢ ^ n • x ∈ S'` for some `n` for each `sᵢ`. -/
1432- theorem mem_of_finset_sum_eq_one_of_pow_smul_mem {S : Type _ } [CommRing S] [Algebra R S]
1433- (S' : Subalgebra R S) {ι : Type _ } (ι' : Finset ι) (s : ι → S) (l : ι → S)
1432+ theorem mem_of_finset_sum_eq_one_of_pow_smul_mem {S : Type * } [CommRing S] [Algebra R S]
1433+ (S' : Subalgebra R S) {ι : Type * } (ι' : Finset ι) (s : ι → S) (l : ι → S)
14341434 (e : ∑ i in ι', l i * s i = 1 ) (hs : ∀ i, s i ∈ S') (hl : ∀ i, l i ∈ S') (x : S)
14351435 (H : ∀ i, ∃ n : ℕ, (s i ^ n : S) • x ∈ S') : x ∈ S' := by
14361436 -- Porting note: needed to add this instance
@@ -1460,7 +1460,7 @@ theorem mem_of_finset_sum_eq_one_of_pow_smul_mem {S : Type _} [CommRing S] [Alge
14601460 exact ⟨⟨_, hn i⟩, rfl⟩
14611461#align subalgebra.mem_of_finset_sum_eq_one_of_pow_smul_mem Subalgebra.mem_of_finset_sum_eq_one_of_pow_smul_mem
14621462
1463- theorem mem_of_span_eq_top_of_smul_pow_mem {S : Type _ } [CommRing S] [Algebra R S]
1463+ theorem mem_of_span_eq_top_of_smul_pow_mem {S : Type * } [CommRing S] [Algebra R S]
14641464 (S' : Subalgebra R S) (s : Set S) (l : s →₀ S) (hs : Finsupp.total s S S (↑) l = 1 )
14651465 (hs' : s ⊆ S') (hl : ∀ i, l i ∈ S') (x : S) (H : ∀ r : s, ∃ n : ℕ, (r : S) ^ n • x ∈ S') :
14661466 x ∈ S' :=
@@ -1471,7 +1471,7 @@ end Subalgebra
14711471
14721472section Nat
14731473
1474- variable {R : Type _ } [Semiring R]
1474+ variable {R : Type * } [Semiring R]
14751475
14761476/-- A subsemiring is an `ℕ`-subalgebra. -/
14771477def subalgebraOfSubsemiring (S : Subsemiring R) : Subalgebra ℕ R :=
@@ -1488,7 +1488,7 @@ end Nat
14881488
14891489section Int
14901490
1491- variable {R : Type _ } [Ring R]
1491+ variable {R : Type * } [Ring R]
14921492
14931493/-- A subring is a `ℤ`-subalgebra. -/
14941494def subalgebraOfSubring (S : Subring R) : Subalgebra ℤ R :=
@@ -1501,7 +1501,7 @@ def subalgebraOfSubring (S : Subring R) : Subalgebra ℤ R :=
15011501 exact S.sub_mem ih S.one_mem }
15021502#align subalgebra_of_subring subalgebraOfSubring
15031503
1504- variable {S : Type _ } [Semiring S]
1504+ variable {S : Type * } [Semiring S]
15051505
15061506@[simp]
15071507theorem mem_subalgebraOfSubring {x : R} {S : Subring R} : x ∈ subalgebraOfSubring S ↔ x ∈ S :=
0 commit comments