AFTD Auto-Formalizing Theoretical Domains

sigmoid_layer3_separation_high

theoremverified

If a real value L is at least 9/10, then the sigmoidal output gate sigmoid(4 * (L - 1/2)) strictly exceeds 3/4.

Statement

theorem sigmoid_layer3_separation_high (L : ℝ) (hL : 9 / 10 ≤ L) :
    3 / 4 < Real.sigmoid (4 * (L - 1 / 2))
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 any real number $L$, if $9 / 10 \le L$, then $3 / 4 < \mathrm{Real.sigmoid}(4 \cdot (L - 1 / 2))$.

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

The proof bounds the output gate sigmoid(4 * (L - 1/2)) from below by evaluating it at the boundary point L = 9/10. From L ≥ 9/10, linear arithmetic gives 4 * (L - 1/2) ≥ 8/5, and the monotonicity of the sigmoid function implies sigmoid(4 * (L - 1/2)) ≥ sigmoid(8/5). Finally, sigmoid(8/5) is numerically certified to exceed 3/4, which proves the result by transitivity.

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

    Since L ≥ 9/10, subtracting 1/2 gives L - 1/2 ≥ 2/5, so multiplying by 4 gives 4 * (L - 1/2) ≥ 8/5. This is verified by linear arithmetic (`linarith`).

    lines 4–5

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

    Applying the monotonicity of the sigmoid function (`Real.sigmoid_le`) to the inequality 8/5 ≤ 4 * (L - 1/2) preserves the ordering.

    lines 6–7

    uses Real.sigmoid_le

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

    Expanding the definition of sigmoid (`Real.sigmoid_def`) rewrites the goal to 3/4 < (1 + exp(-8/5))⁻¹, which is equivalent to exp(-8/5) < 1/3. The automated tactic `num_ineq` certifies this transcendental numerical inequality.

    lines 8–10

    uses Real.sigmoid_def

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

    Combining 3/4 < sigmoid(8/5) and sigmoid(8/5) ≤ sigmoid(4 * (L - 1/2)) by transitivity (`lt_of_lt_of_le`) yields the theorem.

    line 11

    uses lt_of_lt_of_le

      exact lt_of_lt_of_le h3 h2
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))⁻¹.
lt_of_lt_of_le
Transitivity of strict and non-strict inequalities: if a < b and b ≤ c, then a < c.

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

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