Protocol & Wire Specifications (specs/01–11) 协议与线格式规范(specs/01–11)

Eleven self-contained specifications defining the relation, security proofs, serving semantics, commitment schemes, and the FPN2 binary container format. For the unified technical report, see FlashProve-Next.pdf. 11 份独立规范,覆盖证明陈述、安全性证明、线上推理语义、承诺构造与 FPN2 二进制容器线格式。英文完整论文见 FlashProve-Next.pdf。

SPEC 01 · RELATION

Versioned Reply Relation单次 API 回复的证明陈述定义

Defines public inputs, hidden witnesses, canonical request encoding, immutable tensor wiring, stratified cost pools, stop sequences, constrained decoding, and multi-turn state anchors.定义公开输入与私有见证、请求规范化编码、跨算子张量连接、输入/生成分层抽查池、停止符、结构化输出约束与多轮对话状态绑定。

specs/01-relation.md →
SPEC 02 · SOUNDNESS

Lifetime Knowledge Soundness全生命周期防伪造与抽查次数计算

Straight-line witness extraction, round-by-round analysis across 2^64 adaptive queries, cubic extension field 𝔽p3 bounds, and the exact k = 105 / 315 sample-count formula.给出无需重绕的见证提取器、覆盖 2^64 次查询的逐轮可靠性分析(抗自适应反复试算)、三次扩域 𝔽p3 门槛,以及每池 105 次(共 315 次)抽查公式。

specs/02-soundness.md →
SPEC 03 · ZERO KNOWLEDGE

Zero Knowledge & Explicit Leakage严格零知识与显式信息边界

Proves that nothing leaks beyond standard API outputs: fixed-size proof containers, scheduled release times, salted roots for empty replies, causal multi-round masking, and key isolation.证明除标准 API 原本返回的信息外不泄露任何模型与上下文机密:定长证明容器、固定释放时刻、多轮盲化均匀性与采样密钥轮换隔离。

specs/03-zero-knowledge.md →
SPEC 04 · COMPLETENESS

Completeness & Failure State Machine诚实推理零误拒与故障处理状态机

Separates algebraic retries, zero numerical refusal under kernel rounding contracts (including adversarial prompts), and secret-independent outage handling.将代数极点重试、满足算子舍入规则下的零浮点误拒(含对抗提示词),以及与秘密无关的资源故障公开窗口机制清晰分开。

specs/04-completeness.md →
SPEC 05 · COMPUTATION

Production Engines, Architectures & APIs主流模型架构、加速机制与商业 API 兼容

Covers Dense GQA, Sparse MoE, MLA, chunked linear attention, continuous batching, prefix caching, TP/PP/EP, P/D disaggregation, coupled speculative decoding, and OpenAI/Anthropic API semantics (including minimal byte-DFA JSON Schema constrained decoding).覆盖稠密 GQA、稀疏 MoE、MLA、分块线性注意力,以及连续批处理、前缀缓存、多卡并行、P/D 分离、耦合投机解码与商业 API 语义(含零词表膨胀的 JSON Schema 字节自动机约束解码)。

specs/05-computation-model.md →
SPEC 06 · TOLERANCE

Rounding Contracts, Sampling & Cheat Catalog算子浮点误差传播、分桶采样与防作弊目录

Per-operator rounding bounds, per-GEMM observation granularity, sort-free bucketed temperature/top-p sampling, sublayer lineage accounting, and sparse-attention bounds.给出逐算子浮点误差传播公式、为何必须在每个矩阵乘处观测、免排序分桶温度/top-p 随机采样,以及防填零跳层的子层追责规则。

specs/06-tolerance-and-cheats.md →
SPEC 07 · ASSUMPTIONS & LEAN

Assumptions, Dependency Graph & Lean Map全部前提假设、依赖关系图与 Lean 对应表

Lists cryptographic, numerical, engineering, and scope assumptions with a full dependency graph, showing soundness depends only on cryptographic premises and protocol obligations alongside the 28-module Lean 4 inventory.列出全部密码学、数值、工程与边界前提及其依赖图,说明防伪造仅依赖密码学假设与协议实现义务,并给出 28 个 Lean 4 模块清单。

specs/07-assumptions-and-lean.md →
SPEC 08 · RELATED WORK

Comparison with Existing Verification Approaches与现有可验证推理方案的对比

Compares full zkML (ZKML, zkLLM, zkGPT, FlashProve), sampled proofs (SLP), activation fingerprints (TOPLOC, DiFR, FSSL, SVIP), refereed delegation (Verde), and GPU TEEs.系统对比全量零知识证明(含 FlashProve)、抽样层证明、需要权重的激活指纹重算、多副本乐观仲裁以及硬件可信执行环境(TEE)。

specs/08-related-work.md →
SPEC 09 · MODEL COMMITMENT

One-Time Weight Commitment永不耗尽的一次性模型权重承诺

Reed–Solomon weight and radius matrices with salted column Merkle trees, single-transcript setup proof, in-circuit hidden configuration opening, and unbounded lifetime zero knowledge.解释静态码字为何在公开打开下会耗尽,并给出一次性纠错码权重承诺、设置证明以及电路内秘密读取列与模型配置的完整构造。

specs/09-model-commitment.md →
SPEC 10 · TRACE COMMITMENT

Long-Context KV History Commitment长上下文 KV 历史承诺与长度分档

Replaces expensive per-key Merkle openings in long-context attention with a per-request matrix commitment, fixed-point lift, hidden-selection sumcheck, and power-of-two length tiers.解决长上下文注意力逐键哈希带来的电路膨胀:通过每请求 KV 矩阵承诺、定点提升、隐藏选择归约与 2 的幂公开长度档位将规模压回单机可跑范围。

specs/10-trace-commitment.md →
SPEC 11 · WIRE FORMAT

FPN2 Fixed-Size Binary Wire FormatFPN2 定长二进制容器线格式

Normative binary container layout, BLAKE2b-512 transcript schedule, registered profiles, Relations 1–6 (folded GKR/AIR/vec/vec-bound/LLM), reject codes, and golden test vectors implemented identically in Rust, detached Python, and Lean 4.定义定长零填充二进制容器、BLAKE2b-512 原始字节转录、配置档注册表、关系 1–6、规范拒绝码与黄金测试向量,由 Rust、脱钩 Python 与 Lean 4 逐字节互通实现。

specs/11-wire-format.md →