Planar Rot90 Angle Coordinate Decomposition
ProvedPlanarRot90AngleCoordinateDecompositioncrossing-consequencestrellis-port
Let
If , then the vector has coordinates in the ordered frame given by
That is,
and these two coordinates are unique.
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 PlanarRot90AngleCoordinateDecomposition.
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 PlanarRot90AngleCoordinateDecomposition (β α rb ra : ℝ) (hrb : rb ≠ 0) :
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 β
let x : ℝ := (ra / rb) * Real.cos (α - β)
let y : ℝ := (ra / rb) * Real.sin (α - β)
ra • e α = x • base + y • PlanarRot90 base ∧
∀ {x' y' : ℝ},
ra • e α = x' • base + y' • PlanarRot90 base →
x' = x ∧ y' = y := by sorrySource