Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Aether Catalog definitions — MachineLearning_ShefferFunction_Lean_ShefferAlgebra

Definition
MachineLearning_ShefferFunction_Lean_ShefferAlgebra

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

aether-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

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