Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix A, p. 15 — P_q is a monotonically increasing function of q for θ0 < π/4

Proved
FloatPointSynth.Gearbox.P_monotone

by mikedeng1 · Oct 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1repeat-until-successtrigonometric-inequality

Let 0≤θ0<π/40\le\theta_0<\pi/40≤θ0​<π/4, and for q≥1q\ge1q≥1 let φq=tan⁡−1(tan⁡2q−1(θ0))\varphi_q=\tan^{-1}\big(\tan^{2^{q-1}}(\theta_0)\big)φq​=tan−1(tan2q−1(θ0​)) and Pq=sin⁡4(φq)+cos⁡4(φq)P_q=\sin^4(\varphi_q)+\cos^4(\varphi_q)Pq​=sin4(φq​)+cos4(φq​). Then for every q≥1q\ge1q≥1

Pq≤Pq+1,P_q\le P_{q+1},Pq​≤Pq+1​,

with strict inequality when θ0>0\theta_0>0θ0​>0.

The monotonicity is used to unfold the variance recursion (A7) into the bound (A8).

Differences from the source:

  • reading: "PqP_qPq​ is a monotonically increasing function of qqq" → Pq≤Pq+1P_q\le P_{q+1}Pq​≤Pq+1​ for all q≥1q\ge1q≥1, and Pq<Pq+1P_q<P_{q+1}Pq​<Pq+1​ when θ0>0\theta_0>0θ0​>0; reason: at θ0=0\theta_0=0θ0​=0 every Pq=1P_q=1Pq​=1, so the strict reading is false there; both readings are stated where true.
  • encoding: θ0<π/4\theta_0<\pi/4θ0​<π/4 → 0≤θ0<π/40\le\theta_0<\pi/40≤θ0​<π/4; reason: θ0\theta_0θ0​ is the angle in [0,π/2][0,\pi/2][0,π/2] with sin⁡2θ0=∣U1,0∣2\sin^2\theta_0=|U_{1,0}|^2sin2θ0​=∣U1,0​∣2 (p. 5).
Preamble
import Mathlib
import Definitions.Def_FloatPointSynth_Gearbox_Cost
Formal statement
namespace FloatPointSynth.Gearbox

/-- Appendix A, p. 15: for `0 ≤ θ0 < π/4`, `P_q` is a monotonically increasing function of
`q ≥ 1`: `P_q ≤ P_{q+1}`, strictly when `θ0 > 0` (at `θ0 = 0` every `P_q` equals `1`). -/
theorem P_monotone (θ0 : ℝ) (hθ0 : 0 ≤ θ0) (hθ1 : θ0 < Real.pi / 4) (q : ℕ) (hq : 1 ≤ q) :
    P θ0 q ≤ P θ0 (q + 1) ∧ (0 < θ0 → P θ0 q < P θ0 (q + 1)) := by sorry

end FloatPointSynth.Gearbox
Source
Wiebe and Kliuchnikov, Floating Point Representations in Quantum Circuit Synthesis, arXiv:1305.5528v3, p. 15, Appendix A (before Eq. (A8))
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 23, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me