Documentation

Complexitylib.Metacomplexity.MCSP.Magnification.AntiChecker.Counter.HashCell.Circuit.Affine.Internal

Affine hash-cell circuit fragments -- proof internals #

theorem Complexity.GapMCSP.Magnification.AntiCheckerLemma.HashCellAffineCircuit.length_compileRaw_internal (beta : PositiveRationalScale) (arity prefixLength rangeWidth : ) :
List.length (compileRaw beta arity prefixLength rangeWidth) = gateCount beta arity rangeWidth
theorem Complexity.GapMCSP.Magnification.AntiCheckerLemma.HashCellAffineCircuit.outputWire_eq_internal (beta : PositiveRationalScale) (arity prefixLength rangeWidth : ) :
outputWire beta arity prefixLength rangeWidth = hashCellPredicateInputWidth beta arity prefixLength rangeWidth + List.length (compileRaw beta arity prefixLength rangeWidth) - 1
theorem Complexity.GapMCSP.Magnification.AntiCheckerLemma.HashCellAffineCircuit.eval?_compileRaw_internal (beta : PositiveRationalScale) {arity prefixLength rangeWidth : } (input : BitString (counterInputWidth arity prefixLength)) (seed : BitString (PairwiseIndependentHash.affineSeedWidth (counterSurvivorPowerWidth beta arity) rangeWidth)) (witness : BitString (counterSurvivorPowerWidth beta arity)) :
(compileRaw beta arity prefixLength rangeWidth).eval? (BitString.toList (Fin.append (hashCellPublicInput beta input seed) witness)) = some (decide (PairwiseIndependentHash.affineEval seed witness = fun (x : Fin rangeWidth) => false))