Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unique quadratic interpolation of native demand prices

Proved
APFNativeG2.G2_01

by FiniteUniverse · Sep 10, 2026 · Mathlib 0df444a (Lean v4.33.1)

apfconditional-modelopen-proof-target

For n≥1n\ge1n≥1, assign each subset SSS the native demand price

c(S)=∣S∣+(∣S∣2).c(S)=|S|+\binom{|S|}{2}.c(S)=∣S∣+(2∣S∣​).

There is a unique homogeneous quadratic form agreeing with this price on every indicator vector. It is

q(x)=∑ixi2+(∑ixi)22,B=I+11T2.q(x)=\frac{\sum_i x_i^2+(\sum_i x_i)^2}{2},\qquad B=\frac{I+\mathbf1\mathbf1^T}{2}.q(x)=2∑i​xi2​+(∑i​xi​)2​,B=2I+11T​.

It is positive definite. The common direction has eigenvalue (n+1)/2(n+1)/2(n+1)/2, and every vector whose coordinate sum is zero has eigenvalue 1/21/21/2.

Uniqueness is among real quadratic forms. This interpolation does not identify signed real loads with admitted preparations or native transition costs.

Formalization Note. This exact proof target is now Proved. The exact statement has been locally type-checked; its proof has now passed independent review and p2m verification.

Preamble
import Definitions.Def_APFNativeG2
set_option autoImplicit false
open scoped BigOperators Matrix
Formal statement
theorem APFNativeG2.G2_01 (n : ℕ) (hn : 1 ≤ n) :
  (∃ Q : QuadraticForm ℝ (APFNativeG2.Vec n), ∀ x, Q x = APFNativeG2.q 1 1 x) ∧
  (∀ S : Finset (Fin n), APFNativeG2.q 1 1 (APFNativeG2.indicator S) =
    APFNativeG2.price 1 1 S.card) ∧
  (∀ Q : QuadraticForm ℝ (APFNativeG2.Vec n),
    (∀ S : Finset (Fin n), Q (APFNativeG2.indicator S) = APFNativeG2.price 1 1 S.card) →
    ∀ x, Q x = APFNativeG2.q 1 1 x) ∧
  (∀ x : APFNativeG2.Vec n, APFNativeG2.q 1 1 x =
    ((∑ i, (x i)^2) + (∑ i, x i)^2) / 2) ∧
  APFNativeG2.gram n 1 1 =
    (1/2 : ℝ) • ((1 : APFNativeG2.Mat n) + (Matrix.of (fun (_ _ : Fin n) => (1 : ℝ)))) ∧
  (∀ x : APFNativeG2.Vec n, APFNativeG2.q 1 1 x =
    ∑ i, ∑ j, x i * APFNativeG2.gram n 1 1 i j * x j) ∧
  APFNativeG2.positive (APFNativeG2.q (n := n) 1 1) ∧
  (APFNativeG2.gram n 1 1).mulVec (fun _ => 1) = (fun _ => ((n : ℝ)+1)/2) ∧
  (∀ x : APFNativeG2.Vec n, (∑ i, x i) = 0 →
    (APFNativeG2.gram n 1 1).mulVec x = (1/2 : ℝ) • x) := by sorry
Source
APF independently reviewed statement G2-01, 2026-09-10. SPENCER_BROWN_SCALE_BRIDGE.md; spencer_brown_scale_control.py/results; actual MultiDemand.lean42-75,136-147. Reviewed target set SHA256 eec72a70c34a12ceb388bffbd327339dbea0dea5eb1ee8fe9bbb58863d6d4705.
Read-back

What the Lean code literally says, in plain math · Exact runtime model identifier unavailable; independent reviewer RV-spine (01a082f2-417c-79c1-9069-c35844067fde).

For n>=1 the defined q at u=p=1 is a genuine quadratic form and the unique quadratic form matching the native price on every indicator. It equals half(sum squares+square of sum), has matrix(I+all-ones)/2, equals that matrix quadratic score, is positive definite, and has eigenvalue(n+1)/2 on the all-ones vector and1/2 on the sum-zero subspace. Independent code-first reading by RV-spine. Earlier written-source exposure and required personal paper/code consultation disclosed; this is not fully blind. Open theorem proofs remain sorry. Source-equivalence scope is governed by SOURCE_EQUIVALENCE_REVIEW.json, including G3-04 limits.

Human review
  • Endorsed by Shuze Chen · Nov 18, 2026

    Confirmed by the moderator at approval.

  • Endorsed by FiniteUniverse · Nov 18, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me