Expand description
Pure bounded-retention and floor-transition algebra.
Structs§
- Floor
Computation - Reproducible outputs of the participant physical-floor rule.
- Mandatory
Capacity - Results of the mandatory-class debt and absolute-fit formulas.
- Recovery
Transfer - Exact post-transfer values for a recovery transaction of charge
r. - Recovery
Transfer Error - Invalid or unrepresentable recovery-charge transfer.
- Resource
Vector - One entry/byte resource vector before arithmetic widening.
- Wide
Resource Vector - One entry/byte resource vector after widening to the protocol arithmetic domain.
Enums§
- Baseline
Error - Invalid inputs to the retained-baseline formula.
- Resource
Dimension - Resource dimension, in the contract’s entry-before-byte precedence.
Functions§
- floor_
transition - Computes the participant physical-floor rule.
- mandatory_
capacity - Computes the mandatory-class debt and its two required checks.
- no_
edge_ legal - Checks the only legal no-edge state: zero debt plus full-K fit.
- recovery_
transfer - Transfers an exact recovery record charge from
K_remainingintoB. - retained_
baseline - Computes
B = S + ((I - C) × marker_max)componentwise. - zero_
debt_ admission - Checks the zero-debt ordinary-admission invariant
B + Q + K <= cap. - zero_
debt_ capacity_ failure - Returns the first failed component of
B + Q + K <= cap.