Skip to content

Commit a424062

Browse files
committed
style: convert toCompl from tactic mode to term mode
1 parent fc2de20 commit a424062

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Mathlib/Logic/Equiv/Fintype.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ is an equivalence between the complement of those subtypes.
113113
See also `Equiv.compl`, for a computable version when a term of type
114114
`{e' : α ≃ α // ∀ x : {x // p x}, e' x = e x}` is known. -/
115115
noncomputable def toCompl {p q : α → Prop} [Finite {x | p x}]
116-
(e : { x | p x } ≃ { x | q x }) : { x | ¬p x } ≃ { x | ¬q x } := by
117-
classical
116+
(e : { x | p x } ≃ { x | q x }) : { x | ¬p x } ≃ { x | ¬q x } :=
117+
letI := Classical.dec
118118
let sp : Set α := {x | p x}
119119
let sq : Set α := {x | q x}
120120
letI : Fintype sp := Fintype.ofFinite sp
@@ -124,7 +124,7 @@ noncomputable def toCompl {p q : α → Prop} [Finite {x | p x}]
124124
have hqc : sqᶜ = (sp \ sq) ∪ (sp ∪ sq)ᶜ := by ext; simp; tauto
125125
let epc := (Equiv.setCongr hpc).trans (Equiv.Set.union (by simp [Set.disjoint_left]; tauto))
126126
let eqc := (Equiv.setCongr hqc).trans (Equiv.Set.union (by simp [Set.disjoint_left]; tauto))
127-
exact epc.trans <| .trans (h.symm.sumCongr <| .refl _) eqc.symm
127+
epc.trans <| .trans (h.symm.sumCongr <| .refl _) eqc.symm
128128

129129
variable {p q : α → Prop} [DecidablePred p] [DecidablePred q] [Finite {x | p x}]
130130

0 commit comments

Comments
 (0)