Theorem 3.2.3 — existence of an increasing optimal matching, and tight-market optimality
ProvedSupermodularity.Matching.exists_increasing_optimal_matching_and_tight_optimalitySuppose is supermodular in the joint variable on — with no hypothesis that the labor market is loose. Then:
- there exists an increasing optimal matching (
IsIncreasingMatchingandIsOptimalMatching); and - if, in addition, the labor market is tight (every worker type has exactly available
workers,
Fintype.card (X i) = mfor every ), then every tight, increasing matching is at least as profitable as every other tight matching :
Topkis, Theorem 3.2.3 (p. 99–100): "If is supermodular in on , then there exists an increasing optimal matching of workers to firms. If, in addition, the labor market is tight, then each increasing matching is optimal." The proof (unlike Theorem 3.2.1's, which reduces to per-firm optimization) is a direct, non-constructive argument: it picks an optimal matching that lexicographically minimizes the failure of the increasing property, and shows that if it is not already increasing, swapping two firms' assignments via produces a strictly more profitable matching — contradicting optimality, by the supermodularity of .
Formalization Note. Part (2) is stated as a direct profit comparison — "every tight
increasing matching beats every tight matching" — rather than by reusing the general,
unconstrained IsOptimalMatching f x predicate for x, since in a tight labor market the
feasible matchings are exactly the tight ones (IsTightMatching), and the book's "each
increasing matching is optimal" is a claim about optimality among those feasible tight
matchings, not among every function unconstrained. This is
the mission's goal theorem: it needs no loose-labor-market hypothesis, and its harder,
non-constructive proof is why Theorem 3.2.1 (which does assume a loose market) is kept as a
separate, easier milestone rather than being subsumed.
Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.
import Mathlib import Definitions.Def_Supermodularity_Monotonicity_SupermodularOn import Definitions.Def_Supermodularity_Matching_IsOptimalMatching import Definitions.Def_Supermodularity_Matching_IsIncreasingMatching import Definitions.Def_Supermodularity_Matching_IsTightMatching
namespace Supermodularity.Matching
theorem exists_increasing_optimal_matching_and_tight_optimality
{n m : ℕ} {X : Fin n → Type*} [∀ i, Lattice (X i)] [∀ i, Fintype (X i)]
[∀ i, Nonempty (X i)]
(f : (∀ i, X i) → Fin m → ℝ)
(hf : Supermodularity.Monotonicity.SupermodularOn
(fun p : (∀ i, X i) × Fin m => f p.1 p.2) Set.univ) :
(∃ x : Fin m → ∀ i, X i, IsIncreasingMatching x ∧ IsOptimalMatching f x) ∧
((∀ i, Fintype.card (X i) = m) →
∀ x : Fin m → ∀ i, X i, IsTightMatching x → IsIncreasingMatching x →
∀ y : Fin m → ∀ i, X i, IsTightMatching y → ∑ j, f (y j) j ≤ ∑ j, f (x j) j) := by sorry
end Supermodularity.Matching
Read-back
What the Lean code literally says, in plain math · claude-opus-5
For a family of types indexed by (written Fin n), each equipped with a lattice order, a finite-type structure, and a proof of nonemptiness, and for a natural number , let
denote the dependent product (the type of functions assigning to each index an element ), carried with the componentwise lattice structure, and let Fin m carry its usual linear (hence lattice) order. The numbers and and the family are implicit arguments, universally quantified. Given a function
the single hypothesis is that the uncurried map on the product lattice satisfies the predicate SupermodularOn relative to the set , i.e. the whole ambient type . The predicates SupermodularOn, IsIncreasingMatching, IsOptimalMatching and IsTightMatching are imported by name from other files in this bundle; their defining conditions are not part of the code under audit, so nothing about their content is asserted or assumed here beyond what their names are attached to — in particular the read-back below treats each as an unanalyzed predicate, and any of them may in principle hold universally, hold of nothing, or be non-trivial.
Under that one hypothesis the statement asserts a conjunction of two claims.
First claim (existence). There exists a function
assigning to each index a point of the product , such that satisfies IsIncreasingMatching and satisfies IsOptimalMatching. Note that IsIncreasingMatching is applied to alone, with no reference to , while IsOptimalMatching takes as an argument. The claim is bare existence, not uniqueness.
Second claim (conditional optimality of tight increasing matchings). If every component type has exactly elements, i.e. for all , then: for every satisfying IsTightMatching and IsIncreasingMatching, and for every satisfying IsTightMatching, one has
The inequality is non-strict, the sums are finite sums over of real numbers, and is required only to be tight, not increasing. The quantified here is a fresh variable: the statement does not say that the produced by the first claim is tight, nor that the of the second claim is optimal in the sense of IsOptimalMatching; the two conjuncts share no variable. The cardinality condition is stated as an implication hypothesis, so the whole second conjunct carries no content when it fails.
Degenerate cases permitted by the hypotheses. If , the index set of the family is empty, all three instance assumptions on the are vacuous, is the one-element type of functions out of the empty index type, and the cardinality condition is vacuously true for every ; the second claim then compares sums over the unique matchings available, and the first claim asserts the existence of a (unique) satisfying the two predicates. If , then is empty: there is exactly one function , both sums are empty and equal , so the displayed inequality reduces to , while the first claim still demands that this empty matching satisfy IsIncreasingMatching and IsOptimalMatching; moreover, when and , the hypothesis contradicts Nonempty (X i), so the second claim's antecedent is unsatisfiable and that conjunct is vacuously true. More generally, whenever some has cardinality different from — including every case where the have unequal cardinalities — the second conjunct is vacuous. The Nonempty instances force for all , so each is a nonempty finite lattice; a one-element is allowed, and forces for the second conjunct to apply. The hypothesis is imposed on , which is nonempty here in all cases since is empty exactly when ; for the hypothesis is a supermodularity assertion about the empty type and may be vacuously satisfiable. No division, natural-number subtraction, integral, or supremum occurs in the statement, so no junk values from those total operations arise; the only quantities formed are finite sums of real numbers, which are on the empty index range. Finally, if any of the four imported predicates is satisfiable by nothing, the corresponding universally quantified part becomes vacuous while the existential first conjunct becomes unprovable; the statement as written takes no position on which.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.