Unit Circle Incidence Count
DefinitionUnitCircleIncidenceCountcrossing-consequencestrellis-port
For a finite set , is the number of ordered pairs such that lies on the unit circle centered at . This is the formal version of the paper's sum , where .
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 UnitCircleIncidenceCount.
Definition code
import Definitions.Def_UnitCircle open Classical noncomputable section -- [TABLET NODE: UnitCircleIncidenceCount] noncomputable def UnitCircleIncidenceCount (P : Finset (EuclideanSpace ℝ (Fin 2))) : ℕ := -- BODY ((P.product P).filter (fun pq => pq.2 ∈ UnitCircle pq.1)).card
Source