Aether Catalog definitions — MachineLearning_ShefferFunction_Lean_ShefferAlgebra
DefinitionMachineLearning_ShefferFunction_Lean_ShefferAlgebraaether-catalogmachinelearning
Definition bundle for the Aether Catalog module MachineLearning.ShefferFunction.Lean.ShefferAlgebra, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.
Definition code
-- Def bundle generated from MachineLearning/ShefferFunction/Lean/ShefferAlgebra.lean by skeleton subtraction
import Mathlib
import Definitions.Def_MachineLearning_ShefferFunction_Lean_SoftplusBasic
/-
# Sheffer Algebra: The Algebraic Structure Generated by Softplus
The Sheffer algebra is the smallest set of functions ℝ → ℝ that:
1. Contains the softplus function σ(x) = log(1 + eˣ)
2. Is closed under affine pre-composition: if f is in the algebra, so is x ↦ f(ax + b)
3. Is closed under affine combination: if f, g are in the algebra, so is αf + βg + γ
4. Is closed under composition
This file formalizes the Sheffer algebra and proves key closure properties.
-/
-- import ShefferAI.Lean.SoftplusBasic -- (missing upstream module; replaced by the line below)
open Real
noncomputable section
/-! ## Sheffer Expressions -/
/-- A Sheffer expression represents a function built from softplus via
affine operations. This is a syntactic representation. -/
inductive ShefferExpr : Type where
| base : ShefferExpr -- σ(x)
| affine_pre (a b : ℝ) (e : ShefferExpr) : ShefferExpr -- e(ax + b)
| affine_comb (α β γ : ℝ) (e₁ e₂ : ShefferExpr) : ShefferExpr -- αe₁ + βe₂ + γ
| comp (e₁ e₂ : ShefferExpr) : ShefferExpr -- e₁ ∘ e₂
/-- Evaluate a Sheffer expression at a point -/
def ShefferExpr.eval : ShefferExpr → ℝ → ℝ
| .base => softplus
| .affine_pre a b e => fun x => e.eval (a * x + b)
| .affine_comb α β γ e₁ e₂ => fun x => α * e₁.eval x + β * e₂.eval x + γ
| .comp e₁ e₂ => fun x => e₁.eval (e₂.eval x)
/-! ## The Sheffer Algebra as a Set -/
/-- The Sheffer algebra: the set of all functions representable as Sheffer expressions -/
def ShefferAlgebra : Set (ℝ → ℝ) :=
{ f | ∃ e : ShefferExpr, f = e.eval }
/-! ## Key functions in the Sheffer algebra -/
/-! ## Sheffer Degree -/
end