Skip to content

Commit 472dcfc

Browse files
committed
chore(GroupTheory/OreLocalization): golf cardinalMk_le_lift_cardinalMk_of_commute using grind (#31284)
1 parent 3e58cbe commit 472dcfc

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Mathlib/GroupTheory/OreLocalization/Cardinality.lean

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,7 @@ theorem cardinalMk_le_lift_cardinalMk_of_commute (hc : ∀ s s' : S, Commute s s
9999
suffices Injective j by
100100
have := lift_mk_le_lift_mk_of_injective this
101101
rwa [lift_umax.{v, u}, lift_id', mk_prod, lift_id, lift_mul, mul_eq_self (by simp)] at this
102-
intro y y' heq
103-
rw [← hi y, ← hi y']
104-
simp_rw [j, comp_apply, Prod.ext_iff] at heq
105-
simp_rw [i]
106-
set x := surjInv hsurj y
107-
set x' := surjInv hsurj y'
108-
obtain ⟨h1, h2⟩ := heq
109-
rw [← h1] at h2 ⊢
110-
exact key x.1 x.2 x'.2 h2 (hc _ _)
102+
intro
103+
grind
111104

112105
end OreLocalization

0 commit comments

Comments
 (0)