Skip to content

Commit d65f336

Browse files
Apply batched suggestions from code review
Co-authored-by: Jiedong Jiang <107380768+jjdishere@users.noreply.github.com> Co-authored-by: Monica Omar <23701951+themathqueen@users.noreply.github.com>
1 parent 5eadc83 commit d65f336

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Mathlib/RingTheory/Coalgebra/IsFrobenius.lean

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ In texts, this is what the Frobenius equations are usually referred to as.
5353
* `Coalgebra.IsFrobenius.instFinite`: a coalgebra satisfying the Frobenius equations is finite
5454
* `Coalgebra.IsFrobenius.instProjective`: a coalgebra satisfying the Frobenius equations is
5555
projective
56-
* `Bialgebra.nonempty_algEquiv_of_isFrobenius`: when a bialgebra satisfies the Frobenius
56+
* `Bialgebra.nonempty_algEquiv_of_isFrobenius`: when an `R`-bialgebra `A` satisfies the Frobenius
5757
equations, `R` is isomorphic to `A`
5858
-/
5959

@@ -118,21 +118,21 @@ end Defs
118118
namespace Coalgebra.IsFrobenius
119119
variable [Coalgebra R A] [IsFrobenius R A]
120120

121-
instance _root_.CommSemiring.toIsFrobenius : IsFrobenius R R where
121+
instance of_commSemiring : IsFrobenius R R where
122122
left_eq_right := by ext; simp [left_def, right_def]
123123

124124
lemma left_eq_comul_comp_mul' : left R A = δ ∘ₗ μ[R] := by
125125
have h := ‹IsFrobenius R A›.left_eq_right
126126
simp only [left_def, lTensor, rTensor, right_def] at h ⊢
127127
calc
128128
_ = rT A μ ∘ₗ α⁻¹ ∘ₗ ((β ∘ₗ rT A ε ∘ₗ δ) ⊗ₘ δ) := by
129-
simp only [h, CoassocSimps.map_counit_comp_comul_left, coassoc_simps]
129+
simp [h, CoassocSimps.map_counit_comp_comul_left, coassoc_simps]
130130
_ = β ∘ₗ rT (A ⊗[R] A) ε ∘ₗ α ∘ₗ rT A (rT A μ ∘ₗ α⁻¹ ∘ₗ lT A δ) ∘ₗ α⁻¹ ∘ₗ lT A δ := by
131131
simp only [rTensor, lTensor, ← h, lid_tensor]
132-
simp only [coassoc_simps, mul'_comp_map_lid_comp]
133-
_ = β ∘ₗ (ε ⊗ₘ δ) ∘ₗ lT A μ ∘ₗ α ∘ₗ rT A δ := by simp only [assoc_tensor, h, coassoc_simps]
134-
_ = β ∘ₗ lT R (δ ∘ₗ μ) ∘ₗ α ∘ₗ rT A (rT A ε ∘ₗ δ) := by simp only [coassoc_simps]
135-
_ = δ ∘ₗ μ := by simp only [coassoc_simps, CoassocSimps.map_counit_comp_comul_left]
132+
simp [coassoc_simps, mul'_comp_map_lid_comp]
133+
_ = β ∘ₗ (ε ⊗ₘ δ) ∘ₗ lT A μ ∘ₗ α ∘ₗ rT A δ := by simp [assoc_tensor, h, coassoc_simps]
134+
_ = β ∘ₗ lT R (δ ∘ₗ μ) ∘ₗ α ∘ₗ rT A (rT A ε ∘ₗ δ) := by simp [coassoc_simps]
135+
_ = δ ∘ₗ μ := by simp [coassoc_simps, CoassocSimps.map_counit_comp_comul_left]
136136

137137
lemma right_eq_comul_comp_mul' : right R A = δ ∘ₗ μ[R] := by
138138
rw [← left_eq_right, left_eq_comul_comp_mul']
@@ -190,14 +190,14 @@ lemma nondegenerate_compr₂_mul_counit : ((mul R A).compr₂ ε).Nondegenerate
190190
fun _ ↦ forall_counit_mul_left_eq_zero_iff.mp, fun _ ↦ forall_counit_mul_right_eq_zero_iff.mp⟩
191191

192192
/-- The bilinear form `mul.compr₂ counit` is bijective. -/
193-
lemma bijective_compr₂_mul_counit : (⇑((mul R A).compr₂ ε)).Bijective := by
193+
lemma compr₂_mul_counit_bijective : (⇑((mul R A).compr₂ ε)).Bijective := by
194194
have ⟨S, hS⟩ := exists_finset (R := R) (δ (1 : A))
195195
refine ⟨fun a b h ↦ ?_, fun f ↦ ⟨∑ x ∈ S, f x.1 • x.2, ext fun b ↦ ?_⟩⟩
196196
· rw [← sum_counit_mul_left_smul_of_comul_one hS b]
197197
simp only [LinearMap.ext_iff, compr₂_apply, mul_apply_apply] at h
198-
simp only [← h, sum_counit_mul_left_smul_of_comul_one hS]
199-
· calc _ = ∑ x ∈ S, ε (x.2 * b) * f x.1 := by simp [mul_comm (f _)]
200-
_ = ∑ x ∈ S, ε (x.2 * b) • f x.1 := by simp only [← smul_eq_mul]; rfl
198+
simp [← h, sum_counit_mul_left_smul_of_comul_one hS]
199+
· calc
200+
_ = ∑ x ∈ S, (ε (x.2 * b) : R) • f x.1 := by simp [mul_comm (f _)]
201201
_ = _ := by simp only [← map_smul, ← map_sum, sum_counit_mul_right_smul_of_comul_one hS]
202202

203203
end nonAssoc

0 commit comments

Comments
 (0)