Planar plane quarter-turn operator
DefinitionPlanarRot90crossing-consequencespolygonal-geometry
A coordinate-level quarter-turn operator on the Euclidean plane. It sends a vector to the vector with coordinates , providing the oriented normal direction used by the polygonal-arc collar constructions.
Definition code
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 open Classical noncomputable section -- [TABLET NODE: PlanarRot90] -- Source: https://github.com/wpegden/crossing-consequences/blob/8769d142033fce042f502bf2857afb6b1375b5c3/Tablet/PlanarRot90.lean#L1-L9 def PlanarRot90 (v : EuclideanSpace ℝ (Fin 2)) : EuclideanSpace ℝ (Fin 2) := WithLp.toLp 2 (fun k : Fin 2 => if k = 0 then -(v 1) else v 0)
Source