Skip to content

Commit a196130

Browse files
committed
chore(Logic/Equiv): golf entire Perm.subtypeCongr.symm using rfl (#31237)
1 parent 952587c commit a196130

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Mathlib/Logic/Equiv/Basic.lean

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,8 @@ theorem Perm.subtypeCongr.refl :
8484
by_cases h : p x <;> simp [h]
8585

8686
@[simp]
87-
theorem Perm.subtypeCongr.symm : (ep.subtypeCongr en).symm = Perm.subtypeCongr ep.symm en.symm := by
88-
ext x
89-
by_cases h : p x
90-
· have : p (ep.symm ⟨x, h⟩) := Subtype.property _
91-
simp [h, symm_apply_eq, this]
92-
· have : ¬p (en.symm ⟨x, h⟩) := Subtype.property (en.symm _)
93-
simp [h, symm_apply_eq, this]
87+
theorem Perm.subtypeCongr.symm : (ep.subtypeCongr en).symm = Perm.subtypeCongr ep.symm en.symm :=
88+
rfl
9489

9590
@[simp]
9691
theorem Perm.subtypeCongr.trans :

0 commit comments

Comments
 (0)