Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.2.1 — loose labor market: increasing optimal hiring and an increasing optimal matching

Proved
Supermodularity.Matching.argmax_increasing_and_matching_exists_of_loose

by mikedeng1 · Sep 19, 2026 · Mathlib 0df444a (Lean v4.33.1)

comparative-staticsmatchingorder-theorysupermodularity

Suppose the labor market is loose, so each firm's hiring decision is an unconstrained maximization over the whole product lattice ∏i=1nXi\prod_{i=1}^n X_i∏i=1n​Xi​ of worker qualities, and suppose the profit function f(x,j)f(x,j)f(x,j) is supermodular in the joint variable (x,j)(x,j)(x,j) on (∏i=1nXi)×{1,…,m}\bigl(\prod_{i=1}^n X_i\bigr) \times \{1,\dots,m\}(∏i=1n​Xi​)×{1,…,m} (with {1,…,m}\{1,\dots,m\}{1,…,m} ordered as a chain, so SupermodularOn applies to the product lattice). Then:

  1. the set of profit-maximizing hiring decisions for firm jjj,
arg max⁡x∈∏iXif(x,j),\operatorname*{arg\,max}_{x \in \prod_i X_i} f(x,j),x∈∏i​Xi​argmax​f(x,j),

is increasing in jjj with respect to the induced set ordering ⊑\sqsubseteq⊑ (InducedSetOrder): for j≤kj \le kj≤k, argmax⁡(⋅,j)⊑argmax⁡(⋅,k)\operatorname{argmax}(\cdot,j) \sqsubseteq \operatorname{argmax}(\cdot,k)argmax(⋅,j)⊑argmax(⋅,k); and 2. there exists an increasing optimal matching (IsIncreasingMatching and IsOptimalMatching).

Topkis, Theorem 3.2.1 (p. 98): "If the labor market is loose and f(x,j)f(x,j)f(x,j) is supermodular in (x,j)(x,j)(x,j) on ×i=1nXi×{1,…,m}\times_{i=1}^n X_i \times \{1,\dots,m\}×i=1n​Xi​×{1,…,m}, then the set of optimal hiring decisions argmax⁡x∈×i=1nXif(x,j)\operatorname{argmax}_{x\in\times_{i=1}^n X_i} f(x,j)argmaxx∈×i=1n​Xi​​f(x,j) for each firm jjj is increasing with respect to the induced set ordering ⊑\sqsubseteq⊑ in jjj and there exists an increasing optimal matching." The theorem follows from Theorem 2.8.2 and Theorem 2.8.3 of Chapter 2 (mission II of this series), applied firm by firm.

Formalization Note. A loose labor market is exactly one in which each firm's hiring problem is the unconstrained maximization max⁡x∈∏iXif(x,j)\max_{x\in\prod_i X_i} f(x,j)maxx∈∏i​Xi​​f(x,j) (Topkis, p. 96, equation (3.2.2)); this is represented structurally by using the general, unconstrained IsOptimalMatching predicate (which already maximizes over every matching with no supply constraint) rather than by adding a separate Boolean "loose" hypothesis. Existence of a nonempty maximizer for each firm, needed for the induced-set-order conclusion to be meaningful, follows from [∀ i, Fintype (X i)] and [∀ i, Nonempty (X i)] and need not be assumed separately.

Preamble
import Mathlib
import Definitions.Def_Supermodularity_Lattices_InducedSetOrder
import Definitions.Def_Supermodularity_Monotonicity_SupermodularOn
import Definitions.Def_Supermodularity_Matching_IsOptimalMatching
import Definitions.Def_Supermodularity_Matching_IsIncreasingMatching
Formal statement
namespace Supermodularity.Matching

theorem argmax_increasing_and_matching_exists_of_loose
    {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)
    (hloose : ∀ x : Fin m → ∀ i, X i,
        IsOptimalMatching f x ↔ ∀ j : Fin m, ∀ y : ∀ i, X i, f y j ≤ f (x j) j) :
    (∀ ⦃j k : Fin m⦄, j ≤ k →
        Supermodularity.Lattices.InducedSetOrder
          {x : ∀ i, X i | ∀ y : ∀ i, X i, f y j ≤ f x j}
          {x : ∀ i, X i | ∀ y : ∀ i, X i, f y k ≤ f x k}) ∧
      ∃ x : Fin m → ∀ i, X i, IsIncreasingMatching x ∧ IsOptimalMatching f x := by sorry

end Supermodularity.Matching
Source
Topkis, Supermodularity and Complementarity, Princeton University Press, 2011, p. 98, Theorem 3.2.1
Read-back

What the Lean code literally says, in plain math · claude-opus-5

This statement concerns a finite family of coordinate types indexed by i∈Fin ni \in \mathrm{Fin}\,ni∈Finn, written XiX_iXi​, each of which is assumed to carry a lattice structure, to be a finite type, and to be nonempty. Here nnn and mmm are arbitrary natural numbers. The product ∏iXi\prod_{i} X_i∏i​Xi​ (the type of dependent functions assigning to each index iii an element of XiX_iXi​) plays the role of the space of "actions", and Fin m\mathrm{Fin}\,mFinm — the type of naturals below mmm, carrying its standard linear order — plays the role of a parameter space. The data is a function

f:(∏iXi)×Fin m→R,f : \Big(\prod_{i} X_i\Big) \times \mathrm{Fin}\,m \to \mathbb{R},f:(i∏​Xi​)×Finm→R,

written f(x,j)f(x, j)f(x,j), and the sole hypothesis is that the uncurried map p↦f(p1,p2)p \mapsto f(p_1, p_2)p↦f(p1​,p2​) is supermodular on the full set Set.univ of the product type (∏iXi)×Fin m\big(\prod_i X_i\big) \times \mathrm{Fin}\,m(∏i​Xi​)×Finm, in the sense of the imported predicate SupermodularOn. The precise content of supermodularity — including which lattice structure on the product (∏iXi)×Fin m\big(\prod_i X_i\big) \times \mathrm{Fin}\,m(∏i​Xi​)×Finm is used, and whether the "on a set" qualifier imposes any restriction when the set is everything — is supplied by that external definition and is not visible in this statement; the reader must consult it. Note in particular that no monotonicity, continuity, or strictness assumption on fff appears beyond this one hypothesis, and no assumption is made that m>0m > 0m>0 or n>0n > 0n>0.

The conclusion is a conjunction of two claims.

First claim. For every pair of parameters j,k∈Fin mj, k \in \mathrm{Fin}\,mj,k∈Finm with j≤kj \le kj≤k (the hypothesis j≤kj \le kj≤k is stated with strictly implicit binders for jjj and kkk, so they are inferred from usage; the quantification is universal over all such pairs), the relation InducedSetOrder holds between the two subsets of ∏iXi\prod_i X_i∏i​Xi​

Aj  =  { x  ∣  ∀ y∈∏iXi,  f(y,j)≤f(x,j) },Ak  =  { x  ∣  ∀ y,  f(y,k)≤f(x,k) },A_j \;=\; \Big\{\, x \;\Big|\; \forall\, y \in \textstyle\prod_i X_i,\; f(y, j) \le f(x, j) \,\Big\}, \qquad A_k \;=\; \Big\{\, x \;\Big|\; \forall\, y,\; f(y, k) \le f(x, k) \,\Big\},Aj​={x​∀y∈∏i​Xi​,f(y,j)≤f(x,j)},Ak​={x​∀y,f(y,k)≤f(x,k)},

in that order — AjA_jAj​ first, AkA_kAk​ second. Each AjA_jAj​ is the set of global maximizers of f(⋅,j)f(\cdot, j)f(⋅,j) over the whole product type: xxx belongs to AjA_jAj​ exactly when f(y,j)≤f(x,j)f(y,j) \le f(x,j)f(y,j)≤f(x,j) for every yyy, with a non-strict inequality, so ties are all included. The meaning of InducedSetOrder — which is presumably some order on subsets of a lattice, such as the strong set order — is given by the imported definition and is not determined by anything in this statement; it is asserted as a relation between these two sets and nothing more. The claim is stated only for j≤kj \le kj≤k, so it says nothing directly about incomparable or reversed pairs (in Fin m\mathrm{Fin}\,mFinm the order is linear, so every pair is comparable in one direction).

Second claim. There exists a function

x:Fin m→∏iXi,x : \mathrm{Fin}\,m \to \prod_i X_i,x:Finm→i∏​Xi​,

assigning to each parameter jjj an action x(j)x(j)x(j), such that two predicates hold simultaneously: IsIncreasingMatching x, and IsOptimalMatching f x. Both predicates come from imported definitions; their content — presumably that j↦x(j)j \mapsto x(j)j↦x(j) is monotone in some order, and that each x(j)x(j)x(j) maximizes f(⋅,j)f(\cdot, j)f(⋅,j) — is not spelled out here and must be read from those definitions. In particular, the statement asserts only existence, not uniqueness, and gives no construction; note also that IsOptimalMatching takes fff as an argument while IsIncreasingMatching does not.

Regarding degenerate cases permitted by the hypotheses. If m=0m = 0m=0, then Fin m\mathrm{Fin}\,mFinm is empty: the first claim is vacuously true (there are no pairs j≤kj \le kj≤k), and the second claim requires only the existence of the unique function out of the empty type, which always exists provided IsIncreasingMatching and IsOptimalMatching hold vacuously of it — so the theorem carries no information in that case beyond whatever those definitions assert of the empty function. Likewise the supermodularity hypothesis on a product with an empty factor is a statement about an empty set of points and may be vacuously satisfiable, meaning the entire theorem could be non-vacuous only when m≥1m \ge 1m≥1. If n=0n = 0n=0, the product ∏iXi\prod_i X_i∏i​Xi​ is a one-element type (the empty dependent function), the instance assumptions Lattice, Fintype, Nonempty are vacuously supplied for all iii, and each AjA_jAj​ is the whole one-element type since the unique point trivially maximizes; the second claim then holds for the unique constant function, subject to the imported predicates. If m=1m = 1m=1, the first claim reduces to the single pair j=k=0j = k = 0j=k=0, so it asserts InducedSetOrder of A0A_0A0​ with itself — whether that is automatic depends entirely on the imported definition. The finiteness and nonemptiness of each XiX_iXi​ make ∏iXi\prod_i X_i∏i​Xi​ a nonempty finite type whenever nnn is arbitrary, so each AjA_jAj​ is nonempty (a maximum of a real-valued function on a nonempty finite type is attained); nonetheless the statement does not assert this, and no real-number junk values, division, natural subtraction, or infinite suprema occur anywhere in the statement. Finally, the theorem is stated with sorry as its proof, so as written it carries no proof obligation discharged here.

Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me