sigmoid_layer3_separation_high
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
- symmetric_boolean_func_depth3_sigmoid_circuitFor every symmetric Boolean function f on n ≥ 1 variables, there exists a depth-3 sigmoidal circuit C on n inputs with at most 3n wires…
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.
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`).
have h1 : (8 : ℝ) / 5 ≤ 4 * (L - 1 / 2) := by linarith
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.
uses
Real.sigmoid_lehave h2 : Real.sigmoid (8 / 5) ≤ Real.sigmoid (4 * (L - 1 / 2)) := Real.sigmoid_le h13 / 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.
uses
Real.sigmoid_defhave h3 : (3 : ℝ) / 4 < Real.sigmoid (8 / 5) := by rw [Real.sigmoid_def] num_ineq
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.
uses
lt_of_lt_of_leexact 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.
- The numerical inequality 3/4 < (1 + exp(-8/5))⁻¹ in lines 9-10 is verified automatically by the tactic `num_ineq`, which computes verified bounds on transcendental real expressions.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- 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