§19. Layer 4: Truth & Work
Copy/paste (plain text):
Jason St George. "§19. Layer 4: Truth & Work" in Next Generation Stores of Value: Privacy, Proofs, Compute. Version v2.0. /v/2.0/read/part-iv/19-layer-4/ Layer 4: Truth & Work
Layer 4 is the Prove/Verify spine of the stack.
Its job is to take arbitrary claims—“this media object came from camera C at time T,” “this inference was computed by model M on input X,” “this corridor swap executed atomically”—and turn them into portable proofs that:
-
anyone can check with cheap, public verification, and
-
can be standardized as commodities (canonical workloads, SLAs, prices).
What Layer 4 Is (and Isn’t)
Layer 4 is:
-
The layer of circuits, proofs, and verification economics.
-
The place where verification asymmetry is engineered and measured.
-
The home of Proofs-as-a-Library (PaL), proof factories, and canonical workload registries.
Layer 4 is not:
-
A specific proof system (SNARK vs. STARK vs. something else); it assumes multi-ZK.
-
A single PoUW design; it supports several patterns as long as VerifyPrice and anti-capture constraints are met.
-
A truth oracle. Proofs do not prove truth; they prove specific claims under stated assumptions—origin, custody, computation, policy compliance, and settlement finality. The thesis is not that cryptography tells us what is true, but that it reduces the surface area over which institutions must be trusted.
Verification Asymmetry Revisited
Recall the definition from Part I. For a workload :
-
= cost (time, energy, hardware) to produce a result + proof.
-
= cost to verify that result + proof.
-
= verification asymmetry.
Layer 4’s goal is simple:
Make for the workloads that matter, and keep it that way in production.
Why this matters:
-
If is small and stable, anyone (including small nodes) can check proofs.
-
That makes proofs and verified FLOPs commodities: units of work that any counterparty can accept without trusting a platform.
Layer 4 introduces:
Canonical Workloads and Proof Types
To avoid an unbounded zoo of bespoke proofs, Layer 4 maintains canonical workloads:
-
MatMul() – matrix multiplication at specified dimensions and error bounds.
-
Inference(; policy) – run model on input under constraints.
-
Provenance(, chain) – provenance chain for content type .
-
Settlement(, policy) – settlement and refund logic for a corridor.
For each canonical workload, the stack defines:
-
Circuits / arithmetization: how the workload is represented for proving systems.
-
Proof schemas: which proof systems are supported.
-
SLO tiers: latency and reliability classes (Bronze, Silver, Gold).
Canonical workloads matter economically:
-
They become the SKUs for proof and compute markets.
-
Work Credits are minted against units of these workloads.
-
VerifyPrice and are tracked per workload and tier.
Canonical Workload Definition Template
For a workload to become a tradable SKU (and eligible for Work Credit issuance), it must be defined with sufficient precision. The following template ensures standardization:
Canonical Workload Definition Template
WorkloadID: Unique identifier (e.g., MATMUL_4096_FP32, INFER_LM_70B_256TOK)
Statement: What is being proved (natural language + formal predicate)
- Example: “The matrix product was computed correctly, where , and .”
Public Inputs:
-
Commitment to , (hash or Merkle root)
-
Claimed result commitment (hash of )
-
Error bound
-
Timestamp range
Private Inputs (Witness):
-
Full matrices , ,
-
Intermediate computation trace (if required by proof system)
What Is Verified:
-
Correctness (computation matches claim)
-
Bounds (result within specified limits)
-
Freshness (timestamp within allowed window)
-
Liveness (proof generated within epoch, not precomputed)
Verifier Complexity Class:
-
Time: for succinct proofs; for non-succinct
-
Memory: specified peak (e.g., 512MB for Laptop-Class)
-
Proof size: max allowed (e.g., 1MB)
Policy Hooks: (machine-verifiable predicates)
-
Hardware profile requirements (e.g., L0-B or higher)
-
Prover stake requirements
-
Membership/non-membership predicates (allowlist proofs, not graph inspection)
Allowed Hardware Profiles:
-
L0-A: Yes (with issuance weight 0.9)
-
L0-B: Yes (1.0)
-
L0-C/D: Yes (1.1)
SLA Tiers:
| Tier | Latency Target | Redundancy | Fee Multiplier |
|---|---|---|---|
| Bronze | p95 60s | 1 verification | 1.0 |
| Silver | p95 10s | 2 verification | 1.5 |
| Gold | p95 2s | 3 verification + audit | 2.5 |
SLA tiers for canonical workloads.
Example: MATMUL_4096_FP32
| Field | Value |
|---|---|
| WorkloadID | MATMUL_4096_FP32 |
| Statement | Matrix multiply , dimensions 40964096, FP32, relative error , |
| Public Inputs | Hash(A), Hash(B), Hash(C), , reference kernel ID, timestamp |
| Private Inputs | , , , intermediate products |
| Verified | Correctness, Bounds, Freshness |
| Verifier Complexity | , 256MB, 500KB proof (receipt; the output artifact is 64MB and is delivered separately from the receipt) |
| L0 Requirement | L0-A minimum; L0-B+ for Gold tier |
| VerifyPrice Target | s (Laptop-Class) |
Example canonical workload: MATMUL_4096_FP32. The acceptance bound is relative, scaled by : FP32 accumulation over terms typically incurs \sim$$10^{-4}– relative rounding error with standard BLAS kernels, so an absolute bound of would fail honest provers. The reference kernel ID pins the arithmetic order so heterogeneous provers produce comparable transcripts; see the determinism note in §19: Layer 4: Truth & Work.
Why this matters: Without this template, “canonical workload” risks becoming “whatever the prover says it is.” With it, workloads are precisely specified (anyone can implement a conforming prover/verifier), auditable (claims can be checked against the template), and tradable (markets can price and exchange standardized units).
PoUW Design Patterns
Layer 4 doesn’t pick a single consensus recipe. It supports several proof-of-useful-work patterns, as long as they satisfy:
-
Open admission: commodity participants can join.
-
Unpredictable leader election: no one can cheaply bias the lottery.
-
Useful work binding: you can’t precompute offline or reuse stale work.
-
Proof quality & anti-spam: junk proofs can’t flood the system without penalty.
Pattern 1: Hash-gated useful work
-
Miners perform a cheap hash race; crossing a threshold gives short-lived eligibility.
-
To produce a valid block, the miner attaches a PoUW artifact seeded from header randomness.
Pattern 2: Proof-first selection
-
Provers race to produce useful-work proofs and post them to a mempool.
-
A lightweight mechanism selects which proofs get included and rewarded.
Both patterns are compatible with MatMul-PoUW, Inference-PoUW, and hybrid schemes.
PoUW Security Properties (Must Hold)
P1. Precomputation Resistance: Proofs seeded by unpredictable randomness; valid only for blocks after seed.
P2. Grinding Resistance: Attacker with hashrate gains at most rewards, where .
P3. Network Advantage Bound: p95 propagation delay s for proof announcements.
P4. Spam Resistance: Deposit expected verification cost; 100% slash for invalid proofs.
P5. Cartel Detection: Top-1 share ; Top-5 share ; entry latency days.
P6. Useful Work Binding: of proofs independently re-verified by random auditors.
Research Maturity Labels:
| Component | Maturity | Status |
|---|---|---|
| MatMul-PoUW verification asymmetry | Experimental | Conjecture (arXiv); not yet deployed |
| Inference PoUW (Proof-of-Logits) | Pilot | Tested in limited networks |
| Full ZKML for large models | Research | Not yet practical at production scale |
| Hash-gated useful work (Pattern 1) | Experimental | Devnet demonstrations |
| Proof-first selection (Pattern 2) | Experimental | Early implementations |
PoUW component research maturity.
Implication for service claims: The “AI Money” label is an analytical lens on verified-compute demand, not an instrument classification. As components mature from Experimental to Production, inference Work Credits can receive stronger assurance grades and smaller service haircuts. Their issuance remains separate from the base-asset monetary constitution (see Tier taxonomy in §21: The Modular Stack).
| Verification Type | Service-Claim Eligibility |
|---|---|
| Full cryptographic proof (Tier A) | Full eligibility for high-assurance Work Credit issuance |
| Probabilistic audit with explicit error bounds (Tier B) | Discounted or limited eligibility |
| TEE/vendor attestation only (Tier C) | Service market only; not eligible for high-assurance capacity claims |
| Unverified output | No eligibility |
Verification type and typed service-claim eligibility.
Proof Factories and PaL
Most developers don’t want to think about circuits; they want to say:
“Prove that this computation happened, then get me a receipt and pay whoever did the proving.”
Layer 4 provides this via:
-
Proof factories: infrastructure clusters specialized in generating proofs.
-
Proofs-as-a-Library (PaL): an SDK that compiles high-level claims into proofs.
PaL exposes interfaces like:
prove_compute(f, inputs, policy)
prove_provenance(asset_id, lineage)
prove_settlement(tx, corridor_policy)
Under the hood, PaL:
-
Maps the request to a canonical workload .
-
Selects suitable proof systems and hardware profiles.
-
Submits the job via neutral routers to proof factories.
-
Returns a PIDL receipt plus a proof artifact.
VerifyPrice Observatory
Verification asymmetry is a design goal; VerifyPrice turns it into a dashboard.
The VerifyPrice observatory continuously measures:
-
p50/p95 verify times,
-
estimated energy per verification,
-
failure rates and mismatch rates,
-
diversity metrics (how many independent verifiers are actually checking).
Reference Verifier Classes:
| Class | Hardware Spec | Use Case |
|---|---|---|
| Laptop-Class | 4-core CPU, 16GB RAM, SSD, no GPU | Baseline for “anyone can verify” |
| Mobile-Class | ARM SoC, 8GB RAM, flash | Edge verification, IoT |
| Server-Class | 32-core CPU, 128GB RAM, optional GPU | High-throughput |
Reference verifier classes for VerifyPrice measurement.
VerifyPrice Measurement Specification
VerifyPrice is a service-assurance KPI and one necessary input to the base asset’s conditional monetary test. It determines whether Work Credits retain a verifiable service proposition; it does not make them monetary. That requires a rigorous measurement harness, not just a dashboard slogan.
Cost Vector Definition:
For each workload and verifier class , VerifyPrice is a 5-tuple:
Where:
-
: median and 95th-percentile verification time (seconds)
-
: energy per verification (Joules, measured via hardware counters or watt-meter)
-
: peak memory (MB)
-
: failure rate (timeouts, invalid proof rejections, crashes)
USD cost is derived: , where is the reference energy price (USD 0.10/kWh) and is opportunity cost (USD 0.001/s), both published quarterly.
Verifier Implementations:
| Requirement | Rationale |
|---|---|
| 2 independent implementations per workload tier | Prevents single-implementation bugs from corrupting measurements |
| Open-source, reproducible builds | Anyone can audit and rebuild |
| Deterministic output | Same proof same result, always |
| Versioned and tagged | Measurements tied to specific verifier version |
Verifier implementation requirements.
Sampling Methodology:
-
Random selection: Proofs selected uniformly at random from recent submissions (not cherry-picked).
-
Stratified by region/profile: Measurements cover 10 regions and 3 hardware profiles per workload.
-
Adversarial corpus: 10% of test proofs are malformed or worst-case (max witness size, pathological inputs) to measure failure handling.
-
Continuous measurement: Not periodic snapshots; rolling 24-hour windows published hourly.
Adversarial Conditions:
| Condition | How Tested |
|---|---|
| Network latency | 200ms RTT injected for proof fetch |
| Packet loss | 5% random packet loss during verification |
| Worst-case proof size | Max allowed witness for workload class |
| Malformed proofs | 10% of test corpus intentionally invalid |
| Resource exhaustion | Verification under 80% memory pressure |
Adversarial conditions for VerifyPrice testing.
Reproducibility Standard:
-
Benchmark harness: Open-source, versioned, deterministic. Anyone can run the same tests.
-
Signed results: Each measurement batch is signed by 2 independent measurement operators.
-
Divergence alerts: If independent operators diverge by 5%, investigation triggered.
-
Archived raw data: All proof samples and timing logs archived for 1 year.
Why this matters: Without this spec, “VerifyPrice observatory” is an oracle claim. With it, VerifyPrice becomes reproducible consensus—any skeptic can run the harness, check the measurements, and falsify the dashboard if it’s wrong.
Physical VerifyPrice SLOs (Constitutional):
| Workload | Metric | Target (Laptop) | Sev-1 Threshold |
|---|---|---|---|
| PROOF_ | s | s for 7 days | |
| MATMUL_4096 | s | s for 7 days | |
| INFER_LM_7B | s | s for 7 days | |
| INFER_LM_70B | aspirational; not currently achievable | n/a until ZKML matures | |
| All | failure rate | for 7 days |
Constitutional VerifyPrice targets. The 70B-inference row is deliberately marked aspirational: current ZKML systems prove quantized transformer inference at small scale with substantial overhead, and no production system verifies a 70B-parameter forward pass on laptop-class hardware within seconds. Placing it in the constitutional set as though it were deliverable would trip Red Line 1 on publication day. It remains in the registry as the commercial destination; it is not a constitutional SLO until the maturity gate of §19: Layer 4: Truth & Work lifts for its component.
VerifyPrice in Practice
At the North-Star level, VerifyPrice answers a simple allocator question:
“If I hold this asset for a cycle, does one unit still buy at least as much verification as it used to?”
We care about VerifyPrice in three dimensions, designed to avoid circular reasoning:
Physical VerifyPrice SLOs (Constitutional)
These are non-negotiable targets, measured in real resources on reference hardware. They are exogenous to token price. Whether the token rallies or dumps, these targets must hold. If verification takes 30s on a laptop, the “anyone can verify” promise is broken.
What “Exogenous” Does and Does Not Cover
Exogeneity to token price is the property we need here, and it is the one being claimed: the target must not be redefined because the market moved.
It is not exogeneity to everything. Measuring in real resources on reference hardware makes these SLOs dependent on two conditions a state can adjust—whether unprivileged reference hardware remains obtainable, and what power costs at the edge and at the prover. Both are policy surfaces (§4: Threat Model).
The consequence is that Red Line 1, the thesis’s hinge, is externally triggerable. This is monitored upstream via sovereign optionality (§14: Layer 0: Verifiable Machines & Energy) and Red Line 13 rather than left to be discovered at the hinge. §14: Layer 0: Verifiable Machines & Energy separates the verification-side exposure (hardware obtainability) from the proving-side exposure (bulk energy), which behave differently and should not be conflated.
Protocol Affordability SLOs (Operational)
These measure whether verification remains affordable as a fraction of typical transaction costs:
-
Target: AffordabilityRatio for all workload classes.
-
Settlement: Verification cost of median transaction value.
Token-Quoted VerifyPrice (Market Signal, Not Target)
Token-quoted VerifyPrice is a useful market signal, but not a constitutional target:
Token price is endogenous. Making this a target creates circular reasoning. The protocol commits to physical SLOs and affordability ratios. Token-quoted metrics are dashboards for market participants, not governance constraints.
SLO Hierarchy:
| Level | What It Measures | Who Enforces | Consequence of Breach |
|---|---|---|---|
| Physical (Constitutional) | Real-world verification cost | Protocol governance | Sev-1; remediation required |
| Affordability (Operational) | Verification as % of fees | Fee policy | Fee schedule review |
| Token-quoted (Market) | Purchasing power signal | Market participants | Informational only |
Physical VerifyPrice: Auditing the Infrastructure Behind a Workload
Note on terminology: §19: Layer 4: Truth & Work uses “Physical VerifyPrice SLOs” to mean the real-resource cost of verifying a proof or compute claim on reference hardware, as distinct from token-quoted metrics. This section introduces a related but distinct metric: the cost of verifying the physical infrastructure claims (energy, hardware, jurisdiction) behind that proof or compute claim, i.e., the Facility Capacity Receipts introduced in §14: Layer 0: Verifiable Machines & Energy.
VerifyPrice tells us whether a proof or compute claim is cheap to check. Physical VerifyPrice tells us whether the physical claims behind that proof are cheap to audit. A Work Credit cannot be high-assurance if verifying the proof takes seconds but verifying the facility, hardware profile, energy receipt, and jurisdictional risk takes months of trust-the-vendor diligence.
Concretely, Physical VerifyPrice asks:
-
Can an allocator verify the facility’s claimed energy profile?
-
Can an auditor verify outage and curtailment history?
-
Can the network verify that the hardware profile was not silently substituted?
-
Can a user verify that compute was not routed through a sanctioned or coerced jurisdiction?
Physical VerifyPrice
The time, cost, and confidence required to verify the physical infrastructure claims (energy, hardware, jurisdiction) behind a unit of verified work.
For each facility profile, the stack should publish p50/p95 time and cost to verify FCR claims, sampling frequency, third-party challenge success rates, and unresolved discrepancy counts. If Physical VerifyPrice rises above threshold, credits from that facility receive risk haircuts or issuance caps (§22: Layer 6: Governance & Telemetry). This metric is formalized alongside the VerifyPrice model in Appendix A: Formal Model of Verification Asymmetry & VerifyPrice.
Layer-4 Stress Tests
Layer 4 passes its SoV audition if it survives several adversarial scenarios:
Circuit bloat.
Can we detect when proofs become too expensive to verify? Is there a migration path to leaner circuits?
Prover cartel.
Can neutral routers and SLA/slashing mechanisms prevent a small set of proof factories from monopolizing high-value workloads?
Proof system break / new attack.
Can we deprecate a proof system, rotate to alternatives, and quarantine affected Work Credits?
If Layer 4 remains cheap to verify, open to participate, and instrumented enough to handle change, then Proofs and Compute deservedly move closer to “monetary primitive” rather than “platform feature.”
Minimum Viable Layer-4 Economy
Canonical Workload Starter Set:
| WorkloadID | Description | VerifyPrice Target | WC Tier |
|---|---|---|---|
PROOF_2^20 | Generic ZK proof | s | A (full) |
MATMUL_4096_FP32 | Matrix multiply 40964096 | s | A (full) |
INFER_LM_7B_512TOK | 7B param inference | s | B (discounted) |
PROVENANCE_MEDIA | Media provenance chain | s | A (full) |
SETTLE_ATOMIC | Atomic swap settlement | s | A (full) |
Canonical workload starter set. WC tiers shown are the ceiling each workload can reach once its verification component is Production-mature; current effective tier is the lower of the ceiling and the maturity-gated tier (§19: Layer 4: Truth & Work tier rules).
Maturity gate.
No workload may issue Tier A (full-weight, pristine-collateral) Work Credits while the maturity label of its verification component (§19: Layer 4: Truth & Work) is Experimental or Pilot. Until a component reaches Production, its workloads issue at Tier B or below regardless of the mathematical tier their proof type would support. As of this writing that gate is binding on every PoUW-based row in the starter set: MatMul-PoUW verification asymmetry is a conjecture, inference PoUW is pilot-stage, and pricing pristine collateral over either would define a AAA rating on an instrument whose proof system has not survived production. The gate lifts only when the maturity table lifts, and the maturity table is moved by deployment evidence, not by argument.
Tier Rules for Work Credit Issuance:
| Tier | Verification Type | WC Weight | Collateral Grade |
|---|---|---|---|
| Tier A | Full cryptographic proof (ZK-SNARK/STARK) and component at Production maturity | 1.0 | Pristine |
| Tier B | Probabilistic verification (audited transcripts) | 0.6 | Standard |
| Tier C | Attestation-backed (TEE + sampling) | 0.3 | Discounted |
Work Credit issuance tiers.
Fee + Burn + Slashing Logic:
-
70% of fee to prover (reward)
-
20% burned (supply reduction)
-
10% to protocol treasury (security budget)
The 20% burn share here is a deliberately conservative variant of the 30–50% reference band in §6: The Triad and the Monetary Candidate: this worked example also funds a protocol treasury, so the three shares are set to sum to 100%. The reference band remains the design target; a 20% burn is the harder case for the value-capture claim, not the easier one.
Fee formula (reference):
Tip: hover a heading to reveal its permalink symbol for copying.