Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Closure network universal approx

Proved
closure_network_universal_approx

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogmachinelearning

Formal statement of closure_network_universal_approx from the Aether Catalog (MachineLearning). The mathematical content is given by the Lean statement below; a human-readable write-up is pending.

theorem closure_network_universal_approx    {X : Type*} [PseudoMetricSpace X] {K : Set X} (hK : IsCompact K)
    (f : X → ℝ) (hf : ContinuousOn f K) :
    ∀ ε > 0, ∃ N : X → ℝ,
      IsFiniteClosureNetwork N ∧
      ∀ x ∈ K, |N x - f x| < ε := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/HilbertSpace/ClosureNetworkBreakthrough.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from MachineLearning/HilbertSpace/ClosureNetworkBreakthrough.lean
import Mathlib
import Definitions.Def_MachineLearning_HilbertSpace_ClosureNetworkBreakthrough
/-
  # Closure-Operator Networks: Universal Approximation via Idempotent Semimodules
  # — Breakthrough Theorem Package

  This file establishes that closure-operator networks are algebraically natural
  universal approximators with built-in certification:

  ## Theorem A — Universal Approximation on Compact Domains
  Every continuous function on a compact subset of ℝⁿ is uniformly approximable
  by a finite closure-operator network to arbitrary precision.

  ## Theorem B — Rate Comparison with Piecewise-Affine/ReLU Approximation
  If a function admits uniform piecewise-affine approximation, then it admits
  closure-network approximation at the same rate — closure networks are competitive.

  ## Theorem C — Certified Robustness from Closure Geometry
  Closure networks with radius structure are certifiably robust: perturbations
  within the closure radius preserve predictions. Combined with approximation
  under margin, this yields robust classification transfer.

  The package demonstrates that closure-operator networks are not merely universal
  approximators, but form an algebraically natural framework where expressivity,
  approximation rate, and robustness certification are unified.
-/

open Set Function Finset Classical Metric Filter

noncomputable section

/-! ## Part 1: Definitions -/





/-! ## Part 2: Helper Lemmas -/

/-
Compact sets in pseudometric spaces admit finite ε-nets.
-/

/-
Continuous functions on compact sets are uniformly continuous (ε-δ form).
-/

/-
Uniform approximation preserves sign under margin.
-/

/-! ## Part 3: Theorem A — Universal Approximation on Compact Domains -/

/-
**Theorem A (General): Universal approximation by finite closure networks
    on compact pseudometric spaces.**

    Every continuous function on a compact set in a pseudometric space
    can be uniformly approximated to arbitrary precision by a function
    with finite range (a finite closure network).

    **Proof strategy**: Use uniform continuity on the compact set to get δ,
    extract a finite δ-net from compactness, and build a nearest-neighbor
    codebook approximant. The codebook function takes finitely many values
    (one per net point), giving a finite closure network.
-/
Formal statement
theorem closure_network_universal_approx    {X : Type*} [PseudoMetricSpace X] {K : Set X} (hK : IsCompact K)
    (f : X → ℝ) (hf : ContinuousOn f K) :
    ∀ ε > 0, ∃ N : X → ℝ,
      IsFiniteClosureNetwork N ∧
      ∀ x ∈ K, |N x - f x| < ε := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/MachineLearning/HilbertSpace/ClosureNetworkBreakthrough.lean#L100

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me