Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  NhdsSet.lean   Sprache: Lean

 

/-
Copyright (c) 2023 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/

module

public import Mathlib.Topology.Order.Basic

/-!
# Set neighborhoods of intervals

In this file we prove basic theorems about `��ˢ s`,
where `s` is one of the intervals
`Set.Ici`, `Set.Iic`, `Set.Ioi`, `Set.Iio`, `Set.Ico`, `Set.Ioc`, `Set.Ioo`, and `Set.Icc`.

First, we prove lemmas in terms of filter equalities.
Then we prove lemmas about `s ∈ ��ˢ t`, where both `s` and `t` are intervals.
Finally, we prove a few lemmas about filter bases of `��ˢ (Iic a)` and `��ˢ (Ici a)`.
-/


public section


open Set Filter OrderDual
open scoped Topology

section OrderClosedTopology

variable {α : Type*} [LinearOrder α] [TopologicalSpace α] [OrderClosedTopology α] {a b c d : α}

/-!
### Formulae for `��ˢ` of intervals
-/


@[simp] theorem nhdsSet_Ioi : ��ˢ (Ioi a) = �� (Ioi a) := isOpen_Ioi.nhdsSet_eq
@[simp] theorem nhdsSet_Iio : ��ˢ (Iio a) = �� (Iio a) := isOpen_Iio.nhdsSet_eq
@[simp] theorem nhdsSet_Ioo : ��ˢ (Ioo a b) = �� (Ioo a b) := isOpen_Ioo.nhdsSet_eq

theorem nhdsSet_Ici : ��ˢ (Ici a) = �� a ⊔ �� (Ioi a) := by
  rw [← insert_Ioi, nhdsSet_insert, nhdsSet_Ioi]

theorem nhdsSet_Iic : ��ˢ (Iic a) = �� a ⊔ �� (Iio a) := nhdsSet_Ici (α := αᵒᵈ)

theorem nhdsSet_Ico (h : a < b) : ��ˢ (Ico a b) = �� a ⊔ �� (Ioo a b) := by
  rw [← insert_left_Ioo h, nhdsSet_insert, nhdsSet_Ioo]

theorem nhdsSet_Ioc (h : a < b) : ��ˢ (Ioc a b) = �� b ⊔ �� (Ioo a b) := by
  rw [← insert_right_Ioo h, nhdsSet_insert, nhdsSet_Ioo]

theorem nhdsSet_Icc (h : a ≤ b) : ��ˢ (Icc a b) = �� a ⊔ �� b ⊔ �� (Ioo a b) := by
  rcases h.eq_or_lt with rfl | hlt
  · simp
  · rw [← insert_left_Ioc h, nhdsSet_insert, nhdsSet_Ioc hlt, sup_assoc]

/-!
### Lemmas about `Ixi _ ∈ ��ˢ (Set.Ici _)`
-/


@[simp]
theorem Ioi_mem_nhdsSet_Ici_iff : Ioi a ∈ ��ˢ (Ici b) ↔ a < b := by
  rw [isOpen_Ioi.mem_nhdsSet, Ici_subset_Ioi]

alias ⟨_, Ioi_mem_nhdsSet_Ici⟩ := Ioi_mem_nhdsSet_Ici_iff

theorem Ici_mem_nhdsSet_Ici (h : a < b) : Ici a ∈ ��ˢ (Ici b) :=
  mem_of_superset (Ioi_mem_nhdsSet_Ici h) Ioi_subset_Ici_self

/-!
### Lemmas about `Iix _ ∈ ��ˢ (Set.Iic _)`
-/


theorem Iio_mem_nhdsSet_Iic_iff : Iio b ∈ ��ˢ (Iic a) ↔ a < b :=
  Ioi_mem_nhdsSet_Ici_iff (α := αᵒᵈ)

alias ⟨_, Iio_mem_nhdsSet_Iic⟩ := Iio_mem_nhdsSet_Iic_iff

theorem Iic_mem_nhdsSet_Iic (h : a < b) : Iic b ∈ ��ˢ (Iic a) :=
  Ici_mem_nhdsSet_Ici (α := αᵒᵈ) h

/-!
### Lemmas about `Ixx _ ?_ ∈ ��ˢ (Set.Icc _ _)`
-/


theorem Ioi_mem_nhdsSet_Icc (h : a < b) : Ioi a ∈ ��ˢ (Icc b c) :=
  nhdsSet_mono Icc_subset_Ici_self <| Ioi_mem_nhdsSet_Ici h

theorem Ici_mem_nhdsSet_Icc (h : a < b) : Ici a ∈ ��ˢ (Icc b c) :=
  mem_of_superset (Ioi_mem_nhdsSet_Icc h) Ioi_subset_Ici_self

theorem Iio_mem_nhdsSet_Icc (h : b < c) : Iio c ∈ ��ˢ (Icc a b) :=
  nhdsSet_mono Icc_subset_Iic_self <| Iio_mem_nhdsSet_Iic h

theorem Iic_mem_nhdsSet_Icc (h : b < c) : Iic c ∈ ��ˢ (Icc a b) :=
  mem_of_superset (Iio_mem_nhdsSet_Icc h) Iio_subset_Iic_self

theorem Ioo_mem_nhdsSet_Icc (h : a < b) (h' : c < d) : Ioo a d ∈ ��ˢ (Icc b c) :=
  inter_mem (Ioi_mem_nhdsSet_Icc h) (Iio_mem_nhdsSet_Icc h')

theorem Ico_mem_nhdsSet_Icc (h : a < b) (h' : c < d) : Ico a d ∈ ��ˢ (Icc b c) :=
  inter_mem (Ici_mem_nhdsSet_Icc h) (Iio_mem_nhdsSet_Icc h')

theorem Ioc_mem_nhdsSet_Icc (h : a < b) (h' : c < d) : Ioc a d ∈ ��ˢ (Icc b c) :=
  inter_mem (Ioi_mem_nhdsSet_Icc h) (Iic_mem_nhdsSet_Icc h')

theorem Icc_mem_nhdsSet_Icc (h : a < b) (h' : c < d) : Icc a d ∈ ��ˢ (Icc b c) :=
  inter_mem (Ici_mem_nhdsSet_Icc h) (Iic_mem_nhdsSet_Icc h')

/-!
### Lemmas about `Ixx _ ?_ ∈ ��ˢ (Set.Ico _ _)`
-/


theorem Ici_mem_nhdsSet_Ico (h : a < b) : Ici a ∈ ��ˢ (Ico b c) :=
  nhdsSet_mono Ico_subset_Icc_self <| Ici_mem_nhdsSet_Icc h

theorem Ioi_mem_nhdsSet_Ico (h : a < b) : Ioi a ∈ ��ˢ (Ico b c) :=
  nhdsSet_mono Ico_subset_Icc_self <| Ioi_mem_nhdsSet_Icc h

theorem Iio_mem_nhdsSet_Ico (h : b ≤ c) : Iio c ∈ ��ˢ (Ico a b) :=
  nhdsSet_mono Ico_subset_Iio_self <| by simpa

theorem Iic_mem_nhdsSet_Ico (h : b ≤ c) : Iic c ∈ ��ˢ (Ico a b) :=
  mem_of_superset (Iio_mem_nhdsSet_Ico h) Iio_subset_Iic_self

theorem Ioo_mem_nhdsSet_Ico (h : a < b) (h' : c ≤ d) : Ioo a d ∈ ��ˢ (Ico b c) :=
  inter_mem (Ioi_mem_nhdsSet_Ico h) (Iio_mem_nhdsSet_Ico h')

theorem Icc_mem_nhdsSet_Ico (h : a < b) (h' : c ≤ d) : Icc a d ∈ ��ˢ (Ico b c) :=
  inter_mem (Ici_mem_nhdsSet_Ico h) (Iic_mem_nhdsSet_Ico h')

theorem Ioc_mem_nhdsSet_Ico (h : a < b) (h' : c ≤ d) : Ioc a d ∈ ��ˢ (Ico b c) :=
  inter_mem (Ioi_mem_nhdsSet_Ico h) (Iic_mem_nhdsSet_Ico h')

theorem Ico_mem_nhdsSet_Ico (h : a < b) (h' : c ≤ d) : Ico a d ∈ ��ˢ (Ico b c) :=
  inter_mem (Ici_mem_nhdsSet_Ico h) (Iio_mem_nhdsSet_Ico h')

/-!
### Lemmas about `Ixx _ ?_ ∈ ��ˢ (Set.Ioc _ _)`
-/


theorem Ioi_mem_nhdsSet_Ioc (h : a ≤ b) : Ioi a ∈ ��ˢ (Ioc b c) :=
  nhdsSet_mono Ioc_subset_Ioi_self <| by simpa

theorem Iio_mem_nhdsSet_Ioc (h : b < c) : Iio c ∈ ��ˢ (Ioc a b) :=
  nhdsSet_mono Ioc_subset_Icc_self <| Iio_mem_nhdsSet_Icc h

theorem Ici_mem_nhdsSet_Ioc (h : a ≤ b) : Ici a ∈ ��ˢ (Ioc b c) :=
  mem_of_superset (Ioi_mem_nhdsSet_Ioc h) Ioi_subset_Ici_self

theorem Iic_mem_nhdsSet_Ioc (h : b < c) : Iic c ∈ ��ˢ (Ioc a b) :=
  nhdsSet_mono Ioc_subset_Icc_self <| Iic_mem_nhdsSet_Icc h

theorem Ioo_mem_nhdsSet_Ioc (h : a ≤ b) (h' : c < d) : Ioo a d ∈ ��ˢ (Ioc b c) :=
  inter_mem (Ioi_mem_nhdsSet_Ioc h) (Iio_mem_nhdsSet_Ioc h')

theorem Icc_mem_nhdsSet_Ioc (h : a ≤ b) (h' : c < d) : Icc a d ∈ ��ˢ (Ioc b c) :=
  inter_mem (Ici_mem_nhdsSet_Ioc h) (Iic_mem_nhdsSet_Ioc h')

theorem Ioc_mem_nhdsSet_Ioc (h : a ≤ b) (h' : c < d) : Ioc a d ∈ ��ˢ (Ioc b c) :=
  inter_mem (Ioi_mem_nhdsSet_Ioc h) (Iic_mem_nhdsSet_Ioc h')

theorem Ico_mem_nhdsSet_Ioc (h : a ≤ b) (h' : c < d) : Ico a d ∈ ��ˢ (Ioc b c) :=
  inter_mem (Ici_mem_nhdsSet_Ioc h) (Iio_mem_nhdsSet_Ioc h')

end OrderClosedTopology

/-!
### Filter bases of `��ˢ (Iic a)` and `��ˢ (Ici a)`
-/


variable {α : Type*} [LinearOrder α] [TopologicalSpace α] [OrderTopology α]

theorem hasBasis_nhdsSet_Iic_Iio (a : α) [h : Nonempty (Ioi a)] :
    HasBasis (��ˢ (Iic a)) (a < ·) Iio := by
  refine ⟨fun s ↦ ⟨fun hs ↦ ?_, fun ⟨b, hab, hb⟩ ↦ mem_of_superset (Iio_mem_nhdsSet_Iic hab) hb⟩⟩
  rw [nhdsSet_Iic, mem_sup, mem_principal] at hs
  rcases exists_Ico_subset_of_mem_nhds hs.1 (Set.nonempty_coe_sort.1 h) with ⟨b, hab, hbs⟩
  exact ⟨b, hab, Iio_subset_Iio_union_Ico.trans (union_subset hs.2 hbs)⟩

theorem hasBasis_nhdsSet_Iic_Iic (a : α) [NeBot (��[>] a)] :
    HasBasis (��ˢ (Iic a)) (a < ·) Iic := by
  have : Nonempty (Ioi a) :=
    (Filter.nonempty_of_mem (self_mem_nhdsWithin : Ioi a ∈ ��[>] a)).to_subtype
  refine (hasBasis_nhdsSet_Iic_Iio _).to_hasBasis
    (fun c hc ↦ ?_) (fun _ h ↦ ⟨_, h, Iio_subset_Iic_self⟩)
  simpa only [Iic_subset_Iio] using! Filter.nonempty_of_mem (Ioo_mem_nhdsGT hc)

@[simp]
theorem Iic_mem_nhdsSet_Iic_iff {a b : α} [NeBot (��[>] b)] : Iic a ∈ ��ˢ (Iic b) ↔ b < a :=
  (hasBasis_nhdsSet_Iic_Iic b).mem_iff.trans
    ⟨fun ⟨_c, hbc, hca⟩ ↦ hbc.trans_le (Iic_subset_Iic.1 hca), fun h ↦ ⟨_, h, Subset.rfl⟩⟩

theorem hasBasis_nhdsSet_Ici_Ioi (a : α) [Nonempty (Iio a)] :
    HasBasis (��ˢ (Ici a)) (· < a) Ioi :=
  have : Nonempty (Ioi (toDual a)) := ‹_›; hasBasis_nhdsSet_Iic_Iio (toDual a)

theorem hasBasis_nhdsSet_Ici_Ici (a : α) [NeBot (��[<] a)] :
    HasBasis (��ˢ (Ici a)) (· < a) Ici :=
  have : NeBot (��[>] (toDual a)) := ‹_›; hasBasis_nhdsSet_Iic_Iic (toDual a)

@[simp]
theorem Ici_mem_nhdsSet_Ici_iff {a b : α} [NeBot (��[<] b)] : Ici a ∈ ��ˢ (Ici b) ↔ a < b :=
  have : NeBot (��[>] (toDual b)) := ‹_›; Iic_mem_nhdsSet_Iic_iff (a := toDual a) (b := toDual b)

Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.11 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,109
#Domains=863,016