Planar Clockwise Swept Two Ray Endpoint Cones In Sector
ProvedPlanarClockwiseSweptTwoRayEndpointConesInSectorcrossing-consequencestrellis-port
Let , let , and let . Suppose
and suppose that is not on the positive -ray, equivalently or . Write
If , define
If , define
If , define
Then is open and connected. Moreover, there are and such that the terminal clockwise half-cone along ,
and the initial left half-cone along ,
are both contained in .
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 PlanarClockwiseSweptTwoRayEndpointConesInSector.
Preamble
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 PlanarClockwiseSweptTwoRayEndpointConesInSector
(p base other : EuclideanSpace ℝ (Fin 2)) (rho c s : ℝ)
(hrho : 0 < rho) (hbase : base ≠ 0) (hother : other ≠ 0)
(hnot_pos_ray : s ≠ 0 ∨ c < 0)
(hother_eq : other = c • base - s • PlanarRot90 base) :
let baseChart : EuclideanSpace ℝ (Fin 2) → EuclideanSpace ℝ (Fin 2) :=
fun z => p + z 0 • base + z 1 • PlanarRot90 base
let otherChart : EuclideanSpace ℝ (Fin 2) → EuclideanSpace ℝ (Fin 2) :=
fun z => p + z 0 • other + z 1 • PlanarRot90 other
let sector : Set (EuclideanSpace ℝ (Fin 2)) :=
if 0 < s then
baseChart ''
{z | z 0 ^ 2 + z 1 ^ 2 < (rho / ‖base‖) ^ 2 ∧
z 1 < 0 ∧ 0 < c * z 1 + s * z 0}
else
if s < 0 then
baseChart ''
{z | z 0 ^ 2 + z 1 ^ 2 < (rho / ‖base‖) ^ 2 ∧
(z 1 < 0 ∨ 0 < c * z 1 + s * z 0)}
else
baseChart ''
{z | z 0 ^ 2 + z 1 ^ 2 < (rho / ‖base‖) ^ 2 ∧ z 1 < 0}
IsOpen sector ∧ IsConnected sector ∧
∃ r K : ℝ, 0 < r ∧ 0 < K ∧
baseChart ''
{z | 0 < z 0 ∧ z 0 ^ 2 + z 1 ^ 2 < (r / ‖base‖) ^ 2 ∧
-K * z 0 < z 1 ∧ z 1 < 0} ⊆ sector ∧
otherChart ''
{z | 0 < z 0 ∧ z 0 ^ 2 + z 1 ^ 2 < (r / ‖other‖) ^ 2 ∧
0 < z 1 ∧ z 1 < K * z 0} ⊆ sector := by sorrySource