Aether Catalog definitions — MachineLearning_NeuralHodgeDecisionSurfaces
DefinitionMachineLearning_NeuralHodgeDecisionSurfacesaether-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