Documentation

LeanPool.NandakumarRamanaRao.NRR.Partition.PerimeterVector

NRR.Partition.PerimeterVector — perimeter vector of a convex partition #

For a convex partition P : ConvexPartition K n this module records the elementary perimeter data of P:

The underlying perimeter is the public planar Cauchy perimeter NRR.Geometry.ConvexBody.perimeter from NRR.AreaPerimeter. The pieces of a ConvexPartition have type Body = Geometry.ConvexBody Plane, so this perimeter applies directly to each piece.

No equal-area assumption, test map, or continuity statement is introduced here: this module is purely the definitional perimeter API.

noncomputable def NRR.ConvexPartition.perimeterVec {K : Body} {n : ℕ} (P : ConvexPartition K n) :
Fin n → ℝ

The perimeter vector of a convex partition: the i-th entry is the perimeter of the i-th piece.

Equations
Instances For
    noncomputable def NRR.ConvexPartition.totalPerimeter {K : Body} {n : ℕ} (P : ConvexPartition K n) :

    The total perimeter of a convex partition: the sum of the piece perimeters.

    Equations
    Instances For
      noncomputable def NRR.ConvexPartition.averagePerimeter {K : Body} {n : ℕ} (P : ConvexPartition K n) :

      The average perimeter of a convex partition: the total perimeter divided by (n : ℝ). The division is explicitly by the real cast (n : ℝ).

      Equations
      Instances For
        noncomputable def NRR.ConvexPartition.perimeterDeviation {K : Body} {n : ℕ} (P : ConvexPartition K n) :
        Fin n → ℝ

        The perimeter-deviation vector of a convex partition: the i-th entry is the deviation of the i-th piece perimeter from the average perimeter.

        Equations
        Instances For

          All pieces have equal perimeter.

          Equations
          Instances For
            theorem NRR.ConvexPartition.sum_perimeterDeviation_eq_zero {K : Body} {n : ℕ} (P : ConvexPartition K n) (hn : 0 < n) :
            ∑ i : Fin n, P.perimeterDeviation i = 0

            The perimeter-deviation vector sums to zero.

            noncomputable def NRR.ConvexPartition.perimeterDeviationZeroSum {K : Body} {n : ℕ} (P : ConvexPartition K n) (hn : 0 < n) :

            The perimeter-deviation vector, packaged as an element of the zero-sum target type.

            Equations
            Instances For

              The perimeter deviation vanishes pointwise iff all pieces have equal perimeter.

              The perimeter deviation is the zero function iff all pieces have equal perimeter.