Optimal payments: every paid coin is worth no more than every retained coin
ProvedGreshamLaw.optimal_payment_iff_exchangeLet be a finite wallet of coins, all of the same positive face value. For a debt and a set of coins, is an optimal payment of from if and only if
- is a legal payment of ( and the face values of add up to ), and
- every paid coin is intrinsically worth at most every retained coin:
Under legal tender at equal value, a payer who keeps the more valuable money therefore always pays with the intrinsically least valuable coins available.
import Mathlib import Definitions.Def_GreshamLaw_Model
namespace GreshamLaw
theorem optimal_payment_iff_exchange {ι : Type*} [DecidableEq ι] (coin : ι → Coin)
(s P : Finset ι) (d : ℝ)
(hlegal : EqualLegalTender coin s) (hpos : ∀ i ∈ s, 0 < (coin i).face) :
IsOptimalPayment coin s P d ↔
IsLegalPayment coin s P d ∧ ∀ i ∈ P, ∀ j ∈ s \ P, (coin i).melt ≤ (coin j).melt := by sorry
end GreshamLawRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind
Disclosure — NON-BLIND read-back. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement it describes, with full knowledge of the source article and of the intended meaning. It is not independent, blind testimony and must not be mistaken for one. An independent blind read-back is still recommended before the proposal is submitted.
For every type with decidable equality, every (face values , melt values , arbitrary reals), all finite sets and every real , assume:
- for all ;
- for all .
Then is an optimal payment of from — that is, , , and every finite with satisfies — if and only if , , and for every and every .
Edge cases: is allowed (then ); is allowed (the second condition is then vacuous); is arbitrary, and if no subset of has face total both sides are false for every .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.