Documentation

LeanPool.NandakumarRamanaRao.NRR.PowerDiagram.Defs

NRR.PowerDiagram.Defs — core definitions #

Base definitions for the power-diagram API: the power (Laguerre) distance powerDist and the power cell cell of a site.

These definitions are isolated so that the implementation modules under NRR/PowerDiagram/ can depend on the core definitions, while the top-level NRR.PowerDiagram re-exports the full, proved API (see NRR/PowerDiagram.lean). This breaks what would otherwise be an import cycle.

Given n sites s : Fin n → E2 and weights w : Fin n → ℝ, the power cell of site i is {x : ∀ j, ‖x - sᵢ‖² - wᵢ ≤ ‖x - sⱼ‖² - wⱼ}.

noncomputable def NRR.PowerDiagram.powerDist {n : ℕ} (s : Fin n → E2) (w : Fin n → ℝ) (i : Fin n) (x : E2) :

Power (Laguerre) distance of x to site i with weight w i.

Equations
Instances For
    noncomputable def NRR.PowerDiagram.cell {n : ℕ} (s : Fin n → E2) (w : Fin n → ℝ) (i : Fin n) :

    Power cell of site i: the points closer (in power distance) to i than to any j.

    Equations
    Instances For