Real weighted energy identity
ProvedDerivativeChainPrivate.real_energy_identityderivative-chain-privatefoundations
Let I be a finite type with decidable equality, s a finite subset, p and a real-valued functions on I, and b real. If the weights on s sum to one and b is their weighted sum of the a-values, then
No positivity assumption on the weights is needed. This is an algebraic identity, not a derivative-chain bound.
Preamble
import Mathlib open scoped BigOperators set_option autoImplicit false
Formal statement
theorem DerivativeChainPrivate.real_energy_identity {ι : Type} [Fintype ι] [DecidableEq ι]
(s : Finset ι) (p a : ι → ℝ) (b : ℝ)
(hsum : ∑ i ∈ s, p i = 1)
(hb : b = ∑ i ∈ s, p i * a i) :
∑ i ∈ s, p i * (a i - b) ^ 2 = ∑ i ∈ s, p i * (a i) ^ 2 - b ^ 2 := by sorrySource
Derivative-zero chains: public formalization reference, R09, DerivativeChainPrivate.real_energy_identity. https://gist.github.com/Amal-David/d6612109c98595b12561cd638c60edf5/3883c57ddc7bf9d4c0e898c3d6bfd2ca0d7f9c95#file-notes-md
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.