Retained Boolean circuit for Keccak-p[1600, 24] #
This module constructs Keccak-p[1600, 24] directly over the De Morgan basis and compiles that
fixed circuit with the retained native circuit evaluator. State bit 64 * (5 * y + x) + z is
exactly FIPS 202's A[x, y, z]. The circuit reuses the executable theta, rho, pi, chi,
iota, and round-constant semantics from CslibFrontier.Crypto.Primitives.Hash.Keccak; it does
not introduce a second permutation or sponge specification.
keccakP1600Compiler retains its multitape machine and the evaluator's exact input, output, time,
workspace, and complete generated transition-table staticBits coordinates. The general theorem
NativeCompiler.staticBits_eq_descLen identifies that last coordinate with the first-order
description length. No finite-function or truth-table compiler is used.
Main definitions #
Cslib.Crypto.Keccak.stateBits,stateOfBits: the FIPS flat 1600-bit state view.Cslib.Crypto.Keccak.keccakP1600Circuit: the direct 24-round De Morgan circuit.Cslib.Crypto.Keccak.keccakP1600Compiler: its retained native multitape compiler.
Main results #
Cslib.Crypto.Keccak.stateBits_stateOfBits,stateOfBits_stateBits: the flat view is exact.Cslib.Crypto.Keccak.eval_keccakP1600Circuit: all-input refinement to the executable Keccak-p[1600, 24] semantics.
Flatten a Keccak-p[1600] lane array in FIPS 202 order: lane 5 * y + x, then its 64
least-significant-bit-first coordinates.
Reconstruct the Keccak-p[1600] lane array from its FIPS 202 flat bit order.
Flattening a reconstructed Keccak state returns every input bit.
Reconstructing a flattened Keccak state returns every lane.
The direct De Morgan circuit for the 24 FIPS 202 Keccak-p[1600] rounds.
The fixed direct circuit agrees on every 1600-bit input with the executable FIPS 202 Keccak-p[1600, 24] permutation.
Retained native multitape compiler for executable Keccak-p[1600, 24]. Its computes, time,
workspace, inputBits, outputBits, and staticBits fields are the concrete certificate.