Documentation

CslibFrontier.Computability.Circuit.Frontier.Layouts.Switched.RotSign

The sign of the rotation derivative #

After integrating by parts, the angular derivative of the rotation family is -∫ w(x₀) H(x₀) dx₀, with w = 1{x₀ < h} - 1{x₀ ≥ h} and H = φ(x₀) φ(a(x₀)) φ(b(x₀)) for affine a, b. Here H(2h - x) ≤ H(x) for x ≤ h as soon as D = h + a(h) a₁ + b(h) b₁ ≥ 0, and the reflection x ↦ 2h - x gives ∫ w H ≥ 0. The condition I + J ≤ 1 + C makes D ≥ 0.

Adapted from the MIT-licensed Lean 4 companion of [Gas26] (doi:10.5281/zenodo.23883489, module CubicPathwidth.C3.RotSign).

References #

theorem Cslib.Circuits.Frontier.Switched.Rot.D_nonneg {I J si sj c sn h : ℝ} (hP : si ^ 2 = 1 - I ^ 2) (hR : sj ^ 2 = 1 - J ^ 2) (hS : sn ^ 2 + c ^ 2 = 1) (hsi : 0 < si) (hsj : 0 < sj) (hsn : 0 < sn) (hh : 0 < h) (hc1 : c ≤ 1) (hcond : I + J ≤ 1 + (I * J + si * sj * c)) :
0 ≤ h + (h - I * h) / si * (-I / si) + (h - J * h - sj * c * ((h - I * h) / si)) / (sj * sn) * ((-J - sj * c * (-I / si)) / (sj * sn))

D ≥ 0 under the rotation condition.

theorem Cslib.Circuits.Frontier.Switched.Rot.reflect_nonneg {h a0 a1 b0 b1 : ℝ} (hD : 0 ≤ h + (a0 + a1 * h) * a1 + (b0 + b1 * h) * b1) :
0 ≤ ∫ (x : ℝ), (if x < h then 1 else -1) * (phi x * phi (a0 + a1 * x) * phi (b0 + b1 * x))

The reflection inequality. For affine a, b with D = h + a(h) a₁ + b(h) b₁ ≥ 0, the weighted integral is nonnegative.