The ByRatio comparison is the comparison of exact fractions
ProvedBitcoinReplacement.feeRateQ_lt_iffFor transactions : in iff FeeRate.lt a.feeRate b.feeRate.
import Definitions.Def_BitcoinReplacement
theorem BitcoinReplacement.feeRateQ_lt_iff (a b : BitcoinReplacement.Tx) :
a.feeRateQ < b.feeRateQ ↔ BitcoinReplacement.FeeRate.lt a.feeRate b.feeRate := 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: BitcoinReplacement.feeRateQ_lt_iff
Setting (unfolded from the preamble). All declarations live in a namespace BitcoinReplacement. A transaction is a pair of natural numbers together with a proof that ; may be . A fee rate is a pair of natural numbers with a proof that . The fee rate attached to a transaction , , is the pair . For fee rates and , the relation is defined as the natural-number inequality . For a transaction , is the exact rational quotient (well defined since ).
Statement. For every pair of transactions and (no further hypotheses), the following are equivalent:
The left side is the strict order on rational numbers; the right side is , a strict cross-multiplied comparison of natural numbers with no rounding.
Edge cases. Both sides are comparisons of a transaction with another arbitrary transaction, including (both sides then false) and the case (left side holds iff , and likewise on the right since ). No fee rate parameter and no replacement appears in this statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.