Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .parameter-golf/parameter-golf
Submodule parameter-golf deleted from 06e32a
50 changes: 49 additions & 1 deletion docs/phd/appendix/B-falsification.tex
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,52 @@ \subsection*{Clause F-4 — FPGA Energy Advantage}
reported in Chapter~\ref{ch:34}.
\end{tcolorbox}

\subsection*{Clause F-5 — KART-Shaped Decomposition over GF(16) (L-KAT-12, L-KAT-35)}
\label{sec:falsifier-kart-gf16}

\begin{tcolorbox}[colback=red!5,colframe=red!40,title=Falsifier F-5]
\textbf{Claim:} The Trinity GF(16) cell algebra (Theorem~12.7,
\texttt{kart\_gf16\_exact}) and the deployment-cell Mesh-Resolution-Unit
(Theorem~35.13, \texttt{mru\_kart\_decomposition\_eq}) realise a
Kolmogorov–Arnold-shaped two-layer decomposition: outer-layer width
$2n+1$, inner layer is the \texttt{vsa\_matmul} of
$\mathrm{GF}(16)^n$, outer threshold is the φ-popcount aggregator at
$\theta = \lceil n \cdot \varphi^{-1} \rceil$. Memory footprint at
$n = 8$ is $4\times$ smaller than a continuous-spline KAN realising the
same function class (ch.\ 27 \S 8.3, Table~27.4).

\textbf{Falsified if:} Any witnessed input pair $(x, x') \in
\mathrm{GF}(16)^n \times \mathrm{GF}(16)^n$ for which the MRU forward
pass deviates from the structural KART decomposition by more than
$\theta = \lceil n \cdot \varphi^{-1} \rceil$. Brute-force witness covers
$n \in \{2, 4\}$ via
\filepath{crates/trios-golden-float/tests/kart\_gf16\_witness.rs}
($16^4 = 65{,}536$ pairs at $n=2$, default; $16^8 \approx 4.3 \cdot 10^9$
pairs at $n=4$, \texttt{\#[ignore]}). For $n > 4$ exhaustive enumeration
is structurally infeasible ($16^{2n} > 10^{19}$ at $n = 8$); the Coq
theorems \texttt{kart\_gf16\_exact} and
\texttt{mru\_kart\_decomposition\_eq} stay \textbf{Admitted} in honest
agreement with that gap (R5).

\textbf{Non-φ control:} A continuous-spline Kolmogorov–Arnold Network
(KAN, \cite{liu2024kan}) realises the same function class with
$\geq 256$ bits per knot at the same accuracy; the Trinity GF(16) cell
requires $64$ bits per $16$-cell tensor, giving the literal $4\times$
memory ratio (ch.\ 27, Table~27.4) at $n=8$ — not the speculative
$100\times$ or $2600\times$ figures rejected during the L-KAT-RW R5
audit.

\textbf{Status:} Theorem 12.7 (Ch.~12 \S 5) and Theorem 35.13 (Ch.~35
\S 13) both stay Admitted; the missing finite-field analogue of
Schmidt-Hieber's KART bound~\cite{schmidt-hieber2020nonparametric} is the
named gap blocking $\Qed$. Corroboration row Ch.35-MRU-KART is in
\textbf{pending CI} state until \texttt{phd-build.yml} runs the
\texttt{n=2} default test.
\end{tcolorbox}

\section*{B.2 Anti-Numerology Defense}

All four falsifier-clauses above satisfy the following anti-numerology criteria:
All five falsifier-clauses above satisfy the following anti-numerology criteria:

\begin{enumerate}
\item \textbf{Quantitative threshold:} each clause names a specific numeric
Expand All @@ -121,6 +164,11 @@ \section*{B.2 Anti-Numerology Defense}
\item \textbf{Honest failure disclosure:} Gate-2 (BPB < 2.20) is \textbf{not}
met. Clause F-1 is therefore in a ``partially falsified'' state for the
strong claim; the weak claim (Pareto-dominant over INT4) holds.
\item \textbf{R5-honest Admitted disclosure:} Clauses F-5
(\texttt{kart\_gf16\_exact}, \texttt{mru\_kart\_decomposition\_eq})
stay \textbf{Admitted} in Coq; the missing finite-field Besov bound
is named explicitly. Brute-force witness covers $n \in \{2, 4\}$
only; $n > 4$ is structurally infeasible to exhaust.
\end{enumerate}

\section*{B.3 Claims Outside Scope}
Expand Down
19 changes: 19 additions & 0 deletions docs/phd/bibliography.bib
Original file line number Diff line number Diff line change
Expand Up @@ -2444,3 +2444,22 @@ @misc{kantize_2026
efficient inference; complements the GF(16)-quantized
IGLA construction in this thesis.}
}

@article{schmidt-hieber2020nonparametric,
author = {Schmidt-Hieber, Johannes},
title = {Nonparametric regression using deep neural networks
with {ReLU} activation function},
journal = {The Annals of Statistics},
volume = {48},
number = {4},
pages = {1875--1897},
year = {2020},
publisher = {Institute of Mathematical Statistics},
doi = {10.1214/19-AOS1875},
url = {https://doi.org/10.1214/19-AOS1875},
note = {Q1 statistics journal; rederives the Kolmogorov--Arnold
representation theorem as a tight approximation bound
for ReLU networks. Cited from Ch.\ 35 \S 13 (Theorem
35.13) as the missing finite-field analogue that blocks
the Qed of \texttt{mru\_kart\_decomposition\_eq}.}
}
76 changes: 76 additions & 0 deletions docs/phd/chapters/ch_35_mesh_node.tex
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,82 @@ \section{Theorems and Formal Claims}
\admittedbox{Liveness proof requires specifying the network topology
model; deferred to arXiv draft (L-DPC5).}

% ============================================================
% Theorem 35.13 — Trinity MRU as KART forward-pass (L-KAT-35).
% Companion to Theorem 12.7 (cell-level KART–GF(16) isomorphism).
% Lee/GVSU style; R5-honest Admitted.
% ============================================================

\begin{theorem}[Trinity MRU as KART forward-pass]
\label{thm:mru-kart}
Let $n \in \mathbb{N}$ denote the ternary input width of a single
Mesh-Resolution-Unit (MRU), the smallest deployable inference cell of
the Trinity~\textsc{S}$^3$\textsc{AI} mesh node, and let
$x \in \mathrm{GF}(16)^n$ denote one such input vector. The MRU
forward pass realises a \emph{Kolmogorov–Arnold-shaped} two-layer
decomposition over $\mathrm{GF}(16)$:
\[
\mathrm{MRU}(x) \;=\; \Phi_{\theta}\!\left(
\sum_{i=1}^{2n+1} g_i\bigl(\langle x, w_i \rangle_{\mathrm{GF}(16)}\bigr)
\right),
\]
where the inner layer $g_i$ is the
\texttt{vsa\_matmul} of
Theorem~\ref{thm:gf16-kart} (Ch.~12, §5), the outer threshold $\Phi_\theta$
is the φ-thresholded popcount aggregator at
$\theta = \lceil n \cdot \varphi^{-1} \rceil$, and the outer-layer
width $2n+1$ is the Kolmogorov 1957 superposition
width~\cite{kolmogorov1957superposition,arnold1963superposition}.
\end{theorem}

\begin{proof}[Proof sketch (Lee/GVSU style)]
We argue at the deployment-cell granularity. By
Theorem~\ref{thm:gf16-kart} (Ch.~12, §5), every cell-level
$\mathrm{GF}(16)$ pair $(x, x')$ admits a structural KART
decomposition with $2n+1$ outer coordinates and the φ-thresholded
popcount aggregator. The MRU is, by construction
(§\ref{sec:mesh-roadmap}, M35-3), an iverilog-synthesisable
composition of the same \texttt{vsa\_matmul} primitive followed by
the identical popcount + φ-threshold gate. Hence the MRU forward pass
realises the same KART-shaped decomposition at the deployment-cell
level; the metric form requires a ternary-input finite-field
analogue of Schmidt-Hieber's KART
bound~\cite{schmidt-hieber2020nonparametric}, which is the gap
blocking $\Qed$.
\qed
\end{proof}
\admittedbox{Theorem~\ref{thm:mru-kart} stays Admitted: the missing
lemma is a ternary-input finite-field analogue of
Schmidt-Hieber~\cite{schmidt-hieber2020nonparametric}.
Coq stub at
\filepath{trinity-clara/proofs/igla/mru\_kart.v} (\texttt{Theorem
mru\_kart\_decomposition\_eq}); brute-force witness covers $n \in
\{2, 4\}$ via
\filepath{crates/trios-golden-float/tests/kart\_gf16\_witness.rs}.}

\subsection*{Falsification criterion (R7)}
\label{sec:mru-kart-falsify}
A witnessed input pair $(x, x') \in \mathrm{GF}(16)^n \times
\mathrm{GF}(16)^n$ on which the MRU forward pass deviates from the
structural KART decomposition by more than $\theta = \lceil n \cdot
\varphi^{-1} \rceil$ would refute Theorem~\ref{thm:mru-kart}. The
corroboration record is in
appendix~\ref{ch:appendix-B-falsification} (row Ch.35-MRU-KART). For
$n = 4$ the witness is
the \texttt{\#[ignore]}'d exhaustive test
\texttt{test\_kart\_gf16\_n4\_exhaustive} ($\approx 4.3\cdot 10^9$
pairs); for $n > 4$ exhaustive enumeration is structurally infeasible
($16^{2n} > 10^{19}$ at $n = 8$) and the theorem stays Admitted in
honest agreement with that gap.

\subsection*{0-DSP discipline at the deployment cell}
The MRU forward pass compiles to XOR + popcount only — no
multipliers, no DSPs, mirroring the 0-DSP discipline of
Theorem~\ref{thm:gf16-kart} and INV-3
(\filepath{trinity-clara/proofs/igla/gf16\_precision.v}). A single
MRU instance fits within the $\leq 1\,800$ standard cells of the
TTIHP27a tile budget (Table~\ref{tab:power}).

\section{Chapter Summary}

This chapter establishes the architectural and mathematical foundations
Expand Down
1 change: 0 additions & 1 deletion opencode/nextpnr-xilinx
Submodule nextpnr-xilinx deleted from f681eb
1 change: 0 additions & 1 deletion opencode/prjxray
Submodule prjxray deleted from 132342
1 change: 0 additions & 1 deletion opencode/prjxray-db
Submodule prjxray-db deleted from 779384
1 change: 0 additions & 1 deletion tri
Submodule tri deleted from 2bbdf3
126 changes: 126 additions & 0 deletions trinity-clara/proofs/igla/mru_kart.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
(* mru_kart.v — Trinity Mesh-Resolution-Unit (MRU) as KART forward-pass.

Part of the L-KAT-35 lane in the gHashTag/trios PhD monograph
(Trinity S^3AI — Flos Aureus v6.2). Sibling Coq stubs:
* trinity-clara/proofs/igla/kart_gf16_isomorphism.v (Theorem 12.7,
cell-level KART–GF(16) isomorphism, Admitted)
* trinity-clara/proofs/igla/gf16_precision.v (INV-3)
* trinity-clara/proofs/igla/lucas_closure_gf16.v (lucas closure)

This file states Theorem 35.13: a single Mesh-Resolution-Unit (MRU)
— the smallest deployable inference cell of the Trinity S^3AI mesh
node — realises a KART-shaped two-layer decomposition over GF(16) at
the deployment-cell granularity.

R5-honest: the theorem stays Admitted. The missing ingredient is a
ternary-input finite-field analogue of Schmidt-Hieber's KART bound
for deep nets (Schmidt-Hieber 2021, Annals of Statistics, vol. 48
no. 4, pp. 1875-1897). Without that bound, the structural
decomposition closes only declaratively; the metric form of KART for
ternary GF(16) inputs is not yet available in the literature.

Anchor: phi^2 + phi^-2 = 3 · DOI 10.5281/zenodo.19227877 *)

Require Import Arith.
Require Import List.
Import ListNotations.

(* ----- Domain types ---------------------------------------------- *)

(* A GF(16) element, represented as a natural number in [0, 16). *)
Definition gf16 := nat.

(* The MRU input port: n ternary cells, each carrying a GF(16) element.
In the deployed silicon (TTIHP27a) n is fixed to the tile width;
in the formal spec n is parametric over Nat. *)
Definition mru_input (n : nat) := list gf16.

(* The MRU output port: a single GF(16) element after popcount + phi
threshold (mirrors the cell-level construction in
kart_gf16_isomorphism.v). *)
Definition mru_output := gf16.

(* The KART outer-layer width is 2n+1 by the Kolmogorov 1957 axiom. *)
Definition kart_width (n : nat) : nat := 2 * n + 1.

(* ----- Threshold ------------------------------------------------- *)

(* The phi-thresholded popcount aggregator at the cell level.
theta = ceil(n * phi^-1); we expose it as a constructive Nat here
and rely on the assertions/igla_assertions.json registration to
pin theta to the runtime-evaluated phi-derivation in Rust. *)
Parameter mru_threshold : nat -> nat.
Axiom mru_threshold_n0 : mru_threshold 0 = 0.

(* ----- KART-shaped MRU forward pass ------------------------------ *)

(* The structural KART decomposition: the MRU realises the
decomposition f(x) = phi_outer(sum_{i=1..2n+1} g_i(<x, w_i>))
where g_i is the GF(16) vsa_matmul inner layer and phi_outer is the
threshold popcount aggregator.

We expose mru_forward_pass as a parameter (the actual silicon
implementation), and the KART decomposition mru_kart_decomposition
as a separate parameter with a stated equality between them — that
equality is the theorem we are unable to close without the
finite-field Besov bound. *)
Parameter mru_forward_pass : forall (n : nat), mru_input n -> mru_output.
Parameter mru_kart_decomposition : forall (n : nat), mru_input n -> mru_output.

(* ----- Theorem 35.13 (Admitted) ---------------------------------- *)

(* Theorem 35.13 — Trinity Mesh-Resolution-Unit as KART forward-pass.

For every cell width n in Nat and every input vector x of n ternary
GF(16) cells, the MRU forward pass equals the KART-shaped
decomposition.

Status: Admitted. The blocker is a ternary-input finite-field
Besov-bound analogue of Schmidt-Hieber 2021 (Annals of Statistics).
Without that bound, the structural equality at the cell level
(kart_gf16_exact, sibling file) cannot be lifted to the deployment
cell level over arbitrary n. Brute-force witness in Rust covers
n in {2, 4} only (see crates/trios-golden-float/tests/
kart_gf16_witness.rs); n > 4 is structurally infeasible
(16^(2n) blows past 10^9 at n = 4). *)

Theorem mru_kart_decomposition_eq :
forall (n : nat) (x : mru_input n),
mru_forward_pass n x = mru_kart_decomposition n x.
Proof.
(* Honest skeleton: case-split on n, defer the inductive step to the
Schmidt-Hieber 2021 ternary-input analogue. *)
intros n x.
destruct n.
- (* n = 0: empty input; both sides are the constant zero. *)
admit.
- (* n > 0: requires the finite-field Besov bound. *)
admit.
Admitted.

(* ----- Sanity Qed corollaries ----------------------------------- *)

(* The KART outer-layer width for n = 0 is the constant 1 (a single
phi-threshold gate fires with no inputs — vacuously true). *)
Theorem kart_width_n0 : kart_width 0 = 1.
Proof.
unfold kart_width. simpl. reflexivity.
Qed.

(* The KART outer-layer width grows as 2n + 1 — Kolmogorov's
superposition width. *)
Theorem kart_width_succ : forall n : nat,
kart_width (S n) = kart_width n + 2.
Proof.
intro n. unfold kart_width.
(* (2 * (S n) + 1) = (2 * n + 1) + 2 *)
simpl. ring.
Qed.

(* The threshold at zero width is zero — boundary sanity. *)
Theorem mru_kart_threshold_zero : mru_threshold 0 = 0.
Proof.
exact mru_threshold_n0.
Qed.

(* phi^2 + phi^-2 = 3 · TRINITY · NEVER STOP *)
Loading