Theorem 3.2.4 — every optimal matching is ordered
ProvedSupermodularity.Matching.isOrdered_of_optimal_of_strictlySupermodularSuppose is supermodular in the joint variable on , and, for each fixed firm , is strictly
supermodular in on . Then every optimal matching is ordered
(IsOrderedMatching): any two of the quality vectors it assigns are comparable.
Topkis, Theorem 3.2.4 (p. 100): "If is supermodular in on and is strictly supermodular in on for each , then each optimal matching is ordered." The proof exchanges the assignments of any two unordered firms via and derives a strict profit improvement from the two supermodularity hypotheses together, contradicting optimality.
Formalization Note. The two supermodularity hypotheses are genuinely different in kind (joint, non-strict, in ; and per-firm, strict, in alone) and are kept as two separate hypotheses rather than merged into one strengthened statement, matching the book's own remark that this pair is equivalent to " has increasing differences in and is strictly supermodular in " by Theorems 2.6.1–2.6.2.
import Mathlib import Definitions.Def_Supermodularity_Monotonicity_SupermodularOn import Definitions.Def_Supermodularity_Matching_StrictlySupermodularOn import Definitions.Def_Supermodularity_Matching_IsOptimalMatching import Definitions.Def_Supermodularity_Matching_IsOrderedMatching
namespace Supermodularity.Matching
theorem isOrdered_of_optimal_of_strictlySupermodular
{n m : ℕ} {X : Fin n → Type*} [∀ i, Lattice (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)
(hfx : ∀ j : Fin m, StrictlySupermodularOn (fun x : ∀ i, X i => f x j) Set.univ) :
∀ x : Fin m → ∀ i, X i, IsOptimalMatching f x → IsOrderedMatching x := by sorry
end Supermodularity.Matching
Read-back
What the Lean code literally says, in plain math · claude-opus-5
This statement concerns an assignment problem in which "matchings" are each a full profile of coordinates, and asserts that optimality forces them to be ordered.
The setting. Fix natural numbers and . For each index (the finite type ) we are given a type equipped with a lattice structure, so that any two elements have a meet and a join . The product type consists of profiles ; it inherits the componentwise lattice order. We are also given a function
written , assigning a real number to each profile and each index .
The two hypotheses.
-
hf: the uncurried function , viewed as a function on the product type , satisfiesSupermodularOnon the setSet.univ, i.e. on all of . The lattice structure on this product is the componentwise one, where the second factor carries its own lattice order (the linear order on ), so meets and joins here act on the profile coordinate and the index coordinate simultaneously. The precise content ofSupermodularOnis whatever the imported definitionSupermodularity.Monotonicity.SupermodularOnstates — it is not unfolded here, and the read-back cannot report its exact inequality; it is a predicate taking a function into and a subset of its domain. -
hfx: for every index , the section , as a function on alone, satisfiesStrictlySupermodularOnonSet.univ, i.e. on all of . Again the exact inequality is supplied by the imported definitionSupermodularity.Matching.StrictlySupermodularOnand is not visible in this statement.
Note that hf and hfx are separate assumptions: supermodularity of the joint function in together, and strict supermodularity of each fixed- slice in .
The conclusion. For every function
that is, every assignment of a full profile to each index , the implication
holds. The meanings of IsOptimalMatching and IsOrderedMatching are supplied by the imported definitions Supermodularity.Matching.IsOptimalMatching and Supermodularity.Matching.IsOrderedMatching; this statement does not unfold them. What is visible is their signatures: optimality is a predicate of both and , while orderedness is a predicate of alone, making no reference to — so whatever notion of "ordered" is meant, it is a property of the assignment intrinsic to the lattice orders on the , not relative to the objective.
Direction and strength. The implication runs one way only: optimal ordered. Nothing is asserted about ordered matchings being optimal, about existence of an optimal matching, or about uniqueness. The universal quantifier ranges over all functions , with no injectivity, surjectivity or distinctness requirement — so an that sends every index to the same profile is included, as is any repeating profiles arbitrarily.
Degenerate cases. The statement is proved by sorry and so carries no verified content; what follows is what it asserts in the boundary cases its hypotheses permit. If , then is empty: hypothesis hfx is vacuously true, the domain of hf is empty (so hf is a supermodularity claim over an empty set, presumably vacuous), and there is exactly one function , the empty one — the claim then reduces to whether that empty assignment, if optimal, is ordered, entirely as IsOptimalMatching and IsOrderedMatching decide on the empty index set. If , there is a single index and no pair of distinct indices to compare, so the orderedness conclusion is whatever IsOrderedMatching says about a one-element family. If , the product is a singleton (the empty profile) — a one-element lattice — so every is the constant map to that single point; hfx then demands strict supermodularity of a function on a one-point lattice, which, depending on how StrictlySupermodularOn is phrased, may be either automatic or unsatisfiable, and if unsatisfiable the whole theorem is vacuous for . If any individual is empty, then is empty, hence (for ) no function exists and the conclusion holds vacuously, while hf and hfx are claims about functions on empty domains. If some is a singleton, the lattice operations there are trivial and the strictness in hfx may again be impossible to witness on comparable-only pairs, which would make the hypotheses unsatisfiable and the theorem vacuously true; nothing in the statement rules this out. No division, subtraction in , integration, or supremum over a possibly-empty or unbounded set appears at this level, so no Lean default or junk value is invoked by the statement itself — though such values may occur inside the four imported definitions, which are opaque here. Finally, because the strength of SupermodularOn and StrictlySupermodularOn is not exhibited, this read-back cannot report whether the hypotheses are jointly satisfiable by any at all: if they are not, the theorem asserts nothing.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.