P3381T1AffineTriangleMap #
Adapted from Wesley Pegden’s Apache-2.0 Trellis formalization of Levine–Pegden–Smart. Changes: pool module paths, public exports, project namespace and current Mathlib compatibility.
theorem
ApollonianSuperharmonic.barycentricCoordinates_weighted_sum
{ι κ E : Type}
[Fintype ι]
[Fintype κ]
[AddCommMonoid E]
[Module ℝ E]
(vertices : κ → E)
(coordinates : E → κ → ℝ)
(sum_coordinates : ∀ (z : E), ∑ j : κ, coordinates z j = 1)
(reconstruct : ∀ (z : E), ∑ j : κ, coordinates z j • vertices j = z)
(unique_coordinates : ∀ (w : κ → ℝ), ∑ j : κ, w j = 1 → coordinates (∑ j : κ, w j • vertices j) = w)
(weights : ι → ℝ)
(points : ι → E)
(sum_weights : ∑ r : ι, weights r = 1)
(j : κ)
:
Coordinates with normalized weights, reconstruction, and uniqueness preserve affine sums.