The genesis block passes CheckBlock
ProvedBitcoinBlock.genesis_checkBlockcheckBlock genesisBlock = true: the mainnet genesis block satisfies the proof of work, the merkle root (its single txid), the size and structure rules, CheckTransaction and the sigop bound. Proved by kernel evaluation of SHA-256d.
Deprecated. Superseded by BitcoinBlockV2.genesis_checkBlock (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.genesis_checkBlock : BitcoinBlock.checkBlock BitcoinSer.genesisBlock = true := by sorry
Read-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.genesis_checkBlock
Binders and hypotheses
None. This is a closed statement about one fixed block.
Conclusion
The block
, where is the transaction with version , a single input whose prevout is , scriptSig the fixed 77-byte constant beginning ("The Times 03/Jan/2009 …"), sequence and empty witness; a single output of value with the fixed 67-byte scriptPubKey beginning and ending ; and lock time . has version , prevBlock zero bytes, merkleRoot (double-SHA256 of its witness-free serialization), time , bits , nonce .
The check, unfolded
is the Boolean conjunction of:
- proof of work: the little-endian value of the double-SHA256 of the 80-byte serialized header is the target decoded from (mantissa , exponent , i.e. ), with that compact word not negative, not zero, not overflowing, and the target ;
- the merkle root computed from — a single hash, returned unchanged — equals the header's merkleRoot, and the mutated flag is false;
- the transaction list is non-empty;
- ;
- ;
- the first transaction is a coinbase (one input with null prevout);
- no later transaction is a coinbase (vacuous);
- : non-empty inputs and outputs; serialized size ; the output value and the running sum in range; distinct prevouts (one input); coinbase scriptSig length in (it is );
- , where the count scans the scriptSig and the scriptPubKey adding per
OP_CHECKSIG/OP_CHECKSIGVERIFYand perOP_CHECKMULTISIG/OP_CHECKMULTISIGVERIFY(parsing stops at a malformed push).
The statement asserts the whole conjunction evaluates to true for these concrete constants, which includes the concrete SHA-256 computations.
Edge cases silently included
None beyond the concrete constants; the claim is decidable by computation.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.