Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Planar Rot90 Clockwise Wedge Angle Criterion

Proved
PlanarRot90ClockwiseWedgeAngleCriterion

by moona3k · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

crossing-consequencestrellis-port

Let e(t)=(cos⁡t,sin⁡t)e(t)=(\cos t,\sin t)e(t)=(cost,sint), let β,ν,α∈[0,2π)\beta,\nu,\alpha\in[0,2\pi)β,ν,α∈[0,2π) with α≠β\alpha\ne\betaα=β and ν≠β\nu\ne\betaν=β, and let rb,rν,rα>0r_b,r_\nu,r_\alpha>0rb​,rν​,rα​>0. Put

b=rbe(β),v=rνe(ν),w=rαe(α).b=r_b e(\beta),\qquad v=r_\nu e(\nu),\qquad w=r_\alpha e(\alpha).b=rb​e(β),v=rν​e(ν),w=rα​e(α).

Suppose

w=xb+yrot⁡90(b),v=cb−srot⁡90(b).w=x b+y\operatorname{rot}_{90}(b),\qquad v=c b-s\operatorname{rot}_{90}(b).w=xb+yrot90​(b),v=cb−srot90​(b).

For t≠βt\ne\betat=β, write

τ(t)={β−t,t<β,β−t+2π,t>β.\tau(t)= \begin{cases} \beta-t, & t<\beta,\\ \beta-t+2\pi, & t>\beta. \end{cases}τ(t)={β−t,β−t+2π,​t<β,t>β.​

Then the displayed wedge sign condition

{y<0 and cy+sx>0,s>0,y<0 or cy+sx>0,s<0,y<0,s=0,\begin{cases} y<0\text{ and }cy+sx>0, & s>0,\\ y<0\text{ or }cy+sx>0, & s<0,\\ y<0, & s=0, \end{cases}⎩⎨⎧​y<0 and cy+sx>0,y<0 or cy+sx>0,y<0,​s>0,s<0,s=0,​

is equivalent to τ(α)<τ(ν)\tau(\alpha)<\tau(\nu)τ(α)<τ(ν).

Formalization Note This node is ported from the Trellis formalization of the crossing lemma and its consequences (wpegden/crossing-consequences, commit 8769d142, W. Pegden, Apache-2.0); the statement is the Trellis node PlanarRot90ClockwiseWedgeAngleCriterion.

Preamble
import Mathlib.Tactic
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Combinatorics.SimpleGraph.Finite
import Mathlib.Data.Finset.Prod
import Mathlib.Data.Set.Finite.Basic
import Mathlib.LinearAlgebra.AffineSpace.AffineSubspace.Basic
import Definitions.Def_PlanarRot90

open Classical
noncomputable section
Formal statement
lemma PlanarRot90ClockwiseWedgeAngleCriterion
    (β ν α rb rn ra c s x y : ℝ)
    (hβ0 : 0 ≤ β) (hβ2 : β < 2 * Real.pi)
    (hν0 : 0 ≤ ν) (hν2 : ν < 2 * Real.pi)
    (hα0 : 0 ≤ α) (hα2 : α < 2 * Real.pi)
    (hrb : 0 < rb) (hrn : 0 < rn) (hra : 0 < ra)
    (hαν : α ≠ β) (hνβ : ν ≠ β)
    (hpoint :
      let e : ℝ → EuclideanSpace ℝ (Fin 2) :=
        fun t => WithLp.toLp 2
          (fun k : Fin 2 => if k = 0 then Real.cos t else Real.sin t)
      let base : EuclideanSpace ℝ (Fin 2) := rb • e β
      ra • e α = x • base + y • PlanarRot90 base)
    (hother :
      let e : ℝ → EuclideanSpace ℝ (Fin 2) :=
        fun t => WithLp.toLp 2
          (fun k : Fin 2 => if k = 0 then Real.cos t else Real.sin t)
      let base : EuclideanSpace ℝ (Fin 2) := rb • e β
      rn • e ν = c • base - s • PlanarRot90 base) :
    let τ : ℝ → ℝ :=
      fun t => if t = β then 2 * Real.pi
        else if t < β then β - t
        else β - t + 2 * Real.pi
    (if 0 < s then
        y < 0 ∧ 0 < c * y + s * x
      else if s < 0 then
        y < 0 ∨ 0 < c * y + s * x
      else
        y < 0) ↔ τ α < τ ν := by sorry
Source
https://github.com/wpegden/crossing-consequences/blob/8769d142033fce042f502bf2857afb6b1375b5c3/Tablet/PlanarRot90ClockwiseWedgeAngleCriterion.lean#L1-L209

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