AFTD Auto-Formalizing Theoretical Domains

sigmoid_layer3_separation_low

theoremverified

If a real value L is at most 1/10, then the sigmoidal output gate sigmoid(4 * (L - 1/2)) is strictly less than 1/4.

Statement

theorem sigmoid_layer3_separation_low (L : ℝ) (hL : L ≤ 1 / 10) :
    Real.sigmoid (4 * (L - 1 / 2)) < 1 / 4
Source
scout/2611-21910-new-gate-weight-and-wire-complexity-bounds-for-sigmoid-neur.md:923
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1

Read back from the Lean

For every real number $L$, if $L \le 1 / 10$, then the sigmoid of $4(L - 1 / 2)$ is strictly less than $1 / 4$.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

To prove that sigmoid(4 * (L - 1/2)) < 1/4 whenever L ≤ 1/10, the proof bounds the input to the sigmoid function from above and applies monotonicity. Using L ≤ 1/10, the input is at most -8/5, so sigmoid(4 * (L - 1/2)) ≤ sigmoid(-8/5). Expanding the definition of sigmoid at -8/5 yields (1 + exp(8/5))⁻¹, which is confirmed to be strictly less than 1/4 by numerical evaluation.

  1. Real.sigmoid (4 * (L - 1 / 2)) ≤ Real.sigmoid (-8 / 5)

    From the hypothesis L ≤ 1/10, linear arithmetic establishes that the input satisfies 4 * (L - 1/2) ≤ 4 * (1/10 - 1/2) = -8/5. Monotonicity of the sigmoid function (Real.sigmoid_le) then yields the upper bound sigmoid(4 * (L - 1/2)) ≤ sigmoid(-8/5).

    lines 4–5

    uses Real.sigmoid_le

      have h1 : 4 * (L - 1 / 2) ≤ -8 / 5 := by linarith
      have h2 : Real.sigmoid (4 * (L - 1 / 2)) ≤ Real.sigmoid (-8 / 5) := Real.sigmoid_le h1
  2. Real.sigmoid (-8 / 5) < 1 / 4 automation

    Rewriting with the definition of the sigmoid function (Real.sigmoid_def) expresses sigmoid(-8/5) as (1 + exp(-(-8/5)))⁻¹. After norm_num simplifies -(-8/5) to 8/5, the num_ineq tactic verifies the numerical inequality (1 + exp(8/5))⁻¹ < 1/4, which holds because exp(8/5) ≈ 4.953 > 3.

    lines 6–9

    uses Real.sigmoid_def

      have h3 : Real.sigmoid (-8 / 5) < 1 / 4 := by
        rw [Real.sigmoid_def]
        norm_num
        num_ineq
  3. Real.sigmoid (4 * (L - 1 / 2)) < 1 / 4

    Combining the bound sigmoid(4 * (L - 1/2)) ≤ sigmoid(-8/5) with the strict numerical bound sigmoid(-8/5) < 1/4 by transitivity of ≤ and < establishes the goal.

    line 10

      exact h2.trans_lt h3
Real.sigmoid_le
the sigmoid function is monotonically non-decreasing: if a ≤ b, then sigmoid(a) ≤ sigmoid(b)
Real.sigmoid_def
the definition of the sigmoid function: sigmoid(x) = (1 + exp(-x))⁻¹

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- Low output separation for the depth-3 circuit's output gate when L <= 1/10. -/theorem sigmoid_layer3_separation_low (L : ℝ) (hL : L ≤ 1 / 10) :    Real.sigmoid (4 * (L - 1 / 2)) < 1 / 4 := by  have h1 : 4 * (L - 1 / 2) ≤ -8 / 5 := by linarith  have h2 : Real.sigmoid (4 * (L - 1 / 2)) ≤ Real.sigmoid (-8 / 5) := Real.sigmoid_le h1  have h3 : Real.sigmoid (-8 / 5) < 1 / 4 := by    rw [Real.sigmoid_def]    norm_num    num_ineq  exact h2.trans_lt h3
See it in the graphDiscuss this resultChallenge it