Skip to content

Commit 58e94a9

Browse files
committed
chore: remove use of erw in SetTheory.Cardinal.Arithmetic (leanprover-community#31774)
1 parent f46fa2e commit 58e94a9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Mathlib/SetTheory/Cardinal/Arithmetic.lean

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,9 @@ variable [Infinite α] {α β'}
590590
theorem mk_perm_eq_self_power : #(Equiv.Perm α) = #α ^ #α :=
591591
((mk_equiv_le_embedding α α).trans (mk_embedding_le_arrow α α)).antisymm <| by
592592
suffices Nonempty ((α → Bool) ↪ Equiv.Perm (α × Bool)) by
593-
obtain ⟨e⟩ : Nonempty (α ≃ α × Bool) := by
594-
erw [← Cardinal.eq, mk_prod, lift_uzero, mk_bool,
595-
lift_natCast, mul_two, add_eq_self (aleph0_le_mk α)]
596-
erw [← le_def, mk_arrow, lift_uzero, mk_bool, lift_natCast 2] at this
593+
obtain ⟨e⟩ : Nonempty (α ≃ α × Bool) := by simp [← Cardinal.eq, mul_two]
594+
simp only [← le_def, mk_pi, mk_fintype, Fintype.card_bool, Nat.cast_ofNat,
595+
prod_const, lift_ofNat, lift_uzero] at this
597596
rwa [← power_def, power_self_eq (aleph0_le_mk α), e.permCongr.cardinal_eq]
598597
refine ⟨⟨fun f ↦ Involutive.toPerm (fun x ↦ ⟨x.1, xor (f x.1) x.2⟩) fun x ↦ ?_, fun f g h ↦ ?_⟩⟩
599598
· simp_rw [← Bool.xor_assoc, Bool.xor_self, Bool.false_xor]

0 commit comments

Comments
 (0)