The §5.3 two-tile non-vacuity witness data
DefinitionVathekWitnessThe concrete graft used as the non-vacuity witness. On the one-parameter space , the shared computation is the composition of a trainable bridge with a frozen donor , i.e. . There are two occurrences with targets , , weights , , and half squared-error losses . The pre-update parameter is . The per-occurrence derivative data at is fixed: values , direct gradients (the losses do not read directly), and shared cotangents . The monolithic objective is , with and .
import Definitions.Def_VathekState /-! # VathekProof — the §5.3 non-vacuity witness The concrete graft: a trainable bridge `θ ↦ 3θ` grafted into a frozen donor `u ↦ 2u`, so the shared computation is `h(w) = 6w` on the one-parameter space. Two occurrences with targets `y₁ = 1`, `y₂ = 4` and weights `1/4`, `3/4`; the pre-update parameter is `θ = 2`. -/ namespace VathekProof /-- The shared computation: bridge (×3) then frozen donor (×2), composed as `w ↦ 6w`. -/ noncomputable def witnessH (w : EuclideanSpace ℝ (Fin 1)) : EuclideanSpace ℝ (Fin 1) := (6 : ℝ) • w /-- The two targets: `y₀ = 1`, `y₁ = 4`. -/ noncomputable def witnessY : Fin 2 → EuclideanSpace ℝ (Fin 1) := fun i => WithLp.toLp 2 (fun _ => if i = 0 then (1 : ℝ) else 4) /-- Per-occurrence half squared error `fᵢ (w, v) = ½ ‖v - yᵢ‖²`. -/ noncomputable def witnessF : Fin 2 → EuclideanSpace ℝ (Fin 1) × EuclideanSpace ℝ (Fin 1) → ℝ := fun i p => (1 / 2) * ‖p.2 - witnessY i‖ ^ 2 /-- The reduction weights: `α₀ = 1/4`, `α₁ = 3/4`. -/ noncomputable def witnessAlpha : Fin 2 → ℝ := fun i => if i = 0 then 1 / 4 else 3 / 4 /-- The pre-update parameter `θ = 2`. -/ noncomputable def witnessW₀ : EuclideanSpace ℝ (Fin 1) := WithLp.toLp 2 (fun _ => (2 : ℝ)) /-- Per-occurrence values at the pre-update point: `½ ‖h(w₀) - yᵢ‖²`. -/ noncomputable def witnessVal : Fin 2 → ℝ := fun i => (1 / 2) * ‖witnessH witnessW₀ - witnessY i‖ ^ 2 /-- Per-occurrence direct gradients: `fᵢ` does not read `w` directly, so `∇₁fᵢ = 0`. -/ noncomputable def witnessDirect : Fin 2 → EuclideanSpace ℝ (Fin 1) := fun _ => 0 /-- Per-occurrence shared cotangents: `∇₂fᵢ (w₀, h₀) = h₀ - yᵢ`. -/ noncomputable def witnessShared : Fin 2 → EuclideanSpace ℝ (Fin 1) := fun i => witnessH witnessW₀ - witnessY i end VathekProof
Read-back
What the Lean code literally says, in plain math · glm-5.3 (independent auditor subagent)
{"text": "{\n "readback": "witnessH. This is a constant definition of a function on the one-dimensional Euclidean space (formally EuclideanSpace \u211d (Fin 1), the space of real 1-tuples with the Euclidean norm): it maps each vector to\n\n
\n\ni.e. scalar multiplication of by the real number . Literally, the declaration fixes the name witnessH to the map from to ; nothing more is asserted (it is a def, not a theorem, and the definition is marked noncomputable). As a map on the single coordinate, if then .\n\n**witnessY.** A constant definition of a function assigning to each index (the type Fin 2, a two-element index type) a vector in :\n\n
\n\nConcretely and in the single coordinate. The construction WithLp.toLp 2 (fun _ => \u2026) builds the Euclidean-space element whose every coordinate (there is exactly one) is the stated real number. Both branches of the if are total, so every index of Fin 2 receives one of these two values with no undefined case.\n\n**witnessF.** A constant definition of a family, indexed by , of real-valued functions on the product space (a pair with the parameter-slot vector and the shared-state-slot vector):\n\n
\n\nwhere is the target vector defined above (, ), the norm is the Euclidean norm on (so ), and is the real number . Note that the first component of the argument pair is never read: depends only on the second component .\n\n**witnessAlpha.** A constant definition of a real-valued function on the index set giving the reduction weights\n\n
\n\nSo and (the latter written in Lean as the division , which is the real number ; both are positive and they sum to , though the declaration itself asserts no such property). The if i = 0 then \u2026 else \u2026 is total over Fin 2, covering both indices.\n\n**witnessW\u2080.** A constant definition fixing a single vector in , the pre-update parameter\n\n
\n\ni.e. the Euclidean-space element whose (unique) coordinate is the real number , again built by WithLp.toLp 2. No property is asserted; this is purely a named constant.\n\n**witnessVal.** A constant definition of a real-valued function on giving, for each occurrence , the value of the loss evaluated at the specific point where the parameter slot is and the shared-state slot is :\n\n
\n\nConcretely, since and , we have , so\n\n
\n\nThe declaration only defines these two numbers; it does not assert any relation to the derivative-certificate field val of FrameDeriv.\n\n**witnessDirect.** A constant definition of a function on with values in that is identically zero:\n\n
\n\nThe definition ignores its index argument entirely. (Consistently with witnessF not reading its first argument, this is the zero vector; the declaration itself makes no such claim \u2014 it merely fixes the constant zero function.)\n\n**witnessShared.** A constant definition of a function on with values in , assigning to each occurrence the vector difference\n\n
\n\nConcretely, using , , :\n\n
\n\nThis is the vector in the one-coordinate Euclidean space; the declaration defines the two vectors and asserts nothing further (in particular, no gradient or derivative property is claimed by this definition)."\n}", "details": {"resolvedPath": "/home/ajax/.omp/agent/sessions/-math/2026-09-22T19-31-08-510Z_01a0ca99-be5e-7000-93c6-dac7c74cc004/RB-VathekWitness.md", "contentType": "text/markdown", "totalLines": 3, "displayContent": {"text": "{\n "readback": "witnessH. This is a constant definition of a function on the one-dimensional Euclidean space (formally EuclideanSpace \u211d (Fin 1), the space of real 1-tuples with the Euclidean norm): it maps each vector to\n\n
\n\ni.e. scalar multiplication of by the real number . Literally, the declaration fixes the name witnessH to the map from to ; nothing more is asserted (it is a def, not a theorem, and the definition is marked noncomputable). As a map on the single coordinate, if then .\n\n**witnessY.** A constant definition of a function assigning to each index (the type Fin 2, a two-element index type) a vector in :\n\n
\n\nConcretely and in the single coordinate. The construction WithLp.toLp 2 (fun _ => \u2026) builds the Euclidean-space element whose every coordinate (there is exactly one) is the stated real number. Both branches of the if are total, so every index of Fin 2 receives one of these two values with no undefined case.\n\n**witnessF.** A constant definition of a family, indexed by , of real-valued functions on the product space (a pair with the parameter-slot vector and the shared-state-slot vector):\n\n
\n\nwhere is the target vector defined above (, ), the norm is the Euclidean norm on (so ), and is the real number . Note that the first component of the argument pair is never read: depends only on the second component .\n\n**witnessAlpha.** A constant definition of a real-valued function on the index set giving the reduction weights\n\n
\n\nSo and (the latter written in Lean as the division , which is the real number ; both are positive and they sum to , though the declaration itself asserts no such property). The if i = 0 then \u2026 else \u2026 is total over Fin 2, covering both indices.\n\n**witnessW\u2080.** A constant definition fixing a single vector in , the pre-update parameter\n\n
\n\ni.e. the Euclidean-space element whose (unique) coordinate is the real number , again built by WithLp.toLp 2. No property is asserted; this is purely a named constant.\n\n**witnessVal.** A constant definition of a real-valued function on giving, for each occurrence , the value of the loss evaluated at the specific point where the parameter slot is and the shared-state slot is :\n\n
\n\nConcretely, since and , we have , so\n\n
\n\nThe declaration only defines these two numbers; it does not assert any relation to the derivative-certificate field val of FrameDeriv.\n\n**witnessDirect.** A constant definition of a function on with values in that is identically zero:\n\n
\n\nThe definition ignores its index argument entirely. (Consistently with witnessF not reading its first argument, this is the zero vector; the declaration itself makes no such claim \u2014 it merely fixes the constant zero function.)\n\n**witnessShared.** A constant definition of a function on with values in , assigning to each occurrence the vector difference\n\n
\n\nConcretely, using , , :\n\n
\n\nThis is the vector in the one-coordinate Euclidean space; the declaration defines the two vectors and asserts nothing further (in particular, no gradient or derivative property is claimed by this definition)."\n}", "startLine": 1, "lineNumbers": [1, 2, 3]}, "meta": {"source": {"type": "internal", "value": "agent://RB-VathekWitness"}}}}
Confirmed by the mission captain (proposal self-audit).