@@ -60,19 +60,18 @@ def transitionMapₐ {m n : ℕ} (hmn : m ≤ n) :
6060
6161/-- `AdicCompletion I R` is an `R`-subalgebra of `∀ n, R ⧸ (I ^ n • ⊤ : Ideal R)`. -/
6262def subalgebra : Subalgebra R (∀ n, R ⧸ (I ^ n • ⊤ : Ideal R)) :=
63- Submodule.toSubalgebra (submodule I R) (fun _ ↦ by simp [transitionMap_map_one I] )
64- (fun x y hx hy m n hmn ↦ by simp [hx hmn, hy hmn, transitionMap_map_mul I hmn ])
63+ Submodule.toSubalgebra (submodule I R) (fun _ ↦ by simp)
64+ (fun x y hx hy m n hmn ↦ by simp [hx hmn, hy hmn])
6565
6666/-- `AdicCompletion I R` is a subring of `∀ n, R ⧸ (I ^ n • ⊤ : Ideal R)`. -/
6767def subring : Subring (∀ n, R ⧸ (I ^ n • ⊤ : Ideal R)) :=
6868 Subalgebra.toSubring (subalgebra I)
6969
7070instance : Mul (AdicCompletion I R) where
71- mul x y := ⟨x.val * y.val, fun hmn ↦ by
72- simp [x.property, y.property, transitionMap_map_mul I hmn]⟩
71+ mul x y := ⟨x.val * y.val, by simp [x.property, y.property]⟩
7372
7473instance : One (AdicCompletion I R) where
75- one := ⟨1 , by simp [transitionMap_map_one I] ⟩
74+ one := ⟨1 , by simp⟩
7675
7776instance : NatCast (AdicCompletion I R) where
7877 natCast n := ⟨n, fun _ ↦ rfl⟩
@@ -81,7 +80,7 @@ instance : IntCast (AdicCompletion I R) where
8180 intCast n := ⟨n, fun _ ↦ rfl⟩
8281
8382instance : Pow (AdicCompletion I R) ℕ where
84- pow x n := ⟨x.val ^ n, fun hmn ↦ by simp [x.property, transitionMap_map_pow I hmn ]⟩
83+ pow x n := ⟨x.val ^ n, fun _ ↦ by simp [x.property]⟩
8584
8685instance : CommRing (AdicCompletion I R) :=
8786 let f : AdicCompletion I R → ∀ n, R ⧸ (I ^ n • ⊤ : Ideal R) := Subtype.val
@@ -91,11 +90,9 @@ instance : CommRing (AdicCompletion I R) :=
9190
9291instance [Algebra S R] : Algebra S (AdicCompletion I R) where
9392 algebraMap :=
94- { toFun r := ⟨algebraMap S (∀ n, R ⧸ (I ^ n • ⊤ : Ideal R)) r, fun hmn ↦ by
95- simp only [Pi.algebraMap_apply,
96- IsScalarTower.algebraMap_apply S R (R ⧸ (I ^ _ • ⊤ : Ideal R)),
97- Ideal.Quotient.algebraMap_eq, mapQ_eq_factor]
98- rfl⟩
93+ { toFun r := ⟨algebraMap S (∀ n, R ⧸ (I ^ n • ⊤ : Ideal R)) r, by
94+ simp [-Ideal.Quotient.mk_algebraMap,
95+ IsScalarTower.algebraMap_apply S R (R ⧸ (I ^ _ • ⊤ : Ideal R))]⟩
9996 map_one' := Subtype.ext <| map_one _
10097 map_mul' x y := Subtype.ext <| map_mul _ x y
10198 map_zero' := Subtype.ext <| map_zero _
@@ -242,8 +239,8 @@ instance smul : SMul (AdicCompletion I R) (AdicCompletion I M) where
242239 property := fun {m n} hmn ↦ by
243240 apply induction_on I R r (fun r ↦ ?_)
244241 apply induction_on I M x (fun x ↦ ?_)
245- simp only [coe_eval, mapQ_eq_factor, mk_apply_coe, mkQ_apply, Ideal.Quotient.mk_eq_mk,
246- mk_smul_mk, map_smul, mapQ_apply, LinearMap.id_coe, id_eq ]
242+ simp only [coe_eval, mk_apply_coe, mkQ_apply, Ideal.Quotient.mk_eq_mk,
243+ mk_smul_mk, LinearMapClass. map_smul, mapQPow_mk ]
247244 rw [smul_mk I hmn]
248245 }
249246
0 commit comments