@@ -522,7 +522,7 @@ variable (W') in
522522and the set of pairs `⟨x, y⟩` satisfying `W.Nonsingular x y` with zero. -/
523523def nonsingularPointEquiv : W'.Point ≃ WithZero {xy : R × R // W'.Nonsingular xy.fst xy.snd} :=
524524 (Equiv.Set.univ W'.Point).symm.trans <| (nonsingularPointEquivSubtype trivial).trans
525- (Equiv.setCongr <| Set.ext fun _ => exists_iff_of_forall fun _ => trivial ).optionCongr
525+ (Equiv.subtypeEquivProp <| by simp ).optionCongr
526526
527527@[simp]
528528lemma nonsingularPointEquiv_zero : nonsingularPointEquiv W' .zero = none :=
@@ -555,7 +555,7 @@ predicate and the set of pairs `⟨x, y⟩` satisfying `W.Equation x y` with zer
555555def pointEquivSubtype {p : W'.Point → Prop } (p0 : p .zero) :
556556 {P : W'.Point // p P} ≃ WithZero {xy : R × R // ∃ h : W'.Equation xy.fst xy.snd, p <| .mk h} :=
557557 (nonsingularPointEquivSubtype p0).trans
558- (Equiv.setCongr <| by simp [equation_iff_nonsingular, Point.mk]).optionCongr
558+ (Equiv.subtypeEquivProp <| by ext; simp [equation_iff_nonsingular, Point.mk]).optionCongr
559559
560560@[simp]
561561lemma pointEquivSubtype_zero {p : W'.Point → Prop } (p0 : p .zero) :
@@ -583,7 +583,7 @@ variable (W') in
583583`⟨x, y⟩` satisfying `E.Equation x y` with zero. -/
584584def pointEquiv : W'.Point ≃ WithZero {xy : R × R // W'.Equation xy.fst xy.snd} :=
585585 (Equiv.Set.univ W'.Point).symm.trans <| (pointEquivSubtype trivial).trans
586- (Equiv.setCongr <| Set.ext fun _ => exists_iff_of_forall fun _ => trivial ).optionCongr
586+ (Equiv.subtypeEquivProp <| by simp ).optionCongr
587587
588588@[simp]
589589lemma pointEquiv_zero : W'.pointEquiv .zero = none :=
0 commit comments