M04 — Sum of shared cotangents
ProvedVathekProof.M04_adjoint_sumThe transpose of a continuous linear map between finite-dimensional inner product spaces is linear, so it maps a finite sum of cotangents to the sum of the individual vector–Jacobian products: for every shared derivative , every finite index set , and every family of cotangents ,
This is the algebraic fact that lets one reverse pass over the shared computation serve every consumer: a parameter shared by many loss occurrences receives the sum of every consumer's contribution. It is used in the one-step equivalence with and the accumulated cotangents .
import Definitions.Def_VathekFrame import Definitions.Def_VathekState import Definitions.Def_VathekAdamW import Definitions.Def_VathekWitness
namespace VathekProof
/-- **M04 — Sum of shared cotangents.** The transpose of the shared derivative is
linear: it maps a finite sum of cotangents to the sum of the individual
vector–Jacobian products. A parameter shared by many consumers receives the sum of
every consumer's contribution in one reverse pass. -/
theorem M04_adjoint_sum {d m : ℕ} (κ : Type*)
(L : EuclideanSpace ℝ (Fin d) →L[ℝ] EuclideanSpace ℝ (Fin m))
(s : Finset κ) (c : κ → EuclideanSpace ℝ (Fin m)) :
L.adjoint (∑ i ∈ s, c i) = ∑ i ∈ s, L.adjoint (c i) := by sorry
end VathekProofRead-back
What the Lean code literally says, in plain math · glm-5.3 (independent auditor subagent)
{"text": "{\n "readback": "Declaration M04_adjoint_sum. For all natural numbers and (each possibly ), for every type carrying no structure whatsoever (no order, no decidability; it may be empty, infinite, or of any cardinality), for every continuous -linear map , for every finite subset , and for every assignment of a vector of to each element of , the following equality of vectors in holds:\n\n
\n\nHere and are the Euclidean spaces of real-valued functions on the index sets and , equipped with the standard inner product ; the sums are finite sums over the finite set (no limits or infinite series appear). The symbol denotes the adjoint of the continuous linear map : the unique continuous -linear map characterized by\n\n
\n\nequivalently, is the Riesz representation (with respect to the Euclidean inner products) of the linear functional , which in differential-programming language is the vector\u2013Jacobian product of with seed ; in the standard orthonormal coordinates is represented by the transpose of the matrix representing . (Between these finite-dimensional spaces every linear map is automatically continuous, so \"continuous -linear\" carries no restriction beyond linearity.)\n\nIn words: pulling a finite sum of vectors of back through the adjoint of yields the sum of the individual pullbacks. The claim is made only in this sum-to-sum form \u2014 the declaration by itself does not separately assert additivity of , scalar homogeneity, continuity, or the defining adjoint identity; those are properties of the ambient notion, not parts of this statement.\n\nThe theorem is entirely unconditional: besides the typing of there are no hypotheses, no typeclass or decidability assumptions, and no side conditions. The quantifiers silently include the degenerate cases: (i) , where both sums are the empty sum and the assertion reads ; (ii) empty, where every finite subset is empty and the statement collapses to case (i); (iii) , where is the zero space and both sides are its unique element; (iv) , where is the zero space and each . Because is a finite set (not a list or multiset), no index repetition can occur and the sum is order-independent. The declaration is stated with a placeholder proof (a sorry), so the artifact asserts this equality without supplying a Lean proof of it."\n}", "details": {"resolvedPath": "/home/ajax/.omp/agent/sessions/-math/2026-09-22T19-31-08-510Z_01a0ca99-be5e-7000-93c6-dac7c74cc004/RB-M04.md", "contentType": "text/markdown", "totalLines": 3, "displayContent": {"text": "{\n "readback": "Declaration M04_adjoint_sum. For all natural numbers and (each possibly ), for every type carrying no structure whatsoever (no order, no decidability; it may be empty, infinite, or of any cardinality), for every continuous -linear map , for every finite subset , and for every assignment of a vector of to each element of , the following equality of vectors in holds:\n\n
\n\nHere and are the Euclidean spaces of real-valued functions on the index sets and , equipped with the standard inner product ; the sums are finite sums over the finite set (no limits or infinite series appear). The symbol denotes the adjoint of the continuous linear map : the unique continuous -linear map characterized by\n\n
\n\nequivalently, is the Riesz representation (with respect to the Euclidean inner products) of the linear functional , which in differential-programming language is the vector\u2013Jacobian product of with seed ; in the standard orthonormal coordinates is represented by the transpose of the matrix representing . (Between these finite-dimensional spaces every linear map is automatically continuous, so \"continuous -linear\" carries no restriction beyond linearity.)\n\nIn words: pulling a finite sum of vectors of back through the adjoint of yields the sum of the individual pullbacks. The claim is made only in this sum-to-sum form \u2014 the declaration by itself does not separately assert additivity of , scalar homogeneity, continuity, or the defining adjoint identity; those are properties of the ambient notion, not parts of this statement.\n\nThe theorem is entirely unconditional: besides the typing of there are no hypotheses, no typeclass or decidability assumptions, and no side conditions. The quantifiers silently include the degenerate cases: (i) , where both sums are the empty sum and the assertion reads ; (ii) empty, where every finite subset is empty and the statement collapses to case (i); (iii) , where is the zero space and both sides are its unique element; (iv) , where is the zero space and each . Because is a finite set (not a list or multiset), no index repetition can occur and the sum is order-independent. The declaration is stated with a placeholder proof (a sorry), so the artifact asserts this equality without supplying a Lean proof of it."\n}", "startLine": 1, "lineNumbers": [1, 2, 3]}, "meta": {"source": {"type": "internal", "value": "agent://RB-M04"}}}}
Confirmed by the mission captain (proposal self-audit).