Dynamic Programming and Optimal Control II: Label Correcting MethodsTextbook
Motivation
Label correcting methods are the workhorse family of shortest-path algorithms — Dijkstra's method, Bellman–Ford, SLF/LLL variants and A* all fit the template analyzed in §2.3.1 of Bertsekas, Dynamic Programming and Optimal Control, Vol. I (3rd ed., 2005), where shortest paths appear as the purely deterministic face of dynamic programming. The correctness proof (Prop. 2.3.1) is short on paper but genuinely nondeterministic — any node may be removed from the candidate list, children processed in any order — so a formal proof certifies a whole family of concrete algorithms at once.
Setting
A finite directed graph with arc set A, real arc lengths aij, origin s and destination t=s (BertsekasSPGraph). Walks are nonempty node lists whose consecutive pairs are arcs (BertsekasIsWalkFrom), with length the sum of arc lengths (BertsekasWalkLength); the shortest distance is the infimum of walk lengths in the extended reals, +∞ if no walk exists (BertsekasShortestDistance). The standing assumption of §2.3: every cycle has nonnegative length (negative arcs allowed).
The algorithm state (BertsekasLCState) carries labels dj∈R, the scalar UPPER, and the candidate list OPEN. Initially ds=0, all other labels ∞, UPPER =∞, OPEN ={s}. One iteration (BertsekasLCStep, nondeterministic): remove any i from OPEN; for each child j of i in any order, if di+aij<min{dj,UPPER} set dj:=di+aij, and put j in OPEN if j=t, or update UPPER if j=t. The algorithm terminates when OPEN is empty.
Target
OPEN=∅⟹UPPER=dist(s,t)∈R,
for every execution, under the nonnegative arc length assumption of §2.3 (aij≥0 for every arc) — BertsekasDP.label_correcting_correctness_of_nonneg_arcs (goal). Milestones: termination — no infinite execution exists, which needs only the weaker nonnegative-cycle assumption (label_correcting_terminates) — and the workhorse invariant that every finite label is the length of an actual walk from s, which needs neither (label_correcting_invariant).
The nonnegative-arc hypothesis is essential and not a formalization artifact: the algorithm prunes with the test di+aij<min{dj,UPPER}, and with a negative arc a longer prefix can still reach t more cheaply, so the pruned node is never entered into OPEN. An earlier version of this mission's goal carried only the nonnegative-cycle assumption of §2.1 and was disproved by the counterexample s=0, t=2, a02=1, a01=2, a12=−2 (a graph with no cycles at all), where the algorithm terminates with UPPER=1 while the shortest distance is 0. Exercise 2.7 of the source treats the nonnegative-cycle case, which requires a modified algorithm.
Significance
Prop. 2.3.1 certifies simultaneously breadth-first search, Dijkstra (best-first), depth-first and small-label-first variants — every removal discipline is one refinement of the nondeterministic relation. Formally, the development contributes a reusable small-step framework for label-setting/correcting algorithms on which sharper results (Dijkstra's single-pass property, A* admissibility, §2.3.3) can later be built. The result is classical; the formal content is the induction along the nondeterministic step relation.
Difficulty
Termination is the subtle half: labels do not decrease monotonically along the run in an obvious well-founded way; the book's argument counts the finitely many distinct walk lengths below a bound — this needs the nonnegative-cycle assumption and a careful bound relating labels to simple-path lengths. The invariant proof must thread through the fold over children within a single step.
Formalization scope
Finite node type with decidable equality; arcs as a Finset of ordered pairs; lengths total on V×V (only arc values matter). The step relation is fully nondeterministic in pivot choice and child order (a permutation quantifier); correctness quantifies over all reachable terminal states — there is no fixed schedule to exploit. Distances live in EReal, so the no-path case is the honest empty infimum, not a sentinel. The trivializing risk of restricting to nonnegative arcs is avoided: only cycles are constrained.
Selected references
D. P. Bertsekas, Dynamic Programming and Optimal Control, Vol. I, 3rd ed., Athena Scientific, 2005. (Prop. 2.3.1, §2.3.) http://www.athenasc.com/dpbook.html
Strong Whitney embedding in dimension 2nResearch Paper
Motivation: an intrinsic manifold in a fixed Euclidean space
A smooth manifold is a space that can be described locally by real coordinates, even when no single coordinate chart describes the whole space. Differential geometry works with these local descriptions, whereas an embedding realizes the entire space inside one Euclidean space without losing either its topology or its infinitesimal geometry. The strong Whitney embedding theorem supplies a dimension bound depending only on the dimension of the manifold. This mission targets the precise version selected by LeanEval v1, rather than a substitute formulation.
The benchmark attributes the strong result to Hassler Whitney's 1944 paper and distinguishes it from the earlier bound of 2n+1. The result is a known mathematical theorem; the remaining task here is its formal proof in Lean. The exact benchmark declaration is authoritative for the target and its hypotheses, not a reconstruction from the historical literature (source and attribution).
Setting: topology, smoothness, and the differential
Let n be a natural number satisfying 1≤n. Let M carry a topology and a smooth atlas modeled on Rn, with the usual model having no boundary. The topology is Hausdorff: distinct points admit disjoint neighborhoods. It is second countable: there is a countable collection of open sets from which every open set can be assembled as a union. These are explicit hypotheses, alongside the chosen charted-space and smooth-manifold structures, in the Lean statement.
A topological embedding is a map that is a homeomorphism onto its image, where the image has the subspace topology inherited from the codomain. An immersion has an injective differential at every point. For a smooth map e, write dex for the induced linear map on tangent spaces at x. These are separate requirements: the target asks for global topological embedding and pointwise injectivity of the differential together, as well as infinite differentiability. Their precise Lean meanings are the existing Mathlib predicates used directly by the benchmark, not new mission-specific definitions.
Formalization target: the single root theorem
For every n≥1 and every M with the structures and hypotheses just stated, establish
∃e:M⟶R2n,e∈C∞(M,R2n)∧e is a topological embedding∧∀x∈M,dex is injective.
The codomain has dimension exactly 2n. The quantifier ranges over all such manifolds, including noncompact ones. There is exactly one goal theorem and no auxiliary theorem items, definition items, or milestones. The declaration is LeanEval.Geometry.WhitneyEmbeddingProblem.whitney_embedding, with the binders and conclusion preserved from the benchmark source.
Significance: the full theorem rather than an easier restriction
The result realizes the given manifold in a Euclidean space with a uniform dimension bound. Its value in this formulation is the simultaneous control of topology, smoothness, and the differential, without a compactness assumption. Replacing the image-topology condition with mere injectivity would omit part of the requested conclusion; replacing 2n with an unspecified dimension would omit the quantitative constraint. Both distinctions are explicit in the benchmark's explanation.
A completed formalization would supply a reusable strong embedding theorem on top of Mathlib's manifold language. This is a long-term infrastructure task, not a claim that a short proof is available. The September 5, 2026 LeanEval v1 snapshot supplied for this task records no accepted benchmark credit for this target. That dated benchmark status is not a claim about all formalization projects, and preparing an open theorem statement does not establish the theorem or earn benchmark credit.
Difficulty: the dimension bound and the noncompact scope
The existing compact embedding result discussed by the benchmark provides an embedding into some finite-dimensional Euclidean space. That does not settle the present goal: it assumes compactness and does not supply the 2n bound. Consequently, simply invoking that result cannot discharge the unrestricted benchmark statement. The source identifies substantial differential-topological infrastructure behind the strong theorem; this proposal does not advertise an easy proof or prescribe a decomposition (benchmark discussion).
All positive dimensions remain in scope, including n=1 and n=2. Noncompactness is not a later extension or optional strengthening. The absence of an assumption must not be replaced by an implicit restriction in a new definition or an easier surrogate theorem.
Formalization scope: unchanged Mathlib predicates
The source model is EuclideanSpace ℝ (Fin n), and the target is EuclideanSpace ℝ (Fin (2 * n)). Smoothness is expressed by ContMDiff (𝓡 n) (𝓡 (2 * n)) ∞ e; the other two conjuncts are IsEmbedding e and pointwise Function.Injective of mfderiv. The type M remains universe-polymorphic. No compactness, connectedness, orientability, or nonemptiness hypothesis is added. The empty manifold is included; dimension zero is excluded. Neither properness nor closedness of the image is demanded by the conclusion (exact declaration).
Mathlib already provides the vocabulary needed to state the goal: Euclidean spaces, charts, manifold smoothness, topological embeddings, and manifold derivatives. No custom definition item is necessary. Future proof work may develop reusable infrastructure, but this draft contains only the root theorem and intentionally imposes no supporting targets. A proof must establish that exact statement, not the compact-only, immersion-only, or weak 2n+1 alternative.
Selected references
LeanEval contributors, Whitney embedding theorem (strong form, sharp dimension 2n), LeanEval v1 source declaration and manifest, statement revision 1, pinned source and manifest. These specify the exact formal target.
H. Whitney, The self-intersections of a smooth n-manifold in 2n-space, Annals of Mathematics (2) 45 (1944), 220–246, DOI. Historical attribution as recorded in the LeanEval manifest; no alternate statement from this reference replaces the benchmark goal.
Equality case for compressed convex functional calculusOpen Problem
Motivation and history
Compressing an operator to a closed subspace keeps the information visible within that subspace but can discard interactions with its orthogonal complement. The compression-rigidity question asks whether a particular equality detects that no such interactions were present. Its inputs are two commuting positive contractions and an ordinary strictly convex function of two real variables. The issue is the equality case, not the existence of a general operator inequality for every convex function.
The question was contributed by Boris Bilich to the CUHK-Shenzhen AI Math Problems collection and added on June 1, 2026. The original problem asks about operators on a Hilbert space without imposing finite dimension. The first formal target in this mission treated matrices with supplied joint spectral data. That finite-dimensional declaration has a verified proof on Prove2Me, but it does not settle the unrestricted Hilbert-space question. The September 2026 correction restores arbitrary complex Hilbert spaces as the main target and preserves the earlier result as a supporting artifact.
Setting
Let H be a complete complex Hilbert space, and let B(H) be its algebra of bounded complex-linear operators. The multiplication AB means composition, with B acting first, and A∗ denotes the adjoint. A positive contractionA is self-adjoint, satisfies Re⟨v,Av⟩≥0 for every v∈H, and has operator norm at most one. Both zero and the identity are permitted.
Write S=[0,1]2. Let X,Y∈B(H) be positive contractions satisfying XY=YX. Their joint continuous functional calculus assigns an operator g(X,Y) to each continuous real function g on S. It is characterized as a continuous unital real star-algebra homomorphism from C(S,R) to B(H) that maps the two coordinate functions to X and Y. The domain has the uniform norm and the codomain the operator norm. The existence and uniqueness of this calculus follow from the standard joint spectral theorem; the relevant source is Dereziński, Lemma 6.6, printed page 43.
An orthogonal projection is an operator P satisfying P∗=P and P2=P. The compressed operators PXP and PYP are still viewed as operators on the original space H, not as operators on a separately chosen finite-dimensional range. The question includes the additional hypothesis that these compressed operators commute. The original commutation of X and Y does not remove the need to state this hypothesis.
Formalization targets
The main target is the entire compression implication from the source. Let f:S→R be continuous and strictly convex: for distinct x,y∈S and 0<t<1, its value at tx+(1−t)y is strictly less than tf(x)+(1−t)f(y). For X,Y,P as above, the question is whether
Pf(X,Y)P=Pf(PXP,PYP)P⟹PX=XPandPY=YP.
Both outer projections on the right are part of the original assertion. There is no hypothesis that f(0,0)=0. Commutation of P with each coordinate operator is exactly the reducing-subspace conclusion asked for in the source.
The accompanying standard infrastructure target asserts that, for every commuting pair of positive contractions on H,
∃!Φ:C(S,R)⟶B(H),Φ(x↦x0)=X,Φ(x↦x1)=Y,
where Φ is continuous, unital, real-linear, multiplicative and star-preserving. This is the unit-square, real-valued-function specialization of Lemma 6.6, not a claim that this known theorem is a new research conjecture. Its Lean proof is a separate supporting obligation. The earlier two-dimensional milestone and the proved finite-dimensional capstone remain available; neither replaces the new main target.
Significance
A positive resolution would show that exact preservation of one strictly convex functional-calculus value, under the specified commuting-compression hypothesis, forces both operators to preserve the projection's range and its orthogonal complement. A negative resolution would require an actual Hilbert space, operators and strictly convex function satisfying every hypothesis while at least one of the two reducing identities fails.
The formal development separates this research question from the standard spectral infrastructure needed to express it. The new main declaration is an open proof obligation. The joint-calculus existence-and-uniqueness declaration is also unproved in this contribution, although mathematically standard. Local compilation and server publication check the declarations' well-formedness; they are not proofs of either statement. Only the earlier finite-dimensional result is being reported here as already proved.
Difficulty
Arbitrary bounded commuting self-adjoint operators need not have a joint eigenbasis. Consequently a matrix formulation that records finitely many joint spectral atoms cannot serve as the general operator model. The compressed pair may also have different spectral data from the original pair. The equality involves these two different functional calculi, with a projection on either side of each value.
Strict convexity in this question is ordinary scalar strict convexity on the square. Operator convexity, finite rank of the projection, compactness of the coordinate operators, and a multivariable operator Jensen inequality are not additional assumptions. Introducing any of them would change the requested question. The general formulation must also retain boundary cases rather than exclude them to simplify an argument.
Formalization scope
The Lean model uses actual bounded complex-linear maps on an arbitrary complete inner-product space. It imposes no finite-dimensionality, separability, common-eigenbasis or nonzero-space assumption. It includes P=0, P=IH and the zero Hilbert space. The scalar field convention is complex; a real-Hilbert-space transfer is not separately formalized here.
The function is stored on the ambient real plane, but continuity, strict convexity and evaluation use only its restriction to S. Values outside S are irrelevant, and continuity outside the square is not required. Thus storing an ambient function does not exclude any continuous function originally defined only on the square.
Joint evaluation is a total definition. If a representing continuous unital real star-algebra homomorphism exists, it chooses one for the operator pair and then evaluates the supplied function. Otherwise it returns zero. The separate existence-and-uniqueness target establishes that this fallback is inapplicable to commuting positive contractions and that the choice is immaterial. No field in the model assumes the compression-rigidity conclusion. The supporting standard theorem must also apply to the compressed pair using the original projection and positivity hypotheses, without adding representation existence as a new restriction on the main question.
The replacement definition and both statements were built at Lean 4.30.0 with supported Mathlib revision c5ea00351c28e24afc9f0f84379aa41082b1188f, and their final versions received independent blind readbacks. Published older declarations and their proof identities are preserved. They should be cited with their finite-dimensional scope, not described as a solution of the arbitrary-Hilbert-space target.
Selected references
Boris Bilich, Equality case for compressed convex functional calculus, CUHK-Shenzhen AI Math Problems, Problem 2, added June 1, 2026. Original statement.
Jan Dereziński, Bounded operators, Warsaw University lecture notes, January 2007, Lemma 6.6, printed page 43. Joint continuous functional calculus.
Hatcher Algebraic Topology I: The Fundamental Group of the CircleTextbook
Motivation
The fundamental group π1(X,x0) is the first algebraic invariant a student of topology meets, and π1(S1)≅Z is the first computation of it that carries real content. Allen Hatcher's Algebraic Topology (Cambridge University Press, 2002; freely available at pi.math.cornell.edu/~hatcher/AT/AT.pdf) is the standard text on the subject. Its Chapter 1 opens with exactly this computation (Theorem 1.7, p. 29) and immediately draws three classical consequences from it: the Fundamental Theorem of Algebra (Theorem 1.8), the Brouwer fixed point theorem for the disk (Theorem 1.9), and the Borsuk–Ulam theorem for the sphere (Theorem 1.10).
This mission is the opening entry in a series that formalizes Hatcher's book capstone by capstone. It covers the subsection "The Fundamental Group of the Circle" of Section 1.1 (pp. 29–33): the covering-space lifting properties that drive the proof, the theorem itself, and its three applications. Later entries in the series (van Kampen's theorem, the classification of covering spaces, simplicial and singular homology) will build on the declarations introduced here, which all live in the shared Lean namespace Hatcher.
Setting
A path in a topological space X is a continuous map f:I→X, where I=[0,1]. A homotopy of paths is a family ft:I→X, 0≤t≤1, such that the endpoints ft(0)=x0 and ft(1)=x1 are independent of t and the associated map F:I×I→X, F(s,t)=ft(s), is continuous. A loop at a basepointx0 is a path with f(0)=f(1)=x0. The set of homotopy classes [f] of loops at x0 is the fundamental groupπ1(X,x0); its product is [f][g]=[f⋅g], where f⋅g traverses f and then g, each at double speed (Hatcher, Proposition 1.3).
The circleS1⊂R2 is realised as the unit circle of C, so the point (cosθ,sinθ) is eiθ and the basepoint (1,0) is 1. Hatcher's map
p:R→S1,p(s)=(cos2πs,sin2πs)=e2πis
is Hatcher.circleCover. The loops
ωn(s)=(cos2πns,sin2πns)=p(ns),n∈Z,
based at (1,0) are Hatcher.omegaLoopN n, and ω=ω1 is Hatcher.omegaLoop; its class [ω]∈π1(S1,1) is Hatcher.omegaClass.
A covering space of X is a space X~ together with a map p:X~→X such that every x∈X has an open neighbourhood U for which p−1(U) is a disjoint union of open sets each mapped homeomorphically onto U by p (Hatcher's condition (∗), p. 29; such a U is evenly covered). A lift of a map f:Y→X is a map f~:Y→X~ with p∘f~=f.
Formalization targets
Goal (Theorem 1.7)
π1(S1,1) is an infinite cyclic group generated by [ω]. In the form stated in Lean:
∀g∈π1(S1,1)∃!n∈Z:[ω]n=g.
Surjectivity of n↦[ω]n says [ω] generates; uniqueness of n says the group is infinite cyclic rather than finite.
Milestones on the road to the goal
p(s)=e2πis is a covering space of S1 (Hatcher, p. 29).
Homotopy lifting property (c): for a covering space p:X~→X, a map F:Y×I→X and a lift of F∣Y×{0} extend uniquely to a lift of F (p. 30).
Path lifting property (a): a path f starting at x0 and a point x~0∈p−1(x0) determine a unique lift f~ starting at x~0 (p. 29).
Lifting homotopies of paths (b): a homotopy of paths ft starting at x0 lifts uniquely to a homotopy of paths f~t starting at x~0 (p. 29).
Every loop in S1 at (1,0) is homotopic to ωn for a unique n∈Z (the reformulation of Theorem 1.7 that Hatcher actually proves, p. 29).
[ω]n=[ωn] for every n∈Z (Hatcher's remark after Theorem 1.7, p. 29).
Applications (Theorems 1.8–1.10)
Every nonconstant f∈C[z] has a root in C.Every continuous h:D2→D2 has a fixed point.Every continuous f:S2→R2 satisfies f(x)=f(−x) for some x∈S2.
Significance
The result itself. The computation π1(S1)≅Z assigns to every loop in the circle an integer, its winding number, and shows that this integer is the only homotopy invariant of the loop. It is the seed of degree theory, and in Hatcher's text it is the starting point for every later computation of fundamental groups (products, van Kampen, covering spaces). The three applications are the standard demonstration that a single algebraic invariant can settle purely geometric or algebraic existence questions.
Formalizing it. Mathlib (revision 0df444a) already contains the covering-space infrastructure: IsCoveringMap, path lifting (IsCoveringMap.liftPath, eq_liftPath_iff'), homotopy lifting (IsCoveringMap.liftHomotopy, eq_liftHomotopy_iff'), monodromy, and the fact that Circle.exp is a covering map (Circle.isCoveringMap_exp). It also has FundamentalGroup X x as the endomorphism group of the fundamental groupoid. It does not contain the computation π1(S1)≅Z, nor the two-dimensional Brouwer and Borsuk–Ulam theorems. The Fundamental Theorem of Algebra is in Mathlib as Complex.exists_root (proved by Liouville's theorem rather than by Hatcher's argument); it is kept as a milestone because it is one of the section's stated theorems, and a solver may close it directly from Mathlib. Milestones 2–4 are also within reach of the existing lifting API, but they are the lemmas Hatcher states and uses, and a faithful record of them in the mission's own namespace is what later entries in the series will import.
Difficulty
The obvious first idea for the goal is to define the winding number of a loop through the complex argument. That fails because arg is discontinuous on S1; the integer has to be produced by lifting the loop through p and reading off the endpoint of the lift, which is only well defined because of the uniqueness in the path lifting property. The second difficulty is uniqueness of n: this needs lifting of homotopies (milestone 4), not just of paths, together with the observation that a lifted homotopy of paths has constant endpoints.
Connecting the concrete loops to Mathlib's abstract π1 is its own obstacle. FundamentalGroup Circle 1 multiplies by composing morphisms of the fundamental groupoid, so identifying [ω]n with the class of the explicit loop ωn (milestone 6) requires reparametrization arguments for concatenated paths, for negative n as well as positive.
For Theorem 1.9 the difficulty is the construction and continuity of the retraction r:D2→S1 from a fixed-point-free map, and then the non-existence of a retraction, which uses that π1(S1)=0. For Theorem 1.10 Hatcher's proof lifts a loop g(s)=f(cos2πs,sin2πs)/∣⋯∣ through p and shows the lift changes by an odd integer over half a turn; making that parity argument rigorous in Lean is the substance of the milestone.
Formalization scope
S1 is Circle (the unit circle in C) with basepoint 1; D2 is Metric.closedBall (0 : EuclideanSpace ℝ (Fin 2)) 1; S2 is Metric.sphere (0 : EuclideanSpace ℝ (Fin 3)) 1, with −x the antipodal point.
A covering space is Mathlib's IsCoveringMap p. This agrees with Hatcher's condition (∗); neither requires p to be surjective.
Paths are continuous maps C(I, X) or Mathlib Paths; for homotopies of paths, the square is written I × I with Hatcher's coordinate order F(s,t)=ft(s): the first coordinate is the path parameter, the second the homotopy parameter. In the general homotopy lifting property the domain is Y × I with Y an arbitrary topological space, as in Hatcher.
π1(S1,1) is Mathlib's FundamentalGroup Circle 1, and [ω] is FundamentalGroup.fromPath ⟦omegaLoop⟧. Because the goal quantifies over integer powers of a single element, the order of multiplication in FundamentalGroup is immaterial to its truth.
The goal is stated as ∀g∃!n,[ω]n=g rather than as an abstract isomorphism with Z, so that the generator is pinned to Hatcher's explicit loop; an isomorphism FundamentalGroup Circle 1 ≃* Multiplicative ℤ sending [ω] to 1 is an immediate corollary and a welcome contribution.
"Nonconstant polynomial" is 0 < f.degree, which excludes both the zero polynomial and nonzero constants.
Contributions welcome: proofs of the milestones from Mathlib's lifting API, a degree homomorphism π1(S1,1)→Z packaged for reuse, and any lemma about concatenation and reparametrization of loops in Circle that later chapters of the series can import.
Algorithmic Game Theory I: Existence of Nash EquilibriumTextbook
Motivation
The strategic-form game is the basic object of noncooperative game theory, and the Nash equilibrium — a profile of randomized strategies from which no player benefits by deviating unilaterally — is its central solution concept. Nash proved in 1951 that every game with finitely many players and finite strategy sets has such an equilibrium (Nash, Non-cooperative games, Ann. Math. 54 (1951)); this single existence theorem is the reason the concept organizes the rest of the field, from the computational complexity of finding equilibria to the price of anarchy. The theorem is stated as Theorem 1.8 of Nisan–Roughgarden–Tardos–Vazirani (eds.), Algorithmic Game Theory (Cambridge, 2007), the source text of this mission series, whose first chapter (Tardos–Vazirani) also treats the two special cases that admit direct algorithmic proofs: two-person zero-sum games, where equilibria are exactly the optimal solutions of a dual pair of linear programs (von Neumann 1928; Theorem 1.11), and a simple linear market, where equilibrium prices are computed by an ascending tight-set algorithm (Theorem 1.17).
A timeline of the existence theorem: von Neumann (1928) proved the minimax theorem for two-person zero-sum games; Nash (1950, 1951) extended existence to arbitrary finite games, first via Kakutani's fixed-point theorem and then via Brouwer's. All known proofs of the general theorem pass through a fixed-point principle, and this is not an artifact: computing a Nash equilibrium is PPAD-complete (Daskalakis–Goldberg–Papadimitriou 2009; Chen–Deng–Teng 2009), and PPAD is precisely the complexity class of the fixed-point arguments.
Setting
A finite strategic-form game consists of a finite set ι of players, for each player i a finite nonempty set Si of pure strategies, and for each player a payoff functionui:∏jSj→R; all players are utility maximizers. A mixed strategy for player i is a probability distribution on Si, represented as a weight function σi:Si→R with σi≥0 and ∑sσi(s)=1 (a lottery). Players randomize independently, so a mixed profileσ=(σi)i induces the product distribution on pure strategy vectors, and player i's expected payoff is
Ui(σ)=s∈∏jSj∑(j∏σj(sj))ui(s).
A mixed profile σ is a (mixed) Nash equilibrium if for every player i and every lottery τ on Si, replacing σi by τ does not increase Ui.
A two-person zero-sum game is given by a matrix A∈Rm×n: the row player picks a row distribution p, the column player a column distribution q, and the column player pays the row player pTAq in expectation.
The market of §1.8.1 of the source has finitely many divisible goods, good a in sa units, and finitely many buyers, buyer j bringing budget mj>0 and interested in a nonempty set of goods; utilities are linear 0/1, so a buyer wants any goods from her interest set and none other. Market-clearing prices are positive prices under which each buyer can spend her whole budget on cheapest goods in her interest set while every good sells out exactly.
Formalization targets
Goal (capstone) — Theorem 1.8
Every finite strategic-form game has a mixed Nash equilibrium.
Stated for an arbitrary finite family of finite nonempty strategy types; no bound on the number of players, no genericity assumptions.
Mathlib currently has no form of Brouwer's theorem; every known proof of Theorem 1.8 needs it (or an equivalent), so it enters the mission as an explicit milestone rather than an assumed library fact.
Theorem 1.11 — zero-sum games
∃p∗,q∗:∀p,pTAq∗≤p∗TAq∗,∀q,p∗TAq∗≤p∗TAq,and(p∗,q∗) is a mixed Nash equilibrium
of the explicit two-player game with payoffs Axy to the row player and −Axy to the column player. The source states the result as: optimal solutions of a dual pair of LPs form a Nash equilibrium of the zero-sum game; the first two conjuncts are the saddle point that LP optimality amounts to, and the third states the Nash-equilibrium clause against the mission's own game vocabulary, so "zero-sum" is formal (the two payoffs sum to zero) rather than implicit in the shape of the statement.
Theorem 1.17 (existence form)
The 0/1-utilities linear market admits market-clearing prices and allocations.
The source proves this by an ascending-price algorithm and also bounds its running time; the complexity half has no formal counterpart in this mission.
Significance
The capstone is the foundation of the whole mission series: correlated equilibria, price-of-anarchy bounds, and mechanism-design characterizations in later missions all quantify over or compare against Nash equilibria, and the series inherits its game vocabulary (IsLottery, IsMixedProfile, expectedPayoff, IsMixedNash) from this mission.
Formalizing it produces the first Brouwer fixed-point theorem in this environment — a well-known gap in mathlib with reuse value far beyond game theory (every degree-theoretic and equilibrium-existence argument needs it). The zero-sum milestone yields the minimax theorem, reusable for the learning-dynamics mission that follows. All results here are classical and proved on paper; the work requested is machine-checked proof, not new mathematics.
Difficulty
The central difficulty is Brouwer. The standard routes are (i) Sperner's lemma plus a limit argument, which needs a formal theory of simplicial subdivisions that does not exist in mathlib; (ii) algebraic topology (no retraction of the ball onto the sphere), for which mathlib has singular homology but not yet the homology of spheres in usable form; (iii) analytic proofs (Milnor–Rogers). None is short; the milestone is deliberately stated for a general nonempty compact convex set in a finite-dimensional normed space so that any route serves, and so the lemma lands in reusable generality.
Given Brouwer, Theorem 1.8 still requires Nash's gain-function construction on the product of simplices and the verification that fixed points are equilibria — bookkeeping-heavy but standard. Theorem 1.11 does not need Brouwer: mathlib's Sion minimax theorem (Mathlib.Topology.Sion) applies to the bilinear payoff on the product of standard simplices, or one can argue by LP duality directly. Theorem 1.17 needs the tight-set/max-flow argument of Lemmas 1.15–1.16 or any direct construction of the equilibrium.
Formalization scope
Games are presented concretely: players form a finite index type, strategies a finite type per player, payoffs are functions into R; mixed strategies are weight functions with a IsLottery predicate, not measure-theoretic distributions. Deviations in the equilibrium definition range over all lotteries (not only pure strategies): the pure-deviation reduction is a lemma a solver may prove, not part of the definition. Strategy sets are assumed nonempty in the capstone; the player set need not be. In the zero-sum milestone both dimensions are positive (Fin (m+1), Fin (n+1)), payoffs flow from the column player to the row player, stdSimplex plays the role of the mixed-strategy space, and the Nash-equilibrium conjunct is stated for the Boolean-indexed two-player game built by matrixGameStrat/zeroSumPayoff/matrixGameProfile from the definitions bundle. In the market milestone all supplies and budgets are positive, every buyer's interest set is nonempty, and every good has an interested buyer, matching the standing assumptions of §1.8.1; allocations are recorded as money spent, so the clearing condition is ∑jxja=pasa with no division anywhere.
Trivializing readings are ruled out: the empty simplex has no lotteries, so nonemptiness hypotheses appear exactly where their absence would make an existence claim false (Brouwer on the empty set, games with an empty strategy set, zero-dimensional matrix games).
Selected references
J. F. Nash, Non-cooperative games, Annals of Mathematics 54 (1951), 286–295. DOI
J. von Neumann, Zur Theorie der Gesellschaftsspiele, Mathematische Annalen 100 (1928), 295–320. DOI
N. Nisan, T. Roughgarden, É. Tardos, V. V. Vazirani (eds.), Algorithmic Game Theory, Cambridge University Press, 2007, Chapter 1. DOI
C. Daskalakis, P. W. Goldberg, C. H. Papadimitriou, The complexity of computing a Nash equilibrium, SIAM J. Computing 39 (2009), 195–259. DOI
Schönhage–Pan–Winograd Bound: omega < 2.522Research Paper
Motivation
The matrix-multiplication exponent measures the asymptotic arithmetic cost of multiplying square matrices. An upper bound ω<c means that, over the field under consideration, N×N matrices can be multiplied using O(Nc+ε) arithmetic operations for every ε>0. Improvements to ω are a central benchmark in algebraic complexity because matrix multiplication is also a basic subroutine in linear algebra, graph algorithms, and symbolic computation.
The existing Prove2Me mission formalizes Schönhage's bound ω<2.55 from a concrete two-summand tensor degeneration. The present mission advances the same formal development to the next clean historical construction. Pan and Winograd found a simultaneous approximate algorithm for three matrix products; Romani recorded its tensor form and the parameter choice n=11, k=5, which gives ω≤2.5218127…. Schönhage's 1981 paper reports the equivalent bound 3log52/log110 in the arbitrary-field setting. The exact formal target here is the slightly weaker rational inequality ω<1261/500=2.522.
Setting
For a field K, the matrix-multiplication tensor⟨a,b,c⟩K encodes multiplication of an a×b matrix by a b×c matrix:
⟨a,b,c⟩K=i<a∑j<b∑ℓ<c∑eij⊗ejℓ⊗eℓi.
A direct sum places several such tensors in disjoint coordinate blocks. A tensor T has border rank at most r when it is a polynomial degeneration of the diagonal tensor Ir=∑s<res⊗es⊗es. In the Lean development this relation is Degenerates T (TensorObj.diagObj K 3 r). The argument order matters: the first tensor is the target and the diagonal tensor is the source.
The platform already defines ordinary tensor rank, asymptotic tensor rank, the tensor-rank exponent matMulExp K, the equivalent Strassen-preorder exponent matMulExp_strassen K, and Schönhage's asymptotic sum inequality. This mission reuses those declarations. No alternative definition of ω is introduced.
Formalization targets
The goal has exactly the same quantified proposition as the existing 2.55 mission, with only the rational endpoint changed:
∀K[Field(K)],matMulExp(K)<5001261.
The source construction to be formalized is
R(⟨1,5,22⟩K⊕⟨11,2,5⟩K⊕⟨10,11,1⟩K)≤156.
Each summand has volume 110:
1⋅5⋅22=11⋅2⋅5=10⋅11⋅1=110.
The milestone chain records the degeneration, its asymptotic-rank consequence, the exact numerical implication
3⋅110ωKStr/3≤156⟹ωKStr<5001261,
and the resulting Strassen-form exponent bound. The public goal then transfers the bound to matMulExp K through the already established equality of the two exponent definitions.
Significance
Mathematically, this construction improves the concrete exponent certified by the existing mission from 2.55 to 2.522 without changing the surrounding theory. It isolates the first genuinely new ingredient after the accepted Schönhage example: a larger simultaneous tensor degeneration rather than a sharper numerical estimate for the old witness.
For formalization, the mission tests whether the current polynomial-degeneration API can express a historically important trilinear aggregation at realistic scale. Once the explicit witness is available, the remaining declarations form a reusable template for later bounds: a source tensor degeneration, an asymptotic-rank bound, a specialization of the asymptotic sum inequality, and a final exponent transfer. This creates a trustworthy stepping stone toward the Coppersmith--Winograd tensor and later laser-method analyses.
The 2.522 theorem is known mathematically; the open work is its machine-checked Lean formalization. The exact numerical endpoint and every downstream bridge from the degeneration have already been checked locally. The explicit Pan--Winograd degeneration remains the substantive open milestone.
Difficulty
The central difficulty is not the logarithmic comparison. It is constructing and verifying the polynomial family whose leading nonzero coefficient is exactly the tagged direct sum of the three matrix-multiplication tensors and whose earlier coefficients vanish. The family has 156 diagonal source slots and many indexed target coordinates. A proof must account for all mixed-coordinate terms and all cancellations uniformly over an arbitrary field.
Romani's published summary states the approximate-rank inequality but does not spell out a Lean-ready map between its trilinear forms and the platform's TensorObj.bigAdd coordinate spaces. A solver must therefore recover the source indexing carefully and prove that the resulting modewise linear maps have the required coefficients. Reversing the degeneration direction, conflating tensor rank with asymptotic rank, or silently assuming a characteristic-zero scalar identity would invalidate the result.
Formalization scope
All theorems quantify over an arbitrary type K with [Field K], matching the existing Schönhage goal and the arbitrary-field statement of the source bound. Tensor spaces are finite-dimensional function spaces already packaged by MMObj; the three products are combined with TensorObj.bigAdd. Border rank is represented by the existing finitely supported polynomial-family predicate Degenerates. Because the source summary specifies approximate rank but not a leading order, the main degeneration milestone existentially quantifies that order instead of hard-coding one.
The mission includes no placeholder laser-value definition and makes no claim about the later 2.376 analysis. It also excludes Schönhage's additional microscopic symmetrization improvement beyond 3log52/log110. A valid solution must construct the stated degeneration itself; a vacuous hypothesis or a redefinition of matMulExp is outside scope.
Reusable contributions include coefficient lemmas for polynomial tensor families, finite-index equivalences for direct sums, and generic aggregation identities that specialize to the n=11, k=5 witness. Contributions that merely restate the target under stronger field hypotheses do not close the arbitrary-field milestone.
Selected references
A. Schönhage, Partial and Total Matrix Multiplication, SIAM Journal on Computing 10(3), 1981, pp. 434--455. DOI 10.1137/0210032.
Francesco Romani, Some Properties of Disjoint Sums of Tensors Related to Matrix Multiplication, CNR Nota Interna B80-4, February 1980, printed p. 6; journal version, SIAM Journal on Computing 11(2), 1982. Archived preprint and DOI 10.1137/0211020.
Avi Wigderson and Jeroen Zuiddam, Asymptotic Spectra: Theory, Applications and Extensions, 2023, for the tensor-preorder and asymptotic-rank framework reused by the Lean development. Author manuscript.
Markov Chains and Mixing Times VIII: Path Coupling and Approximate CountingTextbook
Motivation
The coupling method of Mission III asks for a coupling of two copies of a chain from every pair of starting states — often painful to construct globally. Chapter 14 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) replaces that global demand by a local one. The path coupling technique of Bubley and Dyer says: put a connected graph structure on the state space, and couple one step of the chain only across edges; if each edge contracts in expectation, contraction propagates automatically along paths to arbitrary pairs of distributions. The bookkeeping runs through the transportation metric (Kantorovich distance) between distributions, whose theory — attainment by an optimal coupling, the triangle inequality — is developed on the way. The chapter's payoff is the sharpest elementary bound for sampling proper colorings (Theorem 14.8: the Glauber dynamics mixes in O(nlogn) steps once q>2Δ), and, through the sampling-to-counting reduction of Jerrum–Valiant–Vazirani, a polynomial-time approximation algorithm for counting colorings — the paradigm of the Markov chain Monte Carlo method as an algorithmic tool.
Setting
All chains live on a finite state space V with a transition matrix P; Pt(x,⋅) is the time-t distribution from x, ∥μ−ν∥TV=maxA⊆V∣μ(A)−ν(A)∣ the total variation distance, d(t)=maxx∥Pt(x,⋅)−π∥TV the worst-case distance to the stationary distribution π, and tmix(ε)=min{t:d(t)≤ε} the mixing time. A coupling of distributions μ,ν is a distribution q on V×V with marginals μ and ν.
Given a metric-like cost ρ on pairs of states, the transportation metric between two distributions is the cheapest expected cost of moving one onto the other:
Given a connected graph structure G on the state space with edge lengths ℓ≥1, the path metricρ(x,y) is the least total length of a G-path from x to y.
For the colorings application: a q-coloring of the vertices of a graph is proper when adjacent vertices receive distinct colors, and the Glauber dynamics on proper colorings picks a uniform vertex and re-samples its color uniformly among the colors legal there; its stationary distribution is uniform on the proper colorings. Throughout, n is the number of vertices and Δ the maximum degree of the graph being colored.
Formalization targets
Goal
Theorem 14.8, the capstone of Chapter 14: for the Glauber dynamics on proper q-colorings, if q>2Δ then
tmix(ε)≤⌈q−2Δq−Δn(logn−logε)⌉.
Milestones
Lemma 14.3 and Remark 14.2 — the transportation distance is attained by an optimal coupling, and satisfies the triangle inequality (so it is a genuine metric on distributions).
Theorem 14.6, path coupling (Bubley–Dyer) — if for every edge{x,y} of a connected graph structure there is a coupling of the one-step distributions P(x,⋅),P(y,⋅) contracting the path metric by e−α in expectation, then one step of the chain contracts the transportation metric of arbitrary distribution pairs by e−α.
Corollary 14.7 — under the same hypotheses, d(t)≤e−αtdiam(V) and tmix(ε)≤⌈(logdiam(V)−logε)/α⌉, where diam(V) is the largest path-metric distance between two states.
Theorem 14.12, approximate counting — for q>2Δ there is a randomized estimator, computed from an explicit polynomial number of independent uniform random seeds, which with probability at least 1−η estimates the number of proper q-colorings within a (1±ε) factor: rapid sampling yields rapid approximate counting.
Significance
The results. Path coupling converted the coupling method from an art into a calculus: one bounds a single-edge contraction constant, and the machinery does the rest. It is the standard tool for Glauber dynamics on colorings, independent sets, and other constraint-satisfaction models, and the q>2Δ colorings bound is its flagship application. Theorem 14.12 is the discrete embodiment of the Jerrum–Valiant–Vazirani equivalence between approximate counting and sampling — the conceptual foundation of the entire MCMC approach to #P-hard counting problems.
Formalizing them. Mathlib has no transportation/Kantorovich metric in the finite setting, no path coupling, and nothing on approximate counting. The transportation-metric layer (optimal couplings, triangle inequality) is reusable far beyond this mission — it is the finite Wasserstein distance. The path-coupling theorem feeds directly into Mission IX (Ising) and is quoted throughout modern mixing literature.
Difficulty
The transportation metric asks for minimization over the (compact) polytope of couplings: attainment is a finite-dimensional compactness argument, and the triangle inequality requires gluing two optimal couplings along their common marginal — the classic construction that must be carried out with explicit finite sums here. Path coupling itself is an induction along geodesics of the path metric, with the subtlety that the composite coupling produced along a path need not be optimal, only admissible; the bookkeeping of the contraction constant through the induction is exactly the kind of argument Lean keeps honest. Theorem 14.8 instantiates the machinery: the single-edge coupling for colorings needs a careful case analysis of the proposed recolorings at the two endpoints (matching legal colors bijectively), and the contraction constant (q−2Δ)/(q−Δ) emerges from counting disagreeing proposals. Theorem 14.12 layers a probabilistic-amplification argument (medians of means over independent runs) on top of the mixing bound; its combinatorial core — expressing ∣Ω∣−1 as a telescoping product of marginal probabilities — is elementary but notation-heavy, and the formal statement quantifies over explicit seed spaces, so the whole estimator is a finite object.
Formalization scope
The transportation metric is an sInf over coupling costs (the coupling polytope is nonempty for genuine distributions, and attainment is part of the milestone, so the junk value never propagates); the path metric is an sInf over walk lengths in a connected graph. The Glauber dynamics on colorings is the restriction to proper colorings of the single-site heat-bath chain of Mission II, matching §3.3 of the book; its state space is the subtype of proper colorings, nonempty whenever q>2Δ (a fact the hypotheses of the goal supply). Mixing-time upper bounds are stated with the book's explicit ceilings, so no rounding slack is hidden. In Theorem 14.12 the estimator is presented concretely as a function of finitely many uniform seeds, and "with probability ≥1−η" is a counting inequality over the seed space — no measure theory enters. Contributions of intermediate lemmas (optimal-coupling gluing, geodesic decompositions, colorings edge-coupling) are welcome and will be reused by Mission IX.
M. Jerrum, A very simple algorithm for estimating the number of k-colorings of a low-degree graph, Random Structures Algorithms 7 (1995). https://doi.org/10.1002/rsa.3240070205
M. Jerrum, L. Valiant, V. Vazirani, Random generation of combinatorial structures from a uniform distribution, Theoret. Comput. Sci. 43 (1986). https://doi.org/10.1016/0304-3975(86)90174-X
Markov Chains and Mixing Times VI: Networks, Hitting Times, and Cover TimesTextbook
Motivation
A reversible Markov chain is an electrical network: states are nodes, and the conductance c(x,y)=π(x)P(x,y) turns hitting probabilities into voltages and hitting times into resistances. This dictionary, going back to Kakutani and popularized by Doyle and Snell, converts probabilistic estimates into the physical laws of circuits — series/parallel reduction, energy minimization, monotonicity under edge removal. Chapters 9–11 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) develop the dictionary and its two crown results: the commute time identity of Chandra–Raghavan–Ruzzo–Smolensky–Tiwari, Ea(τb)+Eb(τa)=cGR(a↔b), and the Matthews method bounding cover times by hitting times with harmonic-number precision.
Setting
A network is a symmetric nonnegative conductance function c on pairs of vertices; the associated walk moves with probabilities
P(x,y)=c(x,y)/c(x)
where c(x)=∑yc(x,y), and cG=∑xc(x). A function h is harmonic at x if h(x)=∑yP(x,y)h(y). The voltage with boundary values 1 at a and 0 at z is W(x)=Px{τa<τz}, the harmonic extension of its boundary data; the current flowing out of a has strength ∥I∥=∑yc(a,y)[W(a)−W(y)], and the effective resistance is R(a↔z)=∥I∥−1. A flow from a to z is an antisymmetric edge function obeying the node law off {a,z}; its energy is E(θ)=∑eθ(e)2/c(e). Hitting times τS=min{t≥0:Xt∈S}, their expectations, the Green's function Gτz(a,x), the maximal hitting time thit, and the cover time tcov (expected time to visit every state, maximized over starts) all use the trajectory calculus of Mission I.
Formalization targets
Goal
Ea(τb)+Eb(τa)=cGR(a↔b).
This is Proposition 10.6, the commute time identity — the exact bridge between the probabilistic and electrical sides, and the engine of the transience/recurrence theory of Mission XII.
Milestones
Reversibility and stationarity of the network walk with π(x)=c(x)/cG (§9.1); Proposition 9.1 (existence and uniqueness of harmonic extensions with given boundary values, h(x)=Exf(XτB)); Lemma 9.6 (the Green's function identity Gτz(a,a)=c(a)R(a↔z)); Theorem 9.10 (Thomson's principle: R(a↔z) is the minimal energy of a unit flow, attained); Theorem 9.12 (Rayleigh monotonicity: lowering conductances raises effective resistance); Lemma 10.1 (the random target lemma: ∑yEa(τy)π(y) does not depend on a); Corollary 10.8 (the resistance triangle inequality); Theorem 11.2 (Matthews: tcov≤thit(1+21+⋯+n1)); Proposition 11.4 (the matching Matthews lower bound over subsets).
Significance
The results. The commute time identity computes hitting times from circuit reductions — this is how hitting times on trees, tori and glued graphs are actually evaluated — and, through Thomson and Rayleigh, makes them monotone under graph operations, something invisible probabilistically. The Matthews bounds pin cover times up to a logn factor in complete generality; they are the tool behind cover-time results for lamplighter groups in Mission XI's sequel. Green's function identities feed Mission XII's recurrence theory, where R(a↔∞) decides transience.
Formalizing them. Mathlib has graph Laplacians but no electrical network theory: no effective resistance, no flows, no energy, no Thomson/Rayleigh, no hitting or cover times. This mission publishes that layer over the trajectory calculus of Mission I. It is the most reusable single block of the series outside Missions I–II: effective resistance on finite networks is of independent interest to combinatorics (spanning trees, spectral sparsification) well beyond mixing times.
Difficulty
The identity chain behind the goal runs: Green's function of the stopped walk → escape probability Pa{τz<τa+}=(c(a)R(a↔z))−1 (via harmonic uniqueness) → the Aldous–Fill occupation identity Gτ(a,x)=Ea(τ)π(x) for stopping times with Xτ=a — each step is a manipulation of infinite series of trajectory sums whose exchange steps (splitting a path at its first visit, last-exit decompositions) need summability from Mission I's Lemma 1.13. Thomson's principle is a finite-dimensional convex minimization: existence of the minimizer needs a compactness or completing-the-square argument, and the identification of the minimizer with the current flow needs the cycle law; the naive "differentiate the energy" route must be made exact. Matthews' method is a clean but genuinely clever argument — a uniformly random ordering of targets and the harmonic-number telescoping; the formal cost is the exchangeability of the randomized order against the chain, handled combinatorially.
Formalization scope
Networks are functions c:V×V→R with a symmetry-and-nonnegativity predicate; loops are permitted; connectivity enters as irreducibility of the induced walk. The voltage is defined probabilistically as Px{τa<τz} (the book's harmonic characterization is Proposition 9.1); R(a↔z) is the reciprocal of the explicit current strength, with total division junk when a,z are disconnected — statements carry irreducibility so this does not arise. Energy counts each undirected edge once, formalized as half the ordered double sum, and 02/0=0 handles absent edges. Cover times are tail sums of the explicit event "some state unvisited". The Matthews lower bound is stated with an arbitrary lower bound m for the pairwise hitting times of the subset A — equivalent to the book's min over pairs and easier to instantiate.
Welcome contributions: series/parallel reduction laws, the cycle and node law API for flows, escape-probability lemmas — all reused in Mission XII's infinite-network arguments.
A. K. Chandra, P. Raghavan, W. L. Ruzzo, R. Smolensky, P. Tiwari, The electrical resistance of a graph captures its commute and cover times, STOC 1989. https://doi.org/10.1145/73007.73062
Modern A/B tests must infer lifetime treatment effects — e.g. customer lifetime value under a new feature — from short-horizon experiment data. Chen, Simchi-Levi and Wang (arXiv:2407.19618) model the experiment as a Markov decision process and exploit a structural fact of many practical interventions: the treatment is local, modifying the system at a single crucial state only. This mission formalizes the core asymptotic theory of the paper: for any differentiable estimator built from the experiment's transition and reward statistics, information sharing — pooling across test arms the samples collected away from the treated state — keeps the estimator asymptotically normal with the same asymptotic bias and never increases its asymptotic variance (Theorem 9), and is asymptotically efficient among unbiased estimators (Theorem 5). The route runs through a Markov chain central limit theorem with the asymptotic variance identified as the autocovariance series, and the linearization/delta method for functionals of chain statistics.
Markov Chains and Mixing Times I: Existence and Uniqueness of the Stationary DistributionTextbook
Markov Chains and Mixing Times I: Existence and Uniqueness of the Stationary Distribution
Motivation
Finite Markov chains are the basic model for memoryless random dynamics: card shuffles, random walks on graphs and groups, Monte Carlo samplers, and queueing systems are all chains on a finite state space. The single most used fact about them is that an irreducible chain has exactly one stationary distribution — a probability vector π with π=πP — and that this π is strictly positive and encodes the long-run behaviour of the chain through the return-time identity π(x)=1/Ex(τx+). Every later result in the theory of mixing times (convergence theorems, coupling bounds, spectral methods, cutoff) is a statement about the distance of the chain from this π, so nothing in the subject can be formalized before this mission is.
This mission is the first in a series formalizing D. A. Levin, Y. Peres and E. L. Wilmer, Markov Chains and Mixing Times (AMS, 2009), covering Chapters 1–2: the basic vocabulary of finite chains (stochastic matrices, irreducibility, period, reversibility, time reversal, random walks on graphs and groups) and the classical examples of Chapter 2 (gambler's ruin, coupon collecting, the reflection principle for simple random walk on Z). Later missions in the series build on the definitions published here.
Setting
A chain on a finite state space Ω is presented by its transition matrix, a matrix P∈RΩ×Ω with nonnegative entries whose rows sum to 1. A distribution is a row vector μ with nonnegative entries summing to 1; one step of the chain carries μ to μP, and the t-step transition probabilities are the entries of the matrix power Pt.
The chain is irreducible if for all states x,y there is a t with Pt(x,y)>0. The period of a state x is gcdT(x) where T(x)={t≥1:Pt(x,x)>0}, and the chain is aperiodic if every state has period 1. A distribution π is stationary if πP=π, and π and P are in detailed balance (the chain is reversible) if π(x)P(x,y)=π(y)P(y,x) for all x,y.
Trajectory events over a finite horizon are finite sums of path weights: a length-t trajectory is a function ω:{0,…,t}→Ω, with weight ∏i<tP(ωi,ωi+1) conditional on its starting state. The tail probability Px{τz+>t} of the first hitting time τz+=min{t≥1:Xt=z} is the sum of the weights of the trajectories from x that avoid z at times 1,…,t, and expectations of hitting times are recovered by the tail-sum formula E(Y)=∑t≥0P{Y>t}, formalized as a tsum over t.
Formalization targets
Goal
P stochastic and irreducible on a finite nonempty Ω⟹∃!π,π=πP.
This is Corollary 1.17 of the book. It asserts only existence and uniqueness, leaving the finer structure of π to the milestones; it is the weakest statement on which the rest of the series can stand, which is why it is the goal.
Milestones toward and around the goal
The milestone list follows the book's own route: well-definedness of the period (Lemma 1.6), positivity of some matrix power for irreducible aperiodic chains (Proposition 1.7), finiteness of expected hitting times (Lemma 1.13), existence of a positive stationary distribution together with
π(x)Ex(τx+)=1
(Proposition 1.14), constancy of harmonic functions (Lemma 1.16), stationarity from detailed balance (Proposition 1.19), the stationary and reversible measure π(x)=deg(x)/2∣E∣ of simple random walk on a graph (Examples 1.12 and 1.20), the time reversal P^ and its path-reversal identity (Proposition 1.22), and the random walks on finite groups of Section 2.6 (Propositions 2.12–2.14). From Chapter 2 the list adds the gambler's ruin formulas Pk{Xτ=n}=k/n and Ek(τ)=k(n−k) (Proposition 2.1), the coupon collector expectation n∑k≤n1/k and tail bound e−c (Propositions 2.3 and 2.4), and the reflection principle and the bound Pk{τ0>r}≤12k/r for simple random walk on Z (Lemma 2.18 and Theorem 2.17).
Significance
The result itself. Existence and uniqueness of π is the pivot on which the entire quantitative theory turns: it defines the target of convergence, and the identity π(x)Ex(τx+)=1 ties the stationary measure to return times, which later missions use for hitting-time and cover-time results. Detailed balance is the practical tool by which stationary measures of graph and group walks are computed, and the Chapter 2 examples (gambler's ruin, coupon collecting, reflection) are the standard building blocks reused throughout the book — the coupon collector bound, for instance, is exactly the estimate behind the nlogn+cn analysis of the top-to-random shuffle in a later mission of this series.
Formalizing it. Mathlib currently has no theory of finite Markov chains: no stochastic-matrix predicate, no stationary distribution, no periodicity, no hitting times. Everything proved in this mission is new formal mathematics, and the definition layer published here (mm_basic, mm_path, mm_classical) is the shared foundation that all twelve subsequent missions of the series import. All results are classical and have textbook proofs; none has a machine-checked proof.
Difficulty
The delicate point is the existence proof. The natural first idea — extract π from an eigenvector of PT for eigenvalue 1, or invoke a fixed-point theorem — either does not give positivity and nonnegativity without further work, or uses compactness machinery (Brouwer) that is unavailable. The book's proof instead builds π~(y)=Ez(visits to y before τz+) and verifies π~P=π~ by reindexing trajectory sums; formalizing it requires managing infinite series of path sums (summability from the geometric tail bound of Lemma 1.13, exchanging tsum with finite sums, splitting a trajectory at its last step). The uniqueness half is linear algebra via constancy of harmonic functions (Lemma 1.16), which is elementary but requires a maximum-principle argument over a finite state space. The reflection principle and Theorem 2.17 are finite combinatorics on ±1 paths — the bijection is easy to describe and fiddly to implement.
Formalization scope
States form a Fintype with decidable equality; chains are Matrix V V ℝ with the row-stochasticity predicate IsStochastic; distributions are functions V → ℝ with the predicate IsDist. Everything is distribution-side: no probability space or measure theory is used. The period is formalized as sup{d:d∣t for all t∈T(x)}, which equals gcdT(x) when T(x)=∅ and takes the junk value 0 otherwise. Expectations of hitting times are tsums of tail probabilities, with the usual junk value 0 for non-summable families — the statements are arranged (e.g. multiplicatively, π(x)⋅Ex(τx+)=1) so that junk values cannot make them vacuously true. Existence statements carry a Nonempty V hypothesis; irreducibility on the empty space is vacuous, and without nonemptiness the goal would be false, not trivial. The coupon collector and the walk on Z are presented directly by their driving randomness (uniform draws Fin t → Fin n, uniform sign strings Fin r → Bool), so those probabilities are elementary counting; in particular the reflection principle is stated as an equality of cardinalities of sets of sign strings — this is equivalent to the probabilistic statement because all 2r strings are equally likely.
Contributions welcome beyond the milestone list: simp lemmas for the definition layer, the taboo-matrix representation of avoidance probabilities (useful for Lemma 1.13), and any interface lemmas connecting pathWeight sums to matrix powers — these will be reused by every later mission in the series.
The classical convergence theory of smooth convex minimization. For a function that is m-strongly convex and M-smooth (mI⪯∇2f(x)⪯MI), gradient descent converges linearly, while Newton's method exhibits its famous two phases: a damped phase in which every backtracking step decreases the objective by a fixed amount γ, and a quadratically convergent phase in which the scaled gradient norm squares at each step, 2m2L∥∇f(x+)∥2≤(2m2L∥∇f(x)∥2)2. Together they give the iteration count of B&V (9.36),
with L the Lipschitz constant of the Hessian and α,β the backtracking parameters. This mission formalizes Chapters 9–10 of Boyd & Vandenberghe with every constant exactly as printed — a quantitative theory entirely absent from Mathlib.
The Karush–Kuhn–Tucker conditions are the central result of convex optimization: for a convex differentiable problem satisfying Slater's condition, a point is optimal exactly when primal feasibility, dual feasibility, complementary slackness and Lagrangian stationarity hold. This mission formalizes Chapters 4–5 of Boyd & Vandenberghe end to end — the first-order optimality criterion, concavity of the Lagrange dual, weak duality, Slater's strong-duality theorem with dual attainment (via the separating-hyperplane argument of §5.3.2), the saddle-point characterization, sensitivity bounds and Pareto scalarization — culminating in the full KKT characterization.
Introduction to Linear Optimization XIII: Lagrangean Duality and Integer ProgrammingTextbook
Linear programming has a complete duality theory; integer programming does not — and the Lagrangean dual measures exactly how far duality reaches. This mission formalizes the duality theory of integer programming from Section 11.4 of Bertsimas–Tsitsiklis, built on the general linear programming duality of Section 4.10. For the integer program
ZIP=min{c′x:Ax≥b,Dx≥d,x integer}
with integer data, the complicating constraints Ax≥b are dualized with multipliers p≥0 over the tractable set X={x integer∣Dx≥d}: the dual function is
Z(p)=x∈Xmin(c′x+p′(b−Ax))
and the Lagrangean dual is ZD=maxp≥0Z(p). Weak duality ZD≤ZIP (Theorem 11.2) always holds, but strong duality can fail. The convex hull CH(X) of the integer points of a polyhedron with integer data is itself a polyhedron (Theorem 11.3, Meyer's theorem), and the capstone — Theorem 11.4, the central result of Section 11.4 — identifies the Lagrangean dual exactly: ZD equals the optimal cost of the linear program
min{c′x:Ax≥b,x∈CH(X)}
. This is the geometric explanation of the strength of Lagrangean relaxation, yields the bound ordering ZLP≤ZD≤ZIP, and Corollary 11.1 characterizes exactly when the bounds collapse. The polyhedral engine is the general weak/strong duality pair (Theorems 4.17/4.18) over a primal minc′x s.t. Ax≥b, x∈P={x∣Dx≥d}, and the formulation-strength comparison Psub⊆Pcut of Theorem 10.1 supplies the motivating principle that tighter relaxations of the same integer set give sharper bounds.
Introduction to Linear Optimization VII: Cones, Extreme Rays, and the Resolution TheoremTextbook
How can an unbounded polyhedron be described by finitely many geometric objects? Sections 4.8-4.9 of Bertsimas-Tsitsiklis build the cone machinery: recession cones {d∣Ad≥0} and their rays, extreme rays (defined, like basic solutions, by n−1 linearly independent active constraints), the pointedness criterion (Theorem 4.12: 0 is an extreme point of a polyhedral cone iff the cone contains no line iff n of the constraint vectors are linearly independent), and the characterization of unbounded linear programs (Theorems 4.13-4.14: over a pointed polyhedral cone, and then over any polyhedron with an extreme point, the optimal cost is −∞ iff some extreme ray d has c′d<0). The capstone is the resolution theorem (Theorem 4.15): a nonempty polyhedron P with at least one extreme point equals Q={∑iλixi+∑jθjwj∣λi≥0,θj≥0,∑iλi=1} — the convex hull of its extreme points plus the cone generated by a complete set of its extreme rays. It specializes to Theorem 2.9 / Corollary 4.4 (a nonempty bounded polyhedron is the convex hull of its extreme points) and Corollary 4.5 (a pointed polyhedral cone is generated by its extreme rays). The converse, Theorem 4.16, states that every finitely generated set is a polyhedron — in particular the convex hull of finitely many vectors is a polyhedron. Together these form the Minkowski-Weyl equivalence of the two representations of polyhedra, verified absent from Mathlib and the genuine content of this mission.
Matrix Completion has No Spurious Local MinimumResearch Paper
Matrix completion — recovering a low-rank matrix M=ZZ⊤ from a small random subset of its entries — powers recommender systems and collaborative filtering. In practice it is solved by running (stochastic) gradient descent on the non-convex objective
f(X)=Xmin21∥PΩ(M−XX⊤)∥F2+λR(X)
where Ω={(i,j)∣Mi,j is observed} and R(X) is a certain regularizer. from a random starting point, and it just works.
Ge, Lee and Ma (NeurIPS 2016 Best student paper award) explained why: the regularized objective has no spurious local minima — every local minimum is global and exactly recovers M. This mission formalizes that landmark theorem in Lean 4, in its strongest known form and along its simplest known proof: the unified landscape analysis of Ge–Jin–Zheng (ICML 2017) and an improved sampling bound in Chen–Li (JMLR 2019). Conditional on an explicit good-sample predicate (which holds with high probability under Bernoulli sampling), every local minimum X of f satisfies XX⊤=ZZ⊤.
Bandit feedback is only one point on a spectrum: a learner might see more than its own loss (full information) or less (a spam filter never learns what happened to mail it deleted). Chapter 37 of Lattimore–Szepesvári studies finite adversarial games G=(L,Φ) where the loss matrix and the feedback matrix are decoupled. The goal theorem is the celebrated classification theorem: every finite partial-monitoring game has minimax regret exactly 0, Θ(n), Θ(n2/3) or Ω(n) — determined by two purely combinatorial conditions, global and local observability, on the game's neighbourhood structure. A single geometric dichotomy thus governs the price of information in every online decision problem with finite actions and feedback.
Bandit Algorithms X: Stochastic Linear Bandits and LinUCBTextbook
When actions are feature vectors and the mean reward is linear — Xt=⟨θ∗,At⟩+ηt — a bandit can generalize across arms: pulling one arm reveals information about all of them. Chapter 19 of Lattimore–Szepesvári carries the optimism principle into this setting: LinUCB (a.k.a. OFUL) plays the action maximizing maxθ∈Ct⟨θ,a⟩ over the confidence ellipsoid Ct of Mission IX. The goal theorem: with probability 1−δ, R^n≤8nβnlogdetV0detVn≤8dnβnlogdλdλ+nL2 — regret O~(dn) independent of the number of actions. The combinatorial engine is the elliptical potential lemma, bounding how many times adaptively chosen directions can be surprising. Chapter 22's phased elimination with G-optimal design (Mission IX) sharpens this to O~(dnlogk) for finite action sets.
Bandit Algorithms IX: Self-Normalized Concentration and Optimal DesignTextbook
Least-squares estimation from adaptively collected data is the statistical heart of linear bandits: the actions At depend on past noise, so classical fixed-design theory does not apply. Chapter 20 of Lattimore–Szepesvári resolves this with the method of mixtures: the process Mt(x)=exp(⟨x,St⟩−21∥x∥Vt(λ)2) is a supermartingale, and integrating over a Gaussian mixture yields the self-normalized bound — the goal theorem — P(∃t:∥St∥Vt(λ)−12≥2logδ1+logλddetVt(λ))≤δ, valid uniformly over all times. The resulting confidence ellipsoids for the regularized least-squares estimator (Abbasi-Yadkori et al.) calibrate every algorithm of Mission X. The mission also formalizes the Kiefer–Wolfowitz theorem of Chapter 21: G-optimal and D-optimal experimental designs coincide, with optimal value exactly d — the classical equivalence theorem of optimal design theory.
Every even integer greater than 2 is the sum of two primes. Christian Goldbach posed it in a 1742 letter to Euler, and it has resisted proof for nearly three centuries while being verified computationally up to 4×1018 — making it one of the oldest and most famous open problems in all of mathematics. Its ternary sibling, the weak Goldbach conjecture, was settled by Helfgott in 2013, but the strong form stated here remains wide open: the circle method controls three-prime sums yet loses control at two. This headline mission hosts the conjecture as a machine-checked target for partial results, reductions between its variants, and any future attack.
Itô's Lemma: Brownian Motion, Quadratic Variation and the Stochastic Chain RuleTextbook
Motivation
Itô's lemma is the stochastic chain rule. It identifies the additional drift created when a nonlinear function is applied to a process with Brownian fluctuations. This second-order correction is central to stochastic differential equations, martingales and mathematical finance. The Wikipedia article discusses the scalar formula, multidimensional and jump extensions, geometric Brownian motion, stochastic exponentials, product rules and Black–Scholes.
The mission will formalise these statements in a dependency-first Lean 4 development. Wikipedia supplies the topic map; rigorous proof obligations use stochastic integration and quadratic variation. Rémy Degenne's BrownianMotion and MathFin are independently developed Lean comparison sources. Their exact scopes and pinned dependencies must be audited before import or adaptation.
A live Prove2Me catalogue audit on 26 October 2026 found accepted Brownian-increment, elementary Itô-integral, isometry, continuous-modification and time-independent vector Itô-formula theorems at the same Mathlib revision. Those results are reusable prerequisites, so the new mission concentrates on the time-dependent and semimartingale gaps. The full time-dependent multidimensional continuous-semimartingale theorem is an existing Open target.
Setting
Let (Ω,F,(Ft)t≥0,P) be a filtered probability space with the usual conditions, and B a real Brownian motion adapted to the filtration. Fix a deterministic finite horizon T. Initially let μ,σ be bounded adapted continuous real processes. Their integrals define
Xt=x0+∫0tμsds+∫0tσsdBs,0≤t≤T.
Let f:[0,T]×R→R be C1,2, with continuous derivatives ft,fx,fxx satisfying sufficient boundedness/integrability assumptions. The principal capstone proves, for each deterministic t≤T, almost surely,
A later milestone uses continuous modifications to strengthen this to one probability-one event for all t∈[0,T]. The notation (dB)2=dt describes quadratic variation in a probabilistic limit, not pointwise differential equality. No formal process definition may assume the identity it is supposed to prove.
Formalization targets
Brownian motion and quadratic variation
Reuse exact compatible Prove2Me Brownian-process results and pinned Mathlib declarations. Prove increment moment and independence identities, deterministic partition quadratic-variation convergence ∑πn(Bv−Bu)2→T in L2 or probability, weighted quadratic-variation convergence and vanishing drift-Brownian covariation. State the convergence mode and partition assumptions for each theorem.
Stochastic-integral construction and isometry
Audit and reuse the Prove2Me results for predictable simple-process integration, representation independence and the elementary isometry; establish new statements only for missing mathematical interfaces or stronger conditions:
E[(∫0THsdBs)2]=E[∫0THs2ds]
for square-integrable predictable H. A central theorem is the isometry in integral form:
E(∫0THsdBs)2=E[∫0THs2ds].
Extend by completion and establish centred martingale, adaptedness and continuous-version results. External packages cannot be assumed present in Prove2Me; importable prerequisites must be published and remotely verified.
Brownian scalar and time-dependent chain rules
First prove the formula for g(Bt) with the 21g′′ correction and bounded derivatives, then for f(t,Bt) with additional ft. Prove convergence of the Taylor remainder rigorously. Unbounded-derivative and local-martingale statements remain distinct extensions.
Adapted diffusion capstone
First use the accepted time-independent vector formula on an augmented process with coordinates (t,Xt), clock drift one and zero clock diffusion. This gives a globally C2 time-dependent case under the vector theorem's boundedness assumptions. Then extend the spatially second-order formula to C1,2 test functions by a separately justified approximation that does not demand a second time derivative. Prove the displayed integral identity for X=x0+∫μds+∫σdB, bounded adapted continuous coefficients and suitable C1,2 hypotheses. Subsequently strengthen the fixed-time almost-sure result to indistinguishable continuous process versions, and extend by stopping-time localisation to more general coefficients and functions.
Product rule, squares and exponentials
Prove the product rule d(XY)=XdY+YdX+d[X,Y] and d(Bt2)=2BtdBt+dt. Verify that St=S0exp((μ−σ2/2)t+σBt) solves geometric Brownian motion's SDE for constant coefficients, and derive the logarithmic correction under positivity, using localisation where derivative growth requires it.
Multidimensional diffusion
For a d-dimensional process driven by m-dimensional Brownian motion with drift b and matrix G, prove the covariance cross-terms and
df=[ft+∇f⋅b+21tr(G⊤HfG)]dt+(∇f)⊤GdB.
Dimensions, orientation, smoothness and measurability are explicit. Do not use the target formula itself as a hypothesis.
Jumps and discontinuous semimartingales
As a separate advanced branch, prove finite-activity jump corrections, reusing the Lévy-process mission if its results are accepted. A general càdlàg semimartingale extension must distinguish continuous quadratic variation [X]c, left limits Xs− and the sum of exact jump remainders f(Xs)−f(Xs−)−f′(Xs−)ΔXs. This extension does not obstruct the continuous-diffusion capstone.
Black–Scholes application
Under precise self-financing, trading, asset-price, volatility and bank-account assumptions, derive delta-hedging identities and the Black–Scholes PDE from the diffusion formula. Reuse any compatible theorem in the financial-derivatives mission programme.
The intended graph is Brownian laws → stochastic integral/isometry and quadratic variation → Brownian chain rules → adapted-diffusion capstone → products/exponentials and higher-dimensional applications. Jump and option-pricing milestones have additional dependencies and are not prerequisites of the core scalar theorem.
Significance
The classical scalar Itô theorem is already established mathematically in the literature, while the proposed Prove2Me formalisation remains unverified. The MathFin project provides a relevant checked comparison development. The result supplies an importable stochastic-calculus foundation for SDEs, diffusion generators, mathematical finance and insurance risk. In particular it can support future stochastic verification in the spectrally negative Lévy dividend mission, subject to its separate jump and filtration assumptions. MathFin reports fixed-time adapted-coefficient and time-dependent Brownian Itô theorems, but its own scope notes distinguish unbounded functions such as exponential and square functions, and record that its two-dimensional version is a reduced core. These are useful nontrivial extension targets. External build claims do not constitute Prove2Me proof acceptance.
Difficulty
Core challenges include adapting already accepted integration and quadratic-variation interfaces, closing the clock-augmentation bridge, controlling the C2-to-C1,2 approximation, Taylor remainders, almost-sure event quantifiers and localisation. The multidimensional formula needs correct covariance rather than coordinatewise increments alone. Jump formulas need exact left-limit and compensation conventions. The Wikipedia presentation contains heuristic differential manipulations; every Lean target must be stated as an integral or precisely quantified convergence identity. Pinned-environment imports, declarations and types require independent remote validation.
Formalization scope
The central mission is the genuine real-valued time-dependent Itô formula for continuous Brownian drift-diffusions on a finite horizon, initially with bounded coefficients and derivatives. The underlying stochastic integrals are mathematically defined, and the identity is an independently proved conclusion. Stronger growth, time-quantifier, dimension and jump cases are staged as separate milestones with their own prerequisites. No vacuous model, circular field assumption, deterministic-only case or restatement with the desired result assumed can discharge the capstone.
The Prove2Me environment is pinned to Mathlib revision 0df444a360eaa60ab8c11dca51a86af692955474. External BrownianMotion/MathFin imports are research references until exact compatibility is demonstrated. Already-Proved Prove2Me Itô and Brownian theorems should be imported or cited directly after source-identity verification; their statements are not to be republished under new names. Create private unconfirmed items, audit reusable accepted declarations and theorem-source correspondence, validate each declaration remotely and read back the draft before human confirmation. Draft, elaborated, proved, published and reviewed are distinct states. Do not automatically submit for moderator review.
From a multiplication algorithm to a Fourier algorithm
A faster algorithm for multiplying binary integers is useful beyond integer arithmetic when another problem can be reduced to it without losing the improvement in representation changes or numerical preparation. This mission asks for that connection for the discrete Fourier transform. Its goal is a theorem about actual machines: any correct binary multiplication machine with a runtime bound supplies a Fourier machine with a derived runtime bound and a specified numerical accuracy.
The mathematical route is classical. Bluestein's identity relates Fourier sums to polynomial convolution; Kronecker substitution relates bounded integer convolution to integer multiplication. A finite-precision version joins them. Harvey and van der Hoeven give an explicit multitape formulation, including numerical error, in Sections 2–3.4 of Integer multiplication is at least as hard as matrix transposition. This mission isolates that general transfer and its implementation obligations. It does not concern the paper's subsequent matrix-transposition reduction.
Binary inputs, approximate complex outputs, and machine time
A multitape Turing machine has finitely many states, finitely many tape symbols, and a fixed finite number of tapes. Each transition reads the symbols under its heads, writes symbols, and moves each head by at most one cell. Time is the number of transitions until halting. The shared IntMul.MultitapeTM model fixes a read-only input tape and a separate output tape. An output is required to occupy the complete specified output tape, followed by blanks. The model is already used by integer-multiplication results in the library.
At working precisionp, a pair of integers (a,c) represents the complex number 2−p(a+ic). The input coordinates lie in the closed complex unit disc. A numerical output remains a finite list of such pairs; arbitrary exact complex numbers appear only in its mathematical specification. Integers use fixed-width sign-magnitude binary encoding. Natural parameters have self-delimiting binary headers, and array entries occur in their ordinary index order. Reading headers, writing outputs, handling carries, and moving data are all part of the machine's execution.
For n≥1, the ordinary, unnormalised transform is
Dn(X)k=j=0∑n−1e−2πijk/nXj.
The supporting numerical theorem uses the normalised transform Dn(X)/n, which maps the unit polydisc into itself. Error is measured in absolute complex norm, or equivalently in units of 2−p when working with fixed-point coordinates.
The complete transfer target
Let M be any machine that correctly multiplies two s-bit integers within T(s) transitions for every s≥1. No monotonicity, smoothness, or computability assumption is imposed on the bound T. Write ℓ(n)=max(⌈log2n⌉,1). For requested accuracy b≥1, use
q=b+3ℓ(n)+5.
The main theorem asserts the existence of one Fourier machine and one positive constant C, uniform over all lengths, requested accuracies, and admissible input vectors. For a vector encoded at precision q, it produces an approximation to the ordinary DFT with coordinatewise error strictly below 2−b, and takes at most
C[T(nq)+nT(q)+qℓ(q)2+nq]
transitions. The root-computation term remains explicit, including when the requested precision is extremely large compared with the transform length. The output magnitude is bounded by n, and the output encoding has enough magnitude bits for this growth.
A companion theorem allows the encoded vector itself to approximate an arbitrary complex vector with coordinate error at most δ. Its final error is below nδ+2−b. A substitution theorem replaces T by any pointwise upper bound. An asymptotic corollary accepts the library's existing IntMul.MulTimeBound g predicate directly and gives the analogous bound in terms of g, once working precision exceeds a fixed threshold.
The source-sized supporting theorem retains two multiplication machines, an auxiliary size parameter m≥np, and the source's precision conditions. Its time is O(T(m)+nT′(p)) and its additional normalised error is less than 12n2 units of 2−p. The source's arbitrary positive regime constants are represented by positive integer constants; this cofinal family covers every positive real choice. The unrestricted-overhead theorem is an explicitly stated extension obtained by retaining preparation terms instead of absorbing them into the restricted regime.
What completing this mission establishes
The result makes transfer depend on the multiplier's correctness and runtime guarantee, not its internal arithmetic method. A new multiplication theorem can then feed the Fourier theorem through a reusable interface. Input size expansion and lower-order costs remain visible, so an improvement is never claimed by silently identifying a vector length with an integer bit length.
The previous arithmetic-transfer development already has accepted proofs for the chirp identity, explicit arithmetic operation counts, signed packing correctness, and packed operand lengths. Accepted fixed-point rounding and product-error results are also available. Those are supporting results; none alone proves this mission's final machine theorem. The new machine-existence and runtime statements are open formal proof obligations until the verification system accepts their proofs. Compilation of their statements is a separate check.
Why the implementation and numerical obligations matter
Counting an exact complex multiplication as one step cannot establish a bit-runtime bound. Likewise, an abstract function returning a convolution together with a chosen charge does not exhibit a machine that computes it in that time. The final goal therefore has no Fourier-oracle hypothesis, no supplied fast encoder or decoder, and no supplied root table.
The milestone list includes finite-width encoding correctness, fixed-point multiplication as a machine, root approximation, constant-factor operand-size adaptation, and linear-time packing and balanced-digit extraction. It also includes the full convolution and normalised Fourier machine theorems, the explicit-overhead variant, the guard-bit inequality, and the end-to-end consequences. Existing numerical lemmas and Kronecker correctness are referenced rather than duplicated.
Formalization conventions and boundaries
The Lean definitions reuse the published IntMul.MultitapeTM transition semantics and IntMul.HvdH rounding and Kronecker definitions. The new namespace is BitDFT. Transform length, requested accuracy, and arithmetic precision are positive in the machine theorems. Auxiliary encoding functions are total; every theorem using them for numerical data supplies the range conditions that prevent magnitude truncation. The decoding primitive returns a prescribed number of balanced digits; reconstruction is supplied separately by signed Kronecker correctness under its spacing conditions.
The theorem concerns approximate Fourier computation in the binary machine model. It does not claim a matching bound for exact complex arithmetic circuits, nor that preparation is negligible for every multiplier and precision regime. Bounds use actual transition counts with constants chosen before the input parameters. Formalization requires complete implementation proofs, including root construction, and cannot be completed by assuming the desired Fourier machine or its running time.
Selected references
David Harvey and Joris van der Hoeven, Integer multiplication is at least as hard as matrix transposition, 2025, Sections 2–3.4, Lemmas 2.1, 2.2 and 3.2, Propositions 3.1 and 3.3. Paper.
David Harvey and Joris van der Hoeven, Integer multiplication in time O(n log n), Annals of Mathematics 193 (2021), 563–617. Publication.
L. I. Bluestein, A linear filtering approach to the computation of discrete Fourier transform, IEEE Transactions on Audio and Electroacoustics 18 (1970), 451–455. DOI.
BitDFT transfer specification, companion Lean development, 24 October 2026. The explicit-overhead and requested-accuracy statements specify the complete transfer assembled from the cited reductions.
On the Closest String and Substring Problems: A Random-Sampling PTAS for Closest Substring, Within Factor 1 + 1/(2r−1) + 3εr of Optimal with Probability 1 − 2(nm)^(−1/3)Research Paper
Motivation
Many tasks in computational biology ask for a short pattern that occurs, with few errors, in each of a family of DNA or protein sequences: locating binding sites, finding conserved regions in unaligned sequences, designing PCR primers and genetic probes, and searching for a drug sequence that binds to a set of pathogen genomes. With Hamming distance as the error measure, two basic problems arise. Closest String asks for one string close to all inputs, and Closest Substring asks for one string close to some window of each input. Closest String is NP-hard (Frances and Litman, 1997), so Closest Substring is too, and both are studied for their approximability.
Timeline.
1997–1999: LP relaxation with randomized rounding gives near-optimal centers for Closest String when the optimal radius is large, super-logarithmic in the number of strings (Ben-Dor, Lancia, Perone and Ravi, 1997). Ratio-4/3 algorithms follow for all radii (Gąsieniec, Jansson and Lingas, SODA 1999; Lanctot, Li, Ma, Wang and Zhang, SODA 1999). For Closest Substring the known ratios are a trivial 2 (Lanctot et al.) and then 2−2∣Σ∣+12 (Li, Ma and Wang, STOC 1999).
2000: Li, Ma and Wang give polynomial-time approximation schemes for both problems (arXiv:cs/0002012; journal version J. ACM 49(2), 2002). The Closest Substring scheme is randomized.
This mission formalizes the Closest Substring scheme, Theorem 9 of the preprint.
Setting
Fix a finite alphabet Σ. A string of length m is a map {1,…,m}→Σ, and d(s,s′) is the number of positions where s and s′ differ. For a set T of positions, dT(u,v) counts the positions of T where u and v differ. For a position multisetR, dR(u,v) counts the entries of R, with multiplicity, where they differ.
An instance of Closest Substring is n≥1 strings s1,…,sn of length m and an integer 1≤L≤m. A length-Lsubstringt⊑si is a window si[p+1]⋯si[p+L]. The cost of a center c∈ΣL is
cost(c)=1≤i≤nmaxt⊑simind(c,t),
and dopt=minc∈ΣLcost(c).
Algorithm closestSubstring (Figure 3) has an integer r≥2 and a real ε>0 as constants. For every admissible tuple of r length-L substrings ti1,…,tir (repeats allowed, but two entries from the same si coincide) it does the following.
It forms the agreement setQ={j:ti1[j]=⋯=tir[j]} and its complement P.
It draws a multiset R of k=⌈(4/ε2)ln(nm)⌉ independent uniform positions of P.
For every y∈Σk, it picks in each si a substring ti′ minimizing d(y,ti′∣R)∣P∣/∣R∣+d(ti1∣Q,ti′∣Q).
within additive error ε∣P∣.
5. It proposes the candidate s′ with s′∣P=x and s′∣Q=ti1∣Q.
The length-L substrings of s1 are also candidates. The output is a candidate of minimum cost.
Formalization targets
Goal: Theorem 9
For every Σ, r≥2 and ε>0:
Pr[cost(output)≤(1+2r−11+3εr)dopt]≥1−2(nm)−1/3
for every instance and every solver of (8) within error ε∣P∣. In addition, some c=c(∣Σ∣,r,ε) bounds the number of candidates, and hence of solver calls, by c(nm+1)c. The constants are those the proof derives. Taking 2r−11+3εr≤δ gives the paper's "(1+δ) with high probability, in polynomial time".
Milestones, in proof order
Claim 2, Claim 3 and Lemma 1, the combinatorial core: if maxi,jd(ti,tj)>(1+2r−11)dopt, some r-tuple's agreement set carries an almost optimal center.
The bound ∣P∣≤rdopt.
Lemmas 4 and 5 (Chernoff bounds).
The sampling tails (11)–(12).
Fact 2: with probability ≥1−2(nm)−1/3, d(s∗,ti′)≤d(s∗,ti)+2ε∣P∣ for all i.
The deterministic chain (15)–(16).
The randomized-rounding bound from the proof of Lemma 6.
Significance
The result. Theorem 9 shows that Closest Substring, an NP-hard problem, can be approximated within any factor 1+δ in polynomial time. Earlier algorithms only reached ratios near 2. The method works by guessing the right r windows and the center's letters on a logarithmic random sample, and then solving a smaller problem on the remaining positions.
Formalizing it. The theorem is proved on paper; no machine-checked proof of it or of the Closest String scheme is known to exist. A formal proof checks three things the paper leaves implicit:
the union bound over all windows and all strings that yields the exponent −1/3;
the interaction of the random multiset with the exhaustive guess y;
the bookkeeping that turns the additive errors 2ε∣P∣ and ε∣P∣ into 3εrdopt.
Lemma 1 and Claims 2–3 also give the Closest String scheme (Theorem 7) once Lemma 6's solver is formalized.
Difficulty
The obvious idea is to apply the Closest String method to the substrings. It fails because problem (8) needs the right window of every input string, which are the closest substrings ti of an unknown optimum. There are (m−L+1)n choices of windows, too many to try. Random sampling replaces that search, but the selection rule of step 1(c)(i) only sees a sample of P. It must be shown that every window that is much worse than ti on the full string also scores worse on the sample, simultaneously for all windows and strings. This needs concentration bounds whose constants match the sample size ⌈(4/ε2)ln(nm)⌉ exactly.
The combinatorial Lemma 1 is the other obstacle. The obvious averaging over r-tuples does not give the factor 1/(2r−1); the telescoping of Claims 2 and 3 is needed.
Formalization scope
Strings are Fin m → A with 0-based positions, and distance is Mathlib's hammingDist. Substrings are indexed by start position. Position multisets are Fin k → Fin L. The ratios ρk of Section 2 are stored multiplied by d, so dopt=0 needs no division. Index tuples may repeat indices: the paper's "distinct" reading of Claim 3 fails when n<r+1. The logarithm is natural, and n≥1, 1≤L≤m.
The randomness is one independent multiset per admissible tuple, each with i.i.d. uniform entries on Pτ. When Pτ=∅, Rτ is a fixed multiset that is never read. Ties in step 1(c)(i) go to the smallest start position (Fact 2 is stated for every minimizer). The output is any minimizer of cost.
The solver of (8) is a parameter. It receives only the instance (the strings ti′, the set P, the offsets) and must return x with d(ti′∣P,x)+offseti≤d0+ε∣P∣ for all i. The exact minimizer qualifies, and so does Lemma 6's method. "Polynomial time" is formalized as a polynomial count of candidates and solver calls. The solver's own running time (LP solving and derandomized rounding) has no machine model here and is outside the statement, as is the remark that Figure 3 can be derandomized.
The algorithm never receives an optimal center, the optimal windows or dopt. A version that did, or a probability taken over "some" multiset rather than the algorithm's law, or a solver hypothesis mentioning the optimum, would make the goal trivial. All three are ruled out by the definitions.
Needed infrastructure:
finite product measures and Hoeffding/Chernoff bounds (Mathlib's measure_sum_ge_le_of_iIndepFun; the platform's HighDimProb.Concentration.chernoff and ComputationalLearning.chernoff_bounds are usable tools);
marginals of Measure.pi;
a union bound;
elementary counting with Finset.filter.
Lemmas 4–5, (11)–(12) and the rounding bound are reusable beyond this mission. Contributions to any milestone are welcome, in particular to the concentration lemmas and to Lemma 1.
M. Frances, A. Litman, On covering problems of codes, Theory of Computing Systems 30:113–119, 1997 (reference [4] of the preprint, listed at https://arxiv.org/abs/cs/0002012).
A. Ben-Dor, G. Lancia, J. Perone, R. Ravi, Banishing bias from consensus sequences, CPM 1997, pp. 247–261 (reference [1] of the preprint).
K. Lanctot, M. Li, B. Ma, S. Wang, L. Zhang, Distinguishing string selection problems, SODA 1999, pp. 633–642 (reference [11] of the preprint).
Edge Dominating Sets in Graphs: The Edge Dominating Set Problem Is NP-Complete for Bipartite Graphs of Maximum Degree 3Research Paper
Motivation
A set F of edges of a graph dominates the graph if every other edge shares an endpoint with an edge of F. Every maximal matching is an edge dominating set, and conversely a minimum edge dominating set can be turned into a minimal maximal matching of the same size, so the edge dominating set problem is the problem of finding a minimum maximal matching. Yannakakis and Gavril (SIAM J. Appl. Math. 38(3), 1980) list several places where it appears: covering problems for 0-1 matrices, the design of telephone switching networks, and approximation of minimum node covers (§1, p. 364). The paper settles its complexity on restricted graph classes.
The paper proves the problem NP-complete for planar graphs of maximum degree 3 (THEOREM 1) and for bipartite graphs of maximum degree 3 (THEOREM 2). This mission formalizes THEOREM 2, the one the rest of the paper builds on: §3 combines it with a correspondence between edge dominating sets and independent sets of total graphs to obtain COROLLARY 1 (independent set on total graphs of bipartite graphs) and COROLLARY 2 (achromatic number on complements of bipartite graphs).
Setting
Graphs are finite, undirected, without parallel edges or self-loops (p. 364). A graph G is bipartite if its vertices can be coloured with two colours so that every edge joins different colours; it has maximum degree 3 if every vertex has at most 3 neighbours.
The edge dominating set problem (pp. 365–366). Input: a graph G=(V,E) and a positive integer k. Property: G has a set F⊆E with ∣F∣≤k such that every edge of E∖F shares a vertex with an edge of F. The language EDSbip,3 is the set of binary codes of pairs (G,k) with G bipartite of maximum degree 3, k≥1, and the property holding.
The SAT-3-restricted problem (p. 365, from Yannakakis [13]). Input: clauses C1,…,Cp, each with at most three literals, in which every variable occurs exactly twice positively and exactly once negated. Property: some truth assignment satisfies all clauses. Its language is SAT3R.
NP-completeness is Cook's and Karp's notion (p. 365): a language L is NP-complete if L∈NP and every language in NP reduces to L by a polynomial-time many-one reduction.
The construction (pp. 367–368). For a formula with n variables, the proof builds a graph G with three literal vertices per variable (each with a pendant vertex), three variable-side vertices ai,bi,ci, and two vertices dj,dj′ per clause; it then replaces the clause vertices of degree 4 by copies of a 14-vertex gadget H (Fig. 3), obtaining G∗.
Formalization targets
Goal: THEOREM 2
SAT3Ris NP-complete⟹EDSbip,3is NP-complete.
The hypothesis is the one fact the proof takes from outside the paper (its reference [13]). The conclusion is the full claim: membership in NP and NP-hardness.
Milestones
In the order the proof uses them:
the printed bipartition (S,T) of G;
part (i): a satisfying assignment gives an edge dominating set F of G with ∣F∣=3n;
part (ii), first step: every edge dominating set of G has an edge at each of the 3n literal vertices, so ∣F∣≥3n;
part (ii): from an edge dominating set with ∣F∣=3n the assignment τ read off F satisfies all clauses;
G has maximum degree 4, attained exactly at dj of all-positive and dj′ of all-negated 3-literal clauses;
H−{x,y,z} is three u–v paths of length 4, so H needs four of its own edges even when all three attachment edges are in F;
four edges of H suffice if at least one attachment edge is in F;
five edges of H are needed if none is;
G∗ is bipartite, has maximum degree 3, and has an edge dominating set with at most 3n+4q edges iff the formula is satisfiable (q the number of replaced clauses);
SAT3R≤pEDSbip,3;
EDSbip,3∈NP.
Significance
The result. THEOREM 2 places minimum maximal matching among the NP-hard problems even for sparse bipartite graphs, where the related maximum matching problem is solvable in polynomial time. It is the starting point of the paper's §3, which transfers hardness to independent sets in total graphs and to the achromatic number of complements of bipartite graphs, and it is the standard citation for the hardness of edge domination in bounded-degree bipartite graphs.
Formalizing it. The result has been known since 1980; no machine-checked proof of it is known to exist. The mission produces a checked reduction on an explicit Turing-machine model, a verified finite gadget, and the correspondence between edge dominating sets of the constructed graph and satisfying assignments. Formalization also brought out two slips in the printed proof (see below), which the milestones state in corrected form.
Difficulty
The combinatorial core, parts (i) and (ii), is a counting argument on G. The difficulties lie elsewhere:
The gadget substitution is not as printed. The text replaces dj,dj′ by H for every 3-literal clause. A clause with literals of both signs then produces an odd cycle through H, so G∗ is not bipartite. Only the clauses with a degree-4 node, those whose three literals have one sign, need replacing, and the threshold of G∗ (3n+4q) is not printed and must be derived from the gadget's properties.
The gadget facts are finite but not small: they quantify over subsets of 18 edges.
The machine model. The polynomial-time reduction must decode binary formula codes, build G∗, relabel it onto {0,…,N−1}, and output an adjacency matrix, all on multi-tape Turing machines with an explicit step bound, and it must send every non-code to a fixed no-instance.
Formalization scope
Formulas, assignments, the formula code and the complexity classes are those of the published CookLevin framework (in which 3-SAT and CLIQUE are already proved NP-complete); graph instances use the published NPGraph code (vertex count and threshold in unary, then the row-major adjacency matrix). Conventions:
SAT-3-restricted is read with multiplicity: every clause has at most three literal occurrences, every variable occurring in the formula occurs exactly twice positively and once negated, counted over all clauses. Repeated literals and empty clauses are allowed.
"Maximum degree 3" means every degree is at most 3; k is at least 1; graphs are simple (symmetric, loop-free adjacency matrix).
The NP-completeness of SAT-3-restricted is the goal's hypothesis, not an item. The paper takes it from [13], and it is not on the platform.
The vertices of G are indexed by literal occurrences, with 0-based clause and position indices. The vertex type of G∗ keeps the deleted clause vertices and an unused copy of H per unreplaced clause as isolated vertices.
Corrections: the degree-4 nodes are dj of all-positive and dj′ of all-negated 3-literal clauses, and H replaces only those clauses. The printed text is kept verbatim in the milestones.
Dropping the bipartite or the degree restriction from the target language, assuming NP-hardness of the target, or restricting edge dominating sets to matchings would each give a different and weaker theorem, and none of them is the goal.
THEOREM 1 (planar graphs of maximum degree 3) is not part of this mission: it needs planarity, which has no published substrate. §3 and §4 of the paper (total graphs, trees) are not included either.
Useful contributions: proofs of the gadget facts (finite, possibly by verified enumeration), of parts (i) and (ii), of the G∗ equivalence, and Turing-machine implementations of the reduction and the NP verifier; general lemmas about edge dominating sets and the NPGraph encoding are reusable beyond this mission.
Selected references
M. Yannakakis, F. Gavril, Edge dominating sets in graphs, SIAM J. Appl. Math. 38(3) (1980) 364–372. https://doi.org/10.1137/0138030
M. Yannakakis, Edge-deletion problems, Tech. Rep. 249, Computer Science Laboratory, Princeton Univ., 1978 (the paper's reference [13], source of the SAT-3-restricted problem; no online copy known).
No-local-broadcasting theorem for quantum correlations: A Bipartite State Can Be Locally Broadcast if and only if It Is Classical-ClassicalResearch Paper
Motivation
A quantum state of two systems can be correlated without being entangled, and the question of which of those unentangled correlations are still "quantum" has been studied from several directions: quantum discord (Ollivier & Zurek 2001), the classical correlations of Henderson & Vedral 2001, and the work-deficit of Oppenheim, Horodecki et al. 2002. Piani, Horodecki and Horodecki (arXiv:0707.0848, Phys. Rev. Lett. 100, 090502 (2008)) give an operational answer. They single out the classical-classical states, those that merely embed a joint probability distribution of two classical registers, and characterize them by two tasks: extracting all correlations by local measurements, and local broadcasting, in which each party, acting alone on its share, tries to produce two copies of the shared state.
The standard no-broadcasting theorem (Barnum, Caves, Fuchs, Jozsa & Schumacher 1996) says that a family of states of one system can be broadcast by a single channel if and only if the states commute. This mission formalizes its bipartite, local counterpart.
Setting
Let A and B be finite-dimensional quantum systems. A stateρ=ρAB of A⊗B is a positive semidefinite operator of trace one; ρA=TrBρ and ρB=TrAρ are its reductions. A channel is a trace-preserving completely positive map, written with finitely many Kraus operators X↦∑kKkXKk†, ∑kKk†Kk=1. A local channel is a product ΛA⊗ΓB of a channel acting on A alone and a channel acting on B alone.
A state is classical-classical (CC) if there are orthonormal families {∣i⟩} of A and {∣j⟩} of B and a joint probability distribution pij with
ρ=ij∑pij∣i⟩⟨i∣⊗∣j⟩⟨j∣.
It is classical-quantum (CQ) if ρ=∑ipi∣i⟩⟨i∣⊗σi with {∣i⟩} orthonormal and states σi of B.
Let A′ and B′ be copies of A and B. An operator σ on (AA′)(BB′) has two copy reductions, σAB=TrA′B′σ and σA′B′=TrABσ. A broadcast state for ρ is a state σ with σAB=σA′B′=ρ. The state ρ is locally broadcastable (LB) if there are channels ΘA:A→AA′ and ΘB:B→BB′ such that (ΘA⊗ΘB)[ρ] is a broadcast state for ρ.
The correlations are measured by the mutual informationI(ρ)=S(ρA)+S(ρB)−S(ρ), with S(ρ)=−Trρlogρ the von Neumann entropy, and by two measured versions. A POVM {Mi} on A turns ρ into the CQ state ρCQ=∑i∣i⟩⟨i∣⊗TrA((Mi⊗1)ρ), and POVMs {Mi}, {Nj} on both sides turn it into the CC state ρCC=∑ijTr((Mi⊗Nj)ρ)∣i⟩⟨i∣⊗∣j⟩⟨j∣. Then
The direction "⇒" is Theorem 3 of the paper; "⇐" is the remark after Definition 6.
Milestones, in the order the proof uses them
Observation 1. (i) I, ICQ, ICC do not increase under local channels ΛA⊗ΓB with arbitrary finite outputs; (ii) I≥ICQ≥ICC≥0; (iii) each vanishes if and only if ρ=ρA⊗ρB.
Lemma 2. If I((ΛA⊗ΓB)[ρ])=I(ρ), there are local channels ΛA∗, ΓB∗ with (ΛA∗⊗ΓB∗)(ΛA⊗ΓB)[ρ]=ρ.
Lemma 1 (corrected). For a CQ state, I=ICQ=χ({pi,σi}), and I=ICC if and only if the σi with pi>0 commute, if and only if ρ is CC; likewise for QC states.
Theorem 1.ICC(ρ)=I(ρ) if and only if ρ is CC.
Theorem 2.ρ is LB if and only if some broadcast state σ has I(σAA′:BB′)=I(ρ), and every such σ is (ΘA⊗ΘB)[ρ] for some local channels.
CC states are LB.
Display (1) and equality in (1): for σ~=∑ijpij∣i⟩⟨i∣⊗∣j⟩⟨j∣⊗ρij,
with equality only if ρA′ij depends on i alone and ρB′ij on j alone on the support of p.
Significance
The goal shows that the ability to share correlations locally is exactly classicality: every separable but non-CC state, although it contains no entanglement, cannot be locally broadcast. Theorem 1 gives the parallel statement for measurement: only CC states lose no mutual information under optimal local measurements. The quantities I−ICC and the broadcasting deficits the paper proposes as measures of quantumness of correlations are faithful (zero exactly on CC states) because of these two theorems. The paper also derives the standard no-broadcasting theorem from Theorem 3.
The results are proved in the paper; none of them is machine-checked. A formalization needs von Neumann entropy calculus that the platform does not yet have in proved form: monotonicity of mutual information under local channels, strict concavity of entropy, Holevo's bound with its saturation condition, and Petz's recovery theorem in the special case of Lemma 2. Each of these is reusable well beyond this mission.
Difficulty
The equivalence is not a consequence of the single-system no-broadcasting theorem. A local broadcasting map need not clone anything: it only has to reproduce the two reductions of one fixed bipartite state, and ΘA, ΘB may act on A and B in any way that achieves this. The paper therefore argues through mutual information: a broadcast state reached by local channels must carry exactly I(ρ) (Theorem 2), and the measured broadcast state is then forced, through the equality case of a concavity inequality and the equality case of the Holevo bound, to be classical on both sides. Two of the ingredients, Petz's equality condition for relative entropy and strict concavity of the von Neumann entropy, are substantial analytic results in their own right, and the equality conditions must be handled without any rank or support assumption on ρ: the goal covers every state, rank-one product states included.
Formalization scope
Systems are nonempty finite index types a, b with decidable equality; a bipartite state is a matrix on a × b (A first) satisfying QAlgorithms.IsDensityMatrix (positive semidefinite, trace one). Channels are finite normalized Kraus families Fin m → Matrix κ ι ℂ (QAlgorithms.IsKrausFamily, QAlgorithms.krausApply), which are exactly the CPTP maps in finite dimension; a local channel has the Kraus operators K k ⊗ₖ L l. A two-copy state is indexed by (a × a) × (b × b), i.e. ((A,A′),(B,B′)), so the parties' cut is the outer product and both copy reductions are required of a broadcast state. Orthonormal families are indexed by Fin k and need not be bases. A measurement map writes its outcome in the computational basis of Fin n, and the maxima of ICQ, ICC are suprema over POVMs with any finite number of outcomes (attained in finite dimension). Entropy is QAlgorithms.vnEntropy, in bits; no statement depends on the base.
The goal cannot be trivialized by the encoding: the broadcasting channels act on A alone and on B alone (a global channel on AB broadcasts every state, by measuring in an eigenbasis of ρ and preparing two copies), the copies have the types of the originals, both reductions are imposed, and the families in the CC definition are orthonormal (with unit vectors only, CC would mean separable and the goal would be false). No statement assumes ρ invertible or of full rank.
Lemma 1 is posed corrected: as printed, "I=ICC iff the σi commute and ρ is CC" fails when some pi=0 (take p=(1,0), σ0=∣0⟩⟨0∣, σ1=∣+⟩⟨+∣). Commutation is required only of the states that occur.
Contributions welcome: proofs of the milestones, and general entropy lemmas (subadditivity, data processing for mutual information, strict concavity, Holevo saturation, Petz recovery for product reference states) proved as separate theorems that the milestones then import.
Selected references
M. Piani, P. Horodecki, R. Horodecki, No-local-broadcasting theorem for quantum correlations, arXiv:0707.0848v2 (2007); Phys. Rev. Lett. 100, 090502 (2008). https://arxiv.org/abs/0707.0848
H. Barnum, C. M. Caves, C. A. Fuchs, R. Jozsa, B. Schumacher, Noncommuting mixed states cannot be broadcast, Phys. Rev. Lett. 76, 2818 (1996). https://arxiv.org/abs/quant-ph/9511010
H. Ollivier, W. H. Zurek, Quantum discord: a measure of the quantumness of correlations, Phys. Rev. Lett. 88, 017901 (2001). https://arxiv.org/abs/quant-ph/0105072
Kurodoko is NP-Complete: Deciding the Solvability of Kurodoko Puzzles Is NP-CompleteResearch Paper
Motivation
Kurodoko ("where are the black squares?") is a pen-and-paper logic puzzle published by Nikoli. Its rules are short: colour some squares of a grid black so that the numbered squares stay white, no two black squares touch, the white squares stay connected, and every number counts the white squares it can see along its row and column. The computational complexity of pen-and-paper puzzles is an established topic: surveys such as Demaine and Hearn, Playing Games with Algorithms (2009), list dozens of puzzles whose solvability is NP-complete, and Yato's thesis studies the related problem of finding a second solution. Before Kölker's paper the complexity of Kurodoko was open (§1, p. 694).
J. Kölker, Kurodoko is NP-Complete, J. Inf. Process. 20(3), 694–706 (2012), settles it: deciding whether a Kurodoko instance has a solution is NP-complete. Membership in NP is short (Theorem 2, p. 695). Hardness (Theorem 3, p. 695) is a gadget reduction from one-in-three SAT, the satisfiability variant in which every clause must have exactly one true literal, shown NP-complete by Schaefer, The complexity of satisfiability problems, STOC 1978. The reduction is given twice, in prose (§4) and as a Python program (Appendix A.1), "in order to ensure there is no ambiguity".
Setting
An instance consists of a width w, a height h and a list of clues. The board has the squares (r,c) with row 0≤r<h and column 0≤c<w; two squares are adjacent when ∣r−r′∣+∣c−c′∣=1. A clue (r,c,n) puts the number n on the square (r,c); the clue squares form the set C, and the values form a function N:C→{1,…,w+h−1}.
A solution is a set B of board squares (the black squares; the rest, W, are white) such that
every clue square is white, B∩C=∅;
no two black squares are adjacent;
any two white squares are joined by a path of adjacent white squares;
every clue square vtouches exactly N(v) squares, where v touches the squares u in its own row or column such that all squares from v to u inclusive are white. For a white v this count is hz+vt−1, the lengths of its maximal horizontal and vertical white runs, minus one for v itself.
The Kurodoko Decision Problem asks whether a given instance has a solution. The input writes w and h in binary and lists the clue squares and their values, so the board can have exponentially many squares in the input length. In the Lean development, kurodokoLang is the set of binary codes of well-formed solvable instances.
A one-in-three SAT instance is a formula F: a list of clauses, each of three literals x or ¬x. A one-in-three assignment makes exactly one literal occurrence of every clause true. oneInThreeLang is the set of codes of formulas that have one.
Formalization targets
Goal: NP-completeness
1in3SATNP-complete⟹KurodokoNP-complete.
NP-completeness is the platform's CookPvsNP.NPComplete: membership in NP, and a polynomial-time many-one reduction from every NP language. The NP-completeness of one-in-three SAT is the only fact the paper imports, and it is the hypothesis.
For the board K(F) that the reduction assembles from a formula F:
K(F)solvable⟹Fhas a one-in-three assignment(Theorem 4),Fhas a one-in-three assignment⟹K(F)solvable(Theorem 5),
and the word map is polynomial-time computable with s∈1in3SAT⟺f(s)∈Kurodoko.
Supporting milestones
the compression step of Theorem 2: merging two adjacent black-free rows (or columns) preserves rule 3, and afterwards w,h≤2∣B∣+1;
Lemma 1: every ? square of the assembled board lies on a ray;
the gadget claim of §4.1: in every solution of K(F) each placed gadget obeys its relation on its port squares (for example no=si for a Wire, wi+si+ei=1 for a Choice).
Significance
The result. Kurodoko joins the family of Nikoli puzzles known to be NP-complete. It follows that no polynomial-time solver exists unless P=NP, and that the puzzle can encode any problem in NP. Every number in the produced instance is linear in the size of the formula, so the problem is strongly NP-complete (§6, p. 700).
Formalizing it. The paper's result is proved on paper but not machine-checked. Its correctness rests on nine hand-designed 17×17 gadgets and on deductions "by inspection" (Appendix A.2), which are exactly the steps a formal proof makes checkable. The formalization has already found two slips in the printed program: occurrences keyed by the signed literal (which crashes on any negated literal), and a mirrored Sidesplit, under which the unsatisfiable clause (x,x,x) produces a solvable board. The mission states the corrected reduction. The platform has the complexity layer CookPvsNP_defs, binary codes and several NP-completeness results, but no puzzle, no grid-colouring problem and no one-in-three SAT.
Difficulty
Membership in NP is not immediate, because w and h are binary: a witness B is short, but checking rule 3 by searching the board takes exponential time. The checker must first compress runs of black-free rows and columns, and the compressed board must be shown to have the same connectivity.
Hardness is a concrete construction of tens of thousands of squares. Theorem 4 needs every gadget to behave as specified in every solution of the whole board, not only in isolation. The ? clues take values that depend on the global layout through rays crossing several gadgets (Lemma 1), and their correctness depends on the overlap structure of neighbouring gadgets. Theorem 5 needs an explicit global solution and a proof that its white squares are connected across the whole board. A per-gadget check on a computer does not settle either direction, because the board grows with the formula. Polynomial-time computability on one-tape Turing machines is a separate, bookkeeping-heavy obligation.
Formalization scope
Model. Squares are pairs (r, c) : ℕ × ℕ, row first; B : Finset (ℕ × ℕ) lies on the board. Rule 3 is read as preconnectedness: any two white squares are joined by a chain of adjacent white squares, which holds vacuously when there is no white square. Rule 4 is touchCount, which counts the clue square once. Well-formedness (clues on the board, pairwise distinct, values in {1,…,w+h−1}) is part of the language.
Codes. Instances are written over the published BSym alphabet with encNats as w,h,r1,c1,n1,…, all in binary. Formulas use the published CNF and encodeCNF.
One-in-three SAT. Every clause has exactly three literals; negations and repeated variables are allowed, and "exactly one" counts literal occurrences, matching the one wire per occurrence of the reduction. Its NP-completeness is a hypothesis of the goal and of Theorem 3.
The reduction transcribes Appendix A.1 string by string and function by function, with two corrections: occurrences are keyed by the variable, and tee_l = rotate ltee. The empty formula goes to the solvable instance (1,1,[]), and a word that is not the code of a three-literal formula goes to the code of a fixed unsolvable instance. The Lean reduction's clue lists coincide with the corrected Python program's on the tested formulas.
Ruled out. The goal is not "Theorem 4 ∧ Theorem 5": that drops NP membership and polynomial time. The reduction milestone names the paper's map rather than a bare PolyReducible.
Not formalized. Theorem 1 (an observation about the clue 1) and the remarks of §6.
Reusable. The Kurodoko language and one-in-three SAT over the CookPvsNP layer. A proof of one-in-three SAT's NP-completeness in that framework, or of Cook's theorem (CookPvsNP.SAT_npComplete, open), would discharge the hypothesis. Contributions to the polynomial-time bookkeeping and to the gadget deductions are welcome.
T. J. Schaefer, The complexity of satisfiability problems, Proc. 10th Annual ACM Symposium on Theory of Computing, 216–226, 1978. https://doi.org/10.1145/800133.804350
E. D. Demaine and R. A. Hearn, Playing Games with Algorithms: Algorithmic Combinatorial Game Theory, in Games of No Chance 3, MSRI Publications 56, Cambridge University Press, 3–56, 2009. https://arxiv.org/abs/cs/0106019