Core block subsidy equals the halving schedule
ProvedBitcoinSubsidy.core_eq_specFor every block height , the transcription of GetBlockSubsidy and the declarative halving schedule agree:
On the left, returns when and otherwise right-shifts by that many bits; on the right the schedule divides by the corresponding power of two.
The statement covers every height, including those where the source's halvings >= 64 guard fires, where it asserts that the division already yields zero. It is the bridge that lets the remaining results be proved about the schedule and transferred to the implementation.
import Definitions.Def_BitcoinSubsidy
theorem BitcoinSubsidy.core_eq_spec (height : Nat) : coreSubsidy height = specSubsidy height := 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: theorem BitcoinSubsidy.core_eq_spec
Binders. One universally quantified variable: a natural number (named "height"). There are no hypotheses; the claim is asserted for every natural number without exception, including and arbitrarily large .
Statement. For every ,
an equality of natural numbers, where the two sides unfold as follows. Write (truncating natural-number division by the constant ). The left-hand side is
where with , and the second branch is literally a right shift of the natural number by bits (which on natural numbers equals truncating division by ). The right-hand side is the single-formula value with no case split,
again with truncating natural-number division and natural-number exponentiation .
What is literally asserted. For every , the case-split definition and the case-free formula produce the same natural number. In particular, this asserts that for every with (i.e. ), the value equals , and that for every with the right shift by equals the truncated quotient by . At both sides are by their definitions.
The file supplies only the statement; the proof is left as a placeholder.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.