Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Crystal regularizer zero iff binary

Proved
crystal_regularizer_zero_iff_binary

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

aether-catalogevergreen

Formal statement of crystal_regularizer_zero_iff_binary from the Aether Catalog (Evergreen). The mathematical content is given by the Lean statement below; a human-readable write-up is pending.

theorem crystal_regularizer_zero_iff_binary{n : ℕ} (w : Fin n → ℝ)
    (hw : ∀ i, 0 ≤ w i ∧ w i ≤ 1) :
    row_crystal_loss w = 0 ↔ ∀ i, w i = 0 ∨ w i = 1 := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source Evergreen/QuantumTransformer/CrystallizationTraining.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from Evergreen/QuantumTransformer/CrystallizationTraining.lean
import Mathlib
import Definitions.Def_Evergreen_QuantumTransformer_CrystallizationTraining

/-!
# Crystallization-Aware Training (Open Problem 2)

## Overview

Can we train transformers that crystallize faster and better?
This file formalizes crystallization-aware training:

1. Crystallization regularizer L_cryst
2. Temperature annealing for progressive crystallization
3. Combined loss analysis
4. Convergence properties

## Key Results

- `crystal_regularizer_nonneg`: Regularizer is non-negative
- `crystal_regularizer_zero_iff_binary`: Zero iff attention is binary
- `anneal_decreasing`: Temperature annealing is monotone
- `anneal_converges`: Annealing converges to 0
-/

open Real BigOperators Finset

noncomputable section

/-! ## §1: Crystallization Regularizer -/
Formal statement
theorem crystal_regularizer_zero_iff_binary{n : ℕ} (w : Fin n → ℝ)
    (hw : ∀ i, 0 ≤ w i ∧ w i ≤ 1) :
    row_crystal_loss w = 0 ↔ ∀ i, w i = 0 ∨ w i = 1 := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Evergreen/QuantumTransformer/CrystallizationTraining.lean#L47

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