Cost estimates for configured binary execution #
These estimates combine arithmetic work with the cost of adapting the selected storage carrier to the proof model. They influence static backend selection only, and no semantic theorem depends on their calibration.
Representation-aware cost decoration #
Estimated cost of adapting one packed public value to and from the proof model.
The count scales with operation arity because every operand is decoded and one result is packed. The constants are calibration priors, and a direct carrier kernel sets this cost to zero.
Byte and machine-word carriers are charged one unit per adapted value, on the same approximate
100 ns scale as the tiny-format arithmetic estimates. Machine-word carriers decode with
BitVec.ofNatLT from the stored range proof and pack with one narrowing conversion. The two-word
carrier is charged two units, because above 64 bits each conversion builds or splits an
arbitrary-precision natural number.
The limb carrier converts each value through LimbArray.toNat and LimbArray.ofNat, one
arbitrary-precision operation per limb, so its adapter cost grows with the limb count. Accepted
wide-limb paths read the stored fields themselves and count any integer conversions in their
work estimate. Declined calls use the model adapter for the exact fallback.
Instances For
Attach the selected storage carrier and model-adapter cost to an arithmetic estimate.
Instances For
Attach byte storage to a direct table estimate, since a warm lookup converts no model.
Instances For
Generic kernel estimate for the selected carrier.
Instances For
Estimate for the structural route entered by the executable dispatcher.