File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ is an equivalence between the complement of those subtypes.
113113See also `Equiv.compl`, for a computable version when a term of type
114114`{e' : α ≃ α // ∀ x : {x // p x}, e' x = e x}` is known. -/
115115noncomputable 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
129129variable {p q : α → Prop } [DecidablePred p] [DecidablePred q] [Finite {x | p x}]
130130
You can’t perform that action at this time.
0 commit comments