A future-time rejection is transient
ProvedBitcoinBlock.futureTime_transientIf validate S b now = futureTime, then for every the outcome is not futureTime, and it equals the outcome at clock : the block is not permanently invalidated by its time.
Deprecated. Superseded by BitcoinBlockV2.futureTime_transient (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.futureTime_transient (S : ChainState) (b : BitcoinSer.Block) (now : Int)
(h : BitcoinBlock.validate S b now = .futureTime) (now' : Int)
(hle : (b.header.time : Int) ≤ now' + MAX_FUTURE_BLOCK_TIME) :
BitcoinBlock.validate S b now' ≠ .futureTime ∧
BitcoinBlock.validate S b now' = BitcoinBlock.validate S b ((b.header.time : Int) - MAX_FUTURE_BLOCK_TIME) := 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.futureTime_transient
Binders and hypotheses
- : a chain state; : a serialized block; .
- Hypothesis : .
- : a second clock value.
- Hypothesis : (time cast to ; =
MAX_FUTURE_BLOCK_TIME).
Conclusion
A conjunction of two claims:
- ;
- , an equality of outcomes (the four-constructor type accept/invalid/futureTime/missingPrev, where accept carries a state and an undo list, so equality of accept outcomes includes equality of those payloads).
What says
By the structure of (it returns the header outcome unchanged unless that is accept), holds exactly when the header passes proof-of-work, has equal to the tip hash of , has bits (modulo ) equal to the required bits of , has time strictly above the tip's median-time-past, and .
What the conclusion says, unfolded
depends on the clock only in the single test "" of , which yields futureTime when true. With the clock that test reads , which is false. With the clock , under the test is false as well. In both cases evaluation continues with the version-floor test (invalid if the version is below , or while , or respectively is ), then (invalid if false), (invalid if false), then (invalid if none, else ). Claim 1 asserts the outcome at clock is not futureTime; claim 2 asserts it coincides with the outcome at the boundary clock .
Edge cases silently included
and together force but no such hypothesis is stated; may be far in the future; the block's transactions enter only through the later checks; is an unbounded natural cast to , so may be negative; if is unsatisfiable for the given and the statement is vacuous.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.