Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Aether Catalog definitions — MachineLearning_NeuralHodgeDecisionSurfaces

Definition
MachineLearning_NeuralHodgeDecisionSurfaces

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

aether-catalogmachinelearning

Definition bundle for the Aether Catalog module MachineLearning.NeuralHodgeDecisionSurfaces, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.

Definition code
-- Def bundle generated from MachineLearning/NeuralHodgeDecisionSurfaces.lean by skeleton subtraction
import Mathlib
/-
# A finite polyhedral Hodge shadow for ReLU decision surfaces

This file proves two concrete results that remain valid without imposing a
(nonexistent, in general) complex Hodge structure on a real ReLU decision set.

First, the cycle space of the four-edge square is exactly one-dimensional:
every rational 1-cycle is a common multiple of the sum of its four linear
edges.  Thus every class in this small polyhedral model has an explicit
face-supported representative.

Second, we study the proposed architecture-dependent numerical expression
`choose first p * choose last q * product interior`.  We prove its vanishing
range, reversal symmetry, and a uniform exponential estimate.
-/


open scoped BigOperators
open Finset

namespace NeuralHodgeDecisionSurfaces

/-! ## The square as a finite decision-surface model -/

/-- Rational coefficients on the four oriented edges of a square. -/
abbrev SquareChain := Fin 4 → ℚ

/-- The cellular boundary of a chain on the cyclically oriented square.
At each vertex this is incoming coefficient minus outgoing coefficient. -/
def squareBoundary (x : SquareChain) : Fin 4 → ℚ := fun v =>
  match v with
  | 0 => x 3 - x 0
  | 1 => x 0 - x 1
  | 2 => x 1 - x 2
  | 3 => x 2 - x 3

/-- A square chain is a cycle exactly when its cellular boundary vanishes. -/
def IsSquareCycle (x : SquareChain) : Prop := squareBoundary x = 0

/-- The fundamental oriented cycle, with coefficient one on every edge. -/
def fundamentalSquareCycle : SquareChain := fun _ => 1






/-! ## The proposed architecture expression -/

/-- The numerical expression proposed as a bound for a network with first
hidden width `first`, last hidden width `last`, and intervening widths
`interior`.  No claim that actual Hodge numbers exist is built into this
definition. -/
def architectureBound (first last : ℕ) (interior : List ℕ) (p q : ℕ) : ℕ :=
  first.choose p * last.choose q * interior.prod







/-! ## Machine-checked small cases

These examples serve as concise computational evidence.  They are checked by
Lean's kernel along with the general theorems above. -/


end NeuralHodgeDecisionSurfaces

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