Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Frobenius quadratic cost and cross term on two-by-two real arrays

Definition
APFPaper5_K3_TwoMarkCost

by FiniteUniverse · Nov 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

apfapf-referencesib-v15-2026-11

Defines array addition, sum-of-squares cost and entrywise bilinear cross term.

Representation and scope. Faithful to its exact supplied mathematical definitions under the stated exposure; original physical-object correspondence is not established.

This is conditional reference mathematics. The supplied model and its hypotheses are not adopted Foundation inputs, and this node does not establish K1 or K3 closure.

Definition code
/-
APF Foundation Ledger — definition node DRAFT (session EthanBrooke-01WrrBvu, 2026-11-12; not gated, not reviewed)
name: APFPaper5_K3_TwoMarkCost
title: A cost on the arrays of the two-mark model: the sum of squares, with its cross term
inputs_revision: 2026-10-04.1
mathlib_rev: 0df444a360eaa60ab8c11dca51a86af692955474
source: as Def_APFPaper5_K3_TwoMarkModel; Paper 5 Supplement v7.33:271-350 (quadratic ledger, polarization).
standing: part of the supplied MODEL. Not ledger data; no declared input produces it.
statement: add is the entrywise sum of two arrays. sqCost is the sum of the squares of the entries. crossTerm
 is the entrywise product summed.
-/
import Definitions.Def_APFPaper5_K3_TwoMarkModel

set_option autoImplicit false
namespace APFPaper5.K3

/-- Two arrays put together. -/
def add (x y : M2) : M2 := ⟨x.a + y.a, x.b + y.b, x.c + y.c, x.d + y.d⟩

/-- The sum-of-squares cost of an array. -/
def sqCost (x : M2) : ℝ := x.a * x.a + x.b * x.b + x.c * x.c + x.d * x.d

/-- The cross term of that cost. -/
def crossTerm (x y : M2) : ℝ := x.a * y.a + x.b * y.b + x.c * y.c + x.d * y.d

end APFPaper5.K3
Source
Definitions/Def_APFPaper5_K3_TwoMarkCost.lean; Sib v15, SHA-256 59b9b3284acdf5f98c63a2885f4e740dff36bdcfa7232dc23bba2fb06f2561cf. P5:271-350
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