Skip to content

Commit afd4bc9

Browse files
committed
feat(Topology): codiscreteWithin = ⊥ iff IsDiscrete (#39828)
AI usage disclosure: Aristotle was used to draft the initial version, and then manually golfed.
1 parent 9c18560 commit afd4bc9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Mathlib/Topology/DiscreteSubset.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ lemma mem_codiscrete_subtype_iff_mem_codiscreteWithin {S : Set X} {U : Set S} :
365365
U ∈ codiscrete S ↔ (↑) '' U ∈ codiscreteWithin S := by
366366
simp [← Topology.IsEmbedding.subtypeVal.image_mem_codiscreteWithin_range]
367367

368+
@[simp]
369+
theorem codiscreteWithin_eq_bot_iff {S : Set X} : codiscreteWithin S = ⊥ ↔ IsDiscrete S := by
370+
simp [isDiscrete_iff_nhdsNE, codiscreteWithin, ← nhdsWithin_inter', Set.diff_eq, inter_comm]
371+
368372
section T1Space
369373

370374
variable [T1Space X]

0 commit comments

Comments
 (0)