|
|
|
|
Quelle ConstructibleTopology.lean
Sprache: Lean
|
|
/-
Copyright (c) 2025 Jiedong Jiang, Christian Merten. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Jiedong Jiang, Fangming Li, Christian Merten
-/
module
public import Mathlib.Topology.Constructible
public import Mathlib.Topology.Sober
import Mathlib.Tactic.Bound.Init
import Mathlib.Topology.WithTopology
/-!
# Constructible topology
In this file we define the constructible topology on a topological space. This is the topology
generated by compact open subsets and their complements.
## Main definitions and results
- `WithConstructibleTopology`: `X` equipped with its constructible topology.
- `compactSpace_withConstructibleTopology`: If `X` is quasi-separated, quasi-sober,
prespectral and quasi-compact, then `X` is still quasi-compact in the constructible topology.
## TODOs
- If `X` is a spectral space, show that `X` is T2 and totally disconnected (@chrisflav).
-/
@[expose] public section
variable {X : Type*} [TopologicalSpace X]
/-- The subbasis of the constructible topology on a topological space `X`: It consists
of the open and compact sets of `X` and their complements. -/
def constructibleTopologySubbasis (X : Type*) [TopologicalSpace X] : Set (Set X) :=
{ s | IsOpen s ∧ IsCompact s } ∪ { s | IsClosed s ∧ IsCompact sᶜ }
/-- The constructible topology on a topological space `X` has as a subbasis
the open and compact sets of `X` and their complements. -/
@[instance_reducible]
def constructibleTopology (X : Type*) [TopologicalSpace X] : TopologicalSpace X :=
.generateFrom (constructibleTopologySubbasis X)
/-- A type synonym for `X` that is equipped with the constructible topology of `X`. -/
@[nolint unusedArguments]
abbrev WithConstructibleTopology (X : Type*) [TopologicalSpace X] : Type _ :=
WithTopology X (constructibleTopology X)
open TopologicalSpace Topology
open scoped Topology
variable (X) in
@[simp]
lemma empty_mem_constructibleTopologySubbasis : ∅ ∈ constructibleTopologySubbasis X :=
Or.intro_left _ ⟨isOpen_empty, isCompact_empty⟩
lemma WithConstructibleTopology.isOpen_iff {s : Set (WithConstructibleTopology X)} :
IsOpen s ↔ IsOpen[constructibleTopology X] (WithTopology.toTopology _ ⁻¹' s) :=
WithTopology.isOpen_iff _
lemma WithConstructibleTopology.isClosed_iff {s : Set (WithConstructibleTopology X)} :
IsClosed s ↔ IsClosed[constructibleTopology X] (WithTopology.toTopology _ ⁻¹' s) :=
WithTopology.isClosed_iff _
lemma IsCompact.isOpen_constructibleTopology_of_isOpen {s : Set X}
(hs : IsCompact s) (ho : IsOpen s) : IsOpen[constructibleTopology X] s := by
apply TopologicalSpace.isOpen_generateFrom_of_mem
simp [constructibleTopologySubbasis, ho, hs]
lemma IsCompact.isOpen_constructibleTopology_of_isClosed {s : Set X}
(hs : IsCompact sᶜ) (ho : IsClosed s) : IsOpen[constructibleTopology X] s := by
apply TopologicalSpace.isOpen_generateFrom_of_mem
simp [constructibleTopologySubbasis, ho, hs]
lemma IsCompact.isClosed_constructibleTopology_of_isOpen {s : Set X}
(hs : IsCompact s) (ho : IsOpen s) : IsClosed[constructibleTopology X] s := by
rw [← @isOpen_compl_iff]
apply TopologicalSpace.isOpen_generateFrom_of_mem
simp [constructibleTopologySubbasis, ho, hs]
lemma IsCompact.isClosed_constructibleTopology_of_isClosed {s : Set X}
(hs : IsCompact sᶜ) (ho : IsClosed s) : IsClosed[constructibleTopology X] s := by
rw [← @isOpen_compl_iff]
apply TopologicalSpace.isOpen_generateFrom_of_mem
simp [constructibleTopologySubbasis, ho, hs]
lemma IsCompact.isClopen_constructibleTopology_of_isOpen {s : Set X}
(hs : IsCompact s) (ho : IsOpen s) : IsClopen[constructibleTopology X] s :=
⟨isClosed_constructibleTopology_of_isOpen hs ho, isOpen_constructibleTopology_of_isOpen hs ho⟩
lemma IsCompact.isClopen_constructibleTopology_of_isClosed {s : Set X}
(hs : IsCompact sᶜ) (ho : IsClosed s) : IsClopen[constructibleTopology X] s :=
⟨isClosed_constructibleTopology_of_isClosed hs ho, isOpen_constructibleTopology_of_isClosed hs ho⟩
@[simp]
lemma compl_mem_constructibleTopologySubbasis_iff {s : Set X} :
sᶜ ∈ constructibleTopologySubbasis X ↔ s ∈ constructibleTopologySubbasis X := by
grind [constructibleTopologySubbasis, isClosed_compl_iff, compl_compl]
lemma compl_image_constructibleTopologySubbasis :
compl '' constructibleTopologySubbasis X = constructibleTopologySubbasis X := by
grind [constructibleTopologySubbasis, isClosed_compl_iff, compl_compl]
lemma latticeClosure_constructibleTopologySubbasis [CompactSpace X] [QuasiSeparatedSpace X] :
latticeClosure (constructibleTopologySubbasis X) = { s | IsConstructible s } := by
rw [← BooleanSubalgebra.closure_eq_latticeClosure (empty_mem_constructibleTopologySubbasis X)
compl_image_constructibleTopologySubbasis]
dsimp only [IsConstructible, SetLike.setOfPred_mem_eq]
congr 1
refine le_antisymm ?_ (BooleanSubalgebra.closure_mono ?_)
· rw [BooleanSubalgebra.closure_le]
rintro s (⟨h₁, h₂⟩ | ⟨h₁, h₂⟩)
· apply BooleanSubalgebra.subset_closure
grind [QuasiSeparatedSpace.isRetrocompact_iff_isCompact]
· rw [← compl_compl s]
refine BooleanSubalgebra.compl_mem (BooleanSubalgebra.subset_closure ?_)
grind [QuasiSeparatedSpace.isRetrocompact_iff_isCompact, IsClosed.isOpen_compl]
· grind [QuasiSeparatedSpace.isRetrocompact_iff_isCompact, constructibleTopologySubbasis]
lemma constructibleTopologySubbasis_subset_isConstructible
[CompactSpace X] [QuasiSeparatedSpace X] :
constructibleTopologySubbasis X ⊆ { s | IsConstructible s } := by
simp [← latticeClosure_constructibleTopologySubbasis]
private lemma generateFrom_latticeClosure {α : Type*} (s : Set (Set α)) :
generateFrom (latticeClosure s) = generateFrom s := by
let : TopologicalSpace α := generateFrom s
refine le_antisymm (generateFrom_anti subset_latticeClosure) ?_
refine le_generateFrom fun o hos => ?_
induction hos using latticeClosure_sup_inf_induction with
| mem _ has => exact isOpen_generateFrom_of_mem has
| sup _ _ _ _ ha hb => exact ha.union hb
| inf _ _ _ _ ha hb => exact ha.inter hb
variable (X) in
lemma constructibleTopology_eq_generateFrom_isConstructible
[CompactSpace X] [QuasiSeparatedSpace X] :
constructibleTopology X = generateFrom { s | IsConstructible s } := by
rw [constructibleTopology, ← generateFrom_latticeClosure (constructibleTopologySubbasis X),
latticeClosure_constructibleTopologySubbasis]
lemma isCompact_of_mem_constructibleTopologySubbasis [CompactSpace X] {s : Set X}
(hs : s ∈ constructibleTopologySubbasis X) : IsCompact s := by
obtain (hs | hs) := hs
· exact hs.2
· exact hs.1.isCompact
lemma isCompact_sInter_of_subset_constructibleTopologySubbasis [CompactSpace X]
[QuasiSeparatedSpace X] {s : Set (Set X)} (hs : s ⊆ constructibleTopologySubbasis X)
(hf : s.Finite) : IsCompact (⋂₀ s) := by
refine QuasiSeparatedSpace.isCompact_sInter hf (fun t ht ↦ ?_) (fun t ht ↦ ?_)
· apply (hs ht).imp <;> grind
· exact isCompact_of_mem_constructibleTopologySubbasis (hs ht)
/-- If `X` is quasi-separated, quasi-sober, prespectral and quasi-compact, then `X`
is still quasi-compact in the constructible topology. This holds in particular for spectral
spaces. -/
@[stacks 0901 "quasi-compactness"]
instance compactSpace_withConstructibleTopology [CompactSpace X] [QuasiSober X]
[PrespectralSpace X] [QuasiSeparatedSpace X] :
CompactSpace (WithConstructibleTopology X) := by
suffices h : @CompactSpace X (constructibleTopology X) from
@Function.Surjective.compactSpace _ _ (constructibleTopology X) _ _
(WithTopology.continuous_toTopology _) _ (WithTopology.toTopology_surjective _)
let := constructibleTopologySubbasis X
/- It suffices to check that any subset of `` for which every finite subset has non-empty
intersection, has non-empty intersection. We argue by contradiction and by Zorn's
lemma, we may take a maximal counterexample `B`. -/
apply compactSpace_generateFrom_of_compl_mem (T := constructibleTopology X) rfl (by simp [])
let := {P : Set (Set X) | P ⊆ ∧ (∀ Q ⊆ P, Q.Finite → (⋂₀ Q).Nonempty) ∧ (⋂₀ P) = ∅}
suffices = ∅ by contrapose! this; tauto
by_contra! h
obtain ⟨s, hs⟩ := h
obtain ⟨B, hsB, hB⟩ := by
refine zorn_subset_nonempty (fun c hc hc hne@⟨x, hxc⟩ ↦ ?_) s hs
refine ⟨⋃₀ c, ?_, fun S hSc ↦ Set.subset_sUnion_of_subset c S subset_rfl hSc⟩
refine ⟨by grind, fun a hac ha ↦ ?_, by grind⟩
obtain ⟨i, hmem, hsub⟩ := hc.directedOn.exists_mem_subset_of_finite_of_subset_sUnion hne ha hac
exact (hc hmem).2.1 a hsub ha
let B' := {s | s ∈ B ∧ IsClosed s}
/- Let `Z` be the intersection of all closed sets in `B`. We argue
by cases if `Z` is irreducible or not. -/
let Z := ⋂₀ B'
have hZ_closed : IsClosed Z := isClosed_sInter fun b hb ↦ hb.2
have hZ_nonempty : Z.Nonempty :=
CompactSpace.nonempty_sInter (fun _ ht ↦ ht.2) fun t ht hf ↦
hB.prop.2.1 _ (subset_trans ht fun _ hx ↦ hx.1) hf
by_cases hZ_irred : IsIrreducible Z
· -- If `Z` is irreducible, the intersection `⋂₀ B` contains the generic point of `Z`.
suffices (⋂₀ B).Nonempty by simp_all [hB.prop.2.2]
have hη := hZ_irred.isGenericPoint_genericPoint (isClosed_sInter fun b hb ↦ hb.2)
refine ⟨hZ_irred.genericPoint, ?_⟩
rw [Set.mem_sInter]
intro i hi
by_cases hiB' : i ∈ B'
· exact Set.sInter_subset_of_mem hiB' hη.mem
· have hi_cmpt : IsCompact i := by grind [hB.prop, constructibleTopologySubbasis]
rw [hη.mem_open_set_iff (by grind [hB.prop, constructibleTopologySubbasis]), Set.inter_comm]
refine hi_cmpt.nonempty_inter_sInter (fun _ hb ↦ hb.2) fun a ha hfa ↦ ?_
rw [← Set.sInter_insert]
exact hB.prop.2.1 _ (by grind) (by simpa)
· -- If `Z` is reducible, there exist closed compacts `Y₁` and `Y₂` such that `Z ⊆ Y₁ ∪ Y₂`.
simp only [IsIrreducible, hZ_nonempty, true_and] at hZ_irred
obtain ⟨Y₁, Y₂, hY₁_cl, hY₂_cl, hc₁, hc₂, hsub, ⟨x₁, hx₁⟩, ⟨x₂, hx₂⟩⟩ :=
PrespectralSpace.exists_isClosed_of_not_isPreirreducible _ hZ_irred
have hY₁ : Y₁ ∈ := .inr ⟨hY₁_cl, hc₁⟩
have hY₂ : Y₂ ∈ := .inr ⟨hY₂_cl, hc₂⟩
have hY₁_inter_B : Y₁ ∩ ⋂₀ B = ∅ := by grind
have hY₂_inter_B : Y₂ ∩ ⋂₀ B = ∅ := by grind
-- By maximality of `B`, neither `B ∪ {Y₁}` nor `B ∪ {Y₂}` is contained in ``
have hY₁B : insert Y₁ B ∉ := by
intro hY₁B
grind [show insert Y₁ B ⊆ B from hB.le_of_ge hY₁B (Set.subset_insert Y₁ B)]
have hY₂B : insert Y₂ B ∉ := by
intro hY₂B
grind [show insert Y₂ B ⊆ B from hB.le_of_ge hY₂B (Set.subset_insert Y₂ B)]
dsimp [] at hY₁B hY₂B
simp only [Set.insert_subset_iff, hY₁, hB.prop.1, and_self, Set.sInter_insert, hY₁_inter_B,
and_true, true_and, not_forall, Set.not_nonempty_iff_eq_empty, hY₂, hY₂_inter_B] at hY₁B hY₂B
-- Hence there exist finitely many `{Aᵢ} ⊆ B` such that `Z ∩ ⋂ Aᵢ = ∅`.
obtain ⟨A₁, hA₁, hA₁', hA₁''⟩ := hY₁B
obtain ⟨A₂, hA₂, hA₂', hA₂''⟩ := hY₂B
have : Z ∩ ⋂₀ (A₁ \ {Y₁} ∪ A₂ \ {Y₂}) = ∅ := by grind
rw [← Set.not_nonempty_iff_eq_empty] at this
apply this
rw [Set.inter_comm]
refine IsCompact.nonempty_inter_sInter ?_ (fun _ hb ↦ hb.2) fun F hsub hF ↦ ?_
· apply isCompact_sInter_of_subset_constructibleTopologySubbasis _ (hA₁'.sdiff.union hA₂'.sdiff)
grind [hB.prop, Set.union_subset_iff]
· rw [← Set.sInter_union]
refine hB.prop.2.1 (_ ∪ F) ?_ <| (hA₁'.sdiff.union hA₂'.sdiff).union hF
grind [Set.sdiff_singleton_subset_iff, Set.union_subset_iff]
¤ Dauer der Verarbeitung: 0.15 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|