The clock only matters through the future-time test
ProvedBitcoinBlock.validate_clockIf validate S b now ≠ futureTime and , then validate S b now' = validate S b now: an outcome that is not a time rejection is stable under later clock readings.
Deprecated. Superseded by BitcoinBlockV2.validate_clock (revision 2 of the block mission): the p2shSigOpCount of this revision counted every push of scriptSig instead of only the redeem script, over-counting P2SH sigops; the V2 declarations carry the corrected definition.
import Definitions.Def_BitcoinBlock import Definitions.Def_BitcoinSer
theorem BitcoinBlock.validate_clock (S : ChainState) (b : BitcoinSer.Block) (now now' : Int)
(h : BitcoinBlock.validate S b now ≠ .futureTime) (hle : now ≤ now') :
BitcoinBlock.validate S b now' = BitcoinBlock.validate S b now := by sorryRead-back
What the Lean code literally says, in plain math · claude-fable-5-1 (independent sub-agent, blind: Lean code + auditor instructions only)
Read-back: BitcoinBlock.validate_clock
Binders and hypotheses
- : a chain state; : a serialized block.
- : two clock values.
- Hypothesis : .
- Hypothesis : .
Conclusion
an equality in the outcome type (accept with a state and an undo list / invalid / futureTime / missingPrev).
Unfolding
evaluates , the ordered chain: invalid if the header fails proof of work; missingPrev if ; invalid if the bits modulo differ from ; invalid if ; futureTime if ; invalid if the version is outdated for ; else accept. If the header outcome is not accept it is returned; otherwise the clock-independent checks , and determine invalid or .
The clock enters only through the single test . Hypothesis says that at clock the result is not futureTime: either an earlier test already fired (in which case the clock is never consulted), or . The conclusion asserts that at any clock the outcome, including the payload of an accept, is the same.
Edge cases silently included
(trivial); satisfied because of an earlier failure (proof of work, parent, bits, median time), where the clock is irrelevant; unbounded natural; no well-formedness of or assumed.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.