Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Theoretical Computer Science

183 missions · 115 completed

The mathematical foundations of computation: which problems can be solved, by what algorithms, and at what cost in time, space, or communication. Distinguished by its emphasis on rigor and unconditional lower bounds, it spans computational complexity, algorithm design, automata and computability, cryptography, and the analysis of Boolean functions.

Missions

Open68Completed115All183
🏆Completed
CombinatoricsOptimization·Captain: moutei

Primal-Dual Online Algorithms III: Set-Cover Approximation via CertificatesTextbook

Motivation

Set cover is the standard worked example of the primal-dual method, and Chapter 2 of Buchbinder's thesis uses it that way: it is where the machinery of §2.1 is first turned on a concrete NP-hard problem. Two analyses appear. The greedy algorithm, analysed by dual fitting, buys the set with the best cost-per-newly-covered-element ratio and charges the price to the elements it covers; the resulting element prices form an infeasible dual that becomes feasible after scaling by HnH_nHn​. The primal-dual algorithm instead raises the price of an uncovered element until some set's constraint goes tight, buys that set, and repeats; the resulting dual is feasible, and each bought set is paid for by elements of frequency at most fff, giving an fff-approximation.

Both analyses have the same shape, and it is the shape that matters for the rest of the series: the algorithm never sees the optimum. It maintains a dual solution, and the approximation ratio falls out of comparing the primal it built against the dual it accumulated.

Setting

An instance consists of a finite type EEE of elements, a finite type SSS indexing available sets, an assignment s↦As⊆Es \mapsto A_s \subseteq Es↦As​⊆E, and a nonnegative cost c:S→Rc : S \to \mathbb{R}c:S→R. Every element is assumed to lie in at least one available set; the source leaves this implicit, and without it no cover exists and the approximation statements are vacuous. The covering LP and its packing dual are

(P)min⁡∑scsxs  s.t. ∑s:e∈Asxs ≥ 1  (∀e∈E),x≥0,(P)\quad \min \sum_{s} c_s x_s \ \text{ s.t. } \sum_{s : e \in A_s} x_s \ \ge\ 1 \ \ (\forall e \in E), \quad x \ge 0,(P)mins∑​cs​xs​  s.t. s:e∈As​∑​xs​ ≥ 1  (∀e∈E),x≥0, (D)max⁡∑eye  s.t. ∑e∈Asye ≤ cs  (∀s∈S),y≥0.(D)\quad \max \sum_{e} y_e \ \text{ s.t. } \sum_{e \in A_s} y_e \ \le\ c_s \ \ (\forall s \in S), \quad y \ge 0.(D)maxe∑​ye​  s.t. e∈As​∑​ye​ ≤ cs​  (∀s∈S),y≥0.

The frequency of an element is the number of sets containing it, and fff denotes the maximum frequency over all elements.

The two standing assumptions — nonnegative costs, and every element lying in some available set — are carried by a bundled SetCoverInstance, not passed as loose hypotheses. Every source-facing statement in the mission takes such an instance and reads those facts off its fields, so none of them can be instantiated at data violating either. The two indicator lemmas are the exceptions and are labelled as generalized assisting results: one has no cost function in scope at all, and the other's hypothesis that a given CCC covers is strictly stronger than coverability of the family.

Costs are permitted to be zero and the ground type is permitted to be empty. No Nonempty E hypothesis appears anywhere; when EEE is empty, f=0f = 0f=0 and the fff-approximation bound reads cost(C)≤0\mathrm{cost}(C) \le 0cost(C)≤0, which the certificate's tightness clause forces to be 0≤00 \le 00≤0 rather than anything false.

Formalization targets

The results are stated about certificates, not about executable algorithms. This is the central modelling decision of the mission and it is deliberate: the mathematical content of the source's proofs is entirely a statement about the invariants the output satisfies, and separating that from the question of whether a particular procedure produces such output keeps each half provable on its own.

A primal-dual certificate is a pair (C,y)(C, y)(C,y) where C⊆SC \subseteq SC⊆S covers EEE, yyy is dual-feasible, and every s∈Cs \in Cs∈C has a tight dual constraint, ∑e∈Asye=cs\sum_{e \in A_s} y_e = c_s∑e∈As​​ye​=cs​.

Goal — the primal-dual fff-approximation

For any primal-dual certificate (C,y)(C,y)(C,y) and any fractional cover xxx,

∑s∈Ccs ≤ f⋅∑s∈Scsxs.\sum_{s \in C} c_s \ \le\ f \cdot \sum_{s \in S} c_s x_s .s∈C∑​cs​ ≤ f⋅s∈S∑​cs​xs​.

Since this holds against every fractional cover, it holds in particular against an optimal one, so the cover CCC costs at most fff times the fractional optimum and a fortiori at most fff times the integral optimum.

The double-counting step

The one substantive step of the goal is split out as its own target: for a primal-dual certificate,

∑s∈Ccs ≤ f⋅∑e∈Eye.\sum_{s \in C} c_s \ \le\ f \cdot \sum_{e \in E} y_e .s∈C∑​cs​ ≤ f⋅e∈E∑​ye​.

Tightness rewrites the cover's cost as a double sum over chosen sets and their elements; exchanging the order groups it by element, each charged at most fff times. With this and weak duality, the goal is two lines.

The greedy bound

A greedy certificate at ratio ρ\rhoρ is a cover CCC and a nonnegative yyy with ∑s∈Ccs=∑eye\sum_{s \in C} c_s = \sum_{e} y_e∑s∈C​cs​=∑e​ye​ and ∑e∈Asye≤ρ cs\sum_{e \in A_s} y_e \le \rho\, c_s∑e∈As​​ye​≤ρcs​ for every sss. For such a certificate and any fractional cover xxx,

∑s∈Ccs ≤ ρ⋅∑scsxs.\sum_{s \in C} c_s \ \le\ \rho \cdot \sum_{s} c_s x_s .s∈C∑​cs​ ≤ ρ⋅s∑​cs​xs​.

Instantiating ρ=Hn\rho = H_nρ=Hn​ is what recovers the source's greedy guarantee; the harmonic bound itself is already in Mathlib.

Set-cover weak duality and LP attainment

Every dual packing is bounded by every fractional cover, ∑eye≤∑scsxs\sum_e y_e \le \sum_s c_s x_s∑e​ye​≤∑s​cs​xs​; the fractional optimum is at most the integral optimum; and both optima are attained, not merely bounded below. Attainment of the fractional optimum is a genuine linear-programming fact and is the hardest supporting item in the mission.

Significance

This is where the series first converts a dual-feasibility invariant into an approximation ratio on a concrete combinatorial problem, and the two certificate predicates are reused verbatim by the online covering missions later in the series. Set cover approximation has, as far as we can determine, no prior formalization in Mathlib or in any public Lean library: there is no set-cover problem statement, no greedy analysis, and no fff-approximation result to build on.

Difficulty

The two certificate bounds are finite-summation arguments of moderate length — the work is in a double-counting step that reindexes a sum over chosen sets into a sum over elements, weighted by frequency. Attainment of the fractional optimum is different in kind: it needs a compactness or vertex argument about the covering polytope and is the item most likely to need real work. Zero-cost sets are permitted throughout, so any later algorithm definition that divides by a cost must handle that case explicitly.

Formalization scope

Definitions cover §2.2 of the source, excluding §2.2.2 (randomized rounding), which is deferred to a separate mission because its expected-cost and failure-probability analysis is measure-theoretic and shares no infrastructure with the deterministic results.

Two theorems are not in this mission: that the greedy algorithm produces a greedy certificate, and that the primal-dual algorithm produces a primal-dual certificate. Those require defining the algorithms and proving termination and coverage, and are planned as a second wave. Until that wave lands, the source's Theorems 2.4 and 2.6 should not be described as fully formalized — what this mission establishes is the certificate-to-ratio half of each.

Selected references

  • Niv Buchbinder, Designing Competitive Online Algorithms via a Primal-Dual Approach, PhD thesis, Tel Aviv University, 2008, §2.2, pp. 10–14. https://www.tau.ac.il/~nivb/download/phd-thsis.pdf
  • Vijay V. Vazirani, Approximation Algorithms, Springer, 2001, Chapters 2 and 15 — the standard treatment of the greedy and primal-dual set-cover analyses.
10 thms1 active userReviewed
🏆Completed
Linear OptimizationOptimization·Captain: moutei

Primal-Dual Online Algorithms I: Fractional Ski RentalTextbook

Motivation

An online algorithm must commit to decisions before it knows the rest of its input, and it is judged by competitive analysis: the ratio between its cost and the cost of an optimal solution computed with full knowledge of the input. A recurring obstacle in this area is that each problem seems to need its own ad hoc potential-function argument. Buchbinder's thesis develops a single method that replaces those arguments — formulate the offline problem as a covering linear program, let the online algorithm raise the dual variables of its packing dual, and read the competitive ratio off the ratio between the primal and dual increments. The same recipe then yields algorithms for online set cover, weighted caching, ad-auction revenue, routing, and load balancing.

This mission formalizes the chapter where the method is introduced on its smallest example, the ski-rental problem. A customer needs skis for an unknown number of days: renting costs 111 per day and buying costs BBB once. The customer must decide, each morning, whether to rent again or buy, without knowing how many ski days remain. Despite its size the problem is the canonical rent-or-buy dilemma, and it has two classical tight results: a deterministic 222-competitive algorithm, and a randomized algorithm whose competitive ratio tends to e/(e−1)e/(e-1)e/(e−1), due to Karlin, Manasse, McGeoch and Owicki (1994). The primal-dual derivation of both is the content of Chapter 3.

Setting

An instance is a pair (B,k)(B, k)(B,k): the purchase price BBB, a positive integer, and the number k≥0k \ge 0k≥0 of ski days, which the online algorithm does not know. An offline solution either buys at once, paying BBB, or rents on every day, paying kkk; so the offline optimum is

OPT(B,k)  =  min⁡(B,k).\mathrm{OPT}(B,k) \;=\; \min(B, k).OPT(B,k)=min(B,k).

Chapter 3 casts this as a linear program (Figure 3.1, p. 18). The primal is a covering program with one buy variable xxx and one rent variable zjz_jzj​ per day jjj:

minimize   Bx+∑j=1kzjsubject tox+zj≥1  for each day j.\text{minimize } \; B x + \sum_{j=1}^{k} z_j \quad \text{subject to} \quad x + z_j \ge 1 \ \text{ for each day } j.minimize Bx+j=1∑k​zj​subject tox+zj​≥1  for each day j.

Its dual is a packing program with one variable yjy_jyj​ per day:

maximize   ∑j=1kyjsubject to∑j=1kyj≤B,0≤yj≤1.\text{maximize } \; \sum_{j=1}^{k} y_j \quad \text{subject to} \quad \sum_{j=1}^{k} y_j \le B, \qquad 0 \le y_j \le 1 .maximize j=1∑k​yj​subject toj=1∑k​yj​≤B,0≤yj​≤1.

The online structure enters in a single way: a new ski day appends a new covering constraint to the primal and a new variable to the dual, and previously raised primal variables may never be decreased. That monotonicity is what "previous decisions cannot be regretted" means formally.

The fractional primal-dual algorithm maintains xxx, initially 000. On each new day, while x<1x < 1x<1 it sets zj←1−xz_j \leftarrow 1 - xzj​←1−x, then raises

x  ←  x(1+1B)+1cB,x \;\leftarrow\; x\left(1 + \tfrac{1}{B}\right) + \tfrac{1}{cB},x←x(1+B1​)+cB1​,

and sets yj←1y_j \leftarrow 1yj​←1; once xxx has reached 111 it does nothing further. The free parameter ccc is then pinned to the value that makes xxx reach exactly 111 after BBB days,

c  =  (1+1B)B−1.c \;=\; \left(1 + \tfrac{1}{B}\right)^{B} - 1 .c=(1+B1​)B−1.

Formalization targets

Goal — the fractional algorithm's competitive ratio at finite BBB

B xk+∑j=0k−1zj  ≤  (1+1(1+1B)B−1)⋅min⁡(B,k)for every B≥1, k≥0.B\,x_k + \sum_{j=0}^{k-1} z_j \;\le\; \left(1 + \frac{1}{\left(1 + \frac{1}{B}\right)^{B} - 1}\right) \cdot \min(B, k) \qquad \text{for every } B \ge 1, \ k \ge 0 .Bxk​+j=0∑k−1​zj​≤(1+(1+B1​)B−11​)⋅min(B,k)for every B≥1, k≥0.

The coefficient is the exact finite-BBB ratio 1+1/c1 + 1/c1+1/c, left in closed form rather than replaced by a constant. This is deliberate: (1+1B)B\left(1+\frac1B\right)^B(1+B1​)B increases to eee, so c<e−1c < e - 1c<e−1 and therefore 1+1/c>e/(e−1)1 + 1/c > e/(e-1)1+1/c>e/(e−1) for every finite BBB. A goal asserting e/(e−1)e/(e-1)e/(e−1)-competitiveness at finite BBB would be false, and a goal asserting some rounded constant would be invalidated by any sharpening. The closed-form coefficient is the weakest statement that is stable under improvement.

Asymptotic companion — where e/(e−1)e/(e-1)e/(e−1) actually lives

lim⁡B→∞(1+1(1+1B)B−1)  =  ee−1  ≈  1.5819767.\lim_{B \to \infty} \left(1 + \frac{1}{\left(1 + \frac{1}{B}\right)^{B} - 1}\right) \;=\; \frac{e}{e-1} \;\approx\; 1.5819767 .B→∞lim​(1+(1+B1​)B−11​)=e−1e​≈1.5819767.

The classical constant is recorded here, as a limit of the coefficient sequence, and nowhere else.

Parallel target — the deterministic algorithm

detCost(B,k)  ≤  2⋅min⁡(B,k),detCost(B,k)={kk<B2Bk≥B\mathrm{detCost}(B,k) \;\le\; 2 \cdot \min(B,k), \qquad \mathrm{detCost}(B,k) = \begin{cases} k & k < B \\ 2B & k \ge B\end{cases}detCost(B,k)≤2⋅min(B,k),detCost(B,k)={k2B​k<Bk≥B​

Chapter 3's other result, independent of the fractional development.

Significance

The ski-rental bounds themselves are classical and tight, and nothing here is mathematically open. What the chapter contributes, and what this mission captures, is the derivation: it is the template instantiated by every later chapter of the thesis, so the artifacts built here — a covering/packing LP pair, its weak-duality instance, a monotone online variable with a closed-form growth law, and the primal-to-dual increment ratio as the source of the competitive factor — are the vocabulary in which the rest of the series will be stated.

On status: the mathematics is proved, published, and standard. It is not, to the best of a search of Mathlib at revision 0df444a, formalized — that revision contains no competitive-analysis or online-algorithm framework, no ski-rental development, and no general linear-programming weak-duality theorem. So the work this mission asks for is formalization of a known proof, not new mathematics, and the reusable output is infrastructure that does not currently exist in the library.

Difficulty

The offline problem is trivial, and a newcomer's first move — prove min⁡(B,k)\min(B,k)min(B,k) is the optimum and stop — solves the wrong problem. The content is entirely in the online constraint. Three specific places where the obvious argument stalls:

The optimum is never observed. The algorithm's cost must be compared against min⁡(B,k)\min(B,k)min(B,k) without kkk being available to it. The comparison is routed through the dual instead: the dual objective the algorithm accumulates is a lower bound on every feasible primal solution, hence on the optimum, and the algorithm's own primal cost is a fixed multiple of that dual objective.

The growth law is piecewise. The update fires only while x<1x < 1x<1. Summing the per-day increments therefore does not telescope uniformly: days before xxx reaches 111 contribute 1+1/c1 + 1/c1+1/c each and later days contribute nothing, and the index at which the switch happens is exactly BBB — which is a theorem about the recurrence, not an assumption.

The constant is forced, not chosen. c=(1+1/B)B−1c = (1+1/B)^B - 1c=(1+1/B)B−1 is not a free tuning parameter; it is the unique value for which the geometric sequence xj=((1+1/B)j−1)/cx_j = \bigl((1+1/B)^j - 1\bigr)/cxj​=((1+1/B)j−1)/c hits 111 at j=Bj = Bj=B, which is in turn what makes the dual solution feasible (∑jyj≤B\sum_j y_j \le B∑j​yj​≤B). Dual feasibility and the choice of ccc are the same fact.

Formalization scope

Conventions this development commits to. The purchase price is a natural number BBB with 0<B0 < B0<B, because Chapter 3 uses BBB simultaneously as a price, as a day index ("buy skis on the BBBth day"), and as the exponent in (1+1/B)B(1+1/B)^B(1+1/B)B; costs are real numbers, with BBB and kkk coerced. Days are indexed from 000, so day j+1j+1j+1 of the prose is index jjj, and Fin k indexes the kkk days. Real division is total, so 1/0=01/0 = 01/0=0; the hypothesis 0<B0 < B0<B is what keeps every reciprocal in the development genuine, and without it ccc would evaluate to 000 and the recurrence would collapse to the constant zero sequence. The algorithm's x < 1 guard is part of the formalized definition, not an informal aside: without it the cost would keep growing past day BBB.

A documented discrepancy in the source. The prose on p. 17 relaxes the integer program by letting xxx and each zjz_jzj​ range over [0,1][0,1][0,1]; Figure 3.1 on p. 18 prints only x≥0x \ge 0x≥0, zj≥0z_j \ge 0zj​≥0. This mission takes the prose version, 0≤x≤10 \le x \le 10≤x≤1 and 0≤zj≤10 \le z_j \le 10≤zj​≤1, as the canonical fractional program, and also records the nonnegativity-only region exactly as printed. Two separate theorems establish that both have least value min⁡(B,k)\min(B,k)min(B,k), so the discrepancy is resolved inside the mission rather than silently chosen. Solvers should note which of the two predicates a given statement uses.

Ruling out a trivializing formalization. The offline optimum is defined independently, as min⁡(B,k)\min(B,k)min(B,k), and is not derived from the algorithm's own behaviour; a separate theorem certifies that this value really is the least attainable objective value of the canonical program, so the goal cannot be satisfied by redefining the benchmark. The goal inequality is also tight — both sides are equal to (1+1/c)(1+1/c)(1+1/c) times the number of days on which x<1x < 1x<1 — so it cannot be weakened into vacuity without becoming false.

Infrastructure, and what is reusable. The development needs only Mathlib big operators over Fin k, basic real analysis for the limit, and IsLeast. Two items are explicitly infrastructure rather than ski-rental content: the specialized weak-duality theorem for this covering/packing pair, and the Figure 3.1 optimum. Both are candidates for generalization by the later mission on Chapter 2's general linear-programming duality, and a solver who proves the general form there should expect this instance to be derivable from it rather than duplicated.

Out of scope here. The final paragraph of p. 19 rounds the fractional solution into a randomized algorithm by sampling a threshold α∈[0,1]\alpha \in [0,1]α∈[0,1] uniformly and buying on the day whose increment of xxx contains α\alphaα. That step needs a probability space and an expectation argument, and is deferred to the immediate follow-up mission, Primal-Dual Online Algorithms II: Randomized Rounding for Ski Rental. Contributions here should not anticipate it.

Selected references

  • Niv Buchbinder, Designing Competitive Online Algorithms via a Primal-Dual Approach, PhD thesis, Tel Aviv University, 2008. Chapter 3, pp. 17–19. https://www.tau.ac.il/~nivb/download/phd-thsis.pdf
  • Niv Buchbinder and Joseph (Seffi) Naor, The Design of Competitive Online Algorithms via a Primal-Dual Approach, Foundations and Trends in Theoretical Computer Science 3(2–3), 2009. https://doi.org/10.1561/0400000024
  • Anna R. Karlin, Mark S. Manasse, Lyle A. McGeoch and Susan Owicki, Competitive randomized algorithms for nonuniform problems, Algorithmica 11(6), 1994, 542–571. https://doi.org/10.1007/BF01294260
  • Allan Borodin and Ran El-Yaniv, Online Computation and Competitive Analysis, Cambridge University Press, 1998.
9 thms1 active userReviewed
🏆Completed
Mathematical Logic·Captain: tomasz

Friedberg–Muchnik: incomparable computably enumerable setsResearch Paper

Comparing undecidable problems

Computability theory studies which questions admit algorithms and how the unsolvable questions compare with one another. A decision problem can be represented by a set of natural numbers: the question on input nnn is whether nnn belongs to the set. Even when there is no algorithm that always answers this question, there may be an algorithm that eventually recognizes every positive instance. Understanding the relative difficulty of such problems is the setting of the Friedberg–Muchnik theorem.

The original paper by Richard M. Friedberg appeared in 1957 under the title Two recursively enumerable sets of incomparable degrees of unsolvability (solution of Post's problem, 1944). It supplies the historical paper source for this formalization. A. A. Muchnik's independent contribution appeared in Russian in 1956. Friedberg, PNAS 43(2), 236–238; Muchnik, Math-Net bibliography, 1956 entry.

Sets, enumeration, and oracle access

A set A⊆NA\subseteq\mathbb NA⊆N is computably enumerable, abbreviated c.e., if membership has a semidecision procedure: on input nnn, the procedure halts exactly when n∈An\in An∈A. The older terminology is recursively enumerable, abbreviated r.e. The Lean predicate CEnumerable A uses Mathlib's REPred for this property. A computable set has a decision procedure that terminates on every input and answers membership correctly; this is expressed separately by ComputableSet A using ComputablePred.

For each set AAA, define its characteristic function by

χA(n)={1n∈A,0n∉A.\chi_A(n)=\begin{cases}1&n\in A,\\0&n\notin A.\end{cases}χA​(n)={10​n∈A,n∈/A.​

An oracle for AAA answers requests for this function's values. It always supplies an answer, even if membership in AAA cannot be computed without an oracle. The declaration setOracle A represents this total function inside Mathlib's type of partial functions from natural numbers to natural numbers.

Write A≤TBA\le_T BA≤T​B when an algorithm with access to the membership oracle for BBB computes χA\chi_AχA​ on every input. This is Turing reducibility, expressed by SetTuringReducible A B. The algorithm may make several queries, with later queries depending on earlier answers. Incomparability requires both A̸≤TBA\not\le_T BA≤T​B and B̸≤TAB\not\le_T AB≤T​A; it is stronger than saying the two sets merely have different degrees. These conventions specify the mathematical reading of the supplied Lean definitions.

Formalization target

The goal is the following unconditional existence statement:

∃A,B⊆N,A is c.e. ∧ B is c.e. ∧ A̸≤TB ∧ B̸≤TA.\exists A,B\subseteq\mathbb N,\qquad A\text{ is c.e.}\ \land\ B\text{ is c.e.}\ \land\ A\not\le_T B\ \land\ B\not\le_T A.∃A,B⊆N,A is c.e. ∧ B is c.e. ∧ A≤T​B ∧ B≤T​A.

Its Lean name is Computability.friedberg_muchnik. No enumeration, pair of sets, or oracle program is supplied as a hypothesis. Both sets must be obtained as witnesses to the conclusion. The statement matches Theorem 26.2 in Arnold W. Miller's Lecture notes in Recursion Theory, Section 26, with the theorem on page 51 and its proof on pages 51–54. Miller, December 3, 2008 version.

Mathematical and formal significance

The target establishes that the c.e. problems have incomparable levels of computational difficulty. Its witnesses cannot be computable: a computable membership procedure would also work in the presence of any other oracle simply by making no queries, contradicting the required nonreducibility. The stronger historical consequence is a positive solution of Post's problem: a c.e. degree can lie strictly between the computable degree and the halting degree. Miller records this consequence separately as Corollary 26.3 on page 54. Miller, Section 26.

The mathematical theorem is established; the work requested here is its Lean 4 formalization. A completed development must construct witnesses, prove their computable enumerability, and exclude oracle computations in each direction using Mathlib's actual reducibility relation. The provided goal currently ends in sorry. Successful compilation of this statement checks its formulation and imports; it does not constitute a proof of the existence result.

Difficulty of simultaneous requirements

The main obstacle is preserving decisions about oracle computations while both sets are still being enumerated. An additional element in one set can change an oracle answer used by an earlier computation, undermining the attempt to separate the other set from it. There are infinitely many candidate programs in both directions. Thus a formal treatment has to justify the eventual stability of the relevant computations as well as the effectiveness of the enumeration. This is the setting of the finite injury argument developed in Miller's proof of Theorem 26.2. Miller, pages 51–54.

Formalization scope

The sets are arbitrary Set ℕ, including the natural number zero in their ambient domain. The oracle answers use natural numbers, with one for membership and zero for nonmembership. Classical reasoning is used to define the oracle for an arbitrary set; it supplies no assertion that this function is computable. Each oracle is nevertheless total. Replacing it with a partial membership recognizer would change the meaning of the target.

The foundation consists of Mathlib.Computability.RE and Mathlib.Computability.TuringDegree, together with the supplied definitions in namespace Computability. SetTuringEquivalent records reducibility in both directions. degreeOfSet maps a characteristic-function oracle to its Turing degree, and CEnumerableDegree says that a degree has a c.e. representative. These additional definitions are retained as useful interfaces, while the root theorem itself is expressed directly with sets and TuringIncomparable.

A complete proof will need representations of effective finite stages and oracle computations, and lemmas relating those representations to the imported predicates. Such infrastructure can support later formalizations involving oracle use, computable enumerations, and priority constructions. Contributions should establish these connections with Mathlib's definitions and finish the unconditional target. The theorem must not be replaced by mere degree inequality, weakened reducibility, or a conditional assertion that assumes the required incomparable sets already exist.

Selected references

  • Richard M. Friedberg, Two recursively enumerable sets of incomparable degrees of unsolvability (solution of Post's problem, 1944), Proceedings of the National Academy of Sciences of the USA 43(2), 236–238, 1957. DOI; free archived paper.
  • A. A. Muchnik, On the unsolvability of the problem of reducibility in the theory of algorithms (Russian: Неразрешимость проблемы сводимости теории алгоритмов), Doklady Akademii Nauk SSSR 108(2), 194–197, 1956. Math-Net bibliography, 1956 entry.
  • Arnold W. Miller, Lecture notes in Recursion Theory, University of Wisconsin–Madison, version dated December 3, 2008, Section 26, Theorem 26.2, pages 51–54. Author-hosted PDF.
11 thms1 active userReviewed
🏆Completed
Algebra·Captain: Cosme

Eilenberg Theorems for Many-Sorted FormationsResearch Paper

Motivation

Classical Eilenberg correspondence theorems connect algebraic descriptions of finite-state behavior with language-theoretic closure principles. The version developed by Juan Climent Vidal and Enric Cosme Llópez replaces one-sorted monoids by many-sorted algebras, so that operations may accept arguments of several prescribed sorts and return a value of another sort. This is the natural algebraic setting for typed term languages: a signature records the permitted input and output sorts of each operation, and a language is a family of sets indexed by sorts. The paper proves that two ways of organizing finite-state behavior—through finite-index congruences and through regular languages—determine the same ordered structure. The source is the final section of Climent Vidal and Cosme Llópez, Eilenberg theorems for many-sorted formations, published in the Houston Journal of Mathematics 45(2), 2019.

The companion manuscript A Kleene theorem for free many-sorted algebras develops the free-term and recognizability infrastructure used by this formalization. It supplies a concrete Lean representation of sorted signatures, free algebras, homomorphisms, terms, and finite many-sorted carriers. The present mission begins from that reusable core and formalizes the formation-level theorem of the HJM paper, rather than repeating the already completed Kleene development.

Setting

Fix a finite type of sorts SSS and an SSS-sorted signature Σ\SigmaΣ. For an SSS-sorted set XXX, write TΣ(X)T_\Sigma(X)TΣ​(X) for the free Σ\SigmaΣ-algebra on XXX. A congruence Φ\PhiΦ on a many-sorted algebra is a family of equivalence relations Φs\Phi_sΦs​, one on each carrier sort, compatible with every basic operation. Its index is finite when the entire sorted quotient family

(TΣ(X)s/Φs)s∈S(T_\Sigma(X)_s/\Phi_s)_{s\in S}(TΣ​(X)s​/Φs​)s∈S​

is finite. A sorted language LLL is Φ\PhiΦ-saturated when membership in LsL_sLs​ is constant on every Φs\Phi_sΦs​-class. The syntactic congruence Ω(L)\Omega(L)Ω(L) is the greatest algebra congruence that saturates LLL, and LLL is regular when Ω(L)\Omega(L)Ω(L) has finite index.

A finite-index congruence formation F\mathfrak FF selects, for every variable family XXX, a nonempty filter F(X)\mathfrak F(X)F(X) of finite-index congruences on TΣ(X)T_\Sigma(X)TΣ​(X). The selection is closed under intersections, upward inclusion, and pullback along homomorphisms whose composite with the relevant quotient projection is surjective at every sort.

A regular-language formation L\mathcal LL selects regular languages in each TΣ(X)T_\Sigma(X)TΣ​(X). It contains every language saturated by the universal congruence; whenever L,K∈L(X)L,K\in\mathcal L(X)L,K∈L(X) it contains every language saturated by Ω(L)∩Ω(K)\Omega(L)\cap\Omega(K)Ω(L)∩Ω(K); and it satisfies the corresponding pullback-saturation condition for quotient-surjective homomorphisms.

The two constructions are

LF(X)={L∣L is saturated by some Φ∈F(X)},\mathcal L_{\mathfrak F}(X) =\{L\mid \text{$L$ is saturated by some }\Phi\in\mathfrak F(X)\}, LF​(X)={L∣L is saturated by some Φ∈F(X)},

and

FL(X)={Φ∣Φ has finite index and every Φ-saturated language lies in L(X)}. \mathfrak F_{\mathcal L}(X) =\{\Phi\mid \text{$\Phi$ has finite index and every $\Phi$-saturated language lies in $\mathcal L(X)$}\}. FL​(X)={Φ∣Φ has finite index and every Φ-saturated language lies in L(X)}.

Formalization targets

The capstone is the paper's final formation theorem: the ordered sets of finite-index congruence formations and regular-language formations are order-isomorphic, with the isomorphism fixed to be exactly the two displayed constructions.

Form⁡Cgrfi(Σ)≅Form⁡Langr(Σ). \operatorname{Form}_{\mathrm{Cgr}_{\mathrm{fi}}}(\Sigma) \cong \operatorname{Form}_{\mathrm{Lang}_{r}}(\Sigma). FormCgrfi​​(Σ)≅FormLangr​​(Σ).

The milestones establish the universal property of the syntactic congruence, closure of finite-index congruences under the filter operations, the well-definedness of each construction, and the two recovery identities

FLF=F,LFL=L. \mathfrak F_{\mathcal L_{\mathfrak F}}=\mathfrak F, \qquad \mathcal L_{\mathfrak F_{\mathcal L}}=\mathcal L.FLF​​=F,LFL​​=L.

These identities determine the inverse maps and prevent the goal from being satisfied by an unrelated abstract order equivalence.

Significance

The theorem packages a family of finite quotients and a family of regular languages as interchangeable data. On the algebraic side, closure is expressed by filters of congruences and quotient-surjective pullbacks. On the language side, the same information is expressed through saturation by syntactic congruences. The result therefore gives a systematic translation between quotient-based and language-based classifications in a typed, many-sorted setting.

Formalizing the theorem adds congruence, quotient-index, saturation, syntactic-congruence, and formation interfaces to the existing free many-sorted algebra library. These components are reusable for future formalizations of recognizability, Myhill–Nerode principles, finite algebra formations, and varieties or pseudovarieties of typed algebras. The mathematical theorem is already proved in the cited 2019 paper; the remaining task is to produce machine-checked Lean proofs of the source-faithful statements.

Difficulty

The two maps are simple to write down but their inverse laws are not pointwise tautologies. A finite-index congruence must be reconstructed from the family of all languages it saturates, and a language formation must be reconstructed from all selected finite-index congruences. In the many-sorted case, finiteness applies to the entire quotient family, including its support across sorts, and intersections and pullbacks must preserve this global condition. The quotient-surjectivity premise is also essential: replacing it by ordinary surjectivity of the original homomorphism would change the formation axiom.

The syntactic congruence creates a second layer of care. It must be characterized as the greatest compatible sorted equivalence saturating a language, not merely as the kernel of the language's characteristic function, which need not itself respect the algebra operations. Thus an argument that treats saturation as an arbitrary set-theoretic equivalence misses the algebraic compatibility required by the theorem.

Formalization scope

The Lean development uses the existing MSKleene representation of sorted sets, signatures, argument tuples, algebras, homomorphisms, terms, and free algebras. Congruences are sort-indexed setoids with explicit compatibility for every signature operation. Their order is inclusion of relations. Intersection and the universal congruence are concrete constructions, while pullback is defined along an algebra homomorphism.

Finite index is represented by finiteness of the sigma-type of all quotient carriers, matching the paper's finite sorted-set convention; it is not weakened to separate finiteness of each inhabited component. The sort type is assumed finite in the finite-index filter and formation correspondence theorems, as required in the final section of the source. Languages are arbitrary sorted subsets of free term algebras, including empty components. No nonemptiness assumption on variable carriers or algebra sorts is added.

The syntactic congruence is defined internally as the supremum-style least upper bound of all congruences saturating a language, rather than postulated together with its universal property. The formation structures contain only the source closure axioms. In particular, neither correspondence map nor either inverse identity is stored as a structure field; doing so would trivialize the capstone. Contributions are welcome on the foundational universal-property and finite-index lemmas, the two formation constructors, and the recovery identities that assemble into the final order isomorphism.

Selected references

  • Juan Climent Vidal and Enric Cosme Llópez, Eilenberg theorems for many-sorted formations, Houston Journal of Mathematics 45(2), 2019, pp. 351–416. arXiv:1604.04792
  • Samuel Eilenberg, Automata, Languages, and Machines, Volume B, Academic Press, 1976.
  • Adolfo Ballester-Bolinches, Jean-Éric Pin, and Xaro Soler-Escrivà, Formations of finite monoids and formal languages: Eilenberg's variety theorem revisited, Forum Mathematicum 26, 2014, pp. 1737–1761.
9 thms1 active userReviewed
🏆Completed
Algebra·Captain: Cosme

A Kleene Theorem for Free Many-Sorted AlgebrasResearch Paper

Motivation

Kleene's theorem (Kleene 1956; McNaughton–Yamada 1960) is a cornerstone of formal language theory: over a free monoid, the languages recognized by finite automata are exactly the regular ones — those built from finite languages by union, concatenation, and the Kleene star. Mezei and Wright (1967) lifted recognizability off strings, calling a subset of an arbitrary algebra recognizable when it is the preimage of a subset of a finite algebra under a homomorphism. Replacing strings by terms — finite trees labelled by operation symbols — gives the theory of recognizable tree languages and finite tree automata of Gécseg and Steinby (1984), where the Kleene correspondence reappears with a tree concatenation and an iteration operation in the role of the star.

Many computational structures are inherently many-sorted: typed lambda calculi, structured programming languages, process calculi, XML schemas — data and operations organized into distinct sorts. In the many-sorted setting a signature assigns to each operation symbol the sorts of its arguments and of its value, variables carry sorts, and a language is a sort-indexed family of term sets. The predecessor of this mission, Climent Vidal–Cosme Llópez 2020 (CVCL20), established that recognizability over free many-sorted algebras is preserved — and, where applicable, reflected — by substitution, iteration, quotient, inverse tree-homomorphic image, and direct linear image, via finite-index congruences. What CVCL20 left open is the regular side: whether a natural class of many-sorted regular expressions captures exactly the recognizable languages. This mission closes that gap.

Setting

Fix a finite set of sorts SSS. An SSS-sorted set A=(As)s∈SA = (A_s)_{s\in S}A=(As​)s∈S​ is a family of sets; it is finite when ∐s∈SAs\coprod_{s\in S} A_s∐s∈S​As​ is finite. An SSS-sorted signature Σ\SigmaΣ assigns to each pair (s,s)∈S⋆×S(\mathbf{s}, s) \in S^\star \times S(s,s)∈S⋆×S a set Σs,s\Sigma_{\mathbf{s},s}Σs,s​ of operation symbols of arity s\mathbf{s}s and coarity sss. A Σ\SigmaΣ-algebra A\mathbf{A}A is an SSS-sorted set AAA together with, for each σ∈Σs,s\sigma \in \Sigma_{\mathbf{s},s}σ∈Σs,s​, an operation σA ⁣:As→As\sigma^{\mathbf A}\colon A_{\mathbf s} \to A_sσA:As​→As​, where As=∏jAsjA_{\mathbf s} = \prod_{j} A_{s_j}As​=∏j​Asj​​. A homomorphism commutes with all operations sortwise.

The free Σ\SigmaΣ-algebra TΣ(X)\mathbf T_\Sigma(X)TΣ​(X) on an SSS-sorted set XXX of variables has as its sort-sss carrier TΣ(X)s\mathrm T_\Sigma(X)_sTΣ​(X)s​ the set of (X,s)(X,s)(X,s)-terms; every SSS-sorted map X→AX \to AX→A extends uniquely to a homomorphism TΣ(X)→A\mathbf T_\Sigma(X) \to \mathbf ATΣ​(X)→A. Following automata-theoretic tradition, subsets of TΣ(X)\mathrm T_\Sigma(X)TΣ​(X) are called languages. For a sort sss, a language L⊆TΣ(X)sL \subseteq \mathrm T_\Sigma(X)_sL⊆TΣ​(X)s​ is sss-recognizable when there are a finite Σ\SigmaΣ-algebra N\mathbf NN, a homomorphism f ⁣:TΣ(X)→Nf\colon \mathbf T_\Sigma(X) \to \mathbf Nf:TΣ​(X)→N, and a subset M⊆NsM \subseteq N_sM⊆Ns​ with L=fs−1[M]L = f_s^{-1}[M]L=fs−1​[M]. Write Recs(TΣ(X))\mathrm{Rec}_s(\mathbf T_\Sigma(X))Recs​(TΣ​(X)) for the set of all such LLL.

Two operations on languages, both performed sortwise, generate the regular expressions. Given a variable z∈Xuz \in X_uz∈Xu​ and a language L⊆TΣ(X)uL \subseteq \mathrm T_\Sigma(X)_uL⊆TΣ​(X)u​, zzz-substitution ( ⁣zL ⁣)s♯p\left(\!\begin{smallmatrix}z\\ L\end{smallmatrix}\!\right)^{\sharp\mathsf p}_s(zL​)s♯p​ replaces, in every term of an input language of sort sss, each occurrence of zzz independently by a term of LLL. The zzz-iteration is L⋆z=⋃i∈NLi zL^{\star z} = \bigcup_{i\in\mathbb N} L^{i\,z}L⋆z=⋃i∈N​Liz, where L0 z={z}L^{0\,z} = \{z\}L0z={z} and Li+1 z=Li z∪( ⁣zLiz ⁣)s♯p(L)L^{i+1\,z} = L^{i\,z} \cup \left(\!\begin{smallmatrix}z\\ L^{i\,z}\end{smallmatrix}\!\right)^{\sharp\mathsf p}_s(L)Li+1z=Liz∪(zLiz​)s♯p​(L). For a finite SSS-sorted set ZZZ, the regular signature Reg(S,Σ,Z)\mathrm{Reg}(S,\Sigma,Z)Reg(S,Σ,Z) expands Σ\SigmaΣ by an empty constant ∅s\varnothing_s∅s​, a binary sum +s+_s+s​, a unary zzz-iteration (⋅)⋆z(\cdot)^{\star z}(⋅)⋆z for each z∈Zsz\in Z_sz∈Zs​, and a zzz-substitution operation for each z∈Ztz\in Z_tz∈Zt​. Its terms are the regular expressions over (S,Σ,Z)(S,\Sigma,Z)(S,Σ,Z); the power algebra TΣ(Z)℘\mathbf T_\Sigma(Z)^\wpTΣ​(Z)℘ carries a canonical Reg(S,Σ,Z)\mathrm{Reg}(S,\Sigma,Z)Reg(S,Σ,Z)-algebra structure, and interpreting a regular expression there yields a language {R}sZ♯\{R\}^{Z\sharp}_s{R}sZ♯​. A language L⊆TΣ(X)sL\subseteq \mathrm T_\Sigma(X)_sL⊆TΣ​(X)s​ is sss-regular when L={R}sZ♯L = \{R\}^{Z\sharp}_sL={R}sZ♯​ for some finite Z⊇XZ\supseteq XZ⊇X and some regular expression RRR of type sss; write Regs(TΣ(X))\mathrm{Reg}_s(\mathbf T_\Sigma(X))Regs​(TΣ​(X)).

Formalization targets

Goal — the many-sorted Kleene theorem

∀ s∈S,Recs(TΣ(X))  =  Regs(TΣ(X)).\forall\, s\in S,\qquad \mathrm{Rec}_s(\mathbf T_\Sigma(X)) \;=\; \mathrm{Reg}_s(\mathbf T_\Sigma(X)).∀s∈S,Recs​(TΣ​(X))=Regs​(TΣ​(X)).

The statement fixes no automaton model and no normal form for regular expressions: it asserts only that the two classes of languages coincide, at every sort, for every finite SSS, every finite SSS-sorted signature Σ\SigmaΣ, and every finite SSS-sorted set XXX. It splits into Regs⊆Recs\mathrm{Reg}_s \subseteq \mathrm{Rec}_sRegs​⊆Recs​ (Corollary 4.8) and Recs⊆Regs\mathrm{Rec}_s \subseteq \mathrm{Reg}_sRecs​⊆Regs​ (Proposition 4.10).

Significance

The result completes the Kleene–Myhill–Nerode correspondence on the side of universal algebra, uniformly over an arbitrary finite many-sorted signature: it names the exact operations — those of Σ\SigmaΣ, plus empty language, union, sortwise substitution, and sortwise iteration — that generate precisely the finite-state behaviours. Over non-free structures the correspondence is known to fail (recognizable but non-rational subsets of a monoid, Eilenberg 1974), which is what makes the free many-sorted algebra the natural home for an exact statement. The forward direction organizes the regular languages into a Reg\mathrm{Reg}Reg-algebra and instantiates the closure properties of CVCL20; the converse gives a constructive, syntactic procedure — from a recognizing homomorphism it builds a regular expression denoting the language — generalizing Lemma 2.5.7 of Gécseg–Steinby, itself descended from McNaughton–Yamada.

The paper is new (June 2026) and has no machine-checked proof. This mission produces the first formalization: a reusable Lean development of finite many-sorted universal algebra — signatures, algebras, free term algebras and their universal property, the Artinian subterm order, power algebras, recognizability, and the substitution/iteration calculus — together with the two inclusions and the state-elimination argument. Everything below the §4 headline results is infrastructure of independent value for many-sorted formal language theory.

Difficulty

The converse inclusion is the substance. The single-sorted proof eliminates automaton states one at a time along a single axis; the naive port to the many-sorted case — fix a linear order on all states and eliminate — loses track of the sort at which each elimination happens and does not terminate cleanly. The argument instead carries a sortwise budget: an SSS-sorted family K≤NK \le NK≤N recording, for each sort ttt, the set KtK_tKt​ of state values still admissible at internal subterms. The induction is on ∥∥K∥∥=∑s∈Sks\lVert\lVert K\rVert\rVert = \sum_{s\in S} k_s∥∥K∥∥=∑s∈S​ks​, and each step removes the top state of one chosen sort, so the recursion branches over the sorts whose budget is nonzero and the key identity (Equation (E)) is a union over those sorts. The inductive invariant — the family of auxiliary languages Lu(C,K,l)L_u(C,K,l)Lu​(C,K,l) with its budget bookkeeping — is what separates the many-sorted argument from its ancestor; it is also the part Gécseg–Steinby declare "obvious from the construction" and this proof spells out in full (Claims C1–C6).

Formalization scope

Proposed Lean representation: SSS a type with [Fintype S]; an SSS-sorted set as S → Type; a signature as a family List S → S → Type with finiteness where the theorems need it; the free algebra as an inductive term type; the power algebra with sort-sss carrier Set (T_Σ Z s); sss-recognizability as the existence of a finite Σ\SigmaΣ-algebra, a homomorphism, and a subset whose sortwise preimage is the language. Committed conventions: SSS finite throughout; Σ\SigmaΣ finite and XXX finite for the §4 results (so that only finitely many basic terms exist and the budget induction is well-founded); the regular operations are exactly {∅,+,(⋅)⋆z,z-subst}\{\varnothing, +, (\cdot)^{\star z}, z\text{-subst}\}{∅,+,(⋅)⋆z,z-subst} together with the operations of Σ\SigmaΣ — not an unrestricted Boolean or closure algebra, which would trivialize the statement.

A complete development needs: the many-sorted UA core (sorted sets and maps, signature, algebra, homomorphism, subalgebra, congruence); the free algebra with unique readability (Proposition 3.4) and universal property (Proposition 3.5); the Artinian subterm order (Proposition 3.6); the power algebra; recognizability and sss-recognizability with the CVCL20 closure results (Propositions 3.29, 3.30, 3.33); the substitution and iteration calculus (Lemmas 3.23, 3.25, 3.28, Corollary 3.17, Lemma 3.18); and the §4 regular-expression layer (Definition 4.1, Proposition 4.3, Corollary 4.4, Definition 4.6). The UA core and the substitution calculus are reusable beyond this mission. Contributions are welcome at every level — the definitions, the closure results, the auxiliary claims C1–C6, and either inclusion.

Selected references

  • L. Gong, R. Ruiz Mora, N. Sanmartín Vich, E. Cosme Llópez, A Kleene theorem for free many-sorted algebras, 2026.
  • J. Climent Vidal, E. Cosme Llópez, Congruence-based proofs of the recognizability theorems for free many-sorted algebras, Journal of Logic and Computation 30(2) (2020), 561–633. https://arxiv.org/abs/1808.08217
  • F. Gécseg, M. Steinby, Tree Automata, Akadémiai Kiadó, Budapest, 1984.
  • R. McNaughton, H. Yamada, Regular expressions and state graphs for automata, IRE Transactions on Electronic Computers EC-9 (1960), 39–47.
  • S. C. Kleene, Representation of events in nerve nets and finite automata, in Automata Studies, Princeton University Press, 1956, 3–42.
  • J. Mezei, J. Wright, Algebraic automata and context-free sets, Information and Control 11 (1967), 3–29.
  • S. Eilenberg, Automata, Languages, and Machines, Vol. A, Academic Press, New York, 1974.
32 thms1 active userReviewed
Operations Research·Captain: Shuze Chen

The 4/3 Conjecture for Metric TSPOpen Problem

Motivation

The traveling salesman problem — visit nnn cities by the cheapest round trip — is the most widely known problem in combinatorial optimization, and its central open question concerns a linear program. The subtour-elimination relaxation (the Held–Karp bound) replaces tours by fractional edge weights, and both in theory and in practice (it powers the lower bounds inside the Concorde solver) it is remarkably close to the true optimum. How close, in the worst case, is the integrality gap of the relaxation: the supremum of OPT/LP\mathrm{OPT}/\mathrm{LP}OPT/LP over metric instances. Explicit instance families push the gap up to 4/34/34/3; the best proven upper bound sits just barely below 3/23/23/2. The 4/3 conjecture — the gap is exactly 4/34/34/3 — has been the benchmark question of approximation algorithms for four decades.

Timeline

  • 1954. Dantzig, Fulkerson, and Johnson solve a 49-city instance by hand with the cutting planes that become the subtour-elimination LP.
  • 1970–1971. Held and Karp introduce the 1-tree/Lagrangian bound and show it equals the subtour LP value — since then, "the Held–Karp bound".
  • 1976/1978. Christofides, and independently Serdyukov, give the 3/23/23/2-approximation: minimum spanning tree plus a matching on odd-degree vertices.
  • 1980. Wolsey (Math. Prog. Study 13) shows Christofides' analysis goes through against the LP: OPT≤32 LP\mathrm{OPT} \le \frac{3}{2}\,\mathrm{LP}OPT≤23​LP, so the integrality gap is at most 3/23/23/2. Shmoys and Williamson (IPL 1990) rediscover this via a monotonicity property.
  • 1995. Goemans (Math. Programming 69) analyzes the worst-case ratios of TSP relaxations and states the 4/34/34/3 conjecture explicitly; the 4/34/34/3 lower-bound families (three parallel paths) are by then folklore.
  • 2011–2014. For graph metrics (shortest-path metrics of unweighted graphs) the barrier breaks: Oveis Gharan–Saberi–Singh and Mömke–Svensson beat 3/23/23/2, and Sebő–Vygen (Combinatorica 2014) reach 7/57/57/5 — the conjectured-optimal shape of progress, but only for a special class.
  • 2020–2022. Karlin, Klein, and Oveis Gharan prove a 3/2−ε3/2 - \varepsilon3/2−ε approximation for general metric TSP (STOC 2021) and then an integrality-gap bound γ≤3/2−ε\gamma \le 3/2 - \varepsilonγ≤3/2−ε with ε>10−36\varepsilon > 10^{-36}ε>10−36 (FOCS 2022), via max-entropy sampling of spanning trees and strongly Rayleigh distributions — the first general improvement over Wolsey in forty years, by an astronomically small margin.
  • Today. The gap between the 4/34/34/3 lower bound and the 3/2−10−363/2 - 10^{-36}3/2−10−36 upper bound is the conjecture. For half-integral LP solutions — where the conjectured extremal instances live — the bound has been pushed to 1.49831.49831.4983 (Gupta, Lee, Li, Mucha, Newman, and Sarkar, via matroid-based rounding).

Setting

An instance on n≥3n \ge 3n≥3 cities is a cost function ccc assigning to each ordered pair of cities u,vu, vu,v a real cost c(u,v)c(u,v)c(u,v), required to be a metric cost: symmetric (c(u,v)=c(v,u)c(u,v) = c(v,u)c(u,v)=c(v,u)), zero on the diagonal (c(v,v)=0c(v,v) = 0c(v,v)=0), and satisfying the triangle inequality c(u,w)≤c(u,v)+c(v,w)c(u,w) \le c(u,v) + c(v,w)c(u,w)≤c(u,v)+c(v,w). Nonnegativity follows; distinct cities at distance zero are allowed, as usual for metric TSP.

A tour visits every city exactly once and returns to its start. Formally a tour is given by an ordering: a permutation π\piπ of the cities, traversed as π(0),π(1),…,π(n−1)\pi(0), \pi(1), \dots, \pi(n-1)π(0),π(1),…,π(n−1) and back to π(0)\pi(0)π(0); its cost tourCost(c,π)\mathrm{tourCost}(c, \pi)tourCost(c,π) is the sum of the costs of consecutive steps, and OPT(c)\mathrm{OPT}(c)OPT(c) — written tspOpt c — is the minimum over all orderings.

The subtour-elimination (Held–Karp) relaxation replaces the tour by a fractional edge weight x(u,v)x(u,v)x(u,v) for each pair of cities. A weight vector xxx is feasible (IsHeldKarp x) when it is symmetric with zero diagonal, has entries in [0,1][0,1][0,1], gives every city fractional degree two (∑ux(v,u)=2\sum_u x(v,u) = 2∑u​x(v,u)=2), and crosses every nontrivial cut at least twice: for every set SSS of cities other than ∅\emptyset∅ and all cities, ∑u∈S∑v∉Sx(u,v)≥2\sum_{u \in S} \sum_{v \notin S} x(u,v) \ge 2∑u∈S​∑v∈/S​x(u,v)≥2. The Held–Karp bound hkValue c is the infimum of 12∑u∑vc(u,v) x(u,v)\frac{1}{2}\sum_u \sum_v c(u,v)\,x(u,v)21​∑u​∑v​c(u,v)x(u,v) over feasible xxx (the double sum counts each edge twice, hence the 12\frac1221​). The incidence vector of any tour is feasible, so LP≤OPT\mathrm{LP} \le \mathrm{OPT}LP≤OPT always.

Formalization targets

Goal — the 4/3 conjecture

OPT(c)  ≤  43 LP(c)for every n≥3 and every metric cost c.\mathrm{OPT}(c) \;\le\; \tfrac{4}{3}\,\mathrm{LP}(c) \qquad \text{for every } n \ge 3 \text{ and every metric cost } c.OPT(c)≤34​LP(c)for every n≥3 and every metric cost c.

Together with the known lower-bound families this says the integrality gap is exactly 4/34/34/3. The goal carries no algorithm and no constant to improve: it is the terminal statement of the ladder, open in both directions (a proof or a counterexample instance would each settle it).

Milestones — the known ladder

Five results over the same definitions: the relaxation is valid (LP≤OPT\mathrm{LP} \le \mathrm{OPT}LP≤OPT); instance families force the gap arbitrarily close to 4/34/34/3; tree doubling gives OPT≤2 LP\mathrm{OPT} \le 2\,\mathrm{LP}OPT≤2LP; Wolsey's theorem gives OPT≤32 LP\mathrm{OPT} \le \frac{3}{2}\,\mathrm{LP}OPT≤23​LP, the classical upper bound; and the Karlin–Klein–Oveis Gharan record OPT≤(32−ε) LP\mathrm{OPT} \le (\frac{3}{2} - \varepsilon)\,\mathrm{LP}OPT≤(23​−ε)LP for some ε>10−36\varepsilon > 10^{-36}ε>10−36 (FOCS 2022). The last milestone is a statement-level target: its known proof (max-entropy sampling, strongly Rayleigh polynomials) is far beyond current formalization practice, so the mission's usable proving frontier remains Wolsey — the milestone records the state of the art as a formal statement.

Significance

The 4/3 conjecture is the reference open problem of approximation algorithms: the quality of the subtour LP calibrates every algorithmic advance on TSP, and the conjectured extremal instances guide the search for better rounding schemes. The bound is also what practical solvers actually compute — branch-and-cut on this LP solves instances with tens of thousands of cities — so the conjecture is a statement about the observed tightness of the world's most-used combinatorial lower bound.

Nothing in this circle exists in any proof assistant: Mathlib has no TSP, no LP relaxations, no polyhedral combinatorics of tours. The mission's milestones force the base layer into existence — tours over Equiv.Perm, cut constraints over Finset, and, for the upper bounds, the parity and tree arguments (spanning trees against the LP, T-joins for the 3/23/23/2 bound) whose infrastructure is reusable for matching theory and network design far beyond TSP.

Difficulty

The naive plan — round the LP solution to a tour — has no known analysis losing less than 3/23/23/2 in general, and the half-integral extremal instances show the hard cases are structured and simple-looking at once. Christofides' matching argument is provably stuck at 3/23/23/2 against the LP; forty years of work moved the constant by 10−3610^{-36}10−36, and that advance needed an entirely new probabilistic toolkit. On the other side, no instance family with ratio above 4/34/34/3 has ever been found despite extensive computational search over small instances (Benoit–Boyd and successors). Both directions of the goal are genuinely open territory.

Formalization scope

The Lean model commits to: cities Fin n; costs c : Fin n → Fin n → ℝ with IsMetricCost (symmetry, zero diagonal, triangle inequality — nonnegativity is derived, and semimetrics are included as in the standard statement of the conjecture); tours as orderings π : Equiv.Perm (Fin n) traversed cyclically via finRotate, so every permutation denotes a Hamiltonian cycle and every Hamiltonian cycle is denoted; both optimal values as sInf over nonempty, bounded-below sets of reals, so they are genuine minima for n ≥ 3. The hypothesis 3 ≤ n is load-bearing: for n ≤ 2 the degree-2 constraints are infeasible, sInf ∅ = 0 by convention, and the bounds would be false — every theorem therefore carries it.

Welcome contributions: the milestones in any order — held_karp_le_opt is the natural entry point (the tour's incidence vector crosses every cut at least twice); integrality_gap_lower_bound needs the three-path instance family and a case analysis on its tours; tree_doubling_bound needs spanning trees against the LP; wolsey_bound adds the T-join/parity argument and is the summit. Reusable infrastructure — spanning tree polytopes, T-joins, Eulerian traversals, cut lemmas — is welcome as platform theorems. Graph-TSP (7/57/57/5), path TSP, and asymmetric TSP are deliberately left to future missions; the Karlin–Klein–Oveis Gharan bound is stated as a milestone, but its sampling machinery is expected to arrive, if ever, as shared infrastructure built over many contributions.

Selected references

  • G. Dantzig, R. Fulkerson, S. Johnson, Solution of a large-scale traveling-salesman problem, Oper. Res. 2 (1954).
  • M. Held, R. Karp, The traveling-salesman problem and minimum spanning trees, Oper. Res. 18 (1970); Part II, Math. Programming 1 (1971).
  • N. Christofides, Worst-case analysis of a new heuristic for the travelling salesman problem, CMU report (1976); A. Serdyukov, Upravlyaemye Sistemy 17 (1978).
  • L. Wolsey, Heuristic analysis, linear programming and branch and bound, Math. Prog. Study 13 (1980). doi:10.1007/BFb0120913
  • D. Shmoys, D. Williamson, Analyzing the Held-Karp TSP bound: a monotonicity property with application, Inf. Process. Lett. 35 (1990). doi:10.1016/0020-0190(90)90028-V
  • M. Goemans, Worst-case comparison of valid inequalities for the TSP, Math. Programming 69 (1995). doi:10.1007/BF01585563
  • A. Sebő, J. Vygen, Shorter tours by nicer ears, Combinatorica 34 (2014). arXiv:1201.1870
  • A. Karlin, N. Klein, S. Oveis Gharan, A (slightly) improved approximation algorithm for metric TSP, STOC 2021. arXiv:2007.01409
  • A. Karlin, N. Klein, S. Oveis Gharan, A (slightly) improved bound on the integrality gap of the subtour LP for TSP, FOCS 2022. arXiv:2105.10043
  • V. Traub, J. Vygen, Approximation Algorithms for Traveling Salesman Problems, Cambridge University Press, 2024. book page
23 thms1 active userReviewed
🏆Completed
CombinatoricsNumber Theory·Captain: ShouqiaoWang

Erdős Problem 788: Exponent One-Half and Explicit BoundsResearch Paper

Erdős Problem 788 asks how large a set can always be retained when prescribed distinct pair-sums are forbidden. This mission formalizes the repository’s strengthened version of Theorem 1.1: an explicit lower bound valid for every n≥3n\ge 3n≥3, an eventual quantitative upper bound, the conclusion f(n)=n1/2+o(1)f(n)=n^{1/2+o(1)}f(n)=n1/2+o(1), and the exact affirmative answer to the original upper-bound question.

6 thms1 active userReviewed
🏆Completed
Captain: intro_user0735

Schönhage's Bound: omega < 2.55Research Paper

Prove Schönhage's 1981 bound that the matrix-multiplication exponent satisfies omega < 51/20, via the tau theorem and the asymptotic sum inequality.

0 thms0 active usersReviewed
PreviousPage 8 of 8Next

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me