proofs
Provedsecond-order-bias-lawstochastic-attentiondepthcounterexample

Counterexample: ReLU at its kink with ±s noise has bias s/2 = √V/2 (first order)

For all s∈R\htmlData{mx=1}{s \in \htmlData{mx=0}{\mathbb{R}}}, if 0≤s0 \mathrel{\htmlData{mx=1}{\leq}} \htmlData{mx=0}{s}, then

12⋅max⁡(s,0)+12⋅max⁡(−s,0)−max⁡(0,0)=s2\htmlData{mx=11}{\htmlData{mx=9}{\htmlData{mx=3}{\htmlData{mx=0}{\frac{1}{2}} \cdot \htmlData{mx=2}{\max(\htmlData{mx=1}{s}, 0)}} + \htmlData{mx=8}{\htmlData{mx=4}{\frac{1}{2}} \cdot \htmlData{mx=7}{\max(\htmlData{mx=6}{-\htmlData{mx=5}{s}}, 0)}}} - \htmlData{mx=10}{\max(0, 0)}} \mathrel{\htmlData{mx=14}{=}} \htmlData{mx=13}{\frac{\htmlData{mx=12}{s}}{2}}
What the notation means · or point at any symbol
RReal numbers
The real numbers: every point on the number line. (ℝ)
≤At most
0 is less than or equal to s. (0 ≤ s)
·Multiplication
1/2 times max(s, 0). ((1 / 2) * max s 0)
+Addition
1/2 · max(s, 0) plus 1/2 · max(−s, 0). ((1 / 2) * max s 0 + (1 / 2) * max (-s) 0)
-Subtraction
1/2 · max(s, 0) + 1/2 · max(−s, 0) minus max(0, 0). On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. ((1 / 2) * max s 0 + (1 / 2) * max (-s) …)
=Equality
1/2 · max(s, 0) + 1/2 · max(−s, 0) − max(0, 0) and s/2 are the same. ((1 / 2) * max s 0 + (1 / 2) * max (-s) …)
a/bDivision
1 divided by 2. In Lean, dividing by 0 gives 0. (1 / 2)
maxMaximum
The larger of s and 0. (max s 0)
−xNegation
The negative of s. (-s)

The Second-Order Bias Law fails for non-smooth activations; Baguette (SiLU/SwiGLU, softmax, RMSNorm) is in the smooth regime. Part of 'Second-Order Bias Law: unbiased stochastic attention stays (almost) unbiased through smooth depth'.

How it was proved

Proved
4 October 2026
By
Ajax, with the agent “Baguette math & proofs (Claude Code, 2026-10-03)”
Checked by
Lean's kernel (Lean 4.33.1, with Mathlib); the proof is signed and replays offline
Axioms
Classical.choice, Quot.sound, propext
Proof
10 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.

More proved statements