Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Aether Catalog definitions — EML_FederatedLearningTheory

Definition
EML_FederatedLearningTheory

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

aether-catalogeml

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

Definition code
-- Def bundle generated from EML/FederatedLearningTheory.lean by skeleton subtraction
import Mathlib

/-! # CatalogBuild.EML.AIResearch.FederatedLearningTheory

Auto-generated from theorem catalog database.
Domain: EML/AIResearch
Declarations: 20
-/

noncomputable section

/-- Per-round communication: each client sends model updates -/
def commCostPerRound (numClients modelParams bitsPerParam : ℕ) : ℕ :=
  numClients * modelParams * bitsPerParam


/-- Total communication over all rounds -/
def totalCommCost (numRounds numClients modelParams bitsPerParam : ℕ) : ℕ :=
  numRounds * commCostPerRound numClients modelParams bitsPerParam


/-- FedAvg aggregation cost: sum weighted models -/
def aggregationCost (numClients modelParams : ℕ) : ℕ := numClients * modelParams


/-- DP noise magnitude: proportional to sensitivity / epsilon, sensitivity ∝ √params -/
def dpNoiseMagnitude (params : ℝ) (epsilon : ℝ) : ℝ := Real.sqrt params / epsilon



/-- On-device model memory -/
def clientModelMemory (params bitsPerParam : ℕ) : ℕ := params * bitsPerParam


/-- With K out of N clients per round -/
def partialCommCost (activeClients modelParams bitsPerParam : ℕ) : ℕ :=
  activeClients * modelParams * bitsPerParam


/-- Per-client adapter: small personalization layer -/
def stdAdapterParams (d_model d_adapter : ℕ) : ℕ := 2 * d_model * d_adapter

def emlAdapterParams (d_adapter : ℕ) : ℕ := 4 * d_adapter


/-- Secure aggregation: pairwise key exchange + encrypted updates -/
def secureAggCost (numClients modelParams cryptoOverhead : ℕ) : ℕ :=
  numClients * numClients * cryptoOverhead + numClients * modelParams


/-- Compressed gradient communication -/
def compressedGradSize (modelParams comprRatio : ℕ) : ℕ := modelParams / comprRatio


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