Terminal verification
The final fold ends the chain of recursive openings. Its input is the preceding fold's witness-opening claim and a binding to that witness's inner A images. The prover sends a small folded response and the verifier checks the remaining relations directly.
The terminal reveals that response, the ring opening partials, and the inner images. It does not send the complete original application table. These are still witness-derived values, so this path provides no zero-knowledge guarantee.
The terminal input and response
Start with one polynomial in one source group, one response chunk, and a base-field opening over . Block has digit vector , with positions and inner digits . The public inner matrix is , where is the number of positions and the inner digit count. Its images are
The predecessor binds the canonical coefficients of every but the last, and a digest of the last, before its ring-switch and sumcheck challenges. The terminal response must contain exactly those bytes. Thus the prover cannot choose a new collection of inner images after seeing the opening point handed to the terminal.
Let be the position weights derived from that opening point, and the inner digit recomposition weights. The honest prover computes one ring partial per block,
and binds the partials before sampling the terminal sparse challenges . Its folded response is
The terminal response contains and every and except those of the last live block, which the verifier recomputes (see Recompute the last block). For live blocks, there are opening rings, inner-image rings, and response rings, all with coefficients, plus two 32-byte digests. The schedule fixes these counts, including the convention for a partial final block.
The response uses recomposed ring values for and . There is no need to commit their digits through another B or D matrix, because the verifier reads them here.
The two ring checks
The terminal physical relation contains
consistency | A
The consistency check is
Substituting (2) and (3) shows why it holds for an honest response. Both sides are the same weighted sum of source digits. The A check is
For two blocks, the right side is . By (1), it equals , which is the left side by (3). The same response appears in both checks. Checking only (4) would leave its connection to the inner commitment unverified; checking only (5) would leave the opening partials unverified.
The verifier checks (4) and (5) in the native ring. There is no outer commitment value, B block, D block, polynomial-modulus quotient sumcheck, or Stage 1, Stage 2, or Stage 3 at this level.
Recover the scalar opening
The ring checks connect the response to the opening partials, but they have not yet compared those partials with the incoming scalar claim. Let be the opening point's block weights and its coefficient weights. These weights come from the query. They are different from the random fold challenges .
Writing for coefficient of , the remaining base-field check is
For a two-block example, first compute the coefficient pairings and . The verifier checks . This is the original table evaluation regrouped by block, as derived in field to ring reduction.
For openings over a proper extension , the terminal first replays extension-opening reduction. It obtains a transformed opening point, a terminal claim , and a known factor . The direct trace check then has the form
Here recovers the extension-valued coefficient pairing from the canonical subfield representation at the transformed point. It is the extension version of the inner sum in (6). Position multiplication in (4) uses the corresponding canonical ring multipliers.
The verifier computes these pairings in compact subfield coordinates. The inverse subfield map checks the complete canonical image, so malformed coordinates cannot be silently projected into a valid value. The preparation also supports the scheduled opening basis.
Extension-opening reduction has its own sumcheck. Therefore, eliminating the terminal's ring-switch and range sumchecks does not mean that every terminal proof is entirely sumcheck-free.
Response bounds and canonical decoding
Equations (4) and (5) are linear. Their binding argument also needs the response to be short. The schedule selects one of two mutually exclusive admission routes:
- A Linf route carries a coefficient cap . The verifier checks integer representatives with .
- An L2 route carries no independent Linf cap. After checking the signed 16 bit representation, canonical Golomb Rice encoding, and scheduled payload budget, the verifier checks the exact integer square sum
The right side is the schedule's squared-norm cap. This sum is not computed modulo the base field.
Response coefficients use the schedule-selected Golomb Rice encoding. The
decoder checks the exact coordinate count, a bounded maximum quotient,
canonical zero padding in the final byte, and the absence of trailing bytes.
The maximum quotient is derived from on a Linf route and from the
signed 16 bit wire bound on an L2 route. Both routes enforce the scheduled
payload budget and reject values outside [-32768,32767] before ring
arithmetic. The signed 16 bit representation is not an independent
schedule-selected Linf security cap on an L2 route.
The prover may search over the bounded fold-response nonces to find a response that satisfies these bounds. The verifier reconstructs the selected challenge and checks the bounds itself. It does not trust the prover's acceptance decision.
Replay order
The verifier performs the terminal handoff in this order:
- Check that the scheduled terminal geometry matches the remaining witness and that there is no deferred setup-prefix opening.
- Absorb the incoming inner-image binding and check that the response's coefficients match it exactly. The last block's digest was already absorbed by the predecessor.
- Prepare the incoming point and claim. Replay extension-opening reduction when required.
- Absorb every but the last and the digest of the last, consume the terminal fold-response nonce, and derive the sparse . The L2 route also uses its scheduled challenge admission rule.
- Absorb the remaining response bytes, decode , and check its bounds.
- Recover the last and from the ring relations, compare them with their digests, and check the scalar opening.
The predecessor's binding fixes before the terminal query is known, and step 4 fixes before is known. Both ordering constraints matter to the reduction. Once these direct checks pass, there is no further witness-opening claim.
Sparse products and the A matrix
To evaluate the sums involving , the verifier uses checked negacyclic shifts. A challenge monomial shifts coefficients and changes the sign of coefficients that wrap past . It does not require a dense quadratic ring product.
Challenge coefficients 1, -1, 2, and -2 use addition,
subtraction, and doubling. Other admitted coefficients use exact field
scaling. These sparse products multiply the opening partials and inner images
on the left of (4) and right of (5).
The A relation multiplies the decoded response by the prepared public matrix. The schedule audit selects an exact CRT and NTT capability before proof replay. It uses the base prime profile when the signed accumulation bound fits and adds the signed 16 bit tail only when required. A schedule whose bound exceeds every supported exact profile is invalid.
Prepared matrix views are derived from the coefficient setup and are never serialized. These execution choices compute the same relation (5).
Recompute the last block
Checks (4) and (5) are linear in the last block, and its coefficient is the last fold challenge . That challenge is a short nonzero ring element, so it is invertible for Akita's fields, as rings and fields explains. Each relation therefore has exactly one solution for the last block:
Once (4) and (5) hold, the last block carries no further information, so the response omits it. For live blocks the response carries opening rings and inner-image rings. This removes field elements from the proof at the cost of two 32-byte digests.
The omitted values still have to be fixed before the challenges that test them. An honest prover knows before the predecessor's challenges and before the . The digests enforce this order:
- The predecessor sends the coefficients of every but the last, followed by a digest of the last block's coefficients.
- The terminal prover sends every but the last, followed by a digest of the last, before the are sampled.
The verifier computes the last block from (10), hashes its canonical coefficients, and compares the result with the digest it received earlier. The scalar opening check (7) or (8) then runs over all , including the recovered one.
Why omitting the block is sound
Computing (10) alone proves nothing, because it makes (4) and (5) true by construction. The digest comparison carries the argument. It reduces soundness to that of the full-response protocol, which sends the last block as fields in place of each digest, in the classical random-oracle model.
Model the digest as a random oracle with 256-bit output. The encoding of a block is injective, since the field encoding is canonical and the schedule fixes the block length. Take a prover that makes at most digest queries, counting the verifier's. When it sends a digest , one of two cases holds.
- It has already queried some block with . A reduction sends as the full message of the full-response protocol, at the same position. If the verifier later recovers and accepts, then , so unless collides. The recovered block satisfies (4), (5), and the opening check, so the block sent earlier does too.
- It has queried no preimage of . To be accepted, a later query must hit , and each fresh query does so with probability . This case covers a prover that sends a digest without knowing any opening.
There are two digests. A union bound over collisions and over hits on an unopened digest gives
where is the soundness error of the full-response protocol with the same parameters. Outside the bad event the reduction supplies the same blocks at the same positions and sees the same challenge distribution.
Three points keep the argument exact:
- Each digest is absorbed where the full block was. The digest precedes the predecessor's ring-switch and sumcheck challenges. The digest precedes the terminal fold-response nonce and the . The terminal does not absorb again after recovering it, because the earlier digest already binds it in the same transcript.
- Statement (11) compares the two interactive protocols. A digest absorbs different bytes than a block does, so the Fiat-Shamir challenges differ from those of a full-response proof. Expanding a proof does not yield a full-response proof.
- The argument records the prover's oracle queries, so it is a classical one. This page makes no claim for a prover with quantum access to .
Akita's security claim is about the Fiat-Shamir protocol, whose extractor builds a tree of accepting transcripts that fork after shared prefixes (security). Forks that share a prefix share its digests, but each fork recovers its own block from its own challenges and response. Two such forks recover the same block unless collides among the queries made while the tree is built. Outside that event, the extractor for the full-response protocol applies unchanged. The digest therefore adds a collision term over all queries to the Fiat-Shamir bound. Bound (11) does not carry over as written. A prover that restores state can expose a fresh digest in every prefix it queries, so the hit term grows with the number of queries times the number of digests exposed, not with . Both terms remain negligible at 256 bits.
The last fold challenge is always a unit, so an honest proof is never rejected for a missing inverse. For Akita's fields splits into irreducible factors . A nonzero challenge with coefficients bounded by that vanished modulo one factor would give a nonzero integer resultant with that divides and whose size is at most . Hence every such challenge is a unit once . For this needs only .
The verifier does not trust its own division either. It inverts by multiplying with the conjugate , whose product with lies in a ring of half the degree, and repeats until one field inversion remains. It then multiplies each candidate from (10) back by the sparse challenge and checks (4) and (5) as written. A wrong inverse can therefore only cause a rejection. A challenge with no inverse is rejected. Recovery adds the inversion and dense multiplications by to the existing NTT product .
In the code, terminal_sent_blocks in
crates/akita-params/src/layout/tail_segments.rs sets the layout,
crates/akita-verifier/src/terminal/direct.rs recovers the block, and
crates/akita-algebra/src/ring/cyclotomic/inverse.rs inverts the challenge.
No-panic boundary and code map
The verifier validates payload lengths, ring dimensions, coordinate counts,
sparse support, NTT capability, and matrix ranges before the hot kernels index
prepared state. Malformed terminal bytes return AkitaError or
SerializationError.
crates/akita-verifier/src/fold/terminal.rschecks the predecessor binding and replays the terminal transcript.crates/akita-verifier/src/terminal/direct.rschecks the decoded response norm, ring relations, and opening trace.crates/akita-verifier/src/terminal/ntt.rsevaluates the exact A product.crates/akita-params/src/golomb_rice.rsimplements the codec and its canonical-decoding tests.crates/akita-params/src/layout/tail_segments.rsdefines the response layout and transcript segments, andcrates/akita-types/src/proof/tail_segments.rsdefines the wire response.crates/akita-types/src/field_reduction.rsimplements subfield recovery.crates/akita-pcs/tests/transcript_hardening.rssupplies end-to-end regression coverage for terminal binding and proof tampering.