Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Mathematical Logic

61 missions · 38 completed

Missions

Open23Completed38All61
🏆Completed
Formal VerificationTheoretical Computer Science·Captain: Rizwan G Mir

The Cook-Levin Theorem: NP-Completeness of Boolean Satisfiability in Lean 4Research Paper

Introduction

The Cook-Levin theorem states that CNF SAT is NP-complete. This mission formalizes the theorem over a multi-tape Turing machine model in Lean 4.

Main Goal

Prove CookLevin.cook_levin_theorem:

NPCompleteSATNPComplete SATNPCompleteSAT

under the decider and reduction hypotheses.

175 thms9 active usersReviewed
Complexity TheoryGraph Theory·Captain: iris

A Uniform Algorithm for Strict NP on Bounded-Treedepth Structures: SNP Model Checking in Time f(|φ|, td(R))·|R| with Q-Solutions in Time f(|φ|, td(R))·|R|^a, for a Computable fResearch Paper

Motivation

Strict NP (SNP) is the class of properties of finite structures expressible as ∃R1…Rr ∀x1…xk ψ\exists R_1\dots R_r\,\forall x_1\dots x_k\,\psi∃R1​…Rr​∀x1​…xk​ψ with ψ\psiψ quantifier-free. It contains many graph-layout and colouring problems: deciding whether the stack number, queue number or track number of a graph is at most kkk, whether its twin-width is at most kkk, or whether it is ccc-colourable. For several of these, whether they are fixed-parameter tractable by treedepth had repeatedly been posed as an open question; for stack number, see the Dagstuhl report of Ganian, Montecchiani, Nöllenburg and Zehavi (2021) and the GROW 2025 open-problem book (Beisegel, Scheffler, Köhler, eds.).

Every SNP property is hereditary: it is preserved by induced substructures. On structures of treedepth at most hhh over a fixed signature, induced substructures form a well-quasi-order (a consequence of Ding, 1992, recorded by Lopez, 2023), so each SNP property has finitely many minimal forbidden induced substructures. This gives, for each fixed sentence φ\varphiφ and depth hhh, a linear-time algorithm, but a non-uniform one: the forbidden structures are not known to be computable, and the dependence on φ\varphiφ and hhh is not known to be computable either.

Depian, Ganian, Greilhuber, Gründel and Wietheger (STOC 2027 submission) make this uniform: one algorithm takes φ\varphiφ and the structure RRR, runs in time f(∣φ∣,td(R))⋅∣R∣f(|\varphi|,\mathrm{td}(R))\cdot|R|f(∣φ∣,td(R))⋅∣R∣ with a computable fff, and can output witnesses.

Setting

A relational structure R=(V,E1,…,Eb)R=(V,E_1,\dots,E_b)R=(V,E1​,…,Eb​) has a non-empty finite domain VVV and relations Ei⊆Var(Ei)E_i\subseteq V^{\mathrm{ar}(E_i)}Ei​⊆Var(Ei​) of positive arities; its size is ∣R∣=∣V∣+∑iar(Ei) ∣Ei∣|R|=|V|+\sum_i \mathrm{ar}(E_i)\,|E_i|∣R∣=∣V∣+∑i​ar(Ei​)∣Ei​∣. Its Gaifman graph joins two distinct elements occurring in a common tuple. A rooted forest FFF on a vertex set has a depth for each vertex (the number of vertices on its root path) and a height (the maximum depth); its closure joins every vertex to all its ancestors. The treedepth td(G)\mathrm{td}(G)td(G) of a graph is the least height of a forest whose closure contains GGG, and td(R)\mathrm{td}(R)td(R) is that of the Gaifman graph. A treedepth decomposition is a rooted tree on the elements whose closure contains the Gaifman graph.

An SNP sentence is φ=∃R1,…,Rr ∀x1,…,xk: ψ\varphi=\exists R_1,\dots,R_r\ \forall x_1,\dots,x_k:\ \psiφ=∃R1​,…,Rr​ ∀x1​,…,xk​: ψ, where ψ\psiψ is a quantifier-free formula over atoms Ei(uˉ)E_i(\bar u)Ei​(uˉ), Rj(uˉ)R_j(\bar u)Rj​(uˉ) and xn=xn′x_n=x_{n'}xn​=xn′​. Its length ∣φ∣|\varphi|∣φ∣ counts, over all atom occurrences of ψ\psiψ, the number of element variables. A solution is an interpretation R1′,…,Rr′R'_1,\dots,R'_rR1′​,…,Rr′​ under which ψ\psiψ holds for all vˉ∈Vk\bar v\in V^kvˉ∈Vk, and R⊨φR\models\varphiR⊨φ means a solution exists. For Q⊆[r]Q\subseteq[r]Q⊆[r], a QQQ-solution is the restriction (Rj′)j∈Q(R'_j)_{j\in Q}(Rj′​)j∈Q​ of a solution.

Running times count operations of a word RAM whose words hold an index into the input and into the algorithm's parameter-dependent tables.

Formalization targets

Goal: Theorem 1

There are a computable fff and one algorithm that, given φ\varphiφ, RRR and Q⊆[r]Q\subseteq[r]Q⊆[r], decides R⊨φR\models\varphiR⊨φ in time

f(∣φ∣,td(R))⋅∣R∣,f(|\varphi|,\mathrm{td}(R))\cdot|R|,f(∣φ∣,td(R))⋅∣R∣,

and, if R⊨φR\models\varphiR⊨φ and Q≠∅Q\ne\emptysetQ=∅, outputs a QQQ-solution in time

f(∣φ∣,td(R))⋅∣R∣max⁡i∈Qar(Ri).f(|\varphi|,\mathrm{td}(R))\cdot|R|^{\max_{i\in Q}\mathrm{ar}(R_i)} .f(∣φ∣,td(R))⋅∣R∣maxi∈Q​ar(Ri​).

The goal leaves fff unspecified beyond computability.

Milestones

The milestones follow the proof: heredity (Observation 15); the cited decomposition algorithm [RRSS14] and well-quasi-ordering [Lop23]/[Din92]; the bound on vertex ppp-types (Lemma 19) and their linear-time computation (Lemma 20); realizing vertices (Lemma 25); the sss-multiplicity structure RsR^sRs (Lemma 28); the extension theorem (Theorem 8): a ppp-pure solution of the bounded structure RpR^pRp extends to RRR, with fast membership queries; finiteness of obstruction sets (Lemma 31); equality of small induced substructures of RRR and RsR^sRs (Lemma 32); R⊨φ  ⟺  Rs⊨φR\models\varphi\iff R^s\models\varphiR⊨φ⟺Rs⊨φ above the obstruction size (Lemma 9); the published hypergraph Ramsey theorem; the existence theorem (Theorem 10); correctness and termination of Algorithm A (Lemma 38); and computability of the obstruction set (Theorem 11).

Significance

Theorem 1 is an algorithmic metatheorem: any problem expressible in SNP is linear-time FPT by treedepth plus formula length, with witnesses. The paper uses it to settle the treedepth status of stack number, queue number, track number and twin-width (§5), and shows by barrier results that existential second-order logic or pathwidth cannot replace SNP or treedepth (§6). The computability of fff is what distinguishes it from the non-uniform statement obtained from well-quasi-ordering alone.

This mission formalizes the statement of Theorem 1 and every step of its proof: the main theorem and the obstruction-set theorem are new; neither the paper's results nor treedepth, Gaifman graphs or SNP had machine-checked statements before. The substrate (relational structures, SNP syntax and semantics, treedepth, a word-RAM cost model reused from the platform) is reusable for other algorithmic metatheorems. The result is a 2026 manuscript and has not been formally verified.

Difficulty

The non-uniform algorithm is easy once well-quasi-ordering is available; the difficulty is computability. Ding's theorem gives finiteness of the obstruction set Jh,φJ_{h,\varphi}Jh,φ​ but no bound on its size, so the obvious algorithm ("test the finitely many forbidden substructures") cannot be written down. The proof avoids this by searching, on the bounded ppp-multiplicity structure RpR^pRp, for a ppp-pure solution (one that treats tuples with equal route patterns alike), which certifies R⊨φR\models\varphiR⊨φ by itself; the existence of such a solution for large ppp needs nested hypergraph Ramsey arguments, and the bound on MMM comes from simulating the algorithm on all small structures. The cited results [RRSS14] and [Din92] are far from current libraries.

Formalization scope

Structures live on a finite type; input structures on Fin n\mathrm{Fin}\,nFinn with n≥1n\ge1n≥1, given by any code listing each tuple once, with the order of Fin n\mathrm{Fin}\,nFinn as the paper's total order. Sentences carry their input signature as a type parameter; the paper's conventions (negation normal form; every relation variable, element variable and input relation occurs; positive arities) form Sentence.WellFormed. Treedepth decompositions are parent functions with a depth witness, root depth 111. Vertex ppp-types are natural-number codes of the pair (ancestor label, truncated child-type counts), comparable across structures. RsR^sRs is defined on addresses (root paths of type–index entries), with the equivalence to the copy procedure of Definition 26 explained in the definition.

Algorithms are programs of the published word RAM (WordRAMEquivalence_Foundation1, WordRAM_Complexity_Programs; multiplication instruction set, unit cost). A statement fixes one program before every input and requires it to be correct within the stated bound for every word width www with 2w2^w2w above the bound; computable functions are Computable/Computable₂, quantified before the program. These choices rule out the trivializations a statement could otherwise admit: a different program per sentence, an uncomputable fff, an unbounded-word machine, or a bound in the code length instead of ∣R∣|R|∣R∣.

Welcome contributions: proofs of the structural lemmas about types, routes and RsR^sRs (Lemmas 19, 25, 28, 32), of heredity and Lemma 9, of the extension and existence theorems, and RAM implementations for Lemma 20, Theorem 8 and Theorem 1. Formalizations of Ding's theorem and of [RRSS14] would be reusable well beyond this mission.

Selected references

  • T. Depian, R. Ganian, J. Greilhuber, M. Gründel, S. Wietheger, A Uniform Algorithm for Strict NP on Bounded-Treedepth Structures, STOC 2027 submission (manuscript, sha256 98e4e1a9…).
  • F. Reidl, P. Rossmanith, F. Sánchez Villaamil, S. Sikdar, A Faster Parameterized Algorithm for Treedepth, ICALP 2014. https://doi.org/10.1007/978-3-662-43948-7_77
  • G. Ding, Subgraphs and well-quasi-ordering, Journal of Graph Theory 16 (1992). https://doi.org/10.1002/jgt.3190160509
  • F. P. Ramsey, On a Problem of Formal Logic, Proc. London Math. Soc. 30 (1930). https://doi.org/10.1112/plms/s2-30.1.264
  • P. G. Kolaitis, M. Y. Vardi, The decision problem for the probabilities of higher-order properties, STOC 1987. https://doi.org/10.1145/28395.28441
  • A. Lopez, First Order Preservation Theorems in Finite Model Theory: Locality, Topology, and Limit Constructions, PhD thesis, Université Paris-Saclay, 2023. https://doi.org/10.70675/9acfb61ez2b55z4833zacfbz1cd758dac6ff
  • R. Ganian, F. Montecchiani, M. Nöllenburg, M. Zehavi, Parameterized complexity in graph drawing (Dagstuhl Seminar 21293), Dagstuhl Reports 11(6), 2021. https://doi.org/10.4230/DagRep.11.6.82
25 thms5 active usersReviewed
🏆Completed
Theory of Computation·Captain: mikedeng1

On the (Im)possibility of Obfuscating Programs 2: Without the Size 1^|M| a Simulator with Oracle Access to ⟨M⟩ Cannot Decide Every Decidable Promise Problem Closed under Functional EquivalenceResearch Paper

Motivation

Barak, Goldreich, Impagliazzo, Rudich, Sahai, Vadhan and Yang (J. ACM 59(2), 2012) proved that virtual-black-box obfuscation is impossible in general: there are programs from which any obfuscated copy leaks something that oracle access to the program does not. The definition being refuted asks that whatever can be computed from the obfuscated code can also be computed by a simulator that only has oracle access to the program and is told an upper bound on its size.

Appendix A of the paper studies the computability analogue of this definition, where running time is unbounded. Rice's theorem says that no non-trivial property of the function computed by a Turing machine is decidable. The appendix asks a relative version: if a property of programs depends only on the computed function and is decidable from the code on a promise, can it also be decided from black-box access alone? Theorem A.2 answers yes when the simulator is given the size 1∣M∣1^{|M|}1∣M∣. Theorem A.4, the goal of this mission, shows that the size cannot be dropped. The result says which part of the simulator's interface is essential: an upper bound on program length is needed already in the computability setting, not only to pay for running time.

Setting

A machine MMM is a one-tape Turing machine over the tape alphabet {0,1}\{0,1\}{0,1}, with 000 the blank, and with states 0,1,…,q0,1,\dots,q0,1,…,q; state 000 is initial. In state sss reading symbol aaa the machine either halts or moves to a new state and performs one action (move left, move right, or write a symbol). One such transition is one step. The size ∣M∣=q+1|M|=q+1∣M∣=q+1 is the number of states.

Inputs are natural numbers in unary: input xxx is the tape 1x1^x1x, so ∣x∣=x|x|=x∣x∣=x. When MMM halts, its output is the number of consecutive 111s starting at the head. The computed function [M]:N⇀N[M]:\mathbb N\rightharpoonup\mathbb N[M]:N⇀N is defined where MMM halts. The step-bounded function is

⟨M⟩(1t,x)={yif M(x) halts with output y after at most t steps,⊥otherwise.\langle M\rangle(1^t,x)=\begin{cases}y&\text{if } M(x)\text{ halts with output } y \text{ after at most } t \text{ steps},\\ \bot&\text{otherwise.}\end{cases}⟨M⟩(1t,x)={y⊥​if M(x) halts with output y after at most t steps,otherwise.​

A promise problem Π=(ΠY,ΠN)\Pi=(\Pi_Y,\Pi_N)Π=(ΠY​,ΠN​) is a pair of disjoint sets of machines. It is closed under [⋅][\cdot][⋅] if [M]=[M′][M]=[M'][M]=[M′] implies M∈ΠY  ⟺  M′∈ΠYM\in\Pi_Y\iff M'\in\Pi_YM∈ΠY​⟺M′∈ΠY​ and M∈ΠN  ⟺  M′∈ΠNM\in\Pi_N\iff M'\in\Pi_NM∈ΠN​⟺M′∈ΠN​. It is decidable if a program TTT reading the description ⌜M⌝\ulcorner M\urcorner┌M┐ outputs 111 on ΠY\Pi_YΠY​ and 000 on ΠN\Pi_NΠN​; outside ΠY∪ΠN\Pi_Y\cup\Pi_NΠY​∪ΠN​, TTT may diverge.

An oracle machine SSS may query ⟨M⟩\langle M\rangle⟨M⟩: it asks (t,x)(t,x)(t,x) and receives ⟨M⟩(1t,x)\langle M\rangle(1^t,x)⟨M⟩(1t,x). S⟨M⟩()S^{\langle M\rangle}()S⟨M⟩() is its output with this oracle and no input. In particular SSS does not know ∣M∣|M|∣M∣.

Conjecture A.3 (Rice's theorem, third generalization) asserts: for every promise problem Π\PiΠ closed under [⋅][\cdot][⋅] and decidable, there is an oracle machine SSS with

M∈ΠY⇒S⟨M⟩()=1,M∈ΠN⇒S⟨M⟩()=0.M\in\Pi_Y\Rightarrow S^{\langle M\rangle}()=1,\qquad M\in\Pi_N\Rightarrow S^{\langle M\rangle}()=0.M∈ΠY​⇒S⟨M⟩()=1,M∈ΠN​⇒S⟨M⟩()=0.

The proof uses the description complexity of a partial function, KC(f)=min⁡{∣M∣:[M]=f}\mathrm{KC}(f)=\min\{|M|:[M]=f\}KC(f)=min{∣M∣:[M]=f}.

Formalization targets

Goal: Theorem A.4

¬ Conjecture A.3.\neg\,\text{Conjecture A.3}.¬Conjecture A.3.

There is a decidable promise problem closed under [⋅][\cdot][⋅] that no oracle machine without the size can decide. The witness is

ΠY={M:M always halts and ∃x<KC([M]), [M](x)=1},ΠN={M:M always halts and [M]≡0}.\Pi_Y=\{M: M\text{ always halts and } \exists x<\mathrm{KC}([M]),\ [M](x)=1\},\qquad \Pi_N=\{M: M\text{ always halts and } [M]\equiv 0\}.ΠY​={M:M always halts and ∃x<KC([M]), [M](x)=1},ΠN​={M:M always halts and [M]≡0}.

Milestones, in the order of the paper's proof

  1. Π\PiΠ is closed under [⋅][\cdot][⋅].
  2. KC([M])≤∣M∣\mathrm{KC}([M])\le|M|KC([M])≤∣M∣.
  3. Π\PiΠ is decidable.
  4. The machine ZZZ that reads its input and returns 000 satisfies ⟨Z⟩(1t,x)=⊥\langle Z\rangle(1^t,x)=\bot⟨Z⟩(1t,x)=⊥ for t<∣x∣t<|x|t<∣x∣ and 000 otherwise, and Z∈ΠNZ\in\Pi_NZ∈ΠN​.
  5. If S⟨M0⟩()=σS^{\langle M_0\rangle}()=\sigmaS⟨M0​⟩()=σ, there is nnn such that every MMM agreeing with M0M_0M0​ on all ⟨⋅⟩(1t,x)\langle\cdot\rangle(1^t,x)⟨⋅⟩(1t,x) with t,∣x∣≤nt,|x|\le nt,∣x∣≤n also has S⟨M⟩()=σS^{\langle M\rangle}()=\sigmaS⟨M⟩()=σ.
  6. For all n,rn,rn,r some machine computes Nn,r(x)=0,1,rN_{n,r}(x)=0,1,rNn,r​(x)=0,1,r (for ∣x∣≤n|x|\le n∣x∣≤n, ∣x∣=n+1|x|=n+1∣x∣=n+1, ∣x∣≥n+2|x|\ge n+2∣x∣≥n+2) and has the same step profile as ZZZ on all ∣x∣≤n|x|\le n∣x∣≤n.
  7. For every nnn some rrr has KC(Nn,r)>n+1\mathrm{KC}(N_{n,r})>n+1KC(Nn,r​)>n+1, so machines computing Nn,rN_{n,r}Nn,r​ lie in ΠY\Pi_YΠY​.

Significance

The result. Theorem A.4 separates two interfaces for a simulator. With 1∣M∣1^{|M|}1∣M∣, every decidable promise problem closed under [⋅][\cdot][⋅] is decided from black-box access (Theorem A.2). Without it, some are not. The size bound in the virtual-black-box definition is therefore doing real work even when complexity is ignored, and any computability-theoretic notion of obfuscation must hand the simulator a bound on the program's length.

Formalizing it. The theorem is proved in the paper in a few lines, and the proof rests on facts the paper does not argue: that a halting oracle computation reads only finitely many oracle values, that a machine with a prescribed function and a prescribed running time on short inputs exists, and that some Nn,rN_{n,r}Nn,r​ has description complexity above n+1n+1n+1. The paper says only "Let r be a string of Kolmogorov complexity 2n"; the counting argument behind it is left implicit. No machine-checked proof of Theorem A.4 or of Theorem A.2 is known to exist. This mission produces one in a model with literal step counts, together with reusable statements about step-bounded Turing machines and the use principle for oracle programs.

Difficulty

The obvious attempt at Conjecture A.3 is to search for a machine consistent with the observed values of ⟨M⟩\langle M\rangle⟨M⟩ and run TTT on it. Without a size bound the search space is infinite, and a finite prefix of ⟨M⟩\langle M\rangle⟨M⟩ never pins down [M][M][M]. The difficulty of the formal proof is elsewhere. It has to build Nn,rN_{n,r}Nn,r​ as an actual Turing machine with an exact step count on short inputs, and to prove that its description complexity exceeds n+1n+1n+1. Both need the step semantics to be exact. A fuel-based semantics in which larger programs need more fuel on the same input does not support the construction of Nn,rN_{n,r}Nn,r​.

Formalization scope

Machines are Mathlib's Post–Turing machines Turing.TM0.Machine Bool (Fin (q+1)), with the blank false and initial state 0. [M][M][M] is TM0.eval followed by the head read-out; ⟨M⟩(1t,x)\langle M\rangle(1^t,x)⟨M⟩(1t,x) iterates TM0.step at most ttt times. ∣M∣|M|∣M∣ is the number of states, so there are finitely many machines of each size. Inputs are unary, ∣x∣=x|x|=x∣x∣=x. This is forced, because the proof compares inputs both with numbers (x<KC([M])x<\mathrm{KC}([M])x<KC([M]), Nn,r(n+1)=1N_{n,r}(n+1)=1Nn,r​(n+1)=1) and with lengths (∣x∣≤n|x|\le n∣x∣≤n, t<∣x∣t<|x|t<∣x∣). The paper's string rrr is a natural number. The description ⌜M⌝\ulcorner M\urcorner┌M┐ is the encoding of qqq and the transition table, and the decider TTT is a Mathlib Nat.Partrec.Code acting on it. KC\mathrm{KC}KC is sInf over N\mathbb NN, which would be 000 for a function no machine computes; that case does not arise for f=[M]f=[M]f=[M], and milestone 7 asserts KC>n+1\mathrm{KC}>n+1KC>n+1 outright.

Oracle machines are the published uniform oracle programs FriedbergMuchnik.Program with semantics oracleEval. A query (t,x)(t,x)(t,x) is coded Nat.pair t x, and the answers ⊥\bot⊥ and yyy are coded 000 and y+1y+1y+1. S⟨M⟩()S^{\langle M\rangle}()S⟨M⟩() runs SSS on the fixed input 000.

The simulator is a single program chosen before MMM, and it only sees the values of ⟨M⟩\langle M\rangle⟨M⟩ it queries. A formalization in which SSS is an arbitrary function of the whole oracle, or receives ∣M∣|M|∣M∣, would make the goal false, and one in which the oracle is [M][M][M] changes the statement. Both are excluded here.

Needed infrastructure: computability of simulating a TM0 machine from its description (for milestone 3), the use principle for oracleEval with a total oracle (milestone 5), explicit construction and step analysis of ZZZ and Nn,rN_{n,r}Nn,r​ (milestones 4 and 6), and a counting bound on machines of bounded size (milestone 7). The first two are reusable beyond this mission. Proofs of individual milestones are welcome independently.

Selected references

  • B. Barak, O. Goldreich, R. Impagliazzo, S. Rudich, A. Sahai, S. Vadhan, K. Yang, On the (Im)possibility of Obfuscating Programs, Journal of the ACM 59(2), 2012. https://doi.org/10.1145/2160158.2160159 (Appendix A, Conjecture A.3 and Theorem A.4, p. A:42 of the author's copy).
  • H. G. Rice, Classes of recursively enumerable sets and their decision problems, Transactions of the AMS 74(2), 1953. https://doi.org/10.1090/S0002-9947-1953-0053041-6
11 thms4 active usersReviewed
Category TheoryComplexity TheoryGraph Theory·Captain: iris

Co-Decompositions and FO Model Checking: Deciding Any First-Order Sentence on the Limit of a Tree Co-Decomposition in Time f_σ(w, |φ|)·b for a Computable f_σResearch Paper

Why model checking on a compressed input

First-order model checking is the problem of deciding whether a structure satisfies a first-order sentence. It is the standard test of algorithmic meta-theorems. Tractability results for it include those of Frick and Grohe on locally tree-decomposable structures and of Bonnet, Kim, Thomassé and Watrigant for bounded twin-width. In these results the structure itself is the input.

Bumpus, Gomes, Larios-Jones and Turner study a different input. A tree co-decomposition assembles a structure as an iterated fibered product of small pieces. They arrive at it by dualizing tree decompositions, and they motivate it by models in the sciences that are built from small stratifying pieces. With bbb pieces of size at most www, the structure can have up to wbw^bwb points, so an algorithm that constructs it is exponential in its input. On these inputs (s,t)(s,t)(s,t)-reachability is NP-hard (their Theorem 1.14), while first-order logic stays tractable (their Theorem 1.16). This mission formalizes that positive result.

Setting

Fix a signature σ\sigmaσ: finitely many relation symbols with arities in N0\mathbb N_0N0​. A tree co-decomposition T\mathcal TT consists of a tree TTT, a finite σ\sigmaσ-structure GtG_tGt​ (a bag) at each node, a finite σ\sigmaσ-structure GeG_eGe​ (an adhesion) at each edge, and for each edge eee at a node ttt a surjective homomorphism gte:Gt→Geg^e_t:G_t\to G_egte​:Gt​→Ge​. Its width is the largest bag size, and bbb is the number of bags.

A matching family is a choice of xt∈Gtx_t\in G_txt​∈Gt​ with gse(xs)=gte(xt)g^e_s(x_s)=g^e_t(x_t)gse​(xs​)=gte​(xt​) on each edge e=ste=ste=st. The limit lim⁡T\lim\mathcal TlimT has the matching families as its points, and a relation holds of a tuple of families exactly when it holds coordinatewise in every bag. Direct products of structures are the special case of a one-point adhesion.

The algorithm receives T\mathcal TT and a sentence φ\varphiφ. It never receives lim⁡T\lim\mathcal TlimT.

Formalization targets

Goal: Theorem 1.16

For each fixed σ\sigmaσ there are one word RAM program and one computable function fσf_\sigmafσ​ such that, for every sentence φ\varphiφ and every T\mathcal TT of width at most www with bbb bags,

the program decides lim⁡T⊨φ within fσ(w,∣φ∣)⋅b steps.\text{the program decides } \lim\mathcal T\models\varphi \text{ within } f_\sigma(w,|\varphi|)\cdot b \text{ steps.}the program decides limT⊨φ within fσ​(w,∣φ∣)⋅b steps.

The program is fixed before all inputs, and fσf_\sigmafσ​ is any computable function; no tower height is hard-coded.

Milestones

The milestones run in the order of the proof:

  • the prenex and alternating form of a sentence;
  • Observation A.8 on modelling equality;
  • the universal property of the limit (Proposition 2.12);
  • binary form with at most 4b4b4b bags (Lemma B.2, strengthened from the printed O(blog⁡b)O(b\log b)O(blogb));
  • partial limits as iterated pullbacks (¶2.13);
  • Lemma 4.12, the induced hypothesis of a global assignment;
  • Lemmas 5.16 and 5.78, the game semantics and the root;
  • Observation 5.79 and the root test, in corrected form;
  • the tower bound (Lemma 5.81, ¶5.82).

Significance

The result. The theorem places first-order model checking in FPT for the parameters www and ∣φ∣|\varphi|∣φ∣, linearly in bbb, on structures exponentially larger than their descriptions. It therefore gives FPT algorithms on these inputs for kkk-clique, kkk-dominating set and similar problems. The categorical pattern (an induced object, projections to bags, pullbacks, a bounded state count) is the one the paper offers for further meta-theorems.

The formalization. The result is proved in a preprint and has no known machine-checked proof. Statements here use Mathlib's first-order syntax and semantics, and reuse the published word RAM.

The formalization also records a gap. The theorem appears to be true: coordinatewise Ehrenfeucht–Fraïssé composition over adhesion colours gives an independent proof sketch, which is not formalized. But the printed dynamic program does not establish it. Take unary R1,R2R_1,R_2R1​,R2​, bags A={a0,a1}A=\{a_0,a_1\}A={a0​,a1​} with R1={a1}R_1=\{a_1\}R1​={a1​}, R2=AR_2=AR2​=A, and B={b0,b1}B=\{b_0,b_1\}B={b0​,b1​} with R1=BR_1=BR1​=B, R2={b1}R_2=\{b_1\}R2​={b1​}, over a one-point adhesion. Then ∀x∃y (R2(x)↔R1(y))\forall x\exists y\,(R_2(x)\leftrightarrow R_1(y))∀x∃y(R2​(x)↔R1​(y)) holds in A×BA\times BA×B, yet the reduced pullbacks of Observation 5.79 give only product strategies, and none of them wins. The milestones state the minimal correction, which keeps reduced hypotheticals and pullbacks but stores at each node the single projection of the full strategy, and evaluates it alternately at the root. Both the counterexample and the corrected pullback equation have been checked in Lean, outside the items of this mission. Lemmas 5.16 and 5.78 also need non-empty families, and Lemma B.2's count is strengthened to 4b4b4b (its proof's O(log⁡d(t))O(\log d(t))O(logd(t)) per node cannot hold). The goal itself is unaffected.

Difficulty

The obvious approach is dynamic programming over witnesses: at each bag, keep what a Skolem strategy on the partial limit looks like from that bag. It fails because an existential response in one coordinate may depend on the universal move in another coordinate, and a table of local strategies has no memory of this dependence. A table that keeps the dependence grows with the limit. So the states must describe all responses, not a chosen winning response, and truth must be evaluated from them only at the root.

The second difficulty is the machine. The time bound is linear in bbb, so tree traversal and table lookups must be arranged in unit-cost word operations, with word width only just large enough for the bound. The tower of table sizes is harmless, since it is a function of the parameters.

Formalization scope

Signatures have symbols Fin r\mathrm{Fin}\,rFinr and the language is Mathlib's FirstOrder.Language, with no function symbols. Bags live on Fin n\mathrm{Fin}\,nFinn. The tree is an edge list whose graph is a Mathlib IsTree. Empty bags are allowed. The sentence is Mathlib's, so it includes equality (a generalization: the paper's logic has none, and its appendix extends to it). The length ∣φ∣|\varphi|∣φ∣ is the length of a prefix code. The machine is a reading, as the paper names none: Hagerup's word RAM as published on the platform, with one program for all inputs, working on every word width that holds the time bound.

No trivialization is available: the program and fσf_\sigmafσ​ are chosen before the input, fσf_\sigmafσ​ must be computable, the code does not contain the limit, and the output is checked on both truth values.

The diagrammatic categories of §5.3 (Theorem 5.53 and neighbours) are not stated: the step that used them is the one that fails, and the corrected route does not need them. The hypotheticals here are their reduced, set-level form, as Proposition 5.38 identifies. Reusable beyond this mission are the co-decomposition and limit vocabulary and the strategies and hypotheticals. Contributions proving the set-level milestones, or the program itself, are welcome.

Selected references

  • B. M. Bumpus, G. C. M. Gomes, L. Larios-Jones, W. J. Turner, Co-Decompositions and FO Model Checking, preprint, 2026. https://arxiv.org/abs/2611.04658
  • M. Frick, M. Grohe, Deciding first-order properties of locally tree-decomposable structures, J. ACM 48(6), 2001. https://doi.org/10.1145/504794.504798
  • É. Bonnet, E. J. Kim, S. Thomassé, R. Watrigant, Twin-width I: tractable FO model checking, J. ACM 69(1), 2022. https://doi.org/10.1145/3486655
  • S. Feferman, R. L. Vaught, The first order properties of products of algebraic systems, Fund. Math. 47(1), 1959. https://doi.org/10.4064/fm-47-1-57-103
  • T. Hagerup, Sorting and searching on the word RAM, STACS 1998. https://doi.org/10.1007/BFb0028575
23 thms3 active usersReviewed
Complexity TheoryTheoretical Computer Science·Captain: iris

Backdoors for Quantified Boolean Formulas: QBF Is Para-PSPACE-Hard Parameterized by Backdoor Size, Already with a Supplied Backdoor of Size Two to 2-CNF, Horn, or Affine FormulasResearch Paper

Backdoors for SAT, and why QBF is different

A quantified Boolean formula (QBF) Φ=Q.ϕ\Phi = Q.\phiΦ=Q.ϕ quantifies every variable of a Boolean matrix ϕ\phiϕ by a prefix Q=Q1x1⋯QnxnQ = Q_1x_1\cdots Q_nx_nQ=Q1​x1​⋯Qn​xn​, Qi∈{∀,∃}Q_i\in\{\forall,\exists\}Qi​∈{∀,∃}. Deciding its truth is the canonical PSPACE-complete problem. It is the natural target for problems in verification, planning and non-monotonic reasoning that lie above NP.

For SAT, the backdoor approach of Williams, Gomes and Selman (2003) and Crama, Ekin and Hammer (1997) is a standard route to fixed-parameter tractability. Fix a polynomial-time base class C\mathcal CC, such as 2-CNF or Horn formulas. A set BBB of variables is a strong backdoor to C\mathcal CC if every assignment τ:B→{0,1}\tau: B\to\{0,1\}τ:B→{0,1} leaves a residual formula ϕ[τ]∈C\phi[\tau]\in\mathcal Cϕ[τ]∈C. Evaluating a SAT instance with a given backdoor is then trivial: try the 2∣B∣2^{|B|}2∣B∣ assignments and solve each residual in polynomial time.

QBF is also polynomial-time solvable for every prefix when the matrix is in 2-CNF, HORN or AFF (systems of linear equations over F2\mathbb F_2F2​). Backdoor detection for QBF is the same problem as for SAT. The open question was evaluation. Branching on BBB breaks the prefix order: ∃x ∀z (x=z)\exists x\,\forall z\,(x=z)∃x∀z(x=z) is false, although both residuals ∃x (x=0)\exists x\,(x=0)∃x(x=0) and ∃x (x=1)\exists x\,(x=1)∃x(x=1) are true. Williams (2003, 2013) asked whether backdoors and QBF are compatible at all.

Eriksson, Lagerkvist, Ordyniak, Osipov, Panolan and Rychlicki (arXiv:2604.15927) answer this negatively for the backdoor size alone. This mission formalizes their lower bound.

Setting

Variables are x0,…,xn−1x_0,\dots,x_{n-1}x0​,…,xn−1​ (Lean: Fin n), quantified in index order. The prefix is a map qqq with q(j)=trueq(j)=\text{true}q(j)=true for ∃\exists∃. A clause is a set of literals, and a CNF QBF with mmm clauses is the published QBF n m. Truth is defined by recursion on the first quantifier (§3.2): ∃x1\exists x_1∃x1​ asks for one of the two restrictions to be true, ∀x1\forall x_1∀x1​ for both.

The three base classes are:

  • 2-CNF: every clause has at most two literals;
  • HORN: every clause has at most one positive literal;
  • AFF: conjunctions of equations (⨁v∈Axv)=b\bigl(\bigoplus_{v\in A}x_v\bigr)=b(⨁v∈A​xv​)=b.

For the affine class the paper's instances use guarded atoms (⨁v∈Axv=b)∨T\bigl(\bigoplus_{v\in A}x_v=b\bigr)\vee T(⨁v∈A​xv​=b)∨T, an equation together with a clausal guard TTT (§3.1, Lemma 4.4).

A strong backdoor (Definition 3.4) to QBF(C)(\mathcal C)(C) is a set BBB of matrix variables such that, for every τ:B→{0,1}\tau:B\to\{0,1\}τ:B→{0,1}, the restriction Φ[τ]\Phi[\tau]Φ[τ] has its matrix in C\mathcal CC. Restriction deletes the atoms made true by τ\tauτ and removes false literals. Membership is tested atom by atom. A problem parameterized by kkk is para-PSPACE-hard if its slice k≤ck\le ck≤c is PSPACE-hard for some constant ccc (§3.3).

The intermediate problem is qqq-Disjunct-QBF(ΓAFF)(\Gamma_{\mathrm{AFF}})(ΓAFF​): formulas Q.(ϕ1∨⋯∨ϕq)Q.(\phi_1\vee\cdots\vee\phi_q)Q.(ϕ1​∨⋯∨ϕq​) whose disjuncts are conjunctions of the atoms (x)(x)(x), (¬x)(\neg x)(¬x) and (x=y)(x=y)(x=y).

Formalization targets

Goal: Theorem 1.1 (= Theorem 5.9)

For each C∈{2-CNF,HORN,AFF}\mathcal C\in\{\text{2-CNF},\text{HORN},\text{AFF}\}C∈{2-CNF,HORN,AFF}, two languages are PSPACE-hard under polynomial-time many-one reductions:

{Φ true:∃B, ∣B∣≤2, B a strong backdoor of Φ to QBF(C)},\{\Phi \text{ true} : \exists B,\ |B|\le 2,\ B \text{ a strong backdoor of } \Phi \text{ to QBF}(\mathcal C)\},{Φ true:∃B, ∣B∣≤2, B a strong backdoor of Φ to QBF(C)}, {(Φ,B):Φ true, ∣B∣=2, B a strong backdoor of Φ to QBF(C)}.\{(\Phi,B) : \Phi \text{ true},\ |B| = 2,\ B \text{ a strong backdoor of } \Phi \text{ to QBF}(\mathcal C)\}.{(Φ,B):Φ true, ∣B∣=2, B a strong backdoor of Φ to QBF(C)}.

The first is the para-PSPACE-hardness of Theorem 1.1 with the explicit constant c=2c=2c=2. The second is the supplied-backdoor form stated on p.3 and in Theorem 5.9. Neither implies the other, so the goal asserts all six.

Milestones, in the order of the proof

  1. Falsity of quantified 3-CNF is PSPACE-complete (cited in the proof of Lemma 5.4).
  2. De Morgan duality: Φ⇔¬Φˉ\Phi\Leftrightarrow\neg\bar\PhiΦ⇔¬Φˉ.
  3. Lemma 5.4: Disjunct-QBF(ΓAFF)(\Gamma_{\mathrm{AFF}})(ΓAFF​) is PSPACE-complete.
  4. Lemma 5.5: a ΓAFF\Gamma_{\mathrm{AFF}}ΓAFF​ formula splits into r≥2r\ge2r≥2 parts. Every proper subcollection of the parts is satisfiable for free, and all parts together enforce the formula.
  5. The selector observation: ∃Z∀W.⋁s∈TEs  ⟺  ∣T∣≥2p\exists Z\forall W.\bigvee_{s\in T}E_s\iff|T|\ge2^p∃Z∀W.⋁s∈T​Es​⟺∣T∣≥2p.
  6. Lemma 5.7: (k2p)\binom{k}{2^p}(2pk​) disjuncts reduce to kkk in polynomial time, with at most m2p+kpm2^p+kpm2p+kp atoms.
  7. One balanced round of squishing preserves truth.
  8. The rounds bring d0d_0d0​ disjuncts down to four in O(log⁡(d0+1))O(\log(d_0+1))O(log(d0​+1)) rounds.
  9. Corollary 5.8: 4-Disjunct-QBF(ΓAFF)(\Gamma_{\mathrm{AFF}})(ΓAFF​) is PSPACE-hard.
  10. The guarded construction of Lemma 4.4: kkk disjuncts become one conjunction with a strong backdoor of size ⌈log⁡2k⌉\lceil\log_2k\rceil⌈log2​k⌉.
  11. The conversion of ΓAFF\Gamma_{\mathrm{AFF}}ΓAFF​ to 2-CNF ∩\cap∩ HORN (proof of Theorem 5.9).

Significance

Unless P = PSPACE, the theorem rules out even an XP algorithm for QBF backdoor evaluation. The parameter does not change the complexity classification at all, so any tractability result for QBF backdoors needs a further restriction. The paper's own positive results use such restrictions: the number of quantifier alternations (Theorem 1.2) and enhanced backdoors (Theorems 1.3–1.4). The obstruction is evaluation: detection is fixed-parameter tractable for 2-CNF and HORN by the SAT results (Gaspers and Szeider, 2012).

The result is proved in the paper, not open. It has no machine-checked proof. The platform also had no backdoor notion and no PSPACE-completeness proof for QBF. A complete development would supply both: a reusable PSPACE-hardness of quantified 3-CNF on Mathlib Turing machines, and a syntactic, atom-by-atom notion of strong backdoor. Beyond this mission, both serve any PSPACE-hardness reduction from QBF and any later formalization of backdoor tractability results.

Difficulty

Branching on the backdoor is the first idea, and it fails. The existential player must fix early variables before the universal player's later choices, so the residual solutions do not combine into a strategy.

The lower bound runs the other way. Eliminating a backdoor gives a disjunction of base-class formulas under a shared prefix, so hardness of qqq-Disjunct-QBF for a constant qqq is what is needed (Lemma 4.4). PSPACE-hardness with unboundedly many disjuncts is immediate by de Morgan duality. Reducing the number of disjuncts to a constant is the hard part. A disjunction cannot be shortened pointwise without losing information. Squishing trades disjuncts for new quantifier blocks and larger disjuncts. Its correctness depends on the existential player being able to satisfy any proper subcollection of the parts of a disjunct without constraining the original variables (Lemma 5.5).

A full proof also needs the PSPACE-completeness of QBF on a concrete machine model, and polynomial time for a reduction with O(log⁡d0)O(\log d_0)O(logd0​) rounds.

Formalization scope

PSPACE, polynomial-time many-one reductions and PSPACE-hardness are the published OptimalQueuingComplexity.Restless.InPSPACE, PolyReduces, PSPACEHard and PSPACEComplete, on Mathlib's multi-stack Turing machines (Turing.TM2ComputableInPolyTime). CNF QBFs are the published MDPComplexity.PartiallyObserved.QBF. Instances reach the machines through structural, injective bit encodings whose length is polynomial in the formula's size; a verification file proves the injectivity. Truth for non-CNF matrices uses one generic recursion, PrefixHolds, which agrees with the published CNF truth.

The formalization commits to several conventions:

  • Backdoor membership is syntactic and atom by atom. Only atoms made true by τ\tauτ are deleted, and BBB must consist of matrix variables.
  • Inputs whose clauses or guards contain a complementary pair are no-instances (the paper's input convention, p.16).
  • Every O(⋅)O(\cdot)O(⋅) that the proofs make explicit is stated as an explicit count.

A semantic backdoor test ("the restriction is equivalent to some 2-CNF formula") would trivialize the goal, since every formula on at most two free variables passes it. An encoding that compresses the instance or carries its truth value would trivialize every PSPACE statement. Both are ruled out by the definitions.

Lemma 4.4's running-time clause, which is measured in the paper's unit-cost symbol model, is not part of this mission. The polynomial-time reduction of the goal carries the time. Contributions are welcome on all of these:

  • the PSPACE-completeness of quantified 3-CNF on TM2;
  • the purely combinatorial milestones (selector observation, round count, Lemma 5.5, CNF conversion);
  • the Turing-machine implementations of the squishing rounds and the guarded construction.

Selected references

  • L. Eriksson, V. Lagerkvist, S. Ordyniak, G. Osipov, F. Panolan, M. Rychlicki, Backdoors for Quantified Boolean Formulas, arXiv preprint, 2026. https://arxiv.org/abs/2604.15927
  • L. J. Stockmeyer, A. R. Meyer, Word problems requiring exponential time, Proc. 5th ACM STOC, 1973. https://doi.org/10.1145/800125.804029
  • R. Williams, C. P. Gomes, B. Selman, Backdoors to typical case complexity, Proc. IJCAI, 2003. https://www.ijcai.org/Proceedings/03/Papers/168.pdf
  • M. Samer, S. Szeider, Backdoor sets of quantified Boolean formulas, Journal of Automated Reasoning 42, 2009. https://doi.org/10.1007/s10817-008-9114-5
  • S. Gaspers, S. Szeider, Backdoors to satisfaction, in The Multivariate Algorithmic Revolution and Beyond, LNCS 7370, 2012. https://doi.org/10.1007/978-3-642-30891-8_15
23 thms3 active usersReviewed
Graph TheoryTheoretical Computer Science·Captain: iris

Model Checking for Metric Extensions of Monadic Second-Order Logic: CMSO with Shortest-Path and Geodesic-Cycle Atoms Is FPT by Bag-Connected Treewidth and by Geodesic CliquewidthResearch Paper

Why metric conditions in monadic second-order logic

Courcelle's theorem is the standard tool for showing that a graph problem is tractable on tree-like graphs: every property expressible in counting monadic second-order logic can be decided in time f(∣φ∣+tw(G))NO(1)f(|\varphi|+\mathrm{tw}(G))N^{O(1)}f(∣φ∣+tw(G))NO(1) (Courcelle 1992; Arnborg, Lagergren, Seese 1991). Optimization and counting versions followed (Courcelle, Mosbah 1993), as did the version for cliquewidth (Courcelle, Makowsky, Rotics 2000).

These theorems do not reach problems about shortest paths. Whether a path is shortest depends on all other routes between its endpoints, and for problems such as Geodetic Set the parameter treewidth is not enough: that problem is W[1]-hard for a combined parameter that includes pathwidth, as the paper records (p.4). Bag-connected treewidth (Diestel, Müller 2018) restricts decompositions so that bags are connected, which also bounds the lengths of geodesic cycles. The paper of Chakraborty, Ordyniak and Siebertz asks for a logical meta-theorem at this boundary. This mission formalizes its first main result.

Graphs, formulas and parameters

All graphs are finite, simple and undirected. A formula of CMSO2\mathrm{CMSO}_2CMSO2​ quantifies over vertices, edges, vertex sets and edge sets, and uses adjacency, incidence, membership, unary input predicates, and the modulo-counting atoms carda,ℓ(X)\mathrm{card}_{a,\ell}(X)carda,ℓ​(X). In CMSO1\mathrm{CMSO}_1CMSO1​ there are no edge or edge-set variables. Two atoms measure distances in GGG:

  • SP(P,s,t)\mathsf{SP}(P,s,t)SP(P,s,t): PPP is a shortest sss-ttt path set, that is, G[P]G[P]G[P] is a path with endpoints s,ts,ts,t and length dG(s,t)d_G(s,t)dG​(s,t), and P={s}P=\{s\}P={s} if s=ts=ts=t.
  • EqGC(C,x,y,u,v)\mathsf{EqGC}(C,x,y,u,v)EqGC(C,x,y,u,v): G[C]G[C]G[C] is a geodesic cycle (distances along it agree with dGd_GdG​), the four vertices lie in CCC, and dG(x,y)=dG(u,v)d_G(x,y)=d_G(u,v)dG​(x,y)=dG​(u,v).

For a formula φ(X1,…,Xr)\varphi(X_1,\dots,X_r)φ(X1​,…,Xr​) with free set variables, Solφ(G)\mathrm{Sol}_\varphi(G)Solφ​(G) is its set of satisfying assignments, and integer weights wiw_iwi​ on the domains of the XiX_iXi​ give the objective w(S1,…,Sr)=∑i∑a∈Siwi(a)w(S_1,\dots,S_r)=\sum_i\sum_{a\in S_i}w_i(a)w(S1​,…,Sr​)=∑i​∑a∈Si​​wi​(a). NNN is the total binary input length.

The parameters are:

  • the treewidth tw(G)\mathrm{tw}(G)tw(G);
  • the bag-connected treewidth ctw(G)\mathrm{ctw}(G)ctw(G), the least width of a tree decomposition whose nonempty bags induce connected subgraphs;
  • the cycle-basis length cbl(G)\mathrm{cbl}(G)cbl(G), the least LLL such that cycles of length at most LLL generate the binary cycle space Z2(G)Z_2(G)Z2​(G);
  • the cliquewidth cw(G)\mathrm{cw}(G)cw(G);
  • the geodesic cliquewidth gcw(G)=cw(G)+cbl(G)\mathrm{gcw}(G)=\mathrm{cw}(G)+\mathrm{cbl}(G)gcw(G)=cw(G)+cbl(G).

Formalization targets

Goal: Theorem 1.1

There are a computable fff and a constant ccc such that deciding whether a satisfying assignment exists (model checking is the case with no free variables), computing a minimum-weight or maximum-weight satisfying assignment, and counting the satisfying or the optimum assignments are all solved in time

f(∣φ∣+ctw(G))Ncandf(∣φ∣+tw(G)+cbl(G))Ncfor φ∈CMSO2[SP,EqGC],f(|\varphi|+\mathrm{ctw}(G))N^{c}\quad\text{and}\quad f(|\varphi|+\mathrm{tw}(G)+\mathrm{cbl}(G))N^{c}\quad\text{for }\varphi\in\mathrm{CMSO}_2[\mathsf{SP},\mathsf{EqGC}],f(∣φ∣+ctw(G))Ncandf(∣φ∣+tw(G)+cbl(G))Ncfor φ∈CMSO2​[SP,EqGC], f(∣φ∣+gcw(G))Ncfor φ∈CMSO1[SP,EqGC].f(|\varphi|+\mathrm{gcw}(G))N^{c}\quad\text{for }\varphi\in\mathrm{CMSO}_1[\mathsf{SP},\mathsf{EqGC}].f(∣φ∣+gcw(G))Ncfor φ∈CMSO1​[SP,EqGC].

No decomposition or expression is given in the input.

Milestones

  • Cycle bases. Lemma 2.1: the longest cycle of a minimum cycle basis has length cbl(G)\mathrm{cbl}(G)cbl(G). §2.2: cbl(G)\mathrm{cbl}(G)cbl(G) is computable in polynomial time.
  • Shortest paths. Lemmas 3.1, 3.3, 3.4 and Theorem 3.5 lead to Theorem 1.5: a formula CertSPM\mathsf{CertSP}_MCertSPM​ of MSO1\mathrm{MSO}_1MSO1​, of length polynomial in MMM, is equivalent to SP\mathsf{SP}SP whenever cbl(G)<M\mathrm{cbl}(G)<Mcbl(G)<M.
  • Geodesic cycles. Lemmas 4.1 and 4.2 lead to Theorem 1.6, the same statement for CertEqGCM\mathsf{CertEqGC}_MCertEqGCM​ and EqGC\mathsf{EqGC}EqGC.
  • Translation. Lemma 4.3: replacing the metric atoms by these certificates preserves satisfaction, with polynomial growth in ∣φ∣+M|\varphi|+M∣φ∣+M.
  • Cited tools. Theorems 2.8 and 2.9 (Courcelle's theorem for treewidth and for cliquewidth, with optimization and counting) and inequality (1), cbl(G)≤gcl(G)≤2 ctw(G)\mathrm{cbl}(G)\le\mathrm{gcl}(G)\le2\,\mathrm{ctw}(G)cbl(G)≤gcl(G)≤2ctw(G).

Significance

The theorem gives fixed-parameter algorithms from short logical descriptions. Applications in the paper include Geodetic Set and Geodesic Cycle Transversal parameterized by gcw\mathrm{gcw}gcw, and Isometric Path Partition parameterized by ctw\mathrm{ctw}ctw, with weighted and counting versions available. Bounded gcw\mathrm{gcw}gcw allows dense graphs: complete graphs have gcw=5\mathrm{gcw}=5gcw=5 from three vertices on (p.15).

As for status: the paper proves the goal assuming the cited classical theorems, so the results are proved on paper. None of them is known to have a machine-checked proof, and the formal development starts from the definition of the logic. A complete development would give Lean its first statement and proof of Courcelle's theorem with optimization and counting. The certificates of Theorems 1.5 and 1.6 are combinatorial statements about finite graphs, which can be proved independently of the algorithmic layer.

Difficulty

The obvious route expresses "PPP is shortest" by saying that no other walk is shorter. Monadic second-order logic cannot compare the lengths of two arbitrary sets without a bound on the numbers involved, and adding an unbounded numeric potential is not a monadic quantification. Ruling out detours by quantifying over other path sets does not compare lengths either.

So the central step is the passage from an integer-valued potential to finitely many labels: a labeling modulo MMM has to determine a global integer potential, which requires that its local differences have no winding around any cycle. That is why the cycle-basis length enters the parameter. Separately, the algorithmic layer must solve optimization and exact counting uniformly in the formula, with the width parameter unknown and no decomposition supplied, and with one exponent ccc for all formulas.

Formalization scope

Vertices are Fin n, and edges are Sym2 (Fin n) elements of G.edgeSet. Formulas use one Formula type with four sorts of de Bruijn levels; an atom out of scope, with a predicate index outside the instance, or with invalid modulo constants is false. The length ∣φ∣|\varphi|∣φ∣ is the length of a binary code in which the constants a,ℓa,\ella,ℓ count. The theorem applies to IsFormulaIn φ rV rE: the free variables are exactly the first set variables of each sort, each occurring in φ\varphiφ. Without this, unused variables would make counts exponentially long. tw, ctw and cw are infima in ℕ (value 000 on the graph with no vertex), and empty bags are allowed, so ctw of a disconnected graph is the maximum over its components. Mathlib's SimpleGraph.dist is used only where a walk joins the vertices. cbl is defined through the page's span form.

Algorithms are Mathlib TM2 machines through the published HMBinPacking.OutputsWithin, with one machine for each task and part fixed before the graph and formula. A goal in which the machine depends on φ\varphiφ or receives a decomposition would be XP or trivially weaker; this statement rules both out.

The development needs: finite-graph cycle spaces and bases; Horton's algorithm or another polynomial algorithm for cbl\mathrm{cbl}cbl; a treewidth and cliquewidth algorithm layer; the Courcelle automata or composition machinery; and inequality (1). The cycle-space and certificate layers are reusable beyond this mission. Proofs of the combinatorial milestones and of either Courcelle theorem are welcome separately.

Selected references

  • D. Chakraborty, S. Ordyniak, S. Siebertz, Model Checking for Metric Extensions of Monadic Second-Order Logic, preprint, 2026. https://arxiv.org/abs/2610.41974
  • B. Courcelle, The monadic second-order logic of graphs III: Tree-decompositions, minors and complexity issues, RAIRO Theoretical Informatics and Applications 26(3), 1992. http://www.numdam.org/item/ITA_1992__26_3_257_0/
  • S. Arnborg, J. Lagergren, D. Seese, Easy problems for tree-decomposable graphs, Journal of Algorithms 12(2), 1991. https://doi.org/10.1016/0196-6774(91)90006-K
  • B. Courcelle, M. Mosbah, Monadic second-order evaluations on tree-decomposable graphs, Theoretical Computer Science 109(1–2), 1993. https://doi.org/10.1016/0304-3975(93)90064-Z
  • B. Courcelle, J. Makowsky, U. Rotics, Linear time solvable optimization problems on graphs of bounded clique-width, Theory of Computing Systems 33(2), 2000. https://doi.org/10.1007/s002249910009
  • S. Oum, P. Seymour, Approximating clique-width and branch-width, Journal of Combinatorial Theory, Series B 96(4), 2006. https://doi.org/10.1016/j.jctb.2005.10.006
  • B. Courcelle, J. Engelfriet, Graph Structure and Monadic Second-Order Logic, Cambridge University Press, 2012. https://doi.org/10.1017/CBO9780511977619
  • R. Diestel, M. Müller, Connected tree-width, Combinatorica 38(2), 2018. https://doi.org/10.1007/s00493-016-3516-5
  • A. Georgakopoulos, P. Sprüssel, Geodetic topological cycles in locally finite graphs, Electronic Journal of Combinatorics 16(1), 2009. https://doi.org/10.37236/233
  • J. D. Horton, A polynomial-time algorithm to find the shortest cycle basis of a graph, SIAM Journal on Computing 16(2), 1987. https://doi.org/10.1137/0216026
  • D. Chickering, D. Geiger, D. Heckerman, On finding a cycle basis with a shortest maximal cycle, Information Processing Letters 54(1), 1995. https://doi.org/10.1016/0020-0190(94)00231-M
  • C. Boulinier, F. Petit, V. Villain, Synchronous vs. asynchronous unison, Algorithmica 51(1), 2008. https://doi.org/10.1007/s00453-007-9066-x
40 thms3 active usersReviewed
CombinatoricsGraph Theory·Captain: utkuokur

Ten Challenges 10: Unfriendly partition conjectureOpen Problem

Motivation

A partition of the vertices of a graph into two classes is unfriendly if every vertex has at least as many neighbours in the other class as in its own. Every finite graph has one: a partition with the maximum number of crossing edges. For infinite graphs the question is the unfriendly partition conjecture of Cowan and Emerson: does every countable graph have an unfriendly partition? Shelah and Milner showed that uncountable graphs need not, and the countable case has been open since the 1980s, with positive answers for locally finite graphs, graphs with finitely many vertices of infinite degree, and rayless graphs (Aharoni–Milner–Prikry 1990, Shelah–Milner 1990, Bruhn–Diestel–Georgakopoulos–Sprüssel 2010).

This challenge scales the conjecture through a game. The parameter is an ordinal rrr, the clock: Challenger repeatedly names a vertex and lowers the clock, and Partitioner must extend a finite partial partition so that the named vertex becomes unfriendly. An unfriendly partition of the whole graph gives Partitioner a winning strategy for every clock, so the full conjecture implies every rung, and the rungs with transfinite clocks measure how much of an unfriendly partition can be built on demand.

Timeline.

  • 1980s — Cowan and Emerson pose the conjecture.
  • 1990 — Aharoni, Milner and Prikry prove it for graphs with only finitely many vertices of infinite degree, in particular for locally finite graphs (Aharoni–Milner–Prikry 1990).
  • 1990 — Shelah and Milner construct uncountable graphs without unfriendly partitions (Shelah–Milner 1990).
  • 2010 — Bruhn, Diestel, Georgakopoulos and Sprüssel prove it for rayless graphs of any cardinality (Bruhn–Diestel–Georgakopoulos–Sprüssel 2010).
  • 2017 — Berger proves it for graphs containing no subdivision of an infinite clique (Berger 2017).

Setting

Let GGG be a graph with vertex set VVV. A partial partition is a partial function f ⁣:V⇀{0,1}f\colon V\rightharpoonup\{0,1\}f:V⇀{0,1}; it is finite if its domain is finite, and a partition if it is total. Write N(v)N(v)N(v) for the neighbourhood of vvv. A partial partition fff is unfriendly at vvv if f(v)f(v)f(v) is defined and

∣N(v)∩f−1[1−f(v)]∣ ≥ ∣N(v)∩f−1[f(v)]∣,\big|N(v)\cap f^{-1}[1-f(v)]\big|\ \ge\ \big|N(v)\cap f^{-1}[f(v)]\big|,​N(v)∩f−1[1−f(v)]​ ≥ ​N(v)∩f−1[f(v)]​,

as cardinal numbers; neighbours outside the domain of fff are not counted. A partition is unfriendly if it is unfriendly at every vertex.

The rrr-partitioning game. For an ordinal rrr, a position is a pair (f,α)(f,\alpha)(f,α) of a partial partition and an ordinal, the initial position is (∅,r)(\emptyset,r)(∅,r). In each turn from (f,α)(f,\alpha)(f,α), Challenger names a vertex vvv and an ordinal β<α\beta<\alphaβ<α; Partitioner must answer with a finite partial partition ggg extending fff (preserving all assignments of fff) that is unfriendly at vvv; the new position is (g,β)(g,\beta)(g,β). A player unable to move loses; since ordinals have no infinite descending sequences, the game ends after finitely many turns, and Partitioner wins if Challenger runs out of moves. For an ordinal rrr let

UP(r):Partitioner has a winning strategy in the r-partitioning game on every countable graph.\mathrm{UP}(r):\quad \text{Partitioner has a winning strategy in the } r\text{-partitioning game on every countable graph.}UP(r):Partitioner has a winning strategy in the r-partitioning game on every countable graph.

Formalization targets

Goal

every countable graph has an unfriendly partition,\text{every countable graph has an unfriendly partition,}every countable graph has an unfriendly partition,

the unfriendly partition conjecture of Cowan and Emerson. A partial partition that is unfriendly at every vertex is total, so the goal is stated with the same notion of unfriendliness as the game.

The scaled form

∀r∈Ord:UP(r),\forall r\in\mathrm{Ord}:\quad \mathrm{UP}(r),∀r∈Ord:UP(r),

Partitioner wins the rrr-partitioning game on every countable graph for every ordinal clock. An unfriendly partition yields a winning strategy for every clock, so the goal implies the scaled form; the rungs are the scaled form for particular clocks and particular classes of graphs.

Rungs

Any graph with an unfriendly partition yields a winning strategy for every clock: Partitioner reveals the partition on a finite set containing the named vertex and the finitely many coloured neighbours needed. Hence every finite graph, every countable locally finite graph, and every countable rayless graph satisfies all rungs. For finite clocks r=nr=nr=n the statement is an exercise; the rung r=ωr=\omegar=ω is the first with an infinite clock.

Significance

The unfriendly partition conjecture is the basic open question about majority colourings of infinite graphs, and its scaled form isolates how the difficulty grows with the "transfinite length" of the commitment required: with clock ω\omegaω, Challenger must announce in advance how many more vertices will be challenged, with clock ω⋅2\omega\cdot 2ω⋅2 once more, and so on. The full statement is implied by the conjecture; how much of the conjecture the game recovers in return is part of what the scaled version is designed to probe.

Nothing about unfriendly partitions is formalized; Mathlib has simple graphs on arbitrary types and cardinals, but neither majority conditions nor the compactness argument for locally finite graphs. The finite-clock rungs, the finite-graph case and the locally finite case are reachable formalization projects; the infinite-clock rungs are open.

Difficulty

The max-cut argument of the finite case has no infinite analogue: a vertex of infinite degree can be unfriendly only through a cardinality comparison, and attempts to build a partition by transfinite induction run into vertices whose status is changed by later decisions. The known positive results use a careful ordering of the vertices of infinite degree or a structural decomposition (rayless graphs); none of them gives any information about graphs with infinitely many vertices of infinite degree and infinite paths. In the game, the naive strategy of colouring only the challenged vertex fails because Challenger can later challenge a coloured vertex all of whose finitely many neighbours have already been coloured badly.

Formalization scope

Graphs are Mathlib's SimpleGraph V with V in a universe u and the hypothesis Countable V; partial partitions are functions V → Option Bool, with none for undefined and some b for class bbb. NeighColored G f v b is the type of neighbours of vvv with value bbb, and UnfriendlyAt G f v requires some b with f v = some b and the cardinal inequality #(neighbours coloured b) ≤ #(neighbours coloured !b) (Mathlib's Cardinal.mk). emptyPartition V is the constant none; HasFiniteDomain, Extends and IsLegalResponse G f g v (extends, finite domain, unfriendly at vvv) are as in the Setting. PartitionerWins G f α is defined by well-founded recursion on the ordinal α : Ordinal.{v}: for every vertex vvv and every β<α\beta<\alphaβ<α there is a legal response ggg with PartitionerWins G g β. The rung statement_10 r is PartitionerWins G (emptyPartition V) r for every countable V and every G; the scaled form is ∀ r, statement_10 r. The goal is ∃ f : V → Option Bool, ∀ v, UnfriendlyAt G f v for every countable V and every G: since UnfriendlyAt requires f v to be defined, such an f assigns a class to every vertex and is an unfriendly partition in the usual sense.

No trivialising reading: with clock 000 Partitioner wins vacuously, which is the intended base case; responses must be finite, so Partitioner cannot reveal a whole infinite partition at once; and the cardinal comparison is exactly the majority condition on coloured neighbours. The universes of V and of the ordinal are independent parameters. The Lean definitions are copied verbatim from the Ten Challenges repository. Because the definitions are identical, a proof of the goal or of any rung produced here can also be submitted on the Ten Challenges website, https://tenchallenges.github.io/ten-challenges/, which checks submissions automatically against the same statements and records accepted ones on its public leaderboard; contributors are welcome to do both. Contributions welcome: the lemma that an unfriendly partition yields PartitionerWins for every clock, monotonicity of PartitionerWins in the clock, the finite-graph and locally finite cases, the finite-clock rungs, and the relation between winning for all countable clocks and the existence of an unfriendly partition.

Selected references

  • Ten Challenges website: problem statements, automatic checker and leaderboard. https://tenchallenges.github.io/ten-challenges/
  • V. Bajpai, N. Bowler, J. Carmesin, U. Okur, 10 Scalable Challenges in Combinatorics: A Public Benchmark Formalised in Lean, AI4Math workshop at CICM 2026. https://cicm-conference.org/2026/ai4math/04-okur.pdf — Lean sources: https://github.com/TenChallenges/ten-challenges (challenge 10).
  • R. Aharoni, E. C. Milner, K. Prikry, Unfriendly partitions of a graph, J. Combin. Theory Ser. B 50 (1990), 1–10. https://doi.org/10.1016/0095-8956(90)90092-E
  • S. Shelah, E. C. Milner, Graphs with no unfriendly partitions, in: A Tribute to Paul Erdős, Cambridge University Press, 1990, 373–384.
  • H. Bruhn, R. Diestel, A. Georgakopoulos, P. Sprüssel, Every rayless graph has an unfriendly partition, Combinatorica 30 (2010), 521–532. https://doi.org/10.1007/s00493-010-2590-3
  • E. Berger, Unfriendly partitions for graphs not containing a subdivision of an infinite clique, Combinatorica 37 (2017), 157–166. https://doi.org/10.1007/s00493-015-3261-1
  • R. Diestel, Graph Theory, 5th ed., Springer, 2017, Chapter 8. https://doi.org/10.1007/978-3-662-53622-3
7 thms3 active usersReviewed
🏆Completed
Category TheoryTheoretical Computer ScienceType Theory·Captain: kmehltretter82

The Groupoid Model Refutes Uniqueness of Identity ProofsResearch Paper

Equality and the identity of proofs

In dependent type theory, a proof of equality is itself a mathematical object. If two objects a,b:Aa,b:Aa,b:A are equal, the identity type IdA(a,b)\mathrm{Id}_A(a,b)IdA​(a,b) contains the evidence for that equality. A further identity type can express equality between two such proofs. The uniqueness of identity proofs principle, abbreviated UIP, says that any two proofs of the same equality are themselves propositionally equal.

Hofmann and Streicher established that UIP cannot be derived from the rules of intensional Martin-Löf type theory considered in their 1994 paper. Their result distinguishes the ordinary identity eliminator from stronger principles that identify all proofs of an equality. This mission formalizes their mathematical theorem in Lean, including the object language in which derivability is being asserted.

The primary source is the authors’ manuscript dated 21 March 1994, A Groupoid Model Refutes Uniqueness of Identity Proofs, linked from Hofmann’s own bibliography as SH.dvi.gz. Its Theorem 1 appears on manuscript page 2; Section 3 identifies a particular closed type witnessing the theorem. References to manuscript pagination below refer to this ten-page version, rather than the five-page conference pagination.

The object theory and its universe

A context is a finite sequence of typed variables. A judgement Γ⊢t:A\Gamma\vdash t:AΓ⊢t:A states that an expression ttt is a term of type AAA in context Γ\GammaΓ. A judgemental equality is an equality generated by the theory’s structural, congruence and computation rules. A propositional equality is a term of an identity type. These are different judgement forms in the object theory.

The language includes dependent products Π\PiΠ, dependent sums Σ\SigmaΣ, intensional identity types with reflexivity and the eliminator JJJ, natural numbers, and a first universe UUU with a generic decoding family El\mathrm{El}El. A variable X:UX:UX:U ranges over codes for small types, and El(X)\mathrm{El}(X)El(X) is the type it denotes. Following the operations explicitly described in Section 2.3 of the pinned manuscript, this presentation supplies UUU and El\mathrm{El}El without additional constructors for codes of the small type formers. The ordinary type formers remain available on types themselves. The universe has no code in itself, and the language has no induction principle over universe codes.

The type

A0=ΣX:U. El(X)A_0=\Sigma X:U.\,\mathrm{El}(X)A0​=ΣX:U.El(X)

is well formed in the empty context. Its elements are pairs consisting of a small-type code and an element of the decoded type. It is a large type; its formation does not require a code U:UU:UU:U. The presentation of the rule system and its relation to the standard rules cited in the paper are recorded with the Lean definitions.

Formalization targets

The goal is the existential Theorem 1: there is a closed well-formed type for which diagonal UIP is not derivable. A supporting milestone uses the explicit witness from Section 3. In the context

Γ0=(x:A0, p:IdA0(x,x), q:IdA0(x,x)),\Gamma_0=(x:A_0,\ p:\mathrm{Id}_{A_0}(x,x),\ q:\mathrm{Id}_{A_0}(x,x)),Γ0​=(x:A0​, p:IdA0​​(x,x), q:IdA0​​(x,x)),

the type

IdIdA0(x,x)(p,reflA0(x))\mathrm{Id}_{\mathrm{Id}_{A_0}(x,x)}(p,\mathrm{refl}_{A_0}(x))IdIdA0​​(x,x)​(p,reflA0​​(x))

has no derivable term. The source’s displayed context contains the variable qqq even though the conclusion does not use it. The formal target preserves this binder. Establishing the typing of A0A_0A0​ and the underivability judgement yields the existential statement printed as Theorem 1.

The standard formulation of UIP is the judgement

x:A0, y:A0, p,q:IdA0(x,y) ⊢ IdIdA0(x,y)(p,q).x:A_0,\ y:A_0,\ p,q:\mathrm{Id}_{A_0}(x,y)\ \vdash\ \mathrm{Id}_{\mathrm{Id}_{A_0}(x,y)}(p,q).x:A0​, y:A0​, p,q:IdA0​​(x,y) ⊢ IdIdA0​​(x,y)​(p,q).

Its underivability is a companion target. The source states that this formulation and the diagonal formulation are equivalent using JJJ.

The semantic supporting target uses the source’s explicit groupoid interpretation of A0A_0A0​. A groupoid is a category in which every arrow is invertible. In the 1994 construction the universe is the discrete groupoid of small groupoids: its arrows between distinct universe codes are absent. Decoding sends a code to the corresponding small groupoid. The total space of decoding interprets A0A_0A0​. Identity types at objects a,ba,ba,b are interpreted by the discrete groupoid on the arrows a→ba\to ba→b. The resulting total groupoid fails the semantic UIP property.

Mathematical significance and existing formalizations

The source result establishes a limit on derivability in intensional type theory. It also separates JJJ from stronger identity elimination principles, including the KKK eliminator discussed in Section 3.1. A proof in this mission must justify a judgement about the entire specified object theory. Constructing a groupoid with a nonidentity automorphism supplies a semantic ingredient; connecting it to syntactic underivability requires the interpretation and its soundness.

Existing formalization work is relevant. HoTTLean provides a deep embedding of type-theoretic syntax, semantic soundness results, and a construction of a groupoid model with dependent products, sums and identity types. Its 2026 account describes its universe conventions and remaining scope. Those conventions must be compared with the discrete universe in the 1994 manuscript before reusing the construction. This mission makes no claim that groupoid semantics has never been mechanized.

The fuller 1998 Hofmann–Streicher account supplies detailed rules and model constructions. It also studies universes with isomorphisms as identity proofs. Section 4.12 distinguishes their closure properties from those of a discrete universe. This mission retains the discrete universe of the pinned 1994 source and states its selected universe operations explicitly.

The principal difficulty

The model must validate dependent substitution and the eliminator JJJ, including their computation and stability requirements. An interpretation of objects alone cannot establish soundness of open terms. Terms must act coherently on arrows, and equality judgements must be respected. Dependent products and sums must retain this action and remain stable under substitution. These are substantive mathematical obligations of the formalization.

Formalization scope

The object theory is deeply embedded: its expressions, substitution operations and derivability rules are mathematical data in Lean. The main theorem concerns this derivability relation. Its premises do not assume semantic soundness, UIP failure, or another form of the paper’s conclusion. Draft theorem bodies are left open for contributors; the meaning of the object theory is fixed by the definition layer.

Semantic definitions use explicit small groupoids and discrete identity groupoids. Foundational definitions and supporting lemmas can be reused in further formalizations of dependent type theory. Contributions establishing the model’s category-with-attributes structure, its dependent type formers, its substitution laws and syntax soundness are welcome as parts of the proof of the main target.

Milestones and open proof work

The linked milestones cover the equivalence of the two syntactic UIP formulations (Section 1), the comparison of the two semantic total spaces (Sections 2–2.3), semantic UIP failure (Section 3), and the unconditional syntactic counterexample at the explicit closed type (Section 3). The existential Theorem 1 is the mission goal.

The semantic comparison and semantic failure have checked local proofs. The syntactic independence goals remain open. In particular, the category-with-attributes construction, dependent type formers and their stability, interpretation of the specified syntax, and soundness are substantial outstanding parts of the explicit-witness milestone. No completed syntax/model bridge or separate formal soundness interface is being claimed. Contributors may expose these steps through proof sketches as the concrete semantic interfaces are developed; soundness must not be assumed as a premise of the goal.

Selected references

  • Martin Hofmann and Thomas Streicher, The Groupoid Model Refutes Uniqueness of Identity Proofs, LICS 1994, pp. 208–212. DOI. Author-linked manuscript.
  • Martin Hofmann and Thomas Streicher, The groupoid interpretation of type theory, Twenty-five Years of Constructive Type Theory, Oxford Logic Guides 36, 1998, pp. 83–111. Full text.
  • Bengt Nordström, Kent Petersson and Jan M. Smith, Programming in Martin-Löf’s Type Theory, Oxford University Press, 1990. Full text.
  • Steve Awodey and collaborators, HoTTLean, 2026 account of its groupoid-model formalization. Abstract. Source repository.
7 thms3 active usersReviewed
🏆Completed
Theoretical Computer Science·Captain: kmehltretter82

Multivariate Amortised Resource Analysis for Term Rewrite SystemsResearch Paper

Motivation

Static resource analysis aims to derive machine-checkable upper bounds on the computational cost of a program without executing it on every input. In Tarjan's potential method (1985), each program state is assigned a nonnegative potential so that the drop in potential across a step pays for both its immediate cost and the potential required by subsequent operations. Hofmann and Jost (POPL 2003) turned the potential method into a type-and-effect system—automatic amortised resource analysis (AARA)—capable of inferring linear heap-space bounds for first-order functional programs via linear programming. Hoffmann, Aehlig, and Hofmann (TOPLAS 2012) extended AARA to multivariate polynomial bounds for fixed data types such as lists and binary trees by indexing resource annotations with predetermined binomial basis functions.

In Multivariate Amortised Resource Analysis for Term Rewrite Systems (TLCA 2015), Martin Hofmann and Georg Moser generalize multivariate AARA from fixed built-in types to arbitrary constructor term rewrite systems (TRSs) over user-defined inductive data structures. Instead of hard-coding polynomial basis functions per type, they generate the basis of basic resource functions uniformly as the accepting-run counts of bottom-up nondeterministic tree automata over the constructor signature. This framework encompasses arbitrary constructor trees while reducing resource verification of rewrite rules to linear constraints over annotation coefficients.

Setting

Let C\mathcal{C}C and D\mathcal{D}D be arity-indexed families of constructor symbols (C : Nat → Type u) and defined function symbols (D : Nat → Type u). First-order terms (Term C D) are built from variables (Term.var x), constructor applications c(t1,…,tn)c(t_1, \dots, t_n)c(t1​,…,tn​), and defined applications f(t1,…,tn)f(t_1, \dots, t_n)f(t1​,…,tn​). A ground constructor value (Value C) is a variable-free term constructed solely from symbols in C\mathcal{C}C; its size ∣v∣|v|∣v∣ (Value.size) is the total number of constructor nodes in vvv, and Value.toTerm embeds values injectively into terms (IsValue).

A term rewrite system (RewriteSystem C D) is a predicate RRR on rewrite rules (RewriteRule C D) of the form f(l1,…,ln)→rf(l_1, \dots, l_n) \to rf(l1​,…,ln​)→r. Standing syntactic conditions (FiniteConstructors C, FiniteSignature C D, FiniteSystem R, SyntacticallyOrthogonal R, CompletelyDefined R) require that C\mathcal{C}C is finite and nonempty, C⊎D\mathcal{C} \uplus \mathcal{D}C⊎D is finite with at least one constant, RRR is finite, each rule is left-linear with constructor patterns lil_ili​ that are pairwise non-overlapping, and every ground call f(v1,…,vn)f(v_1, \dots, v_n)f(v1​,…,vn​) matches some rule in RRR. Under a normalised substitution σ\sigmaσ (Substitution.Normalised, mapping every variable in dom⁡(σ)\operatorname{dom}(\sigma)dom(σ) to a constructor value), the big-step judgment σ⊢t⇒mv\sigma \vdash t \Rightarrow^m vσ⊢t⇒mv (Evaluates R σ t m v.toTerm) states that tσt\sigmatσ evaluates to value vvv in mmm counted innermost rewrite steps.

A bottom-up nondeterministic tree automaton AAA (TreeAutomaton C) consists of a finite state space Fin⁡(stateCount)\operatorname{ Fin }(\text{stateCount})Fin(stateCount), a designated final state qfq_fqf​, and duplicate-free transition lists c(q1,…,qn)→qc(q_1, \dots, q_n) \to qc(q1​,…,qn​)→q for each nnn-ary constructor c∈Cnc \in \mathcal{C}_nc∈Cn​. For any state qqq, the run count (A.runCount v q) on v=c(v1,…,vn)v = c(v_1, \dots, v_n)v=c(v1​,…,vn​) is defined recursively by

runCount⁡A(c(v1,…,vn),q)=∑(q1,…,qn)→q∈Δ(c)∏i=1nrunCount⁡A(vi,qi),\operatorname{runCount}_A(c(v_1, \dots, v_n), q) = \sum_{(q_1, \dots, q_n) \to q \in \Delta(c)} \prod_{i=1}^n \operatorname{runCount}_A(v_i, q_i),runCountA​(c(v1​,…,vn​),q)=(q1​,…,qn​)→q∈Δ(c)∑​i=1∏n​runCountA​(vi​,qi​),

and the basic function computed by AAA is pA(v)=runCount⁡A(v,qf)p_A(v) = \operatorname{runCount}_A(v, q_f)pA​(v)=runCountA​(v,qf​) (A.basic). The type of basic resource functions is BF={f:Value C→N∣∃A, pA=f}\mathsf{BF} = \{f : \text{Value } C \to \mathbb{N} \mid \exists A,\, p_A = f\}BF={f:Value C→N∣∃A,pA​=f} (BasicFunction C). A representative policy PPP (RepPolicy C) selects one representative automaton P.rep(p)P.\text{rep}(p)P.rep(p) for each p∈BFp \in \mathsf{BF}p∈BF satisfying pP.rep(p)=pp_{P.\text{rep}(p)} = ppP.rep(p)​=p, formalizing the fixed enumeration A\mathfrak{A}A of Sections 3–4. Given p=(p1,…,pn)∈BFnp = (p_1, \dots, p_n) \in \mathsf{BF}^np=(p1​,…,pn​)∈BFn, the multivariate basic function (multivariateBasic) is

p(v1,…,vn)=∏i=1npi(vi).p(v_1, \dots, v_n) = \prod_{i=1}^n p_i(v_i).p(v1​,…,vn​)=i=1∏n​pi​(vi​).

A resource annotation of length nnn (Annotation C n) is a finite list of pairs (p,w)(p, w)(p,w) with p∈BFnp \in \mathsf{BF}^np∈BFn and w∈Q≥0w \in \mathbb{Q}_{\ge 0}w∈Q≥0​, representing the finitely supported coefficient family qp(Q)=∑(p′,w)∈Q, p′=pwq_p(Q) = \sum_{(p', w) \in Q,\, p' = p} wqp​(Q)=∑(p′,w)∈Q,p′=p​w (annotationCoefficient). Its potential (potential) on values v1,…,vnv_1, \dots, v_nv1​,…,vn​ is

Φ(v1,…,vn:Q)=∑(p,w)∈Qw⋅p(v1,…,vn).\Phi(v_1, \dots, v_n : Q) = \sum_{(p, w) \in Q} w \cdot p(v_1, \dots, v_n).Φ(v1​,…,vn​:Q)=(p,w)∈Q∑​w⋅p(v1​,…,vn​).

A unary function r:Value C→Qr : \text{Value } C \to \mathbb{Q}r:Value C→Q is a resource function (IsResourceFunction C r) if r(v)=Φ(v:Q)r(v) = \Phi(v : Q)r(v)=Φ(v:Q) for some length-111 annotation QQQ. The additive shift ◃c(Q)\triangleleft_c(Q)◃c​(Q) (additiveShift P c Q) expands the last coordinate pm+1p_{m+1}pm+1​ of each tuple in a length-(m+1)(m+1)(m+1) annotation along the ccc-transitions into the final state of A=P.rep(pm+1)A = P.\text{rep}(p_{m+1})A=P.rep(pm+1​), replacing pm+1p_{m+1}pm+1​ by the rerooted child basic functions (p(A,q1),…,p(A,qn))(p_{(A, q_1)}, \dots, p_{(A, q_n)})(p(A,q1​)​,…,p(A,qn​)​). The sharing operator Υ(Q)\Upsilon(Q)Υ(Q) (annotationShare S P Q) contracts the last two coordinates of a length-(m+2)(m+2)(m+2) annotation via the Cartesian-product basic function BasicFunction.product S P.

Finally, an annotated signature pair FFF (AnnotatedSignatures C D) provides charged (counted, ⊢\vdash⊢) and uncharged (costFree, ⊢cf\vdash^{\mathrm{cf}}⊢cf) signature relations (AnnotatedSignature C D). The resource typing judgment Γ:Q⊢(cf)t:Q′\Gamma : Q \vdash^{(\mathrm{cf})} t : Q'Γ:Q⊢(cf)t:Q′ (Typing S P F mode n xs Q t Q') formalizes the inference rules of Figure 2 (variable, defined call, constructor, annotation weakening, simultaneous context/annotation exchange, context weakening via projection at the canonical one-state basic function ∅\emptyset∅, variable sharing, and nnn-ary function/constructor composition governed by compositionCoefficients and listPremiseMode). A rewrite system RRR is bounded (BoundedSignatures S P F R) if every rule f(l1,…,ln)→rf(l_1, \dots, l_n) \to rf(l1​,…,ln​)→r in RRR and every signature entry (Q,Q′)(Q, Q')(Q,Q′) for fff admits an iterated constructor pattern expansion (PatternExpansion) of (l1,…,ln)(l_1, \dots, l_n)(l1​,…,ln​) and QQQ into variables (x1,…,xl)(x_1, \dots, x_l)(x1​,…,xl​) and an annotation shifted\text{shifted}shifted such that x1,…,xl:P0⊢(cf)r:Q′x_1, \dots, x_l : P_0 \vdash^{(\mathrm{cf})} r : Q'x1​,…,xl​:P0​⊢(cf)r:Q′ holds with P0+1=shiftedP_0 + 1 = \text{shifted}P0​+1=shifted in counted mode and P0=shiftedP_0 = \text{shifted}P0​=shifted in cost-free mode.

Formalization targets

Main goal: Theorem 16 (HofmannMoser.theorem_16, p. 252)

For a finite, completely defined, syntactically orthogonal constructor TRS RRR over a finite signature (C,D)(\mathcal{C}, \mathcal{D})(C,D) that is bounded (BoundedSignatures S P F R) with respect to extensional annotated signatures FFF, if Γ:Q⊢t:Q′\Gamma : Q \vdash t : Q'Γ:Q⊢t:Q′ is derivable in counted mode for a context Γ=(x1,…,xn)\Gamma = (x_1, \dots, x_n)Γ=(x1​,…,xn​) of distinct variables and σ⊢t⇒mv\sigma \vdash t \Rightarrow^m vσ⊢t⇒mv holds for a normalised substitution σ\sigmaσ mapping each xix_ixi​ to a constructor value viv_ivi​, then

Φ(v1,…,vn:Q)−Φ(v:Q′)≥m.\Phi(v_1, \dots, v_n : Q) - \Phi(v : Q') \ge m.Φ(v1​,…,vn​:Q)−Φ(v:Q′)≥m.

Milestones

  1. Proposition 3 (HofmannMoser.proposition_3, p. 245) — Recursive decomposition of the basic function p(A,α)p_{(A, \alpha)}p(A,α)​ at a constructor node c(v1,…,vn)c(v_1, \dots, v_n)c(v1​,…,vn​):
p(A,α)(c(v1,…,vn))=∑((α1,…,αn),α)∈ΔA(c)∏i=1np(A,αi)(vi).p_{(A, \alpha)}(c(v_1, \dots, v_n)) = \sum_{((\alpha_1, \dots, \alpha_n), \alpha) \in \Delta_A(c)} \prod_{i=1}^n p_{(A, \alpha_i)}(v_i).p(A,α)​(c(v1​,…,vn​))=((α1​,…,αn​),α)∈ΔA​(c)∑​i=1∏n​p(A,αi​)​(vi​).
  1. Proposition 4 (HofmannMoser.proposition_4, p. 246) — Exponential upper bound on the number of accepting runs of a qqq-state tree automaton AAA on a value vvv of size ∣v∣|v|∣v∣:
pA(v)≤q∣v∣.p_A(v) \le q^{|v|}.pA​(v)≤q∣v∣.
  1. Lemma 7 (HofmannMoser.lemma_7, p. 247) — Closure of the class RF\mathsf{RF}RF of resource functions over a finite nonempty constructor signature under pointwise addition and pointwise multiplication:
r,r′∈RF  ⟹  (v↦r(v)+r′(v))∈RF  ∧  (v↦r(v)⋅r′(v))∈RF.r, r' \in \mathsf{RF} \implies (v \mapsto r(v) + r'(v)) \in \mathsf{RF} \;\wedge\; (v \mapsto r(v) \cdot r'(v)) \in \mathsf{RF}.r,r′∈RF⟹(v↦r(v)+r′(v))∈RF∧(v↦r(v)⋅r′(v))∈RF.
  1. Lemma 9 (HofmannMoser.lemma_9, p. 248) — Diagonalization of binary multivariate basic functions via the Cartesian-product automaton:
∀p∈BF(2),  ∃p′∈BF,  ∀v,  p(v,v)=p′(v).\forall p \in \mathsf{BF}(2),\; \exists p' \in \mathsf{BF},\; \forall v,\; p(v, v) = p'(v).∀p∈BF(2),∃p′∈BF,∀v,p(v,v)=p′(v).
  1. Lemma 12 (HofmannMoser.lemma_12, p. 248) — Potential preservation across the additive constructor shift ◃c\triangleleft_c◃c​:
Φ(w1,…,wm,c(v1,…,vn):Q)=Φ(w1,…,wm,v1,…,vn:◃c(Q)).\Phi(w_1, \dots, w_m, c(v_1, \dots, v_n) : Q) = \Phi(w_1, \dots, w_m, v_1, \dots, v_n : \triangleleft_c(Q)).Φ(w1​,…,wm​,c(v1​,…,vn​):Q)=Φ(w1​,…,wm​,v1​,…,vn​:◃c​(Q)).
  1. Lemma 13 (HofmannMoser.lemma_13, p. 249) — Potential preservation across the variable-sharing operator Υ\UpsilonΥ:
Φ(w1,…,wm,v,v:Q)=Φ(w1,…,wm,v:Υ(Q)).\Phi(w_1, \dots, w_m, v, v : Q) = \Phi(w_1, \dots, w_m, v : \Upsilon(Q)).Φ(w1​,…,wm​,v,v:Q)=Φ(w1​,…,wm​,v:Υ(Q)).

Significance

The result itself. Theorem 16 is the core soundness theorem of multivariate amortised resource analysis for term rewrite systems: it guarantees that syntactic typing constraints on rewrite rules suffice to bound the dynamic number of innermost evaluation steps on all ground constructor inputs. Together with Proposition 4 and polynomial growth conditions on the automata occurring in an annotation, Theorem 16 yields concrete polynomial and exponential complexity bounds for first-order functional programs presented as TRSs.

Formalizing it. While Hofmann and Moser proved Theorem 16 on paper (TLCA 2015, pp. 252–254) and univariate amortised complexity of functional data structures has been formalized in Isabelle/HOL (Nipkow and Brinkop 2019), no machine-checked formalization of Hofmann and Moser's multivariate tree-automata framework existed in Lean 4. A faithful formalization also resolves a subtle indexing ambiguity in the printed text of Section 3: because nondeterministic automata with identical accepted languages can have different accepting-run counts, and distinct automata with the same run-count function can have incompatible state spaces under constructor shifting, the formal development separates extensional basic functions (BasicFunction C) from the fixed representative policy (RepPolicy C) used by constructor shifts. In our local verification suite, all six milestones (Propositions 3 and 4, Lemmas 7, 9, 12, and 13) have been machine-checked in Lean 4.30 to validate the definitions; the published mission items open these milestones and the full soundness proof of Theorem 16 on the platform.

Difficulty

Two main obstacles arise when formalizing this paper:

  1. Automaton indexing and constructor shifting. A naive formalization that indexes annotations by raw automata up to isomorphism fails on the paper's own addition/multiplication examples (pp. 251–252), where Cartesian-product automata created by sharing (annotationShare) must match basic functions occurring in signature annotations (BasicFunction). Conversely, indexing purely by accepted languages fails because run counts are not language-invariant, and Definition 11's printed equation (1) on p. 248 must reroot the same parent representative A=P.rep(p)A = P.\text{rep}(p)A=P.rep(p) at its child states rather than matching state labels across unrelated automata.
  2. Arbitrary-arity composition in Theorem 16. The paper sketches the inductive step of Theorem 16 for binary applications f(t1,t2)f(t_1, t_2)f(t1​,t2​) (pp. 252–254). In the formal system (Typing.composition), a function or constructor symbol has arbitrary positive arity last+1\text{last} + 1last+1, its argument contexts Γ0,…,Γlast\Gamma_0, \dots, \Gamma_{\text{last}}Γ0​,…,Γlast​ are concatenated via argumentContexts, and the intermediate annotations Piȷ⃗P_i^{\vec{\jmath}}Pi​​ and Riȷ⃗R_i^{\vec{\jmath}}Ri​​ are coupled through the coefficient equations of compositionCoefficients and the mode switch listPremiseMode (which charges the single all-canonical index ȷ⃗=∅⃗\vec{\jmath} = \vec{\emptyset}​=∅​ and treats all non-canonical indices as cost-free). Proving the telescoping potential inequality across all last+1\text{last} + 1last+1 argument evaluations and combining it with the pattern-expansion induction for BoundedSignatures is the central proof obligation of Theorem 16.

Formalization scope

The development is written in core Lean 4 (v4.30.0, without Mathlib) across three foundational definition modules:

  • Definitions.Def_HofmannMoser_Syntax: arity-indexed terms (Term), ground constructor predicates (IsValue), variable lists, variable renaming, finite-domain substitutions (Substitution, Substitution.Normalised), rewrite rules (RewriteRule), syntactic orthogonality (SyntacticallyOrthogonal), complete definedness (CompletelyDefined), and big-step innermost evaluation (Evaluates).
  • Definitions.Def_HofmannMoser_Potential: ground constructor trees (Value), value size (Value.size), finite constructor signatures (FiniteConstructors), bottom-up tree automata (TreeAutomaton), canonical and rerooted automata (canonical, reroot), Cartesian-product automata (product with an unreachable padding state ensuring nonemptiness of transition sets), basic functions (BasicFunction), representative policies (RepPolicy, classicalRepPolicy), annotations (Annotation), potentials (potential), additive shifts (additiveShift), and sharing (annotationShare).
  • Definitions.Def_HofmannMoser_Typing: charged and cost-free modes (TypingMode), annotated signatures (AnnotatedSignature, AnnotatedSignatures, AnnotatedSignatureExtensional), annotation coefficient lookup (annotationCoefficient, annotationCoefficientList), nnn-ary composition constraints (compositionCoefficients), in-place pattern and annotation shifting (PatternExpansion, additiveShiftAt), the resource typing judgment (Typing), and syntactic rule boundedness (Bounded, BoundedSignatures).

To prevent any trivializing formalization, BoundedSignatures is defined strictly via syntactic left-hand-side constructor pattern expansion (PatternExpansion) and typing of rule right-hand sides (Definition 15), never by assuming semantic step-count soundness on rewrite steps. Contributions proving the six milestones, intermediate substitution and pattern-expansion lemmas for PatternExpansion and additiveShiftAt, and the main induction for Theorem 16 are welcome.

Selected references

  • Martin Hofmann and Georg Moser, Multivariate Amortised Resource Analysis for Term Rewrite Systems, 13th International Conference on Typed Lambda Calculi and Applications (TLCA 2015), LIPIcs vol. 38, pp. 241–256, 2015. https://doi.org/10.4230/LIPIcs.TLCA.2015.241
  • Robert Endre Tarjan, Amortized Computational Complexity, SIAM Journal on Algebraic and Discrete Methods 6(2), pp. 306–318, 1985. https://doi.org/10.1137/0606031
  • Martin Hofmann and Steffen Jost, Static Prediction of Heap Space Usage for First-Order Functional Programs, 30th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL 2003), pp. 185–197, 2003. https://doi.org/10.1145/604131.604148
  • Jan Hoffmann, Klaus Aehlig, and Martin Hofmann, Multivariate Amortized Resource Analysis, ACM Transactions on Programming Languages and Systems (TOPLAS) 34(3), Article 14, 2012. https://doi.org/10.1145/2220365.2220367
  • Tobias Nipkow and Hauke Brinkop, Amortized Complexity Verified, Journal of Automated Reasoning 62(3), pp. 367–391, 2019. https://doi.org/10.1007/s10817-018-9459-3
10 thms3 active usersReviewed
🏆Completed
Model Theory·Captain: Lucas

Continuum Hypothesis: Independence from ZFCTextbook

Motivation

The continuum hypothesis (CH) asks how large the set of real numbers is. Cantor proved that ∣Z∣=∣Q∣<∣R∣|\mathbb Z|=|\mathbb Q|<|\mathbb R|∣Z∣=∣Q∣<∣R∣, and in 1878 he conjectured that no set has cardinality strictly between that of the integers and that of the reals. Settling CH was the first of Hilbert's problems at the 1900 International Congress of Mathematicians. The question was answered by showing that it cannot be answered from the standard axioms: CH is independent of Zermelo–Fraenkel set theory with choice (ZFC).

Timeline (as recorded in the source):

  • 1878 — Cantor formulates the (weak) continuum hypothesis; in 1882 he states CH in its modern form.
  • 1900 — Hilbert lists CH as the first of his problems.
  • 1906 — Kőnig proves a theorem that, combined with Hausdorff's notion of cofinality (1908), shows 2ℵ0≠ℵα2^{\aleph_0}\neq\aleph_\alpha2ℵ0​=ℵα​ whenever α\alphaα has cofinality ω\omegaω.
  • 1930 — Patai: if 2κ2^\kappa2κ is the γ\gammaγ-th successor of κ\kappaκ for every infinite κ\kappaκ, then γ\gammaγ is finite.
  • 1938/1940 — Gödel proves that AC and GCH hold in the constructible universe LLL, so Con(ZF)⇒Con(ZFC+GCH)\mathrm{Con}(\mathrm{ZF})\Rightarrow\mathrm{Con}(\mathrm{ZFC}+\mathrm{GCH})Con(ZF)⇒Con(ZFC+GCH).
  • 1947 — Sierpiński proves that ZF + GCH implies AC.
  • 1963 — Cohen invents forcing and proves Con(ZFC)⇒Con(ZFC+¬CH)\mathrm{Con}(\mathrm{ZFC})\Rightarrow\mathrm{Con}(\mathrm{ZFC}+\neg\mathrm{CH})Con(ZFC)⇒Con(ZFC+¬CH).
  • 1986 — Freiling shows that ¬\neg¬CH is equivalent to his axiom of symmetry.

Setting

A cardinal measures the size of a set; ∣A∣≤∣B∣|A|\le|B|∣A∣≤∣B∣ means there is an injection A→BA\to BA→B, and ∣A∣=∣B∣|A|=|B|∣A∣=∣B∣ a bijection. ℵ0=∣N∣\aleph_0=|\mathbb N|ℵ0​=∣N∣, 2κ=∣P(X)∣2^\kappa=|\mathcal P(X)|2κ=∣P(X)∣ for ∣X∣=κ|X|=\kappa∣X∣=κ, so ∣R∣=2ℵ0|\mathbb R|=2^{\aleph_0}∣R∣=2ℵ0​. ℵα\aleph_\alphaℵα​ is the α\alphaα-th infinite cardinal, ℶα\beth_\alphaℶα​ is defined by ℶ0=ℵ0\beth_0=\aleph_0ℶ0​=ℵ0​, ℶα+1=2ℶα\beth_{\alpha+1}=2^{\beth_\alpha}ℶα+1​=2ℶα​ and suprema at limits, and cf\mathrm{cf}cf denotes cofinality.

  • CH: there is no S⊆RS\subseteq\mathbb RS⊆R with ℵ0<∣S∣<2ℵ0\aleph_0<|S|<2^{\aleph_0}ℵ0​<∣S∣<2ℵ0​ (CH).
  • GCH: for every infinite cardinal κ\kappaκ there is no cardinal strictly between κ\kappaκ and 2κ2^\kappa2κ (GCH).

Independence is a statement about a first-order theory. The language of set theory has one binary relation symbol ∈\in∈ (setLang). ZF (ZF) consists of extensionality, foundation, pairing, union, power set, infinity, and all instances of the separation and replacement schemas; ZFC (ZFC) adds the axiom of choice (acSentence). CH and GCH are also written as first-order sentences (chSentence, gchSentence): CH says that every subset of P(ω)\mathcal P(\omega)P(ω) injects into ω\omegaω or receives an injection from P(ω)\mathcal P(\omega)P(ω). A theory is consistent if it has a model, and T⊨σT\models\sigmaT⊨σ means σ\sigmaσ holds in every model of TTT; by Gödel's completeness theorem these coincide with the proof-theoretic notions.

Formalization targets

Goal: independence of CH from ZFC

Con(ZFC) ⟹ ZFC⊭CH  and  ZFC⊭¬CH.\mathrm{Con}(\mathrm{ZFC})\ \Longrightarrow\ \mathrm{ZFC}\not\models\mathrm{CH}\ \text{ and }\ \mathrm{ZFC}\not\models\neg\mathrm{CH}.Con(ZFC) ⟹ ZFC⊨CH  and  ZFC⊨¬CH.

Milestones

  1. ∣Z∣=∣Q∣<∣R∣|\mathbb Z|=|\mathbb Q|<|\mathbb R|∣Z∣=∣Q∣<∣R∣.
  2. CH  ⟺  2ℵ0=ℵ1\mathrm{CH}\iff 2^{\aleph_0}=\aleph_1CH⟺2ℵ0​=ℵ1​.
  3. (Gödel) Con(ZF)⇒Con(ZFC+GCH)\mathrm{Con}(\mathrm{ZF})\Rightarrow\mathrm{Con}(\mathrm{ZFC}+\mathrm{GCH})Con(ZF)⇒Con(ZFC+GCH).
  4. ZFC+GCH⊨CH\mathrm{ZFC}+\mathrm{GCH}\models\mathrm{CH}ZFC+GCH⊨CH.
  5. (Cohen) Con(ZFC)⇒Con(ZFC+¬CH)\mathrm{Con}(\mathrm{ZFC})\Rightarrow\mathrm{Con}(\mathrm{ZFC}+\neg\mathrm{CH})Con(ZFC)⇒Con(ZFC+¬CH).
  6. (Kőnig) 2ℵ0≠ℵα2^{\aleph_0}\neq\aleph_\alpha2ℵ0​=ℵα​ when cf(α)=ω\mathrm{cf}(\alpha)=\omegacf(α)=ω; and cf(2ℵ0)>ℵ0\mathrm{cf}(2^{\aleph_0})>\aleph_0cf(2ℵ0​)>ℵ0​.
  7. (Sierpiński) ZF+GCH⊨AC\mathrm{ZF}+\mathrm{GCH}\models\mathrm{AC}ZF+GCH⊨AC.
  8. GCH  ⟺  ∀α, 2ℵα=ℵα+1  ⟺  ∀α, ℵα=ℶα\mathrm{GCH}\iff\forall\alpha,\ 2^{\aleph_\alpha}=\aleph_{\alpha+1}\iff\forall\alpha,\ \aleph_\alpha=\beth_\alphaGCH⟺∀α, 2ℵα​=ℵα+1​⟺∀α, ℵα​=ℶα​.
  9. Under GCH: A<B⇒2A<2BA<B\Rightarrow 2^A<2^BA<B⇒2A<2B for infinite AAA, and the three-case formula for ℵαℵβ\aleph_\alpha^{\aleph_\beta}ℵαℵβ​​.
  10. (Patai) ∀α, 2ℵα=ℵα+γ\forall\alpha,\ 2^{\aleph_\alpha}=\aleph_{\alpha+\gamma}∀α, 2ℵα​=ℵα+γ​ implies γ<ω\gamma<\omegaγ<ω.
  11. (Freiling) the axiom of symmetry is equivalent to ¬\neg¬CH.

Significance

The independence theorem shows that the ZFC axioms do not determine the size of the continuum, and it was among the first independence results for a mathematical statement. Its two halves introduced the two main tools of modern set theory: inner models (Gödel's LLL) and forcing (Cohen). Many statements in analysis, topology and measure theory were subsequently shown to be independent by the same methods.

For formalization, the goal requires a model theory of ZF inside Lean: interpreting the first-order theory, building LLL inside an arbitrary model of ZF, and building forcing extensions of an arbitrary model of ZFC. The independence of CH was formalized in Lean 3 by the Flypitch project (Han and van Doorn, 2019–2020); no Lean 4 / Mathlib formalization is known to this mission. The cardinal-arithmetic milestones (2, 6, 8–11) are theorems of ZFC that can be proved directly in Lean's cardinal library.

Difficulty

Neither half follows from cardinal arithmetic in Lean: Lean's foundations prove that models of ZFC exist, but (assuming they are consistent) they prove neither CH nor its negation about Lean's own Cardinal, so an argument inside Lean's cardinal arithmetic alone cannot produce the required models. Gödel's half needs relativization of formulas to a definable inner class and absoluteness of the construction of LLL; Cohen's half needs a generic extension in which a new family of ℵ2\aleph_2ℵ2​ reals is added while cardinals are preserved (the countable chain condition). Both require a theory of definability inside arbitrary, possibly non-well-founded, models of a first-order theory.

Formalization scope

  • Syntax and semantics are Mathlib's first-order logic (FirstOrder.Language, Theory.IsSatisfiable, Theory.ModelsBoundedFormula written ⊨ᵇ). Formulas name their variables by natural numbers; close φ is the universal closure. Equality is the built-in equality of first-order logic.
  • Consistency is satisfiability and provability is semantic consequence over models with universe in Type. By the completeness theorem these agree with the syntactic notions.
  • The first-order CH uses P(ω)\mathcal P(\omega)P(ω) in place of R\mathbb RR (they are equinumerous in ZF). The first-order GCH is the choice-free form "∣S∣≤∣T∣≤∣P(S)∣⇒∣T∣=∣S∣|S|\le|T|\le|\mathcal P(S)|\Rightarrow|T|=|S|∣S∣≤∣T∣≤∣P(S)∣⇒∣T∣=∣S∣ or ∣T∣=∣P(S)∣|T|=|\mathcal P(S)|∣T∣=∣P(S)∣, for SSS infinite".
  • The consistency results carry their hypotheses Con(ZF)\mathrm{Con}(\mathrm{ZF})Con(ZF) or Con(ZFC)\mathrm{Con}(\mathrm{ZFC})Con(ZFC) explicitly, even though these are provable in Lean. A solution may not replace a model of ZF by Lean's own universe in a way that assumes CH or its negation.
  • Results that need large-cardinal hypotheses or class forcing (Easton, Solovay, Foreman–Woodin, Merimovich) are not part of this mission.

Reusable infrastructure: the language of set theory with standard abbreviations (pairs, functions, ω\omegaω, power set), satisfaction lemmas for the abbreviations, relativization, absoluteness, the constructible hierarchy, and forcing over models of ZFC.

Selected references

  • G. Cantor, Ein Beitrag zur Mannigfaltigkeitslehre, J. Reine Angew. Math. 84 (1878) 242–258. https://doi.org/10.1515/crll.1878.84.242
  • K. Gödel, The Consistency of the Axiom of Choice and of the Generalized Continuum-Hypothesis, PNAS 24 (1938) 556–557. https://doi.org/10.1073/pnas.24.12.556
  • K. Gödel, The Consistency of the Axiom of Choice and of the Generalized Continuum-Hypothesis with the Axioms of Set Theory, Annals of Math. Studies 3, Princeton, 1940.
  • P. J. Cohen, The independence of the Continuum Hypothesis I, II, PNAS 50 (1963) 1143–1148; 51 (1964) 105–110. https://doi.org/10.1073/pnas.50.6.1143, https://doi.org/10.1073/pnas.51.1.105
  • C. Freiling, Axioms of symmetry: throwing darts at the real number line, J. Symbolic Logic 51 (1986) 190–200. https://doi.org/10.2307/2273955
  • L. Gillman, Two classical surprises concerning the Axiom of Choice and the Continuum Hypothesis, Amer. Math. Monthly 109 (2002) 544–553. https://doi.org/10.2307/2695444
  • K. Kunen, Set Theory: An Introduction to Independence Proofs, North-Holland, 1980.
  • Wikipedia, Continuum hypothesis (revision 1376315189). https://en.wikipedia.org/w/index.php?title=Continuum_hypothesis&oldid=1376315189
33 thms3 active usersReviewed
🏆Completed
Captain: Lucas

Singular Cardinals Hypothesis: Silver's reduction to countable cofinalityTextbook

Motivation

Cantor's continuum problem asks for the value of 2κ2^\kappa2κ, the cardinality of the power set of an infinite cardinal κ\kappaκ. For regular cardinals ZFC says almost nothing: by Easton's theorem (1970) the function κ↦2κ\kappa\mapsto 2^\kappaκ↦2κ on regular cardinals can be essentially any non-decreasing function with cf⁡(2κ)>κ\operatorname{cf}(2^\kappa)>\kappacf(2κ)>κ. For singular cardinals the picture is different, and the singular cardinals hypothesis (SCH) is the natural statement of "GCH-like behaviour at singular cardinals". It arose from the question whether the least cardinal at which GCH fails can be singular.

Timeline.

  • Scott (1961): if GCH holds on a set of measure one below a measurable cardinal κ\kappaκ, then 2κ=κ+2^\kappa=\kappa^+2κ=κ+.
  • Solovay (1974): above a strongly compact cardinal, SCH holds.
  • Silver (1975): if κ\kappaκ is singular of uncountable cofinality and 2λ=λ+2^\lambda=\lambda^+2λ=λ+ for all infinite λ<κ\lambda<\kappaλ<κ, then 2κ=κ+2^\kappa=\kappa^+2κ=κ+. Consequently the least failure of SCH has countable cofinality.
  • Silver, Prikry: from a supercompact cardinal, a model of ¬\neg¬SCH (Prikry forcing over a measurable κ\kappaκ with 2κ>κ+2^\kappa>\kappa^+2κ>κ+).
  • Gitik (1989–1991), building on Woodin: ZFC+¬SCH\mathrm{ZFC}+\neg\mathrm{SCH}ZFC+¬SCH is equiconsistent with a measurable cardinal of Mitchell order κ++\kappa^{++}κ++.
  • Todorcevic, Veličković (1980s): the proper forcing axiom implies 2ℵ0=ℵ22^{\aleph_0}=\aleph_22ℵ0​=ℵ2​.
  • Viale (2006): the proper forcing axiom implies SCH.

Setting

All cardinals live in one universe. For a cardinal κ\kappaκ, κ+\kappa^+κ+ is its successor cardinal and cf⁡κ\operatorname{cf}\kappacfκ its cofinality (the cofinality of the initial ordinal of κ\kappaκ). A cardinal is singular if it is infinite and cf⁡κ<κ\operatorname{cf}\kappa<\kappacfκ<κ, and a strong limit if κ≠0\kappa\neq0κ=0 and 2λ<κ2^\lambda<\kappa2λ<κ for all λ<κ\lambda<\kappaλ<κ.

  • GCH: 2κ=κ+2^\kappa=\kappa^+2κ=κ+ for every infinite κ\kappaκ.
  • SCH (first form, following Mitchell 1992): 2κ=κ+2^\kappa=\kappa^+2κ=κ+ for every singular strong limit κ\kappaκ.
  • SCH2_22​ (second form): for every singular κ\kappaκ, 2cf⁡κ<κ2^{\operatorname{cf}\kappa}<\kappa2cfκ<κ implies κcf⁡κ=κ+\kappa^{\operatorname{cf}\kappa}=\kappa^+κcfκ=κ+.

A normal measure on κ\kappaκ is a nonprincipal κ\kappaκ-complete ultrafilter on κ\kappaκ under which every regressive function is constant on a measure-one set; κ\kappaκ is measurable if it is uncountable and carries one. κ\kappaκ is strongly compact if it is uncountable and every proper κ\kappaκ-complete filter on any set extends to a κ\kappaκ-complete ultrafilter. The proper forcing axiom (PFA) asserts that for every proper poset PPP and every ℵ1\aleph_1ℵ1​ dense subsets of PPP there is a filter meeting all of them.

Formalization targets

Goal: Silver's reduction

(∀λ singular strong limit, cf⁡λ=ℵ0⇒2λ=λ+) ⟹ SCH.\Bigl(\forall\lambda\ \text{singular strong limit},\ \operatorname{cf}\lambda=\aleph_0\Rightarrow 2^\lambda=\lambda^+\Bigr)\ \Longrightarrow\ \mathrm{SCH}.(∀λ singular strong limit, cfλ=ℵ0​⇒2λ=λ+) ⟹ SCH.

SCH itself is independent of ZFC, so it cannot be a goal; the goal is the ZFC theorem that SCH can only first fail at countable cofinality.

Milestones (in order)

  1. GCH ⇒\Rightarrow⇒ SCH.
  2. κcf⁡κ=2κ\kappa^{\operatorname{cf}\kappa}=2^\kappaκcfκ=2κ for every singular strong limit κ\kappaκ.
  3. SCH2_22​ ⇒\Rightarrow⇒ SCH.
  4. Silver's theorem: κ\kappaκ singular, cf⁡κ>ℵ0\operatorname{cf}\kappa>\aleph_0cfκ>ℵ0​, GCH below κ\kappaκ ⇒\Rightarrow⇒ 2κ=κ+2^\kappa=\kappa^+2κ=κ+ (already published and proved on the platform as JechSetTheory.silver).
  5. The second-form reduction: SCH2_22​ at all λ\lambdaλ of countable cofinality implies SCH2_22​ everywhere (published, open, as JechSetTheory.sch_of_sch_cof_aleph0).
  6. The least counterexample to SCH has cofinality ℵ0\aleph_0ℵ0​.
  7. Scott's theorem: DDD a normal measure on κ\kappaκ and {α<κ:2∣α∣=∣α∣+}∈D\{\alpha<\kappa: 2^{|\alpha|}=|\alpha|^+\}\in D{α<κ:2∣α∣=∣α∣+}∈D imply 2κ=κ+2^\kappa=\kappa^+2κ=κ+.
  8. Solovay's theorem: if κ\kappaκ is strongly compact, then 2μ=μ+2^\mu=\mu^+2μ=μ+ for every singular strong limit μ>κ\mu>\kappaμ>κ.
  9. PFA ⇒2ℵ0=ℵ2\Rightarrow 2^{\aleph_0}=\aleph_2⇒2ℵ0​=ℵ2​.
  10. PFA ⇒\Rightarrow⇒ SCH.

Significance

The goal locates the first possible failure of SCH: any model of ¬\neg¬SCH must have a counterexample of countable cofinality, which is why Prikry-type forcing (which adds an ω\omegaω-sequence) is the standard tool for producing failures, and why ℵω\aleph_\omegaℵω​ is the canonical test case. Milestones 1, 7, 8 and 10 show that very different hypotheses (GCH, large cardinals, forcing axioms) all imply SCH, while milestone 9 shows PFA does so without GCH.

These results are classical and have complete published proofs (Jech, Set Theory, Chapters 8, 20, 24, 31). Silver's theorem is already machine-checked on this platform; the rest, including the stationary-set form of Silver's theorem needed for the goal, are not yet formalized here.

Difficulty

The naive attempt at the goal, "apply Silver's theorem at the least counterexample", fails: Silver's theorem as stated needs GCH at all infinite cardinals below κ\kappaκ, but SCH below κ\kappaκ says nothing about regular cardinals or non-strong-limits. The proof needs the stronger, stationary-set version of Silver's theorem (Galvin–Hajnal style), applied to the stationary set of singular strong limits of countable cofinality below κ\kappaκ. Scott's and Solovay's theorems need ultrapower arguments, and PFA ⇒\Rightarrow⇒ SCH needs reflection and covering-type combinatorics; none of these exist in Mathlib.

Formalization scope

  • Cardinals are Mathlib Cardinal.{u}; singularity is Cardinal.IsSingular, strong limit is Cardinal.IsStrongLimit, cofinality is κ.ord.cof, successor is Order.succ κ. The second form reuses the published predicate JechSetTheory.SCHAt.
  • A measure on κ\kappaκ is an ultrafilter on Ordinal.{u} containing the ordinals below κ\kappaκ; completeness quantifies over index types of universe u. "Proper filter" in the definition of strong compactness is Filter.NeBot; without it no cardinal would be strongly compact and Solovay's theorem would be vacuous.
  • Properness of a poset is encoded by the Gray–Shelah game characterization (names for ordinals in maximal-antichain form, forcing unfolded into predensity), because Mathlib has no forcing relation; this encoding deserves particular scrutiny. Posets are nonempty preorders with q≤pq\le pq≤p meaning qqq is stronger.
  • Not formalized: the consistency and equiconsistency results (Gitik, Prikry forcing, Silver's supercompact construction, inner-model lower bounds) and the strictness of "SCH2_22​ is stronger than SCH"; these are statements about models of ZFC rather than theorems of ZFC.
  • Reusable infrastructure welcome: clubs and stationary sets on cardinals (partly available in Def_JechStationary), ultrapowers by normal measures, Fodor's lemma, Galvin–Hajnal bounds.

Selected references

  • W. J. Mitchell, On the singular cardinal hypothesis, Trans. Amer. Math. Soc. 329(2), 507–530, 1992.
  • J. Silver, On the singular cardinals problem, Proc. ICM Vancouver 1974, 265–268, 1975.
  • T. Jech, Set Theory, 3rd millennium ed., Springer, 2003.
  • M. Gitik, The strength of the failure of the singular cardinal hypothesis, Ann. Pure Appl. Logic 51, 215–240, 1991.
  • M. Viale, The proper forcing axiom and the singular cardinal hypothesis, J. Symbolic Logic 71(2), 473–479, 2006.
  • S. Shelah, Proper and Improper Forcing, Springer, 1998.
  • Wikipedia, Singular cardinals hypothesis, revision 1349753131. https://en.wikipedia.org/w/index.php?title=Singular_cardinals_hypothesis&oldid=1349753131
14 thms3 active usersReviewed
🏆Completed
Theory of Computation·Captain: mikedeng1

On the (Im)possibility of Obfuscating Programs 1: A Decidable Promise Problem Closed under Functional Equivalence Is Decided by a Simulator Given Only Oracle Access to ⟨M⟩ and the Size 1^|M|Research Paper

Motivation

Program obfuscation asks for a compiler that turns a program into one computing the same function while revealing nothing beyond what black-box access to the function reveals. Barak, Goldreich, Impagliazzo, Rudich, Sahai, Vadhan and Yang (J. ACM 59(2), 2012; conference version CRYPTO 2001) showed that this "virtual black box" notion cannot be achieved in general. Part of their motivation is an informal reading of Rice's Theorem: since every non-trivial semantic property of programs is undecidable from the code, "the only useful thing you can do with a machine is run it". Section 5 of the paper asks whether a complexity-theoretic analogue holds, and Appendix A asks what the right computability-theoretic statement is once one passes from languages to promise problems.

Classical Rice's Theorem (Rice, 1953) concerns languages: a decidable set of machines closed under functional equivalence is empty or everything. For promise problems the naive analogue (Conjecture A.1 of the paper) is false: the problem "halts everywhere and outputs 1 on 0" versus "halts everywhere and outputs 0 on 0" is decidable, non-trivial, and closed under functional equivalence. Appendix A replaces "trivial" by "decidable by a simulator that only runs the machine", proves that version (Theorem A.2), and shows that the size bound given to the simulator cannot be dropped (Theorem A.4, a separate mission in this series). This mission formalizes Theorem A.2.

Setting

A machine MMM is a program for a partial recursive function, identified with its description, a natural number ⌜M⌝\ulcorner M\urcorner┌M┐. Its computed function [M]:N⇀N[M]:\mathbb N\rightharpoonup\mathbb N[M]:N⇀N is possibly partial, and [M]≡[M′][M]\equiv[M'][M]≡[M′] means equality of partial functions. The size ∣M∣|M|∣M∣ is the length of the binary description of MMM; there are at most 2s2^s2s machines of size sss.

The bounded run of MMM is

⟨M⟩(1t,x)={yif M(x) halts with output y within budget t,⊥otherwise.\langle M\rangle(1^t,x)=\begin{cases} y & \text{if } M(x)\text{ halts with output } y \text{ within budget } t,\\ \bot&\text{otherwise.}\end{cases}⟨M⟩(1t,x)={y⊥​if M(x) halts with output y within budget t,otherwise.​

An oracle machine SSS may query ⟨M⟩\langle M\rangle⟨M⟩ at any pair (t,x)(t,x)(t,x) of its choice; S⟨M⟩(z)S^{\langle M\rangle}(z)S⟨M⟩(z) is its output on input zzz. Oracle access to ⟨M⟩\langle M\rangle⟨M⟩ is what running MMM provides: one may choose inputs and budgets, but one never sees the code.

A promise problem Π=(ΠY,ΠN)\Pi=(\Pi_Y,\Pi_N)Π=(ΠY​,ΠN​) is a pair of disjoint sets of machines. A machine TTT decides Π\PiΠ if T(⌜M⌝)=1T(\ulcorner M\urcorner)=1T(┌M┐)=1 for M∈ΠYM\in\Pi_YM∈ΠY​ and T(⌜M⌝)=0T(\ulcorner M\urcorner)=0T(┌M┐)=0 for M∈ΠNM\in\Pi_NM∈ΠN​; nothing is asked of TTT outside ΠY∪ΠN\Pi_Y\cup\Pi_NΠY​∪ΠN​. Π\PiΠ is closed under [⋅][\cdot][⋅] if [M]≡[M′][M]\equiv[M'][M]≡[M′] implies M∈ΠY⇔M′∈ΠYM\in\Pi_Y\Leftrightarrow M'\in\Pi_YM∈ΠY​⇔M′∈ΠY​ and M∈ΠN⇔M′∈ΠNM\in\Pi_N\Leftrightarrow M'\in\Pi_NM∈ΠN​⇔M′∈ΠN​.

A machine NNN is nnn-compatible with MMM if ⟨N⟩(1t,x)=⟨M⟩(1t,x)\langle N\rangle(1^t,x)=\langle M\rangle(1^t,x)⟨N⟩(1t,x)=⟨M⟩(1t,x) for all t≤nt\le nt≤n and all xxx with ∣x∣≤n|x|\le n∣x∣≤n, and SnS_nSn​ denotes the set of machines of size ∣M∣|M|∣M∣ that are nnn-compatible with MMM.

Formalization targets

Goal: Theorem A.2 (p. A:41)

If Π\PiΠ is closed under [⋅][\cdot][⋅] and decidable, then there is one oracle machine SSS such that for every machine MMM

M∈ΠY⇒S⟨M⟩(1∣M∣)=1,M∈ΠN⇒S⟨M⟩(1∣M∣)=0.M\in\Pi_Y\Rightarrow S^{\langle M\rangle}(1^{|M|})=1,\qquad M\in\Pi_N\Rightarrow S^{\langle M\rangle}(1^{|M|})=0 .M∈ΠY​⇒S⟨M⟩(1∣M∣)=1,M∈ΠN​⇒S⟨M⟩(1∣M∣)=0.

Milestones (proof of Theorem A.2, pp. A:41–A:42)

  1. Fact (1): nnn-compatibility with MMM is decidable by one oracle machine with oracle ⟨M⟩\langle M\rangle⟨M⟩, uniformly in MMM, NNN, nnn.
  2. Fact (3): if [M]≢[N][M]\not\equiv[N][M]≡[N], there is n′n'n′ with NNN not nnn-compatible with MMM for every n>n′n>n'n>n′.
  3. There is n′′n''n′′ such that every N∈SnN\in S_nN∈Sn​ with n>n′′n>n''n>n′′ satisfies [N]≡[M][N]\equiv[M][N]≡[M].
  4. If some stage nnn finds TTT, run for nnn steps, halting on all of SnS_nSn​ with a common answer σ\sigmaσ, then σ=T(⌜M⌝)\sigma=T(\ulcorner M\urcorner)σ=T(┌M┐).
  5. For M∈ΠYM\in\Pi_YM∈ΠY​ (resp. ΠN\Pi_NΠN​) such a stage exists, with answer 111 (resp. 000).

Significance

The result. Theorem A.2 is the precise sense in which a semantic property of programs, decidable from the code on a promise, is decidable without the code: running the program on chosen inputs for chosen budgets, plus a bound on its length, suffices. It is the computability-theoretic counterpart of Conjecture 5.2, the complexity-theoretic statement whose failure (Theorem 5.3, under cryptographic assumptions) is one face of the impossibility of obfuscation. Together with Theorem A.4 it isolates the size bound as the ingredient that makes the generalization true.

Formalizing it. The theorem has a complete proof in the paper, about one page long. No machine-checked version is known: the Prove2Me catalogue has classical Rice's Theorem for index sets of Nat.Partrec.Code (FamousTheorems.rice_theorem, which this proof does not use) but nothing on promise problems, bounded-run oracles, or simulators. A formal proof produces reusable infrastructure: the oracle ⟨M⟩\langle M\rangle⟨M⟩ as a total function on query codes, decidability of compatibility relative to it, and a dovetailing simulator assembled as a uniform oracle program.

Difficulty

Each mathematical step is elementary; the work lies in the effective content. The obvious idea, "query ⟨M⟩\langle M\rangle⟨M⟩ until [M][M][M] is known and then decide", fails: [M][M][M] is an infinite object, and no finite set of queries pins it down. The paper's simulator instead uses the size bound to restrict attention to finitely many candidate codes, and needs TTT to agree on every surviving candidate at a common budget. Turning this into one oracle program requires enumerating all codes of a given size, deciding compatibility from finitely many oracle answers, comparing bounded runs of TTT, and searching over nnn, all uniformly in MMM and with no access to ⌜M⌝\ulcorner M\urcorner┌M┐. Termination holds only on promise instances, since TTT may diverge elsewhere, so the argument cannot assume a total decider.

Formalization scope

Machines are Mathlib's Nat.Partrec.Code; descriptions are Encodable.encode; [M][M][M] is Code.eval; ⟨M⟩(1t,x)\langle M\rangle(1^t,x)⟨M⟩(1t,x) is Code.evaln t M x : Option ℕ, with none for ⊥\bot⊥. The budget of evaln is fuel rather than a literal Turing-machine step count. It is monotone in ttt, converges to [M][M][M], and is primitive recursive in (t,M,x)(t,M,x)(t,M,x), and these are the only properties of step counts that the proof uses. Inputs are natural numbers, ∣x∣|x|∣x∣ is Nat.size x, and ∣M∣|M|∣M∣ is Nat.size (encode M). Oracle machines are the published uniform oracle programs FriedbergMuchnik.Program with semantics oracleEval (a single syntax tree with an oracle-query instruction, equivalent to relative partial recursiveness). The oracle ⟨M⟩\langle M\rangle⟨M⟩ is the total function sending Nat.pair t x to 0 for ⊥\bot⊥ and to y + 1 for an output yyy. The simulator's input 1∣M∣1^{|M|}1∣M∣ is the number ∣M∣|M|∣M∣, since unary versus binary is immaterial here. "S⟨M⟩(1∣M∣)=1S^{\langle M\rangle}(1^{|M|})=1S⟨M⟩(1∣M∣)=1" means that the run halts with output 111. Promise problems carry their disjointness, as in the paper, although no statement uses it. The decider TTT is a Code applied to descriptions and may diverge off the promise.

The trivializing readings are excluded. SSS is chosen before MMM (one program, not one per machine). It receives the size of MMM, never its description, and many machines share each size. It sees only the finitely many oracle answers a halting run queries. The oracle is the bounded-run function ⟨M⟩\langle M\rangle⟨M⟩, not [M][M][M] or the code.

Contributions welcome: proofs of the milestones; a primitive-recursive enumeration of the codes of a given size; a proof that oracle M is uniformly computable from M, which is useful beyond this mission.

Selected references

  • B. Barak, O. Goldreich, R. Impagliazzo, S. Rudich, A. Sahai, S. Vadhan, K. Yang, On the (Im)possibility of Obfuscating Programs, Journal of the ACM 59(2), 2012. https://doi.org/10.1145/2160158.2160159
  • H. G. Rice, Classes of recursively enumerable sets and their decision problems, Transactions of the AMS 74(2), 1953. https://doi.org/10.1090/S0002-9947-1953-0053041-6
  • S. Even, A. L. Selman, Y. Yacobi, The complexity of promise problems with applications to public-key cryptography, Information and Control 61(2), 1984. https://doi.org/10.1016/S0019-9958(84)80056-X
8 thms3 active usersReviewed
🏆Completed
Number Theory·Captain: marwahaha

Single-fold Diophantine representationsOpen Problem

Motivation

A Diophantine representation translates membership in a computably enumerable set into solvability of one polynomial equation. The source asks whether the entire auxiliary witness can always be made unique. The source is OpenAI's September 2026 manuscript.

Setting

A single-fold representation uses an integer polynomial evaluated at natural-number inputs and witnesses. An input belongs to the represented set exactly when a witness makes the polynomial zero, and any two complete witnesses at the same input must coincide.

Formalization targets

a∈S ⟺ ∃w∈Nm: P(a,w)=0,P(a,w)=P(a,v)=0 ⟹ w=v.a\in S\ \Longleftrightarrow\ \exists w\in\mathbb N^m:\ P(a,w)=0,\qquad P(a,w)=P(a,v)=0\ \Longrightarrow\ w=v.a∈S ⟺ ∃w∈Nm: P(a,w)=0,P(a,w)=P(a,v)=0 ⟹ w=v.

The proposition MainStatement holds, which asserts a single-fold Diophantine representation result with positive lengths. For every n ≥ 1 and every set S of n-tuples of natural numbers that is recursively enumerable (the predicate a ∈ S is REPred, i.e. semi-decidable), there exist m ≥ 1 and an integer polynomial P in the n input variables and m witness variables such that P represents S. Here evaluation takes natural-number inputs a and witnesses w, casts them to integers, and evaluates P over ℤ. Representation means that for every input a, first, a lies in S exactly when some witness w ∈ ℕ^m satisfies P(a,w)=0, and second, any two witnesses w and v with P(a,w)=0 and P(a,v)=0 are equal. So there is exactly one witness for members of S and none for nonmembers, and the uniqueness condition is imposed on every input a, with all witness coordinates included in w.

The goal is OAI.SingleFold.main.

Significance

The target strengthens mere existential representation by enforcing uniqueness across every auxiliary coordinate. It covers all recursively enumerable sets of positive-length natural tuples. The manuscript presents a mathematical argument; the attached goal currently has status Open, so the requested contribution is a Lean proof of the displayed formal target.

Difficulty

Encoding a computation with extra witnesses can introduce many choices that do not affect the represented input. Every such auxiliary choice must be controlled, rather than leaving hidden coordinates outside the uniqueness assertion.

Formalization scope

The input length and witness length are positive naturals. REPred expresses recursive enumerability. Polynomial coefficients and evaluation are integral, while variables range over naturals cast into the integers. The goal is existential and does not require one fixed universal polynomial.

The shared definitions are supplied by SingleFold. The target uses Lean 4.33.1 with the pinned Mathlib environment. Contributions should preserve the existing statement and develop reusable supporting lemmas in its definitions.

Selected references

  • OpenAI, Single-fold Diophantine representations, preprint, September 2026. Manuscript.
  • OpenAI, accompanying Lean statement. Pinned source.
48 thms3 active usersReviewed
🏆Completed
Model Theory·Captain: wurtle

A CH obstruction to a prescribed categoricity thresholdResearch Paper

Motivation: categoricity transfer beyond first-order logic

A class of structures is categorical in a cardinal λ\lambdaλ if it has exactly one model of size λ\lambdaλ up to isomorphism. Morley's theorem (1965) says that a complete first-order theory in a countable language categorical in one uncountable cardinal is categorical in all of them. Abstract elementary classes (AECs), introduced by Shelah in the 1970s, axiomatize classes of structures with a well-behaved notion of strong substructure (closure under isomorphism, coherence, unions of chains, a Löwenheim–Skolem number) without requiring first-order axiomatizability; they cover classes defined in infinitary logics and many classes of modules. Shelah's categoricity conjecture for AECs, in its eventual form, asks whether categoricity in one sufficiently large cardinal transfers to all sufficiently large cardinals. A sharper, prescribed-threshold form names the threshold explicitly: with H(K)=ℶ(2LS(K))+H(K)=\beth_{(2^{\mathrm{LS}(K)})^+}H(K)=ℶ(2LS(K))+​ (the Hanf number for existence of arbitrarily large models), categoricity in some λ≥H(K)\lambda\ge H(K)λ≥H(K) should imply categoricity in every μ≥H(K)\mu\ge H(K)μ≥H(K). Deciding which form holds is a central question in non-elementary model theory.

Timeline

  • 1965 — Morley proves the categoricity theorem for countable first-order theories (Trans. AMS 1965).
  • 1970s — Shelah introduces abstract elementary classes (see the survey of Boney–Vasey 2017, §2).
  • 1990 — Hart and Shelah show categoricity in Lω1,ωL_{\omega_1,\omega}Lω1​,ω​ can stop at ℵk\aleph_kℵk​ while holding for ℵ0,…,ℵk−1\aleph_0,\dots,\aleph_{k-1}ℵ0​,…,ℵk−1​, using finite-support group constructions (Israel J. Math. 1990).
  • 1999 — Shelah proves categoricity transfer for AECs with amalgamation and records H(K)H(K)H(K) as the existence bound (APAL 1999).
  • 2016 — Kolesnikov and Lambie-Hanson study Hanf numbers for amalgamation of coloring classes (JSL 2016).
  • 2017 — Vasey proves downward transfer from a successor cardinal ≥H(K)\ge H(K)≥H(K) under amalgamation and tameness (APAL 2017).
  • 2021 — Grossberg distinguishes the prescribed-bound and eventual forms of the conjecture (A Course in Model Theory I, draft, Ch. 2 §4).
  • 2022–2023 — Espíndola announces a proof of eventual categoricity and, for arbitrary AECs, a transfer at the prescribed bound via accessible categories (arXiv:1906.09169, arXiv:2301.13167).
  • 2024 — Šaroch and Trlifaj state the prescribed-threshold formulation with both endpoints included (Bull. LMS 2024, §2.3).
  • 2026 — An OpenAI preprint, A CH obstruction to a prescribed categoricity threshold (OpenAI Math Release, September 24, 2026), claims that under CH there is an AEC with LS(K)=ℵ0\mathrm{LS}(K)=\aleph_0LS(K)=ℵ0​, categorical on a tail but with two nonisomorphic models at H(K)=ℶω2H(K)=\beth_{\omega_2}H(K)=ℶω2​​; this conflicts with the transfer claimed in Espíndola 2023 (Theorem 4.1). The preprint has not been peer reviewed and its theorem is not formally verified.

Setting

Work with relational structures in a finitary relational language LLL (a set of relation symbols, each with a finite arity). An abstract elementary class is a class KKK of LLL-structures with a relation M⪯KNM\preceq_K NM⪯K​N ("strong substructure") such that: ⪯K\preceq_K⪯K​ is a partial order on KKK refining substructure; KKK and ⪯K\preceq_K⪯K​ are closed under isomorphism; coherence holds (M0⊆M1M_0\subseteq M_1M0​⊆M1​, M0⪯KM2M_0\preceq_K M_2M0​⪯K​M2​, M1⪯KM2M_1\preceq_K M_2M1​⪯K​M2​ imply M0⪯KM1M_0\preceq_K M_1M0​⪯K​M1​); unions of ⪯K\preceq_K⪯K​-chains are in KKK, are ⪯K\preceq_K⪯K​-extensions of each member, and are ⪯K\preceq_K⪯K​-below any common strong extension (Tarski–Vaught chain axioms); and there is a Löwenheim–Skolem number LS(K)≥ℵ0+∣L∣\mathrm{LS}(K)\ge\aleph_0+|L|LS(K)≥ℵ0​+∣L∣, the least θ\thetaθ such that every subset AAA of a model MMM lies in some N⪯KMN\preceq_K MN⪯K​M with ∣N∣≤∣A∣+θ|N|\le|A|+\theta∣N∣≤∣A∣+θ.

KKK is categorical in μ\muμ if it has a model of size μ\muμ and any two models of size μ\muμ are isomorphic. The beth numbers are ℶ0=ℵ0\beth_0=\aleph_0ℶ0​=ℵ0​, ℶα+1=2ℶα\beth_{\alpha+1}=2^{\beth_\alpha}ℶα+1​=2ℶα​ and suprema at limits. CH is 2ℵ0=ℵ12^{\aleph_0}=\aleph_12ℵ0​=ℵ1​.

Formalization targets

Goal: the CH counterexample (Theorem 1.1)

Assume CH. There is a countable finitary relational language LLL and an AEC KKK in LLL such that

LS(K)=ℵ0,ℶω2=H(K)=ℶ(2ℵ0)+,\mathrm{LS}(K)=\aleph_0,\qquad \beth_{\omega_2}=H(K)=\beth_{(2^{\aleph_0})^+},LS(K)=ℵ0​,ℶω2​​=H(K)=ℶ(2ℵ0​)+​,

KKK has two nonisomorphic models of cardinality ℶω2\beth_{\omega_2}ℶω2​​, and, with Λ=ℶ(2ℵ1)+\Lambda=\beth_{(2^{\aleph_1})^+}Λ=ℶ(2ℵ1​)+​,

K is categorical in every cardinal μ≥Λ.K\ \text{is categorical in every cardinal } \mu\ge\Lambda .K is categorical in every cardinal μ≥Λ.

Hence Λ+>H(K)\Lambda^+>H(K)Λ+>H(K) is a categoricity cardinal from which downward transfer to H(K)H(K)H(K) fails, while eventual categoricity holds for this KKK. The goal statement is published on the platform with status Open: no machine-checked proof exists yet.

Significance

The result itself. Combined with Gödel's relative consistency of CH, the theorem shows that, if ZFC is consistent, the prescribed-threshold form of Shelah's categoricity conjecture is not provable in ZFC (Corollary 6.1 of the source). The example has no amalgamation or joint embedding, which explains why transfer theorems that assume these properties are unaffected, and it is compatible with qualitative eventual categoricity. It also bears directly on a published claim of transfer at the prescribed bound for arbitrary AECs.

Formalizing it. Because the result contradicts a claimed theorem in the literature, an independent machine check is especially valuable. The formal statement verifies every AEC axiom explicitly, not just the two cardinal-arithmetic conclusions. Mathlib has cardinal and ordinal arithmetic, beth numbers and ZFC sets; the AEC framework built here would be reusable for further formal work in non-elementary model theory.

Difficulty

Most known non-transfer examples (Hart–Shelah) fail categoricity at small cardinals; here the failure must happen exactly at the Hanf-type bound ℶω2\beth_{\omega_2}ℶω2​​ while categoricity holds on a tail, with LS(K)=ℵ0\mathrm{LS}(K)=\aleph_0LS(K)=ℵ0​. One must build two nonisomorphic models at ℶω2\beth_{\omega_2}ℶω2​​ and simultaneously rule out any two nonisomorphic models above Λ\LambdaΛ, without appealing to a general eventual-categoricity theorem. All AEC axioms — in particular coherence and smoothness of unions of arbitrary directed chains — must survive the exceptional sets used to separate models, which is where naive constructions break.

Formalization scope

  • Structures are RelModel L with carrier a ZFSet (so cardinalities are cardinals of genuine sets in universe u) and relations indexed by arity; L:N→L:\mathbb N\toL:N→ Type with ΣnLn\Sigma_n L_nΣn​Ln​ countable.
  • ClassData packages a predicate of objects and a strong-substructure relation; IsAEC lists the axioms above, including invariance under isomorphisms compatible with inclusion, coherence, and the union axioms for chains indexed by any nonzero ordinal.
  • HasLSNumber ℵ₀ asserts both that ℵ0\aleph_0ℵ0​ is a Löwenheim–Skolem bound and that it is the least one.
  • hanf κ = beth (succ (2^κ)).ord, endpoint = beth (ω_2), tailThreshold = beth (succ (2^{ℵ₁})).ord. The equality endpoint = hanf ℵ₀ is part of the goal (it follows from CH).
  • Categorical μ includes existence of a model of size μ\muμ; TwoModels asks for two nonisomorphic models of the given size.
  • CH is a hypothesis of the theorem, in the same universe; the consistency corollary is not part of the goal.

Selected references

  • M. Morley, Categoricity in power, Trans. Amer. Math. Soc. (1965). https://doi.org/10.1090/S0002-9947-1965-0175782-0
  • K. Gödel, The consistency of the axiom of choice and of the generalized continuum-hypothesis, Proc. Nat. Acad. Sci. USA (1938). https://doi.org/10.1073/pnas.24.12.556
  • B. Hart and S. Shelah, Categoricity over P for first order T or categoricity for φ∈L_{ω1ω} can stop at ℵ_k while holding for ℵ_0,…,ℵ_{k−1}, Israel J. Math. (1990). https://doi.org/10.1007/BF02807869
  • S. Shelah, Categoricity for abstract classes with amalgamation, Ann. Pure Appl. Logic (1999). https://doi.org/10.1016/S0168-0072(98)00016-5
  • S. Vasey, Downward categoricity from a successor inside a good frame, Ann. Pure Appl. Logic (2017). https://doi.org/10.1016/j.apal.2016.10.003
  • W. Boney and S. Vasey, A survey on tame abstract elementary classes, 2017. https://arxiv.org/abs/1512.00060
  • A. Kolesnikov and C. Lambie-Hanson, The Hanf number for amalgamation of coloring classes, J. Symb. Logic (2016). https://doi.org/10.1017/jsl.2015.48
  • J. Šaroch and J. Trlifaj, Deconstructible abstract elementary classes of modules and categoricity, Bull. London Math. Soc. (2024). https://doi.org/10.1112/blms.13172
  • C. Espíndola, A complete classification of categoricity spectra of accessible categories with directed colimits, preprint, 2023. https://arxiv.org/abs/2301.13167
  • OpenAI, A CH obstruction to a prescribed categoricity threshold, OpenAI Math Release preprint, September 24, 2026 (source of the goal; Theorem 1.1, p. 2). https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/A-CH-Obstruction-to-a-Prescribed-Categoricity-Threshold-September-24-2026/paper.pdf
26 thms3 active usersReviewed
🏆Completed
Formal VerificationTheoretical Computer Science·Captain: mikedeng1

Compositional Shape Analysis by Means of Bi-Abduction 1: The Best Abductive Solution for Points-To Symbolic Heaps Is a Computable Disjunction of Symbolic HeapsResearch Paper

Motivation

Automatic verification of programs that manipulate pointers needs procedure specifications: preconditions saying which part of the heap a procedure touches and postconditions saying what it leaves behind. Writing them by hand does not scale to millions of lines of code. Calcagno, Distefano, O'Hearn and Yang (J. ACM 58(6), 2011) infer them compositionally with bi-abduction: when symbolic execution reaches a call whose precondition is not implied by the current state, it asks for the missing memory MMM that would make it hold. This abduction question in separation logic,

Δ∗M⊨H,\Delta * M \models H,Δ∗M⊨H,

is the engine behind the Abductor tool and, later, Facebook Infer.

The question has many solutions (M=falseM = \mathsf{false}M=false is always one), so its quality matters. The paper defines an order ≾\precsim≾ on solutions that prefers less memory and then logical strength, shows that a best solution always exists as a semantic object, and then asks whether it can be written down and computed in the language that the analysis actually manipulates: symbolic heaps. For the fragment whose only spatial predicate is points-to, it answers yes. That answer, Theorem 3.25, is the goal of this mission.

Setting

Values are natural numbers; 000 is nil and the nonzero naturals are the locations. A heap hhh is a finite partial map from locations to values; a stack sss assigns a value to every variable; a state is a pair (s,h)(s,h)(s,h). Write h=h0⊎h1h = h_0 \uplus h_1h=h0​⊎h1​ when h0,h1h_0,h_1h0​,h1​ have disjoint domains and hhh is their union. A predicate is an arbitrary set of states. On predicates:

  • s,h⊨F∗Gs,h \models F * Gs,h⊨F∗G iff h=h0⊎h1h = h_0 \uplus h_1h=h0​⊎h1​ with s,h0⊨Fs,h_0 \models Fs,h0​⊨F and s,h1⊨Gs,h_1 \models Gs,h1​⊨G;
  • s,h⊨F− ⁣ ⁣∗Gs,h \models F \mathbin{-\!\!*} Gs,h⊨F−∗G iff for every h′h'h′ disjoint from hhh with s,h′⊨Fs,h' \models Fs,h′⊨F, we have s,h⊎h′⊨Gs,h \uplus h' \models Gs,h⊎h′⊨G;
  • emp\mathsf{emp}emp holds in the empty heap, true\mathsf{true}true everywhere, and ¬\neg¬, ∨\vee∨, ∧\wedge∧, ∃X\exists X∃X, ∀X\forall X∀X are the Boolean and quantifier operations; F⊨GF \models GF⊨G is inclusion.

Symbolic heaps of the Points-to Instantiation. Expressions EEE are variables or natural-number constants. A pure formula Π\PiΠ is a conjunction of E=E′E = E'E=E′ and E≠E′E \neq E'E=E′. A spatial formula Σ\SigmaΣ is a ∗*∗-conjunction of points-to facts E↦E′E \mapsto E'E↦E′, possibly with ∗ true*\,\mathsf{true}∗true; here s,h⊨E↦E′s,h \models E \mapsto E's,h⊨E↦E′ iff [ ⁣[E] ⁣]s≠0[\![E]\!]s \neq 0[[E]]s=0 and hhh is the one-cell heap [ [ ⁣[E] ⁣]s↦[ ⁣[E′] ⁣]s ][\,[\![E]\!]s \mapsto [\![E']\!]s\,][[[E]]s↦[[E′]]s]. A symbolic heap is H=∃X⃗. Π∧ΣH = \exists \vec X.\, \Pi \wedge \SigmaH=∃X.Π∧Σ, and a disjunction D=H1∨⋯∨HnD = H_1 \vee \dots \vee H_nD=H1​∨⋯∨Hn​. In the abduction question (5), Δ∗D⊨H\Delta * D \models HΔ∗D⊨H, the left-hand side Δ=Π∧L1↦R1∗⋯∗Ln↦Rn\Delta = \Pi \wedge L_1 \mapsto R_1 * \dots * L_n \mapsto R_nΔ=Π∧L1​↦R1​∗⋯∗Ln​↦Rn​ is quantifier-free.

Orders. M≤M′M \le M'M≤M′ iff M′⊨M∗trueM' \models M * \mathsf{true}M′⊨M∗true (spatially smaller), and

M≾M′  ⟺  (M≤M′∧M′≰M)∨(M≤M′∧M′≤M∧M⊨M′).M \precsim M' \iff (M \le M' \wedge M' \not\le M) \vee (M \le M' \wedge M' \le M \wedge M \models M').M≾M′⟺(M≤M′∧M′≤M)∨(M≤M′∧M′≤M∧M⊨M′).

min⁡(F)\min(F)min(F) keeps the states of FFF no proper subheap of which (with the same stack) is in FFF. Elsewhere(F)=¬(F− ⁣ ⁣∗false)\mathrm{Elsewhere}(F) = \neg(F \mathbin{-\!\!*} \mathsf{false})Elsewhere(F)=¬(F−∗false) says that some separate heap satisfies FFF, and the compatible preorder is D≤cD′  ⟺  (D∧Elsewhere(Δ))≤(D′∧Elsewhere(Δ))D \le_c D' \iff (D \wedge \mathrm{Elsewhere}(\Delta)) \le (D' \wedge \mathrm{Elsewhere}(\Delta))D≤c​D′⟺(D∧Elsewhere(Δ))≤(D′∧Elsewhere(Δ)). Subtraction is F−G=F∧¬((¬emp)∗G)F - G = F \wedge \neg((\neg\mathsf{emp}) * G)F−G=F∧¬((¬emp)∗G).

Formalization targets

Goal: Theorem 3.25

There is a single algorithm fff such that for every quantifier-free Δ\DeltaΔ and symbolic heap HHH of the Points-to Instantiation, the disjunction D=f(Δ,H)D = f(\Delta, H)D=f(Δ,H) satisfies

Δ∗D⊨HandD≾M  for every predicate M with Δ∗M⊨H.\Delta * D \models H \quad\text{and}\quad D \precsim M \ \text{ for every predicate } M \text{ with } \Delta * M \models H.Δ∗D⊨HandD≾M  for every predicate M with Δ∗M⊨H.

Both halves are part of the goal: the best solution is expressible as a disjunction of symbolic heaps, and it is computable.

Milestones, in the order the paper's argument uses them

  1. Lemma 3.16. If DDD is a minimal solution w.r.t. ≤c\le_c≤c​, then min⁡(D∨¬Elsewhere(Δ))\min(D \vee \neg\mathrm{Elsewhere}(\Delta))min(D∨¬Elsewhere(Δ)) is the minimal solution w.r.t. ≾\precsim≾.
  2. Figure 2 derives solutions (§3.4.2). If Δ∗[D]▹H\Delta * [D] \triangleright HΔ∗[D]▹H is derivable, then Δ∗D⊨H\Delta * D \models HΔ∗D⊨H.
  3. Lemma 3.18. For all Δ,H\Delta, HΔ,H some DDD with Δ∗[D]▹H\Delta * [D] \triangleright HΔ∗[D]▹H is derivable, and the proof search terminates.
  4. Lemma 3.19. If Δ∗[D]▹H\Delta * [D] \triangleright HΔ∗[D]▹H is derivable and Δ∗F⊨H\Delta * F \models HΔ∗F⊨H, then D≤cFD \le_c FD≤c​F.
  5. Lemma 3.20. Incompat(Δ)\mathrm{Incompat}(\Delta)Incompat(Δ) and ¬Elsewhere(Δ)\neg\mathrm{Elsewhere}(\Delta)¬Elsewhere(Δ) are semantically equivalent.
  6. Lemma 3.23. Six algebraic properties of subtraction, including min⁡(F1∨⋯∨Fn)=G1∨⋯∨Gn\min(F_1 \vee \dots \vee F_n) = G_1 \vee \dots \vee G_nmin(F1​∨⋯∨Fn​)=G1​∨⋯∨Gn​ with Gi=((Fi−F1)⋯−Fn)G_i = ((F_i - F_1)\cdots - F_n)Gi​=((Fi​−F1​)⋯−Fn​).
  7. Quantifier removal for pure formulae (§3.4.4). ∃X.Π\exists X.\Pi∃X.Π is equivalent to a computable pure formula without XXX.
  8. Subtraction with quantifiers (§3.4.4). (∃X⃗.Δ)−(∃Y⃗.Δ′)(\exists\vec X.\Delta) - (\exists\vec Y.\Delta')(∃X.Δ)−(∃Y.Δ′) is a computable disjunction of symbolic heaps.

Significance

The result. Semantically the best solution is min⁡(Δ− ⁣ ⁣∗H)\min(\Delta \mathbin{-\!\!*} H)min(Δ−∗H) (Theorem 3.13 of the paper), a formula that nests − ⁣ ⁣∗-\!\!*−∗ and negation around ∗*∗, which no automatic separation-logic prover handles and which says nothing directly about the shape of the missing memory. Theorem 3.25 shows that in the points-to fragment this object collapses to a finite disjunction of symbolic heaps, the format in which an analysis draws "pictures of memory", and that it can be computed. It gives an optimal abduction procedure against which the paper's heuristic procedure can be measured.

Formalizing it. The theorem is proved in the paper, but several steps are given as sketches ("the proof of each of these properties is straightforward", "a straightforward exercise"), Lemma 3.18 has only a proof sketch, and the quantifier-free subtraction display on p. 33 is incomplete as printed (it inspects only the points-to facts and not the pure part of the subtracted heap). A machine-checked development would supply the missing arguments, fix the subtraction step, and give a verified reference implementation of optimal abduction for points-to symbolic heaps. No part of it is known to have been formalized.

Difficulty

The obvious route is to compute min⁡(Δ− ⁣ ⁣∗H)\min(\Delta \mathbin{-\!\!*} H)min(Δ−∗H) directly, but − ⁣ ⁣∗-\!\!*−∗ quantifies over all heaps, and symbolic heaps have no syntax for it. The paper splits the problem into three phases (a ≤c\le_c≤c​-minimal solution from a proof system, the incompatible solutions, and min⁡\minmin), and each phase carries its own difficulty. The proof system's minimality (Lemma 3.19) must hold against arbitrary semantic predicates, not only symbolic heaps, and it fails as soon as Δ\DeltaΔ may denote more than one heap for a given stack (the paper notes that adding list segments breaks it). Computing min⁡\minmin needs subtraction of symbolic heaps with quantifiers, which in turn needs quantifier elimination for Boolean combinations of equalities over an infinite domain, and the paper's quantifier-free subtraction step has to be repaired. Showing that the final disjunction is ≾\precsim≾-least, not merely a solution, needs all three phases.

Formalization scope

All statements live in the namespace BiAbduction.Systematic. Values are ℕ with nil 0, locations are the nonzero naturals, variables are ℕ (program and logical variables form one sort), and heaps are maps ℕ → Option ℕ with 0 unallocated and finite domain. Finiteness of heaps is essential, since min⁡\minmin relies on well-foundedness of the subheap order. Predicates are arbitrary Set (Stack × Heap). The syntax is built from ℕ, Bool, Sum, Prod and List by abbreviations, so "computed by an algorithm" is Mathlib's Computable₂ with the standard Primcodable encodings. The left-hand side Δ\DeltaΔ has no true conjunct, as in the paper's proofs; the right-hand side may have one. Figure 2 is an inductive relation in which psto may match any right-hand points-to fact. The soundness and ≤c\le_c≤c​-minimality statements assume the paper's bound-variable convention (no variable bound in HHH occurs in Δ\DeltaΔ); the goal does not need it.

The goal cannot be met by a degenerate reading. The competitors MMM range over all predicates, not only over disjunctions, and computability refers to fixed standard encodings. The points-to semantics excludes nil addresses, and heaps are finite.

A complete development needs the separation-logic algebra of predicates (associativity and commutativity of ∗*∗, the adjunction between ∗*∗ and − ⁣ ⁣∗-\!\!*−∗), properties of min⁡\minmin under finite heaps, the soundness and minimality of the proof system, quantifier elimination for equality logic, and a computability argument for list-manipulating procedures. The semantic layer and the quantifier-elimination result are reusable beyond this mission. Contributions to any milestone, and to the supporting lemmas of §3.3 (Lemmas 3.10–3.11, Theorem 3.13), are welcome.

Theorem numbers and page references are those of the accepted manuscript of the J. ACM article (72 pages), not of the typeset journal version.

Selected references

  • C. Calcagno, D. Distefano, P. W. O'Hearn, H. Yang, Compositional Shape Analysis by means of Bi-Abduction, Journal of the ACM 58(6), Article 26, 2011. https://doi.org/10.1145/2049697.2049700
  • C. Calcagno, D. Distefano, P. W. O'Hearn, H. Yang, Compositional Shape Analysis by means of Bi-Abduction, POPL 2009. https://doi.org/10.1145/1480881.1480917
  • J. Berdine, C. Calcagno, P. W. O'Hearn, Symbolic Execution with Separation Logic, APLAS 2005. https://doi.org/10.1007/11575467_5
  • J. C. Reynolds, Separation Logic: A Logic for Shared Mutable Data Structures, LICS 2002. https://doi.org/10.1109/LICS.2002.1029817
  • D. Pym, P. W. O'Hearn, H. Yang, Possible Worlds and Resources: The Semantics of BI, Theoretical Computer Science 315(1), 2004. https://doi.org/10.1016/j.tcs.2003.11.020
13 thms3 active usersReviewed
🏆Completed
Captain: Lucas

Jech Set Theory I: Silver's Theorem on Singular CardinalsTextbook

Motivation

How large can the power set of an infinite set be? For a regular cardinal κ\kappaκ (one that is not the supremum of fewer than κ\kappaκ smaller ordinals) the answer is: almost anything. Easton's theorem (1970) shows that the function κ↦2κ\kappa \mapsto 2^{\kappa}κ↦2κ on regular cardinals can be prescribed arbitrarily in any model of ZFC, subject only to monotonicity and König's inequality cf⁡(2κ)>κ\operatorname{cf}(2^{\kappa}) > \kappacf(2κ)>κ. For a long time it was expected that singular cardinals — those that are such a supremum, like ℵω\aleph_{\omega}ℵω​ — would behave the same way.

They do not. In 1974 Jack Silver proved that the Generalized Continuum Hypothesis cannot fail for the first time at a singular cardinal of uncountable cofinality: if 2α=α+2^{\alpha} = \alpha^{+}2α=α+ for every infinite α<κ\alpha < \kappaα<κ and cf⁡κ>ω\operatorname{cf}\kappa > \omegacfκ>ω, then 2κ=κ+2^{\kappa} = \kappa^{+}2κ=κ+. This was the first ZFC theorem constraining the continuum function at singular cardinals, and it opened the area now called the singular cardinal problem.

A short timeline:

  • 1970 — Easton: the continuum function on regular cardinals is essentially arbitrary.
  • 1974 — Silver (ICM Vancouver): GCH cannot first fail at a singular cardinal of uncountable cofinality; more generally the Singular Cardinal Hypothesis is decided at cofinality ω\omegaω.
  • 1975 — Galvin and Hajnal: elementary inequalities for cardinal powers at singular cardinals of uncountable cofinality.
  • 1976–77 — Baumgartner and Prikry, and independently Jensen, give elementary (non-forcing, non-ultrapower) proofs of Silver's theorem; the proof reproduced in Jech's Chapter 8 is of this kind.
  • 1977 — Magidor: it is consistent, relative to large cardinals, that GCH holds below ℵω\aleph_{\omega}ℵω​ while 2ℵω>ℵω+12^{\aleph_{\omega}} > \aleph_{\omega+1}2ℵω​>ℵω+1​ — so Silver's restriction to uncountable cofinality is necessary.
  • 1980s onwards — Shelah's pcf theory, whose flagship result ℵωℵ0<ℵω4\aleph_{\omega}^{\aleph_0} < \aleph_{\omega_4}ℵωℵ0​​<ℵω4​​ (when ℵω\aleph_\omegaℵω​ is a strong limit) grows out of exactly the stationary-set machinery assembled here.

This mission is the first in a series formalizing Thomas Jech, Set Theory (Third Millennium Edition, Springer 2003). It covers Chapter 8, "Stationary Sets" (pp. 91–98).

Setting

Fix a regular uncountable cardinal κ\kappaκ and regard it as the well-ordered set of ordinals below it. A set C⊆κC \subseteq \kappaC⊆κ is closed unbounded, or a club, if it is unbounded in κ\kappaκ and contains all of its limit points below κ\kappaκ (an ordinal α>0\alpha > 0α>0 is a limit point of CCC when sup⁡(C∩α)=α\sup(C \cap \alpha) = \alphasup(C∩α)=α). A set S⊆κS \subseteq \kappaS⊆κ is stationary if S∩C≠∅S \cap C \neq \emptysetS∩C=∅ for every club CCC. Clubs are closed under intersections of fewer than κ\kappaκ of them, so they generate a κ\kappaκ-complete filter, the club filter; its dual is the nonstationary ideal.

The club filter has a second closure property with no analogue for ordinary filters. The diagonal intersection of a κ\kappaκ-indexed family is

△α<κXα  =  {ξ<κ  :  ξ∈⋂α<ξXα},\mathop{\triangle}_{\alpha<\kappa} X_\alpha \;=\; \Bigl\{ \xi < \kappa \;:\; \xi \in \bigcap_{\alpha<\xi} X_\alpha \Bigr\},△α<κ​Xα​={ξ<κ:ξ∈α<ξ⋂​Xα​},

and a filter closed under diagonal intersections is called normal. A function fff defined on S⊆κS \subseteq \kappaS⊆κ is regressive if f(α)<αf(\alpha) < \alphaf(α)<α for all nonzero α∈S\alpha \in Sα∈S.

For cardinal arithmetic, cf⁡κ\operatorname{cf}\kappacfκ denotes the cofinality of κ\kappaκ (the least length of an unbounded sequence in κ\kappaκ), κ+\kappa^{+}κ+ the cardinal successor, and κ\kappaκ is singular when cf⁡κ<κ\operatorname{cf}\kappa < \kappacfκ<κ. The Singular Cardinal Hypothesis (SCH) is the assertion that κcf⁡κ=κ+\kappa^{\operatorname{cf}\kappa} = \kappa^{+}κcfκ=κ+ for every singular κ\kappaκ with 2cf⁡κ<κ2^{\operatorname{cf}\kappa} < \kappa2cfκ<κ. A sequence of cardinals is normal if it is strictly increasing and continuous at limits.

Formalization targets

Goal — Silver's theorem (Jech 8.12)

κ singular, cf⁡κ>ω, (∀α ℵ0≤α<κ⇒2α=α+)  ⟹  2κ=κ+.\kappa \text{ singular},\ \operatorname{cf}\kappa > \omega,\ \bigl(\forall \alpha \ \aleph_0 \le \alpha < \kappa \Rightarrow 2^{\alpha} = \alpha^{+}\bigr) \;\Longrightarrow\; 2^{\kappa} = \kappa^{+}.κ singular, cfκ>ω, (∀α ℵ0​≤α<κ⇒2α=α+)⟹2κ=κ+.

This is the weakest statement of the chapter that still needs the full machinery: it fixes no particular κ\kappaκ and no particular cofinality, and it stays correct no matter how the singular cardinal problem develops above it.

Milestones, in dependency order

  1. Lemma 8.4 — the diagonal intersection of κ\kappaκ clubs is a club; equivalently the club filter is normal.
  2. Theorem 8.7 (Fodor) — a regressive function on a stationary set is constant on a stationary subset.
  3. Theorem 8.10 (Solovay) — every stationary subset of κ\kappaκ is the union of κ\kappaκ pairwise disjoint stationary sets.
  4. Lemma 8.14 — if ⟨κα⟩\langle \kappa_\alpha\rangle⟨κα​⟩ is normal with limit κ\kappaκ, λcf⁡κ<κ\lambda^{\operatorname{cf}\kappa} < \kappaλcfκ<κ for λ<κ\lambda < \kappaλ<κ, and {α:καcf⁡κα=κα+}\{\alpha : \kappa_\alpha^{\operatorname{cf}\kappa_\alpha} = \kappa_\alpha^{+}\}{α:καcfκα​​=κα+​} is stationary in cf⁡κ\operatorname{cf}\kappacfκ, then κcf⁡κ=κ+\kappa^{\operatorname{cf}\kappa} = \kappa^{+}κcfκ=κ+.
  5. Theorem 8.13 (Silver) — SCH at every cardinal of cofinality ω\omegaω implies SCH everywhere.

Significance

Silver's theorem is the boundary between the two halves of cardinal arithmetic. Above it sit the ZFC theorems of pcf theory; below it sit the consistency results (Magidor, Prikry, Radin forcing) that show how much freedom is left, and they are confined to cofinality ω\omegaω precisely because Theorems 8.12 and 8.13 close off everything else. Its proof also packages tools used throughout set theory: the normality of the club filter, Fodor's pressing-down lemma, and the technique of bounding almost disjoint families of functions by a stationary-set argument.

Formalization status: Mathlib already has clubs and stationary sets in an arbitrary well-ordered type (IsClub, IsStationary), with the finite and <κ<\kappa<κ-indexed intersection lemmas — Jech's Lemma 8.2 and Theorem 8.3. It does not have diagonal intersections, Fodor's theorem, Solovay's splitting theorem, or any singular cardinal arithmetic beyond the definitions of regular and singular cardinals. Each milestone below is therefore a genuine addition, and the first three are reusable well outside this mission.

Difficulty

The naive route to the goal — induct on α<κ\alpha < \kappaα<κ and pass to the limit — fails immediately: 2κ2^{\kappa}2κ for singular κ\kappaκ is not determined by the values 2α2^{\alpha}2α for α<κ\alpha < \kappaα<κ in any elementary way; that is exactly the content of the independence results. What the proof must do instead is bound the number of functions on cf⁡κ\operatorname{cf}\kappacfκ, and it gets that bound from a stationary set rather than from a club: uncountable cofinality is what makes the set of relevant stages stationary, and stationarity is what survives the diagonal argument. Cofinality ω\omegaω breaks this at the first step, since every subset of ω\omegaω that is unbounded is already a club and Fodor's theorem is empty.

The two hard pieces are Lemma 8.14 and, inside it, Lemma 8.16: given an almost disjoint family FFF of functions with f(α)∈Aαf(\alpha) \in A_\alphaf(α)∈Aα​ and ∣Aα∣≤ℵα|A_\alpha| \le \aleph_\alpha∣Aα​∣≤ℵα​ on a stationary set of α\alphaα, one must show ∣F∣≤ℵω1|F| \le \aleph_{\omega_1}∣F∣≤ℵω1​​ by assigning to each fff a pair (stationary set, bounded restriction) and checking the assignment is injective. That argument uses Fodor's theorem on a set of functions, and the bookkeeping does not simplify.

Formalization scope

The ambient order is Mathlib's type of ordinals below a cardinal, k.ord.ToType (written Below k in the mission's definition bundle); clubs and stationary sets are Mathlib's IsClub and IsStationary on that type, so a set is closed in the sense of being closed under suprema of directed subsets — equivalent, for a well-order with the order topology, to Jech's "contains its limit points". Families indexed by "α<κ\alpha < \kappaα<κ" are functions out of that same type, which is what makes the diagonal intersection typecheck without a side condition. Cardinal exponentiation, cofinality (Ordinal.cof of k.ord) and the successor cardinal (Order.succ) are Mathlib's.

One trivializing formalization is ruled out explicitly: the GCH hypothesis of the goal is stated for infinite cardinals α<κ\alpha < \kappaα<κ only. Quantified over all cardinals it would be unsatisfiable — 22=4≠3=2+2^{2} = 4 \neq 3 = 2^{+}22=4=3=2+ — and Silver's theorem would become vacuous.

A complete development needs: diagonal intersections and the normality of the club filter; Fodor's theorem; the sets Eλκ={α<κ:cf⁡α=λ}E^{\kappa}_{\lambda} = \{\alpha < \kappa : \operatorname{cf}\alpha = \lambda\}Eλκ​={α<κ:cfα=λ} and their stationarity; Solovay's splitting theorem via Lemmas 8.8 and 8.9; almost disjoint families of ordinal functions and the counting Lemmas 8.15 and 8.16; and Theorem 5.22(ii) on cardinal powers, which Jech's proof of Theorem 8.13 cites. Contributions of any of these as separate reductions are welcome, as are alternative proofs of the goal (for instance via a generic elementary embedding) that bypass some of the chain.

Selected references

  • Thomas Jech, Set Theory, The Third Millennium Edition, revised and expanded. Springer Monographs in Mathematics, Springer, 2003 (ISBN 3-540-44085-2). Chapter 8, "Stationary Sets", pp. 91–98 — the source of every statement in this mission.
  • Jack Silver, On the singular cardinals problem. Proceedings of the International Congress of Mathematicians (Vancouver, 1974), vol. 1, pp. 265–268.
  • William B. Easton, Powers of regular cardinals. Annals of Mathematical Logic 1 (1970), pp. 139–178.
  • Fred Galvin and András Hajnal, Inequalities for cardinal powers. Annals of Mathematics 101 (1975), pp. 491–498.
  • James E. Baumgartner and Karel Prikry, Singular cardinals and the generalized continuum hypothesis. American Mathematical Monthly 84 (1977), pp. 108–113.
  • Menachem Magidor, On the singular cardinals problem I. Israel Journal of Mathematics 28 (1977), pp. 1–31.
7 thms3 active usersReviewed
Computational Complexity·Captain: mikedeng1

Parallelism and Adaptivity in Student-Teacher Witnessing: One extra adaptive round defeats polynomial parallel queriesResearch Paper

Why separate rounds from parallel queries?

A search procedure can receive useful information even when its first proposed answer is wrong. A Student–Teacher game makes this interaction explicit: a computationally limited student proposes answers, while an unrestricted teacher supplies certificates explaining failures. Researchers in computational complexity and bounded arithmetic use these games to measure the computational content of existential statements. The motivating question here is whether many simultaneous guesses can replace one opportunity to respond to new information. Ježil and Tsintsilidas formulate this distinction as a separation between classes of total search relations, rather than as a comparison between particular algorithms (§1.2.1, pp.6–8).

The separation is conditional on a decision-complexity assumption. At the first level, the assumption is that nondeterministic polynomial time is not contained in polynomial time with polynomial advice. The submission states the analogous assumption at every level of the polynomial hierarchy. Its result concerns an exact difference of one round, even when the procedure with fewer rounds may make any polynomially bounded number of parallel queries (Theorem 1.4, p.7).

Strings, refutations, and uniform students

A word is a finite binary string. Its length is denoted by ∣x∣|x|∣x∣. A language is a set of words, with no restriction to one length. Write Σip\Sigma_i^pΣip​ for level iii of the polynomial hierarchy, with Σ0p=P\Sigma_0^p=\mathrm PΣ0p​=P. Write Δi+1p=PΣip\Delta_{i+1}^p=\mathrm P^{\Sigma_i^p}Δi+1p​=PΣip​ and FPΣip\mathrm{FP}^{\Sigma_i^p}FPΣip​ for deterministic decision and string computation with a fixed oracle language from Σip\Sigma_i^pΣip​.

A total refutable search relation R(x,y)R(x,y)R(x,y) has at least one permitted answer for every input, and one polynomial bounds the length of every permitted answer. It has a predicate φ∈Δi+1p\varphi\in\Delta_{i+1}^pφ∈Δi+1p​ and a polynomial bbb such that

R(x,y)⟺∀z∈{0,1}b(∣x∣)  φ(x,y,z).R(x,y)\quad\Longleftrightarrow\quad \forall z\in\{0,1\}^{b(|x|)}\;\varphi(x,y,z).R(x,y)⟺∀z∈{0,1}b(∣x∣)φ(x,y,z).

The predicate and length bound belong to a presentation of the same underlying relation RRR. Totality includes the empty input and malformed encodings (Definition 1.1, p.6).

For round and query functions r,qr,qr,q, one uniform student receives xxx, the round number, and all preceding batches of refutations. It outputs q(∣x∣)q(|x|)q(∣x∣) candidates before seeing the current batch of replies. The student belongs to FPΣip\mathrm{FP}^{\Sigma_i^p}FPΣip​; the teacher has no computational restriction. Winning means that for every complete sequence of reply batches, some candidate at some round satisfies φ\varphiφ against its corresponding current reply. Write STΣip[r,q]\mathrm{ST}^{\Sigma_i^p}[r,q]STΣip​[r,q] for the class of underlying relations admitting such a presentation and student (Definition 1.2, p.7).

Formalization targets

The goal is the whole of Theorem 1.4. For every i≥0i\ge0i≥0, assume

Σi+1p⊈Δi+1p/poly.\Sigma_{i+1}^p\not\subseteq\Delta_{i+1}^p/\mathrm{poly}.Σi+1p​⊆Δi+1p​/poly.

Here polynomial advice means one polynomially bounded string a(n)a(n)a(n) for all inputs of length nnn, used by one fixed polynomial-time oracle machine. Advice need not be computable, but cannot depend on the particular input.

For every polynomial-time, nondecreasing, unbounded function rrr with

1≤r(m)≤m1−ε(m≥1)1\le r(m)\le m^{1-\varepsilon}\qquad(m\ge1)1≤r(m)≤m1−ε(m≥1)

for some real ε>0\varepsilon>0ε>0, and every polynomial-time function qqq satisfying 1≤q(m)≤poly(m)1\le q(m)\le\mathrm{poly}(m)1≤q(m)≤poly(m), the target is

STΣip[r(m)+1,1]⊈STΣip[r(m),q(m)].\mathrm{ST}^{\Sigma_i^p}[r(m)+1,1] \not\subseteq \mathrm{ST}^{\Sigma_i^p}[r(m),q(m)].STΣip​[r(m)+1,1]⊆STΣip​[r(m),q(m)].

Thus some total search relation admits the first resource budget and admits no student with the second. No monotonicity or unboundedness is required of qqq. Both round counts, the single query on the left, and the exponent 1−ε1-\varepsilon1−ε are retained exactly (Theorem 1.4, p.7).

The sole numbered supporting target is Claim 3.1. In its fixed-language setup, let UUU be the positive nnn-bit instances and k=r(nk)≥1k=r(nk)\ge1k=r(nk)≥1. Use the source's normalized student solving the auxiliary witness-tuple relation in kkk rounds, and its fixed teacher. A good pair (S,x)(S,x)(S,x) means that this actual run on the ordered tuple S∪{x}S\cup\{x\}S∪{x} never supplies the coordinate of xxx with its witness. The target is

∀V⊆U,∣V∣=k ⟹ ∃x∈V: (V∖{x},x) is good.\forall V\subseteq U,\quad |V|=k\ \Longrightarrow\ \exists x\in V:\ (V\setminus\{x\},x)\text{ is good}.∀V⊆U,∣V∣=k ⟹ ∃x∈V: (V∖{x},x) is good.

This claim uses its complete operational preamble; it does not assume the hardness condition of the main theorem (§3.1, pp.19–20).

What the result establishes

The theorem distinguishes adaptation from the total number of guesses. Its conclusion survives every permitted polynomial parallel-query budget on the side with fewer rounds. It therefore rules out a uniform simulation of the larger-round class by any such smaller-round class, under the specified decision-class assumption. The submission uses its game separations in subsequent bounded-arithmetic applications, but those applications are outside this target (Introduction and §1.2, pp.3–13).

The mathematical result is proved in the pinned submission. The requested Lean development is a formalization of that known conditional result. The reusable output includes operational oracle computation, length-uniform advice, refutable search presentations, causal simultaneous-query games, and their resource-sensitive interfaces. The drafted theorem declarations are proof obligations, not completed machine-checked proofs.

Why the exact statement is difficult

A list of many simultaneous guesses contains no response to the current teacher reply. Counting queries alone therefore cannot establish that two round budgets are interchangeable. Conversely, a lower-bound argument must exclude every uniform student in the smaller-round class, rather than exhibit one student that fails. It must use only the stated language-class hardness assumption; assuming a game separation or successful advice construction would remove the content of the theorem.

Exact input lengths are also material. The source distinguishes decision-input length nnn from raw search-input length m=nkm=nkm=nk. A generic tuple encoding changes mmm, and arbitrary nondecreasing sublinear round functions need not tolerate that change. Appendix A addresses the required size conversion; its existence and uniform complexity remain obligations of a complete proof (§3, p.19; Appendix A, pp.39–40).

Formalization scope

Words are List Bool. Programs are published finite transition-table oracle machines with their actual runs, halting results, and tape outputs. Published alternating-quantifier definitions supply the hierarchy. Polynomial clocks and advice bounds are chosen before all inputs. Length functions receive unary numerical lengths, and self-delimiting encodings are used for machine interfaces without changing the raw length used to evaluate rrr or qqq.

“Increasing” is read as nondecreasing, as required by the integer-valued sublinear regime and the monotonicity used in Appendix A. Bounds apply to positive lengths; resources on the empty input use their length-one values. Exact certificate lengths use padding. Internal round and coordinate indices start at zero, while encoded round numbers start at one. Unboundedness means eventual growth beyond every fixed constant. No stronger interval for ε\varepsilonε is imposed.

The definition layer also specifies witness-tuple normalization, terminal teacher behavior, lexicographically least witnesses, raw-block decoding, and a signed integer size-gap function. The relation class is not defined through the desired noninclusion, and neither hardness nor a bound on teacher replies is hidden inside a machine or run definition. Contributions are needed on the standard simulation and padding bridges, the operational game development, Claim 3.1, the size-conversion obligations, and the full separation. No finite-length or fixed-level replacement satisfies the goal.

Selected references

  • Ondřej Ježil and Dimitrios Tsintsilidas, Parallelism and Adaptivity in Student-Teacher Witnessing, STOC 2027 submission #976, October 2026. Pinned submission PDF, SHA256 33cd661fac6ed6813adb4e95381dc59a308b4a530b944719561ff3e1d90033a1. Definitions 1.1–1.2, pp.6–7; Theorem 1.4, p.7; Claim 3.1, p.20; Appendix A, pp.39–40. Printed and PDF page numbers agree.
13 thms2 active usersReviewed
CombinatoricsGraph TheoryTheoretical Computer Science·Captain: iris

Monadically Dependent Graph Classes Have Almost Bounded Merge-Width: Subpolynomial Radius-rrr Merge-Width for Every Monadically Dependent Class, with Merge Sequences Computable in O^(n3)\hat O(n^3)O^(n3) TimeResearch Paper

Why monadic dependence

First-order model checking asks, given a graph GGG and a first-order sentence φ\varphiφ, whether φ\varphiφ holds in GGG. A central conjecture states that this problem is fixed-parameter tractable on every monadically dependent graph class: a class that cannot encode all graphs through a fixed formula over vertex-colored members. Planar graphs, classes of bounded maximum degree, classes excluding a fixed minor and unit interval graphs are examples. On hereditary classes, monadically independent classes are as hard as general graphs, so a proof would make monadic dependence the exact boundary of tractability, assuming FPT≠AW[⋆]\mathrm{FPT}\neq\mathrm{AW}[\star]FPT=AW[⋆]. Dreier and Toruńczyk proposed a line of attack through a family of graph parameters called merge-width: show that monadically dependent classes have almost bounded merge-width, with efficiently computable decompositions, then do model checking on such classes. Dreier, Mählmann, Pilipczuk and Toruńczyk carry out the first step in arXiv:2611.06804, the source of this mission. A companion paper by three of the authors, cited there as a manuscript, carries out the second.

Timeline. STOC 2025: Dreier and Toruńczyk define merge-width, show that classes of bounded twin-width and of bounded expansion have bounded merge-width and that nowhere dense classes have almost bounded merge-width, and conjecture the general statement. 2026: Dreier, Mählmann, McCarty, Pilipczuk and Toruńczyk prove the almost linear neighborhood complexity of monadically dependent classes and the radius-1 case (arXiv:2607.10941); Drabik et al. relate partition merge-width to merge-width (arXiv:2602.23867). 2026, the source: all radii, with an algorithm.

Setting

Graphs are finite, undirected and simple. A kkk-coloring G+G^+G+ of a graph GGG interprets kkk unary predicates on V(G)V(G)V(G). For a first-order formula φ(x,y)\varphi(x,y)φ(x,y), the graph φ(G+)\varphi(G^+)φ(G+) has distinct vertices u,vu,vu,v adjacent iff φ(u,v)∨φ(v,u)\varphi(u,v)\vee\varphi(v,u)φ(u,v)∨φ(v,u) holds in G+G^+G+. A class C\mathcal CC transduces D\mathcal DD if for some kkk and φ\varphiφ, every member of D\mathcal DD is an induced subgraph of φ(G+)\varphi(G^+)φ(G+) for some G∈CG\in\mathcal CG∈C and kkk-coloring G+G^+G+. C\mathcal CC is monadically dependent if it does not transduce the class of all graphs.

A merge sequence for GGG is a sequence (P1,R1),…,(Pm,Rm)(\mathcal P_1,R_1),\dots,(\mathcal P_m,R_m)(P1​,R1​),…,(Pm​,Rm​), where P1⊑⋯⊑Pm\mathcal P_1\sqsubseteq\dots\sqsubseteq\mathcal P_mP1​⊑⋯⊑Pm​ are coarser and coarser partitions of V(G)V(G)V(G) from singletons to the one part V(G)V(G)V(G), R1⊆⋯⊆RmR_1\subseteq\dots\subseteq R_mR1​⊆⋯⊆Rm​ are sets of pairs of vertices, and for each iii and each pair of parts P,P′P,P'P,P′ of Pi\mathcal P_iPi​, the pairs between PPP and P′P'P′ outside RiR_iRi​ are all edges or all non-edges. Its radius-rrr width is the smallest kkk such that every radius-rrr ball of the graph (V,Ri+1)(V,R_{i+1})(V,Ri+1​) intersects at most kkk parts of Pi\mathcal P_iPi​, for all i<mi<mi<m. The radius-rrr merge-width of GGG is the least width of a merge sequence. A function f:N→Nf:\mathbb N\to\mathbb Nf:N→N is subpolynomial if f(n)/nε→0f(n)/n^\varepsilon\to0f(n)/nε→0 for every ε>0\varepsilon>0ε>0.

Formalization targets

Goal: Theorem 1.1 (p.2)

For every r∈Nr\in\mathbb Nr∈N and monadically dependent class C\mathcal CC there is a subpolynomial fff with

radius-r merge-width(G)⩽f(n)for all n-vertex G∈C,\text{radius-}r\text{ merge-width}(G)\leqslant f(n)\quad\text{for all }n\text{-vertex }G\in\mathcal C,radius-r merge-width(G)⩽f(n)for all n-vertex G∈C,

and given G∈CG\in\mathcal CG∈C, a merge sequence of radius-rrr width at most f(n)f(n)f(n) is computable in O^C,r(n3)\widehat{\mathcal O}_{\mathcal C,r}(n^3)OC,r​(n3) time, where O^\widehat{\mathcal O}O hides subpolynomial factors.

Milestones, in the order the proof uses them

The 15 milestones are Theorem 4.3 (partition sequences of a concrete shape), Theorem 3.5 (partition merge-width to merge-width), Theorem 3.3 (almost linear neighborhood complexity), Lemma 4.2 (additivity of 1-types), Theorem 4.1 (Damping Theorem), Lemmas 5.1 and 5.3 (growth of rrr-types and of Γ\GammaΓ-types), Lemma 5.9 and Theorem 5.7 (packing ratio, Haussler's Packing Lemma), Corollary 5.14 (orderings of low alternation), Theorem 8.3 (explicit damping), Corollary 7.8 (small symmetric mismatch), Lemma 6.1 (Predamping), Lemma 7.2 (Symmetrization) and Lemma 8.1 (mismatch and reachability). The formal statements carry the paper's constants: (265q(α+β)γ)r(265q(\alpha+\beta)\gamma)^r(265q(α+β)γ)r in Theorem 8.3, 264q(α+β)γ264q(\alpha+\beta)\gamma264q(α+β)γ in Corollary 7.8, 15(q+1)βγ15(q+1)\beta\gamma15(q+1)βγ and 44(q+1)αγ44(q+1)\alpha\gamma44(q+1)αγ in Lemma 6.1, 3m3m3m in Lemma 7.2, (m+1)r(m+1)^r(m+1)r in Lemma 8.1, 10dγ10d\gamma10dγ in Lemma 5.9.

Significance

Theorem 1.1 confirms the conjecture of Dreier and Toruńczyk that, for hereditary classes, monadic dependence coincides with almost bounded merge-width, and with the known implications it also gives the equivalence with almost bounded flip-width, a characterization of monadic dependence by games. With the companion paper it yields fixed-parameter first-order model checking on monadically dependent classes. The theorem's algorithmic clause matters there, since model checking needs the decomposition, not merely its existence.

Formalizing it adds a machine-checked account of a recent preprint whose proof relies on several cited theorems. The statement is proved on paper; no machine-checked proof is known, and formal statements about monadic dependence, transductions and merge-width did not exist before this development. The mission also gives reusable definitions: colored first-order graphs, transductions, flips, flip-metric balls and merge sequences.

Difficulty

A natural attempt is to take one flip that makes neighborhoods meet few types, and iterate. This fails at radius above one: few types per neighborhood do not give few types per ball, as a ball of radius 2 can meet many more types than the neighborhoods of the vertices in it suggest. The target needs a set SSS, a fraction of AAA, and an SSS-flip HHH with every radius-rrr ball of HHH meeting few types over A∪SA\cup SA∪S. The bound on types must therefore be preserved by a definable refinement (rrr-types), and the flip must control a whole ball at once. Beyond this, a complete development needs the almost linear neighborhood complexity theorem, the conversion of partition merge-width to merge-width, Haussler's packing lemma, orderings of low crossing number, and word-RAM implementations of all of these within O^(n3)\widehat{\mathcal O}(n^3)O(n3).

Formalization scope

Graphs are SimpleGraph (Fin n), classes are families of sets of such graphs, partitions are setoids (singletons ⊥, the one part ⊤), and formulas are Mathlib first-order formulas over a local language with adj and kkk unary predicates, without function symbols. Distances are extended naturals. N\mathbb NN is the positive integers in the paper, so every parameter the paper puts in N\mathbb NN carries 1 ≤ ·. Algorithms are programs of the published word RAM TrulySubcubicAPSP (unit-cost steps, WWW-bit words): the input is nnn, the adjacency matrix row by row and any further inputs, each statement holds for every word size above a logarithmic threshold, and the run must accept within the bound. O^(n3)\widehat{\mathcal O}(n^3)O(n3) is (n+1)3g(n)(n+1)^3g(n)(n+1)3g(n) with ggg subpolynomial; O(E)\mathcal O(E)O(E) is c(E+1)c(E+1)c(E+1) with ccc absolute.

Two trivializations are ruled out explicitly: the program is one finite object chosen before the graph, and its result is read by a decoder that sees only the output cells and nnn, never GGG. Statements with hidden parameters (Lemma 6.1, Corollary 7.8, Theorem 8.3) quantify over those parameters after the run's input, as the algorithm is not given them.

Proofs of any milestone, in any order, are welcome, as are libraries for VC theory on finite set systems, the flip-metric, and word-RAM compositions. The VC layer and the flip layer are reusable beyond this mission.

Selected references

  • J. Dreier, N. Mählmann, M. Pilipczuk, S. Toruńczyk, Monadically Dependent Graph Classes Have Almost Bounded Merge-Width, STOC 2027 submission, 2026. https://arxiv.org/abs/2611.06804
  • J. Dreier, S. Toruńczyk, Merge-width and first-order model checking, STOC 2025, pp. 1944–1955.
  • J. Dreier, N. Mählmann, R. McCarty, M. Pilipczuk, S. Toruńczyk, Neighborhood complexity and radius-1 merge-width in monadically dependent graph classes, to appear in SODA 2027. https://arxiv.org/abs/2607.10941
  • K. Drabik, M. Dumas, C. Geniet, J. Nowakowski, M. Pilipczuk, S. Toruńczyk, Variants of merge-width and applications, 2026. https://arxiv.org/abs/2602.23867
  • D. Haussler, Sphere packing numbers for subsets of the Boolean n-cube with bounded Vapnik-Chervonenkis dimension, J. Combin. Theory Ser. A 69(2), 217–232, 1995.
  • E. Welzl, Partition trees for triangle counting and other range searching problems, SoCG 1988, pp. 23–33.
38 thms2 active usersReviewed
Complexity TheoryTheoretical Computer Science·Captain: iris

Relational Queries Computable in Polynomial Time: On Ordered Databases, Relational Calculus with One Least Fixpoint Expresses Exactly the Polynomial-Time QueriesResearch Paper

Motivation

Relational calculus, the first-order query language of relational databases (Codd, 1972), cannot express the transitive closure of a relation, so "is xxx an ancestor of yyy?" is not a first-order query (Aho and Ullman, 1979). Aho and Ullman proposed adding a least fixpoint operator (LFP). Chandra and Harel (1980) studied the resulting Fixpoint Hierarchy and showed that, without further structure, the language still misses polynomial-time queries that need to count, such as "is there an even number of females?".

Immerman's STOC 1982 paper (doi:10.1145/800070.802187) shows that a total order on the domain closes this gap. Theorem 1 states that on ordered databases, relational calculus plus LFP expresses exactly the queries computable in polynomial time, and that one application of LFP suffices. Vardi found the same result independently (STOC 1982, doi:10.1145/800070.802186). The theorem is the starting point of descriptive complexity, which characterizes complexity classes by logics, and it is the reason why "a logic for PTIME on unordered structures" is still an open problem.

Setting

A relational scheme σ=⟨R1,…,Rk⟩\sigma = \langle R_1,\dots,R_k\rangleσ=⟨R1​,…,Rk​⟩ is a list of relation symbols, RiR_iRi​ of arity aia_iai​. An ordered database of scheme σ\sigmaσ with nnn elements has domain {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1} with its natural order ≤\le≤ and a relation Ri⊆{0,…,n−1}aiR_i \subseteq \{0,\dots,n-1\}^{a_i}Ri​⊆{0,…,n−1}ai​ for each symbol. An rrr-ary query assigns to every ordered database BBB and every rrr-tuple cˉ\bar ccˉ a truth value.

Formulas are built from atoms Ri(xˉ)R_i(\bar x)Ri​(xˉ), x≤yx \le yx≤y, x=yx = yx=y and relation variables S(xˉ)S(\bar x)S(xˉ), with ¬\neg¬, ∧\wedge∧, ∨\vee∨, ∃\exists∃, ∀\forall∀, and the least fixpoint LFP(φ)(vˉ)\mathrm{LFP}(\varphi)(\bar v)LFP(φ)(vˉ). If φ(S)[x1,…,xa]\varphi(S)[x_1,\dots,x_a]φ(S)[x1​,…,xa​] is monotone in SSS (S⊆S′S \subseteq S'S⊆S′ implies φ(S)⊆φ(S′)\varphi(S) \subseteq \varphi(S')φ(S)⊆φ(S′)), the operator S↦{uˉ∣B⊨φ(S)[uˉ]}S \mapsto \{\bar u \mid B \models \varphi(S)[\bar u]\}S↦{uˉ∣B⊨φ(S)[uˉ]} has a least fixpoint, and LFP(φ)(vˉ)\mathrm{LFP}(\varphi)(\bar v)LFP(φ)(vˉ) says that vˉ\bar vvˉ belongs to it. For example φA(R)[x,y]≡x=y∨∃z (Par(x,z)∧R(z,y))\varphi_A(R)[x,y] \equiv x = y \vee \exists z\,(\mathrm{Par}(x,z) \wedge R(z,y))φA​(R)[x,y]≡x=y∨∃z(Par(x,z)∧R(z,y)) has least fixpoint Ancestor.

The first-order levels are Σ0=Π0\Sigma_0 = \Pi_0Σ0​=Π0​ (quantifier-free formulas), Σα+1={∃xˉ ψ∣ψ∈Πα}\Sigma_{\alpha+1} = \{\exists \bar x\, \psi \mid \psi \in \Pi_\alpha\}Σα+1​={∃xˉψ∣ψ∈Πα​} and Πα={¬φ∣φ∈Σα}\Pi_\alpha = \{\neg \varphi \mid \varphi \in \Sigma_\alpha\}Πα​={¬φ∣φ∈Σα​}. The classes compared are:

  • FP(≤)\mathrm{FP}(\le)FP(≤): queries defined by formulas with LFP anywhere;
  • Σω(≤)={LFP(φ)(vˉ)∣φ∈Σα monotone,α<ω}\Sigma_\omega(\le) = \{\mathrm{LFP}(\varphi)(\bar v) \mid \varphi \in \Sigma_\alpha \text{ monotone}, \alpha < \omega\}Σω​(≤)={LFP(φ)(vˉ)∣φ∈Σα​ monotone,α<ω}: one fixpoint of a first-order formula, with variables substituted into it and nothing after it;
  • Q(≤)PTIME\mathrm{Q}(\le)\mathrm{PTIME}Q(≤)PTIME: queries QQQ with Graph(Q)={⟨B,cˉ⟩∣B⊨Q(cˉ)}∈P\mathrm{Graph}(Q) = \{\langle B,\bar c\rangle \mid B \models Q(\bar c)\} \in \mathrm{P}Graph(Q)={⟨B,cˉ⟩∣B⊨Q(cˉ)}∈P.

The input ⟨B,cˉ⟩\langle B, \bar c\rangle⟨B,cˉ⟩ is 1n01^n01n0, the nain^{a_i}nai​-bit table of each RiR_iRi​ (tuples in lexicographic order), and an nnn-bit one-hot vector for each cic_ici​.

Formalization targets

Goal: Theorem 1

For every scheme σ\sigmaσ:

FP(≤)=Q(≤)PTIME(every r≥0),Σω(≤)=Σω+(≤)=Q(≤)PTIME(r≥1),\mathrm{FP}(\le) = \mathrm{Q}(\le)\mathrm{PTIME} \quad (\text{every } r \ge 0), \qquad \Sigma_\omega(\le) = \Sigma_\omega^{+}(\le) = \mathrm{Q}(\le)\mathrm{PTIME} \quad (r \ge 1),FP(≤)=Q(≤)PTIME(every r≥0),Σω​(≤)=Σω+​(≤)=Q(≤)PTIME(r≥1),

and a Boolean query is in Q(≤)PTIME\mathrm{Q}(\le)\mathrm{PTIME}Q(≤)PTIME iff, with one dummy free variable, it is in Σω(≤)\Sigma_\omega(\le)Σω​(≤) (equivalently Σω+(≤)\Sigma_\omega^{+}(\le)Σω+​(≤)). Here Σω\Sigma_\omegaΣω​ reads "monotone" semantically and Σω+\Sigma_\omega^{+}Σω+​ requires the relation variable to occur only positively.

The literal Σω\Sigma_\omegaΣω​ has no Boolean queries beyond first-order sentences: with nothing to substitute, a 000-ary fixpoint is its body at the empty relation. "The domain has even size" is in Q(≤)PTIME\mathrm{Q}(\le)\mathrm{PTIME}Q(≤)PTIME but not first order on linear orders, so the paper's equality is stated for r≥1r \ge 1r≥1 and Boolean queries enter through a dummy variable.

Milestones

  1. LFP(φ)=φ[na](∅)\mathrm{LFP}(\varphi) = \varphi^{[n^a]}(\emptyset)LFP(φ)=φ[na](∅) (proof of Proposition 1).
  2. Proposition 1: a least fixpoint of a monotone first-order formula is computable in time p(n)p(n)p(n).
  3. FP(≤)⊆Q(≤)PTIME\mathrm{FP}(\le) \subseteq \mathrm{Q}(\le)\mathrm{PTIME}FP(≤)⊆Q(≤)PTIME.
  4. First-order arithmetic on kkk-tuples read in base nnn.
  5. The tableau rule ⟨a−1a0a1⟩→a\langle a_{-1}a_0a_1\rangle \to a⟨a−1​a0​a1​⟩→a of one move of a Turing machine.
  6. The initial tape M0(cˉ,pˉ,aˉ)M_0(\bar c,\bar p,\bar a)M0​(cˉ,pˉ​,aˉ) is first order.
  7. LFP(ψ)=Cell\mathrm{LFP}(\psi) = \mathrm{Cell}LFP(ψ)=Cell for a positive first-order ψ\psiψ.
  8. One fixpoint LFP(Ψ)(xˉν)\mathrm{LFP}(\Psi)(\bar x_\nu)LFP(Ψ)(xˉν​) decides acceptance after nK−1n^K - 1nK−1 steps.
  9. Q(≤)PTIME⊆Σω+(≤)\mathrm{Q}(\le)\mathrm{PTIME} \subseteq \Sigma_\omega^{+}(\le)Q(≤)PTIME⊆Σω+​(≤) for r≥1r \ge 1r≥1.
  10. One-hot and positional-binary constants give the same class P.

Significance

The theorem gives a machine-independent definition of polynomial time on ordered finite structures: a query is feasible iff it is one fixpoint of a first-order formula. It explains why the order matters (Chandra and Harel's counting obstruction disappears), shows that the Fixpoint Hierarchy collapses on ordered databases, and is the template for later capture results (Fagin's NP theorem precedes it; PSPACE, LOGSPACE and NLOGSPACE followed).

The result is proved and textbook material (Immerman, Descriptive Complexity, 1999; Ebbinghaus–Flum, Finite Model Theory). No machine-checked proof of it on Prove2Me or in Mathlib is known to this mission. A formal proof supplies the details the extended abstract leaves out: the encoding of the input, the treatment of small domains, the boundary cells of the tableau, the coding of tape symbols by tuples, and the exact time bound.

Difficulty

The easy half (fixpoint formulas run in polynomial time) needs explicit Turing machines that parse the encoding, evaluate first-order formulas and iterate them nan^ana times; the machine model is Cook's one-tape machine, so each of these is real programming.

The hard half simulates an arbitrary polynomial-time machine by one positive fixpoint. A first attempt that defines the tableau by LFP and then asks "is the final state accepting?" puts a quantifier after the fixpoint, and the result is no longer in Σω\Sigma_\omegaΣω​. Ordering is used to count: cell numbers and time steps are kkk-tuples read in base nnn, and the successor and the offsets of the input tables must be first-order definable from ≤\le≤. The tape symbols outnumber small domains and need coding by tuples, the two-way tape needs negative cell numbers, and databases with one element need separate treatment.

Formalization scope

Databases live on Fin n with its natural order, n=0n = 0n=0 included, and relations are Boolean tables. Formulas are an inductive type with variables in N\mathbb NN and a partial assignment. The semantics of LFP is the intersection of the relations closed under the operator, so it is total; the classes require monotone bodies (Formula.Wf, MonotoneIn) and free variables among the query or head variables, which rules out junk values of non-monotone fixpoints and of unassigned variables. P\mathrm{P}P is Cook's class over {0,1}\{0,1\}{0,1}, reused from the published CookPvsNP_defs. Constants are encoded one-hot. Under positional binary the first-order M0M_0M0​ claimed on p.149 would have to define the parity of a position, which first-order logic with ≤\le≤ cannot do. Milestone 10 shows the class P does not depend on this choice. The tableau Cell is defined from Cook's run itself, with the absolute head position tracked alongside.

Reusable beyond this mission: the fixpoint-logic syntax and semantics, the tuple arithmetic, the tableau of Cook's machine, and the explicit machines for parsing and first-order evaluation. Proofs of any milestone, alternative proofs of the inclusions, and lemmas on the encoding are welcome.

Selected references

  • N. Immerman, Relational Queries Computable in Polynomial Time (extended abstract), Proc. 14th ACM STOC, 1982, pp.147–152. https://doi.org/10.1145/800070.802187
  • M. Y. Vardi, The Complexity of Relational Query Languages, Proc. 14th ACM STOC, 1982, pp.137–146. https://doi.org/10.1145/800070.802186
  • A. K. Chandra, D. Harel, Structure and Complexity of Relational Queries, J. Comput. System Sci. 25 (1982), 99–128. https://doi.org/10.1016/0022-0000(82)90012-5
  • A. V. Aho, J. D. Ullman, Universality of Data Retrieval Languages, Proc. 6th ACM POPL, 1979, pp.110–119. https://doi.org/10.1145/567752.567763
  • N. Immerman, Relational Queries Computable in Polynomial Time, Information and Control 68 (1986), 86–104. https://doi.org/10.1016/S0019-9958(86)80029-8
  • S. Cook, The P versus NP Problem, Clay Mathematics Institute problem description. https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf
18 thms2 active usersReviewed
🏆Completed
Theoretical Computer ScienceType Theory·Captain: kmehltretter82

Type-Based Termination Checking in AgdaResearch Paper

Motivation

A proof assistant based on type theory has to reject non-terminating definitions: a function that loops can inhabit any type, including the empty one, and so proves everything. Agda therefore checks every recursive definition for termination before accepting it. Purely syntactic checks, which require some argument to become structurally smaller at each recursive call, reject many terminating programs, for example recursion through a higher-order function such as map, or corecursive definitions by copattern matching whose productivity depends on sizes rather than syntax.

Two lines of work address this. Size-change termination (Lee, Jones and Ben-Amram, 2001) abstracts each call into a graph recording which arguments decrease, and accepts a program when every infinite call sequence would force an infinite descent. Sized types record an upper bound on the depth of data in its type, so that termination follows from typing. Kanstantsin Nisht's 2024 master's thesis, supervised by Andreas Abel, combines the two in a type-based termination checker for Agda-style programs. Sizes are inferred automatically, and termination is checked by size-change analysis over the inferred sizes. The thesis proves that every program the checker accepts is well-typed and strongly normalizing. This mission formalizes that soundness proof in Lean.

Setting

System Fωcop,SCTF_\omega^{\mathrm{cop,SCT}}Fωcop,SCT​ is a higher-order polymorphic lambda calculus with copattern matching. Its kinds carry polarities π∈{∘,+,−,⊤}\pi \in \{\circ, +, -, \top\}π∈{∘,+,−,⊤} that record how a type operator uses its argument. Size expressions are ∞+n\infty + n∞+n or minima (i1+n1)∧⋯∧(ik+nk)(i_1 + n_1) \wedge \dots \wedge (i_k + n_k)(i1​+n1​)∧⋯∧(ik​+nk​) of size variables, and size contexts Ψ\PsiΨ bound each size variable from above. Sized inductive and coinductive types μaS\mu^a SμaS and νaR\nu^a RνaR are indexed by a size aaa. Programs are sequences of mutual blocks Ξ\XiΞ of functions defined by copattern clauses, checked against a global signature Σ\SigmaΣ of previously accepted functions.

Termination is certified by an invocation-graph family G\mathcal{G}G, which assigns to each pair of functions a set of bipartite graphs relating the caller's size arguments to the callee's by <<< or ≤\le≤. The size-change criterion ⊢G\vdash \mathcal{G}⊢G (SCTValid) requires a strict self-decrease in every idempotent graph of the closure. Semantically, types denote Girard–Tait reducibility candidates of strongly normalizing terms. Sizes denote ordinals, and Σ⊨Ξ\Sigma \models \XiΣ⊨Ξ (SemMutualBlockValid) says that every function in Ξ\XiΞ belongs to the interpretation of its type.

Algorithm 2 takes a block written without sizes, in System FωcF_\omega^cFωc​. It encodes each declared type with fresh size variables, elaborates patterns and clause bodies while emitting size constraints, solves the constraints with Algorithm 1, builds the invocation-graph family of the calls, and accepts the block if the size-change criterion holds. The result is a size-annotated block Ξannot\Xi_{\mathrm{annot}}Ξannot​.

Formalization targets

Goal: soundness of the termination checker (Theorem 15, corrected)

scopeBlockExtension Σ Ξannot  ∧  SemSigValidIn Σ Ξannot  ∧  PostcheckedAlgorithm2Accepts Σ Ξ Ξannot  ⟹  Σ⊢Ξannot  ∧  Σ⊨Ξannot\mathsf{scopeBlockExtension}\ \Sigma\ \Xi_{\mathrm{annot}} \;\wedge\; \mathsf{SemSigValidIn}\ \Sigma\ \Xi_{\mathrm{annot}} \;\wedge\; \mathsf{PostcheckedAlgorithm2Accepts}\ \Sigma\ \Xi\ \Xi_{\mathrm{annot}} \;\Longrightarrow\; \Sigma \vdash \Xi_{\mathrm{annot}} \;\wedge\; \Sigma \models \Xi_{\mathrm{annot}}scopeBlockExtension Σ Ξannot​∧SemSigValidIn Σ Ξannot​∧PostcheckedAlgorithm2Accepts Σ Ξ Ξannot​⟹Σ⊢Ξannot​∧Σ⊨Ξannot​

If a new block extends a valid, closed signature without forward references, and Algorithm 2 accepts it, then the annotated block is well-typed and every function in it is strongly normalizing. Lean name: NishtAbel2024V2.theorem_15.

Milestones, in the thesis's order

  • Lemma 1 and Theorem 1: graph composition preserves conformance, and ⊢G\vdash \mathcal{G}⊢G makes the size-change call relation well-founded.
  • Theorems 2–3 (corrected): soundness of size judgments and of expression and clause typing.
  • Theorems 4–6 and Lemma 2 (corrected): strong normalization of mutual blocks, signatures and programs, and the embedding of lexicographic termination (FωcopF_\omega^{\mathrm{cop}}Fωcop​) into Fωcop,SCTF_\omega^{\mathrm{cop,SCT}}Fωcop,SCT​.
  • Theorems 7–9 and Lemmas 3–5 (corrected): well-kindedness of the signature encoding, pattern and spine elaboration, and polarities of rigid size variables.
  • Theorems 10–12 (corrected): polarity of generated constraints, and absence of constraints from flexible to rigid size variables.
  • Theorems 13–14 and Corollary (corrected): typing of size-instantiated clauses, and coherence of the substitution computed by Algorithm 1.

Significance

The result. Theorem 15 is the soundness guarantee a proof assistant needs before it can adopt the checker: accepted definitions cannot be used to derive a contradiction through non-termination. Theorem 6 shows that the type system subsumes lexicographic termination: every block typable in FωcopF_\omega^{\mathrm{cop}}Fωcop​ with a lexicographic size measure is typable in Fωcop,SCTF_\omega^{\mathrm{cop,SCT}}Fωcop,SCT​ once the measure is erased. The semantic results, Theorems 1–5, apply to any front end that produces derivations in Fωcop,SCTF_\omega^{\mathrm{cop,SCT}}Fωcop,SCT​, not only to Algorithm 2.

Formalizing it. The thesis's proofs are on paper. Formalizing them showed that the first Lean statements of Theorems 2–3, 4–6, 7–9 with Lemmas 3–5, 10–12, 13–14 and 15 were all false. Each has a machine-checked counterexample, and each refuted statement records the reason on its own page. Theorems 2–6 and 15 were stated without the thesis's scope discipline: an existing function could share a name with, or refer to, a function of the new block, forming a loop through the existing signature that the size-change check of the new block does not see. Theorem 11 checked one occurrence of a rigid size variable where the thesis requires all occurrences to lie in least fixpoints. Theorems 13–14 omitted well-formedness of the global signature. The Lemma 5 statement allowed inputs that the thesis's encoding never produces. The counterexamples show where the paper argument depends on assumptions it states informally. They do not refute the thesis's theorems under those assumptions.

As of November 2026, Lemma 1 and Theorem 1 are proved over the original definitions, with no statement over the corrected definitions yet. The corrected Theorems 7–14 are proved, and the corrected Theorems 2–6 and 15 are open. The milestone list shows the current state.

Difficulty

The central step is Theorem 4: a mutual block is strongly normalizing once its calls satisfy the size-change criterion. Induction on a single size argument does not suffice, because mutually recursive calls may decrease different arguments along different call paths. Strong normalization of one function therefore depends on the whole call structure of the block, and the semantic typing of Theorem 3 has to hold uniformly while the existing signature stays fixed.

On the inference side, constraint solving is sound only if no constraint forces a flexible size variable below a rigid one. Establishing this (Theorems 10–12) requires tracking the polarity of every size occurrence through higher-kinded type operators, including operators that ignore an argument. The first formal attempts show that a statement of these invariants close to the prose is false, so finding a provable statement is itself part of the work.

Formalization scope

Lean names with the suffix V2 (namespace NishtAbel2024V2) are the corrected statements, built on three definition modules: NishtAbel2024V2_Syntax, NishtAbel2024V2_Semantics and NishtAbel2024V2_Inference. The namespace NishtAbel2024 holds the first formalization, whose refuted statements remain on the platform with their disproofs. The corrected statements commit to the following conventions.

  • Scope. A new block extends a closed, duplicate-free signature and refers only to itself and earlier functions (scopeBlockExtension; scopeOrderedBlocks for programs).
  • Ambient validity. The existing signature is assumed semantically valid in the world that includes the new block (SemSigValidIn).
  • Postchecked Algorithm 2. Acceptance includes a final check that each size-instantiated clause body type-checks (PostcheckedAlgorithm2Accepts). Corrected Theorem 13 and the typing half of Theorem 15 therefore rest on this check. The thesis's stronger claim, that inference always produces well-typed output from a well-formed signature, is not part of the targets.
  • Checked solver. Corrected Theorem 14 concerns CheckedConstraintSolver.checkedSolve, which returns Algorithm 1's substitution only when a finite coherence certificate succeeds.
  • Guarded inference. Corrected Theorems 10–12 concern the instrumented variants GuardedCompareTypes, SafeInferTerm and SafeCheckTerm; the last two erase to the original inference judgments.
  • Occurrences. Corrected Lemmas 4–5 bound the polarity of kinding-aware size occurrences (CheckUse) instead of stating the thesis's four-way classification.
  • Measures. Theorem 6 requires a non-empty lexicographic measure.

The main goal does not assume that the new block terminates. It assumes validity of the existing signature only, so the strong normalization conclusion is not built into the hypotheses.

Several proved milestones (scope stability, Theorem 2 size soundness, a guarded Theorem 10, Theorems 7–9, Lemma 3, and the lexicographic graph construction of Theorem 6) are stated over the original NishtAbel2024 definitions. They are correct results about that model but do not transfer to the corrected definitions. Contributions are welcome for:

  • a statement and proof of Lemma 1 and Theorem 1 over the corrected definitions;
  • proofs of corrected Theorems 2–3, 4–6 and 15;
  • a proof that the postcheck always succeeds for well-formed signatures, which would recover the thesis's form of Theorem 13;
  • a source-level review of Lemma 4.

Selected references

  • K. Nisht, Type-Based Termination Checking in Agda, MSc thesis, Chalmers University of Technology and University of Gothenburg, 2024; supervisor A. Abel. Extended abstract at TYPES 2024, Copenhagen. https://knisht.github.io/agda/msc.pdf
  • C. S. Lee, N. D. Jones, A. M. Ben-Amram, The size-change principle for program termination, POPL 2001. https://doi.org/10.1145/360204.360210
  • A. Abel, B. Pientka, Well-founded recursion with copatterns and sized types, Journal of Functional Programming 26, 2016. https://doi.org/10.1017/S0956796816000022
30 thms2 active users
OptimizationTheoretical Computer Science·Captain: Shuze Chen

Horn Maximum Satisfiability: Reductions, Algorithms and Applications: SAT reduces to Horn MaxSAT by dual-rail encodingResearch Paper

Motivation

Boolean satisfiability asks whether a collection of logical requirements can hold simultaneously. Maximum satisfiability instead asks how many requirements can hold, while sometimes retaining a separate collection that must hold. Restricting the syntax of each requirement can substantially change the decision problem without removing the expressive power of the optimization problem. This distinction motivates the study of optimization over Horn clauses in Marques-Silva, Ignatiev and Morgado, arXiv:1705.05335v1, especially §§1–2 and 5.2.

The selected result concerns an explicit transformation of arbitrary finite satisfiability instances into Horn maximum-satisfiability instances. It specifies the output clauses and an exact threshold, so its content is more concrete than the existence of some reduction between the two problems. The mission covers this transformation and its uniform polynomial-time computability. Other reductions, the hitting-set solver, its abstraction claims and the experiments in the paper are independent of this target.

Setting

A Boolean variable takes one of the values false and true. A literal is a variable or its negation. A clause is a finite disjunction of literals, and a CNF formula is a finite conjunction of clauses. A total assignment assigns a Boolean value to every variable. It satisfies a clause when at least one literal is true and satisfies a formula when every clause is satisfied. An empty clause is false; a formula with no clauses is true. These are the conventions of §2, p. 2.

A Horn clause contains at most one distinct positive literal. Thus an all-negative clause, an empty clause and a positive unit clause are Horn. An unweighted partial MaxSAT instance consists of hard clauses HHH and soft clauses SSS. A feasible assignment satisfies every hard clause. Its score is the number of satisfied soft clauses, each with unit weight. The associated threshold question asks whether there exists a feasible assignment whose score reaches a specified natural number. This preserves infeasibility separately from score zero, as required by the hard-clause convention in §2, pp. 2–3.

For a formula FFF with NNN variables, the dual-rail encoding introduces two distinct variables pi,nip_i,n_ipi​,ni​ for each original variable xix_ixi​. HEnc includes the hard exclusion (¬pi∨¬ni)(\neg p_i\lor\neg n_i)(¬pi​∨¬ni​) for each pair. Each source clause is also turned into a hard clause: positive xix_ixi​ becomes ¬ni\neg n_i¬ni​, and negative ¬xi\neg x_i¬xi​ becomes ¬pi\neg p_i¬pi​. The soft clauses are the positive units (pi)(p_i)(pi​) and (ni)(n_i)(ni​), one of each per original variable. The threshold is NNN. These clauses are the specific construction in §5.2, p. 8.

Formalization target

The single goal asserts that HEnc is computed by one fixed deterministic finite-control multi-stack Turing machine within one fixed polynomial in input length, uniformly for all finite source formulas. For every FFF, write (H,S,N)=HEnc⁡(F)(H,S,N)=\operatorname{HEnc}(F)(H,S,N)=HEnc(F). In addition to that efficiency assertion, the goal requires

every clause of H and S is Horn,\text{every clause of }H\text{ and }S\text{ is Horn},every clause of H and S is Horn, F is satisfiable  ⟺  ∃b  (b⊨H ∧ score⁡S(b)≥N),F\text{ is satisfiable}\iff \exists b\;\bigl(b\models H\ \land\ \operatorname{score}_S(b)\ge N\bigr),F is satisfiable⟺∃b(b⊨H ∧ scoreS​(b)≥N),

and the universal cap

∀b,b⊨H⟹score⁡S(b)≤N.\forall b,\quad b\models H\Longrightarrow\operatorname{score}_S(b)\le N.∀b,b⊨H⟹scoreS​(b)≤N.

The constant in both comparisons is exactly NNN. The quantifier over bbb ranges over all total assignments on the 2N2N2N rails. No feasible assignment, satisfying source assignment or attained optimum is assumed. This is the unnumbered HEnc correctness claim, §5.2, p. 8, with the polynomial-reduction convention from §§1–2 made explicit. There are no numbered supporting milestones in this source argument.

Significance

The result gives a precise relationship between the answer to an arbitrary CNF satisfiability instance and an exact score threshold in its Horn output. Both directions of the equivalence matter: the output must neither lose a satisfiable source instance nor admit a threshold witness for an unsatisfiable one. The cap additionally describes every feasible target assignment. These are properties of the specified transformation, rather than properties of a solver chosen to process its output. They are the contribution of §5.2 selected here.

The mathematical claim is presented in the paper as an established reduction. The formal goal remains unproved. A completed development would connect a concrete finite syntax, a reusable hard/soft objective and actual machine execution within one checked statement. The general Horn and partial-MaxSAT definitions can support other encodings without assuming this reduction's correctness. The published CNF representation is reused; its unrelated complexity conjectures are not assumptions of this mission.

Difficulty

Hornness alone is insufficient: the semantic equivalence and exact score cap must concern the same computed clauses. Hard feasibility permits both rails in a pair to be false. Replacing it with an exactly-one condition would change the target. Empty hard clauses also prevent an optimization convention that assigns score zero to infeasibility from expressing the threshold question correctly when N=0N=0N=0.

The computational clause introduces a separate obligation. A short output or a terminating recursive definition does not establish a polynomial bound for a fixed machine. The formal target requires a machine that writes the complete encoded output, together with a polynomial bound on its actual steps. It does not request a polynomial-time SAT or MaxSAT solver.

Formalization scope

Variables use zero-based finite indices. Lists represent clause collections and clauses; repeated hard clauses or literals do not alter satisfaction, and Hornness counts distinct positive literals. HEnc's soft list contains each rail exactly once. All widths are admitted, including empty clauses, tautologies and contradictory units. The representation also admits unused declared variables; restricting the declared universe to the variables occurring in FFF recovers the source domain without changing its threshold.

The finite alphabet has six tokens. Variable counts are unary headers; literal indices and the output threshold use terminated little-endian binary. Separate tokens delimit clauses and distinguish hard from soft collections. The header makes every declared variable contribute to input size. The formalization claims no polynomial bound in the logarithm of a hidden variable count. Mathlib's TM2ComputableInPolyTime supplies the concrete execution model and polynomial step bound. No source-specific numerical runtime constant is invented.

Definitions contain no satisfiability oracle, correctness certificate or assumed reduction property. The theorem retains efficiency, Hornness, the full equivalence and the universal cap in one item. The apparent cic_ici​/cjc_jcj​ index typo in §5.2 is read according to its literalwise construction and documented separately. Proof contributions must establish the full statement; neither a restricted source class nor an output-size calculation replaces it.

Selected references

  • João Marques-Silva, Alexey Ignatiev and António Morgado, Horn Maximum Satisfiability: Reductions, Algorithms and Applications, preprint, 2017, arXiv:1705.05335v1, especially §2, pp. 2–3 and §5.2, p. 8. All page references use this pinned version.
6 thms2 active usersReviewed
Complexity Theory·Captain: Lucas

F_d versus F_{d+1}: fixed-depth separation of bounded-depth FregeOpen Problem

Motivation

Bounded-depth Frege systems are the proof systems of propositional logic in which every formula of a proof has depth bounded by a fixed constant ddd; the resulting system is written FdF_dFd​. They are the proof-theoretic counterpart of the circuit class AC0\mathrm{AC}^0AC0 and of the bounded arithmetic theories IΔ0I\Delta_0IΔ0​ and its relatives: short FdF_dFd​-proofs of a family of tautologies correspond to proofs of the corresponding first-order statement in bounded arithmetic. Lower bounds for FdF_dFd​ are among the strongest lower bounds known for any natural proof system.

A basic structural question is whether the depth hierarchy F1⊆F2⊆F3⊆…F_1 \subseteq F_2 \subseteq F_3 \subseteq \dotsF1​⊆F2​⊆F3​⊆… is strict in a strong sense. It is known that one extra level of depth can give an exponential speed-up, but in all known separations the tautologies themselves have depth growing with ddd. J. Krajíček asked whether there is a single fixed depth kkk at which tautologies witnessing the separation of Fd+1F_{d+1}Fd+1​ from FdF_dFd​ exist for every ddd (Open Problem Garden, F_d versus F_{d+1}; [Krajíček 1995, p. 243]). The question is closely related to conservativity relations among bounded arithmetic theories.

Timeline.

  • 1987 — Buss: the pigeonhole principle PHPnn+1\mathrm{PHP}^{n+1}_nPHPnn+1​ has polynomial-size Frege proofs (of unbounded depth).
  • 1988 — Ajtai: PHPnn+1\mathrm{PHP}^{n+1}_nPHPnn+1​ has no polynomial-size FdF_dFd​-proofs for any fixed ddd.
  • 1993/1995 — Pitassi–Beame–Impagliazzo and Krajíček–Pudlák–Woods: FdF_dFd​-proofs of PHPnn+1\mathrm{PHP}^{n+1}_nPHPnn+1​ require size 2nεd2^{n^{\varepsilon_d}}2nεd​.
  • 1994 — Krajíček: for each ddd there are tautologies of depth ddd with polynomial-size Fd+1F_{d+1}Fd+1​-proofs requiring exponential-size FdF_dFd​-proofs, i.e. the problem is solved when kkk may depend on ddd (k:=dk := dk:=d).
  • 2002 — Impagliazzo–Krajíček relate the question to conservativity among bounded arithmetic theories.

Setting

Formulas. A formula is in negation normal form over variables p0,p1,…p_0, p_1, \dotsp0​,p1​,…: a literal pip_ipi​ or ¬pi\neg p_i¬pi​, a conjunction ⋀(A1,…,Am)\bigwedge(A_1,\dots,A_m)⋀(A1​,…,Am​) or a disjunction ⋁(A1,…,Am)\bigvee(A_1,\dots,A_m)⋁(A1​,…,Am​) of any finite number m≥0m \ge 0m≥0 of formulas. The depth of a literal is 000, and the depth of ⋀(A1,…,Am)\bigwedge(A_1,\dots,A_m)⋀(A1​,…,Am​) or ⋁(A1,…,Am)\bigvee(A_1,\dots,A_m)⋁(A1​,…,Am​) is 1+max⁡jdepth⁡(Aj)1+\max_j \operatorname{depth}(A_j)1+maxj​depth(Aj​) (so clauses have depth 111 and CNFs depth 222). The size ∣A∣|A|∣A∣ is the number of symbols (literals and connectives). A tautology is a formula true under every assignment. The negation A‾\overline{A}A of a formula is obtained by De Morgan's laws.

The system FdF_dFd​. Lines of a proof are sequents: finite lists Γ\GammaΓ of formulas, read as their disjunction. The rules are: (axiom) any Γ\GammaΓ containing both pip_ipi​ and ¬pi\neg p_i¬pi​; (∧\wedge∧) from A,ΓA, \GammaA,Γ for every A∈{A1,…,Am}A \in \{A_1,\dots,A_m\}A∈{A1​,…,Am​} infer ⋀(A1,…,Am),Γ\bigwedge(A_1,\dots,A_m), \Gamma⋀(A1​,…,Am​),Γ; (∨\vee∨) from Aj,ΓA_j, \GammaAj​,Γ infer ⋁(A1,…,Am),Γ\bigvee(A_1,\dots,A_m), \Gamma⋁(A1​,…,Am​),Γ; (weakening) from Γ\GammaΓ infer any Δ\DeltaΔ containing every member of Γ\GammaΓ; (cut) from A,ΓA,\GammaA,Γ and A‾,Γ\overline{A},\GammaA,Γ infer Γ\GammaΓ. An FdF_dFd​-proof of AAA is a sequence of sequents, each following from earlier ones by a rule (lines may be reused), in which every formula has depth at most ddd, and which contains the sequent consisting of AAA alone. Its size is the total size of all formulas in it.

Formalization targets

Write τ=(τm)m∈N\tau = (\tau_m)_{m\in\mathbb N}τ=(τm​)m∈N​ for a family of tautologies of depth at most kkk with ∣τm∣≥m|\tau_m| \ge m∣τm​∣≥m. It requires exponential FdF_dFd​-size if for some ε>0\varepsilon>0ε>0 and all large mmm every FdF_dFd​-proof of τm\tau_mτm​ has size at least 2∣τm∣ε2^{|\tau_m|^{\varepsilon}}2∣τm​∣ε.

Goal

∃k ∀d≥k ∃τ:τm has Fd+1-proofs of size 2C(log⁡2∣τm∣)C and τ requires exponential Fd-size.\exists k\ \forall d \ge k\ \exists \tau:\quad \tau_m \text{ has } F_{d+1}\text{-proofs of size } 2^{C(\log_2|\tau_m|)^C} \text{ and } \tau \text{ requires exponential } F_d\text{-size.}∃k ∀d≥k ∃τ:τm​ has Fd+1​-proofs of size 2C(log2​∣τm​∣)C and τ requires exponential Fd​-size.

The goal takes the weaker of the two upper bounds allowed by the problem (quasi-polynomial); the polynomial version implies it.

Milestones

  1. Soundness of FdF_dFd​: every formula with an FdF_dFd​-proof is a tautology.
  2. Completeness of FdF_dFd​ for depth-ddd formulas: every tautology of depth ≤d\le d≤d has an FdF_dFd​-proof.
  3. Exponential FdF_dFd​ lower bound for PHPnn+1\mathrm{PHP}^{n+1}_nPHPnn+1​: size ≥2nεd\ge 2^{n^{\varepsilon_d}}≥2nεd​.
  4. The depth-dependent separation: for all large ddd, depth-ddd tautologies with polynomial-size Fd+1F_{d+1}Fd+1​-proofs requiring exponential FdF_dFd​-size.

Significance

A positive answer would show that the extra power of depth d+1d+1d+1 over depth ddd is visible already on formulas of a fixed, small depth, in particular that the hierarchy of bounded-depth Frege systems does not collapse on (for example) CNF tautologies. Through the correspondence with bounded arithmetic it bears on conservativity of theories of increasing quantifier complexity over a fixed class of low-complexity statements. A negative answer would say that for low-depth tautologies the bounded-depth Frege hierarchy collapses up to quasi-polynomial size.

Status: the goal is open. Milestones 1–2 are standard; milestones 3–4 are published theorems that, to the best of current knowledge, have no machine-checked proofs. Formalizing them requires switching-lemma machinery that would be reusable across proof complexity.

Difficulty

The known lower bounds for FdF_dFd​ go through switching lemmas that simplify depth-ddd formulas under random restrictions. In the known separations of Fd+1F_{d+1}Fd+1​ from FdF_dFd​ the hard tautologies have depth growing with ddd. Keeping the formulas at one fixed depth kkk while ddd ranges over all values requires a lower-bound argument whose strength depends on the depth of the proof lines alone, uniformly in ddd; the switching-lemma arguments used for depth-dependent separations do not directly provide this.

Formalization scope

Formulas are the Lean inductive type FdVersusFdSucc.Formula over variables ℕ, with conjunctions and disjunctions of lists (so and [] is true and or [] is false). Depth counts literals as 000. FdF_dFd​ is the dag-like one-sided sequent calculus described above; sequents are lists, weakening is by list inclusion. Proof size counts symbols of all formulas in all lines. Exponential lower bounds are asked only for all sufficiently large indices. The goal quantifies over d≥kd \ge kd≥k: for d+1<kd+1 < kd+1<k no Fd+1F_{d+1}Fd+1​-proof of a depth-kkk formula exists, so "every ddd" cannot be meant literally. A family whose formulas have depth >d> d>d would satisfy the lower bound vacuously; this is excluded because the formulas must have depth at most k≤dk \le dk≤d. The size condition ∣τm∣≥m|\tau_m| \ge m∣τm​∣≥m rules out finite families.

Contributions welcome: proofs of soundness and completeness, a formalized switching lemma, and the classical lower bounds.

Selected references

  • J. Krajíček, Lower bounds to the size of constant-depth propositional proofs, J. Symbolic Logic 59(1), 1994, 73–86.
  • J. Krajíček, Bounded arithmetic, propositional logic, and complexity theory, Encyclopedia of Mathematics and Its Applications 60, Cambridge University Press, 1995 (p. 243).
  • Open Problem Garden, F_d versus F_{d+1}, http://www.openproblemgarden.org/op/f_d_versus_f_d_1
  • M. Ajtai, The complexity of the pigeonhole principle, FOCS 1988.
  • J. Krajíček, P. Pudlák, A. Woods, An exponential lower bound to the size of bounded depth Frege proofs of the pigeonhole principle, Random Structures & Algorithms 7(1), 1995.
  • T. Pitassi, P. Beame, R. Impagliazzo, Exponential lower bounds for the pigeonhole principle, Computational Complexity 3, 1993.
  • S. Buss, Polynomial size proofs of the propositional pigeonhole principle, J. Symbolic Logic 52, 1987.
  • R. Impagliazzo, J. Krajíček, A note on conservativity relations among bounded arithmetic theories, Math. Logic Quarterly 48, 2002.
6 thms2 active usersReviewed
CombinatoricsGraph Theory·Captain: mikedeng1

Twin-width I: Tractable FO Model Checking 5: First-Order Interpretations of a Class of Graphs of Bounded Twin-width Have Bounded Twin-widthResearch Paper

Why interpretations

Twin-width is a graph parameter introduced by Bonnet, Kim, Thomassé and Watrigant in Twin-width I: Tractable FO Model Checking (J. ACM 69(1), Article 3, 2021; arXiv:2004.14789). Its main algorithmic consequence is that first-order model checking is fixed-parameter tractable on graphs given with a contraction sequence of bounded width. A parameter of this kind is useful only if the classes it bounds are closed under the constructions that arise in practice. Many such constructions are first-order definable: the complement of a graph, its square (join vertices at distance at most two), the map graph of a planar map. Section 8 of the paper shows that twin-width is stable under every such construction: a first-order interpretation of a class of bounded twin-width has bounded twin-width. Bounded VC-dimension, by contrast, is not preserved (interval graphs have VC-dimension at most two but interpret every graph, p. 3:41).

The result has since become the basis of the "model-theoretic" view of twin-width: bounded twin-width classes are closed under first-order transductions (Theorem 8.1 of the paper), and later work identifies them, among ordered structures, with the monadically dependent classes (Twin-width IV, Bonnet, Giocanti, Ossona de Mendez, Simon, Thomassé and Toruńczyk).

Setting

Let GGG be a finite simple graph on a vertex set VVV.

Two vertex sets X,YX,YX,Y are homogeneous if all pairs in X×YX\times YX×Y are edges or none is. For a partition P\mathcal PP of VVV, the red graph GPG_{\mathcal P}GP​ has the parts as vertices, two distinct parts being adjacent when they are not homogeneous. P\mathcal PP is a ddd-partition if GPG_{\mathcal P}GP​ has maximum degree at most ddd. The graph GGG has twin-width at most ddd, tww⁡(G)≤d\operatorname{tww}(G)\le dtww(G)≤d, if there is a sequence of ddd-partitions from the partition into singletons to a partition with at most one part, each obtained from the previous one by merging two parts (p. 3:32).

A prenex formula of depth ℓ\ellℓ with two free variables is

φ(x,y)=Q1x1 Q2x2⋯Qℓxℓ φ∗,Qi∈{∀,∃},\varphi(x,y)=Q_1x_1\,Q_2x_2\cdots Q_\ell x_\ell\ \varphi^*,\qquad Q_i\in\{\forall,\exists\},φ(x,y)=Q1​x1​Q2​x2​⋯Qℓ​xℓ​ φ∗,Qi​∈{∀,∃},

with φ∗\varphi^*φ∗ a Boolean combination of atoms u=vu=vu=v and E(u,v)E(u,v)E(u,v), u,v∈{x1,…,xℓ,x,y}u,v\in\{x_1,\dots,x_\ell,x,y\}u,v∈{x1​,…,xℓ​,x,y}. The interpretation φ(G)\varphi(G)φ(G) is the graph on VVV in which distinct u,vu,vu,v are adjacent iff G⊨φ(u,v)∧φ(v,u)G\models\varphi(u,v)\wedge\varphi(v,u)G⊨φ(u,v)∧φ(v,u). For a class G\mathcal GG, φ(G)\varphi(\mathcal G)φ(G) is the class of all induced subgraphs of the graphs φ(G)\varphi(G)φ(G), G∈GG\in\mathcal GG∈G.

The proof works with morphism-trees. The complete tree MTk(V)MT_k(V)MTk​(V) has as nodes all tuples (v1,…,vi)(v_1,\dots,v_i)(v1​,…,vi​) of vertices with i≤ki\le ki≤k, the parent of a tuple being its prefix. Two sibling nodes are equivalent in (G,P)(G,\mathcal P)(G,P) if an automorphism of the tree swaps them, preserving equalities and adjacencies among the entries of every tuple and the part of P\mathcal PP of every entry. A reduction deletes one of two equivalent siblings with its subtree, repeatedly; a reduct admits no further reduction. Two vertices u,u′u,u'u,u′ are adjacent in Eℓ+2(G,P)E_{\ell+2}(G,\mathcal P)Eℓ+2​(G,P) when (u)(u)(u) and (u′)(u')(u′) are equivalent in some reduction of MTℓ+2(V)MT_{\ell+2}(V)MTℓ+2​(V), and Iℓ+2(G,P)I_{\ell+2}(G,\mathcal P)Iℓ+2​(G,P) is the partition into the connected components of Eℓ+2(G,P)E_{\ell+2}(G,\mathcal P)Eℓ+2​(G,P).

Formalization targets

Goal: Theorem 8.3 (graphs)

For every prenex formula φ(x,y)\varphi(x,y)φ(x,y) and every ddd there is DDD such that

tww⁡(G)≤d ⟹ tww⁡(φ(G)[S])≤Dfor every graph G and every S⊆V(G).\operatorname{tww}(G)\le d\ \Longrightarrow\ \operatorname{tww}\bigl(\varphi(G)[S]\bigr)\le D\quad\text{for every graph } G \text{ and every } S\subseteq V(G).tww(G)≤d ⟹ tww(φ(G)[S])≤Dfor every graph G and every S⊆V(G).

The bound DDD depends on φ\varphiφ and ddd only. No explicit function is asserted: the paper gives none (the proof goes through a tower-type bound on reducts).

Milestones

  1. Lemma 5.2 in graph form (p. 3:18, applied on p. 3:43): rrr-refining hhh-partitions from the finest to the coarsest partition give tww⁡(G)≤r(h+1)\operatorname{tww}(G)\le r(h+1)tww(G)≤r(h+1).
  2. Lemma 7.3 (p. 3:32): reducts of MTℓ(G)MT_\ell(G)MTℓ​(G) have size bounded by a function of ℓ\ellℓ.
  3. Lemmas 7.11–7.14 (pp. 3:35–3:38): restriction to connected tuples rooted at a part and the pruned shuffle commute with reductions; the pruned shuffle of all MTℓ(G,P,X)MT_\ell(G,\mathcal P,X)MTℓ​(G,P,X) is MTℓ(G,P)MT_\ell(G,\mathcal P)MTℓ​(G,P), and that of reducts is a reduction of it.
  4. Lemma 8.4 (p. 3:41) and its extension to reductions (p. 3:42): equivalent nodes (u,v),(u,v′)(u,v),(u,v')(u,v),(u,v′) of MTℓ+2MT_{\ell+2}MTℓ+2​ satisfy the same prenex formulas of depth ℓ\ellℓ.
  5. Iℓ+2I_{\ell+2}Iℓ+2​ refines P\mathcal PP and is monotone under coarsening (p. 3:42).
  6. Lemma 8.5 (p. 3:42): a part of a ddd-partition meets boundedly many components of Eℓ+2(G,P)E_{\ell+2}(G,\mathcal P)Eℓ+2​(G,P).
  7. Lemma 8.6 (p. 3:43): parts of Iℓ+2(G,P)I_{\ell+2}(G,\mathcal P)Iℓ+2​(G,P) inside parts at distance at least 3ℓ+23^{\ell+2}3ℓ+2 in GPG_{\mathcal P}GP​ are homogeneous in φ(G)\varphi(G)φ(G).

Significance

Theorem 8.3 turns every first-order definable graph construction into a source of bounded-twin-width classes: squares and fixed powers of planar graphs, complements, map graphs (as transductions, via Theorem 8.1), kkk-planar graphs and bounded-degree string graphs. Combined with the model-checking algorithm it gives FPT first-order model checking on all these classes, provided a contraction sequence is available. The theorem is also the first step of the model-theoretic characterisations of bounded twin-width in the later papers of the series.

The result is proved in the paper; no machine-checked proof of it, or of any twin-width bound, exists to our knowledge, and Mathlib has no notion of twin-width or of first-order interpretations of graphs. The mission asks for a formal proof of the graph case. The morphism-tree milestones are also the combinatorial core of the paper's linear-time model-checking algorithm (Theorems 7.5, 7.15), whose running-time statements are not part of this mission.

Difficulty

The obvious approach refines the ddd-partitions Pi\mathcal P_iPi​ of GGG by the "type" of each vertex with respect to φ\varphiφ. The number of such types is not bounded: a vertex's behaviour depends on the whole graph through the quantifiers. The paper replaces types by the components of Eℓ+2(G,Pi)E_{\ell+2}(G,\mathcal P_i)Eℓ+2​(G,Pi​), defined through reductions of morphism-trees that respect Pi\mathcal P_iPi​. Two facts must then be shown, and neither is local in an obvious way. First, the number of components inside a part is bounded (Lemma 8.5); this needs the pruned shuffle, which assembles a reduction of the whole tree MTℓ+2(G,P)MT_{\ell+2}(G,\mathcal P)MTℓ+2​(G,P) from reductions of the local trees MTℓ+2(G,P,X)MT_{\ell+2}(G,\mathcal P,X)MTℓ+2​(G,P,X), and the fact that it commutes with reductions (Lemma 7.12), where an automorphism of one local tree must be extended to the shuffle without breaking adjacency between non-homogeneous parts. Second, far-apart components are homogeneous in φ(G)\varphi(G)φ(G) (Lemma 8.6), which needs the evaluation argument of Lemma 8.4 inside a reduction of the partitioned tree.

Formalization scope

  • Graphs are SimpleGraph V on a Fintype with decidable equality. Twin-width is the predicate TwinWidthLE G d in the paper's partition form (pp. 3:12, 3:32); trigraphs are not formalized, and twin-width is never an infimum, so no junk value of sInf can make a bound vacuous. Merge steps merge exactly two distinct parts, so a sequence cannot jump to one part.
  • Formulas are Mathlib's FirstOrder.Language.graph.Formula (Fin 2), evaluated in G.structure; variable 0 is xxx, variable 1 is yyy. Prenex is Mathlib's IsPrenex; quantifier depth qdepth is defined in the mission (∃=¬∀¬\exists=\neg\forall\neg∃=¬∀¬ counts once).
  • The interpretation requires u≠vu\neq vu=v for an edge (a simple graph has no loops). The goal is the graph case of Theorem 8.3, which the page states for augmented binary structures; Section 8 itself says it works with undirected graphs (p. 3:40).
  • In the goal the bound DDD is chosen after φ\varphiφ and ddd and before the graph: a bound chosen after the graph would make the statement trivial. The hereditary closure (induced subgraphs on every SSS) is part of the statement.
  • Morphism-trees are sets of tuples (Set (List V)), the paper's identification of a node with its current path (p. 3:30), which is exact for reductions of complete trees. Equivalent siblings are distinct. Distances in GPG_{\mathcal P}GP​ are in N∪{∞}\mathbb N\cup\{\infty\}N∪{∞}, so disconnected parts are far apart. The sequence graph uses 0-based indices, hence the exponent 3ℓ−(k+1)3^{\ell-(k+1)}3ℓ−(k+1). The pruned shuffle is defined by its characterisation (each component of the sequence graph of a tuple lies in the tree of its local root). Lemmas of §7.3 carry its standing assumption ℓ>0\ell>0ℓ>0.
  • Lemma 5.2 is posed for graphs with the bound r(h+1)r(h+1)r(h+1) (the matrix lemma's rtrtrt with t=h+1t=h+1t=h+1).
  • Not in the mission: Theorem 8.1 (transductions), Lemma 8.2 and Lemma 5.1 (augmented binary structures), and all running-time statements (Theorems 1.1, 7.1, 7.5, 7.15, Corollaries 7.16–7.17).

Reusable beyond this mission: the partition form of twin-width, quantifier depth of first-order formulas, and the morphism-tree machinery (reductions, pruned shuffles), which formalizes the algorithmic core of first-order model checking on bounded twin-width. Contributions welcome: proofs of the §7 lemmas, of Lemma 8.4 by induction on the quantifier prefix, and the closure of twin-width under induced subgraphs.

Selected references

  • É. Bonnet, E. J. Kim, S. Thomassé, R. Watrigant, Twin-width I: Tractable FO Model Checking, J. ACM 69(1), Article 3, 2021. https://doi.org/10.1145/3486655 (arXiv:2004.14789, https://arxiv.org/abs/2004.14789)
  • É. Bonnet, U. Giocanti, P. Ossona de Mendez, P. Simon, S. Thomassé, S. Toruńczyk, Twin-width IV: Ordered Graphs and Matrices, J. ACM, 2024. https://arxiv.org/abs/2102.03117
15 thms2 active usersReviewed
🏆Completed
Formal VerificationTheory of Computation·Captain: mikedeng1

Monitoring Metric First-Order Temporal Properties: The Monitor M_Φ Outputs Exactly the Violations (¬Φ)^(D̄,τ̄,i) of a Bounded MFOTL Formula Φ, as Regular Sets, at Every Time Point iResearch Paper

Motivation

Runtime monitoring checks a running system against a specification by inspecting its trace of events as it is produced. Policies on data, such as "every published report was approved within the last 10 days" or "each value stored in in reaches out within 5 time units", quantify over data values and constrain the time between events. Metric first-order temporal logic (MFOTL) expresses such policies: it extends first-order logic with past and future temporal operators that carry intervals of allowed time differences.

Basin, Klaedtke, Müller and Zălinescu (J. ACM 62(2), Article 15, 2015) give a monitor for MFOTL properties □Φ\square\Phi□Φ with Φ\PhiΦ bounded. It allows negation and quantification over the infinite domain N\mathbb NN without restriction, because every relation it manipulates is represented by a finite automaton: the input structures are automatic structures. The paper implements it in the prototype tool MonPoly-Reg (§6). Its correctness rests on Theorem 3.9: the monitor reports exactly the violations of Φ\PhiΦ, at every time point.

Setting

A signature S=(C,R,ι)S=(C,R,\iota)S=(C,R,ι) has finitely many constants and predicates with arities. Formulas are built from t≈t′t\approx t't≈t′ and r(t1,…,tι(r))r(t_1,\dots,t_{\iota(r)})r(t1​,…,tι(r)​) by ¬\neg¬, ∨\vee∨, ∃x\exists x∃x and the temporal operators ∙I\bullet_I∙I​ (previous), ∘I\circ_I∘I​ (next), SI\mathsf S_ISI​ (since) and UI\mathsf U_IUI​ (until), where I=[b,b′)I=[b,b')I=[b,b′) is a nonempty interval of N\mathbb NN with b′∈N∪{∞}b'\in\mathbb N\cup\{\infty\}b′∈N∪{∞}. A formula is bounded if every UI\mathsf U_IUI​ in it has b′<∞b'<\inftyb′<∞.

A temporal structure (Dˉ,τˉ)(\bar{\mathcal D},\bar\tau)(Dˉ,τˉ) assigns to each time point i∈Ni\in\mathbb Ni∈N relations rDi⊆Nι(r)r^{\mathcal D_i}\subseteq\mathbb N^{\iota(r)}rDi​⊆Nι(r) and a time stamp τi∈N\tau_i\in\mathbb Nτi​∈N; constants are rigid, τ0≤τ1≤⋯\tau_0\le\tau_1\le\cdotsτ0​≤τ1​≤⋯, and τˉ\bar\tauτˉ exceeds every bound. Satisfaction (Dˉ,τˉ,v,i)⊨φ(\bar{\mathcal D},\bar\tau,v,i)\models\varphi(Dˉ,τˉ,v,i)⊨φ is Definition 2.2; for example ψ UI ψ′\psi\,\mathsf U_I\,\psi'ψUI​ψ′ holds at iii if ψ′\psi'ψ′ holds at some j≥ij\ge ij≥i with τj−τi∈I\tau_j-\tau_i\in Iτj​−τi​∈I and ψ\psiψ holds at all k∈[i,j)k\in[i,j)k∈[i,j). For φ\varphiφ with free variables x1<⋯<xnx_1<\dots<x_nx1​<⋯<xn​, the satisfying set is

φ(Dˉ,τˉ,i)={dˉ∈Nn∣(Dˉ,τˉ,v[xˉ↦dˉ],i)⊨φ for some v}.\varphi^{(\bar{\mathcal D},\bar\tau,i)}=\{\bar d\in\mathbb N^n\mid(\bar{\mathcal D},\bar\tau,v[\bar x\mapsto\bar d],i)\models\varphi\ \text{for some }v\}.φ(Dˉ,τˉ,i)={dˉ∈Nn∣(Dˉ,τˉ,v[xˉ↦dˉ],i)⊨φ for some v}.

A domain representation is a regular language L\mathcal LL over a finite alphabet with a surjection ν:L→N\nu:\mathcal L\to\mathbb Nν:L→N whose equality relation is regular. A relation A⊆NkA\subseteq\mathbb N^kA⊆Nk is regular if the words u1⊗⋯⊗uku_1\otimes\cdots\otimes u_ku1​⊗⋯⊗uk​ (the letter-by-letter convolution, padded with #\##) with (ν(u1),…,ν(uk))∈A(\nu(u_1),\dots,\nu(u_k))\in A(ν(u1​),…,ν(uk​))∈A form a regular language.

The monitor MΦ\mathsf M_\PhiMΦ​ (Fig. 2) reads (D0,τ0),(D1,τ1),…(\mathcal D_0,\tau_0),(\mathcal D_1,\tau_1),\dots(D0​,τ0​),(D1​,τ1​),… one element per loop iteration. It extends each Dj\mathcal D_jDj​ to D^j\hat{\mathcal D}_jD^j​ with auxiliary relations pαp_\alphapα​ (and rαr_\alpharα​, sαs_\alphasα​ for since and until) for every temporal subformula α\alphaα, built incrementally by the constructions of §3.4 once a list QQQ of pending triples (α,j,S)(\alpha,j,S)(α,j,S) says that enough of the future has been read. When D^i\hat{\mathcal D}_iD^i​ is complete it outputs the set (¬Φ^)D^i(\neg\hat\Phi)^{\hat{\mathcal D}_i}(¬Φ^)D^i​ with τi\tau_iτi​, where Φ^\hat\PhiΦ^ is Φ\PhiΦ with each top-level temporal subformula α\alphaα replaced by the atom pα(xˉ)p_\alpha(\bar x)pα​(xˉ).

Formalization targets

Goal: Theorem 3.9

For every input satisfying the restrictions of §3.1 and every bounded Φ\PhiΦ:

(i)(n,O,t) output by line 9 ⟹ O=(¬Φ)(Dˉ,τˉ,n), O regular, t=τn;\text{(i)}\quad (n,O,t)\ \text{output by line 9}\ \Longrightarrow\ O=(\neg\Phi)^{(\bar{\mathcal D},\bar\tau,n)},\ O\ \text{regular},\ t=\tau_n;(i)(n,O,t) output by line 9 ⟹ O=(¬Φ)(Dˉ,τˉ,n), O regular, t=τn​; (ii)∀n∈N,n=0 or some output at index n−1 occurs,\text{(ii)}\quad \forall n\in\mathbb N,\quad n=0\ \text{or some output at index }n-1\text{ occurs},(ii)∀n∈N,n=0 or some output at index n−1 occurs,

where each output is followed by line 11 setting iii to the next index. This records counter values reached inside the while loop, including values that may never appear at a loop entry. Part (ii) excludes the vacuous reading of (i).

Milestones

  1. Lemma 3.4: φ^D^i=φ(Dˉ,τˉ,i)\hat\varphi^{\hat{\mathcal D}_i}=\varphi^{(\bar{\mathcal D},\bar\tau,i)}φ^​D^i​=φ(Dˉ,τˉ,i) once the auxiliary relations of tsub(φ)\mathit{tsub}(\varphi)tsub(φ) are correct, and regularity is preserved.
  2. Lemmas 3.5–3.8: the constructions for ∙I\bullet_I∙I​, ∘I\circ_I∘I​, SI\mathsf S_ISI​ and bounded UI\mathsf U_IUI​ produce regular relations equal to the satisfying sets, with the stated characterizations of rαr_\alpharα​ and sαs_\alphasα​.
  3. Observations (1)–(3) of the proof of Theorem 3.9 on the list QQQ and the counter iii.
  4. The claim that line 7 can always be executed, in the form: if (α,j,∅)∈Qk(\alpha,j,\emptyset)\in Q_k(α,j,∅)∈Qk​ then the build stores pαD^j=α(Dˉ,τˉ,j)p_\alpha^{\hat{\mathcal D}_j}=\alpha^{(\bar{\mathcal D},\bar\tau,j)}pαD^j​​=α(Dˉ,τˉ,j), which is regular.

Significance

Theorem 3.9 makes MΦ\mathsf M_\PhiMΦ​ a sound and complete monitor for the safety fragment □Φ\square\Phi□Φ, Φ\PhiΦ bounded: every violation at every time point is reported, nothing else is, and every output is a finitely represented (regular) set even though it may be infinite. It covers unrestricted negation and quantification, which finite-relation monitors (§4 of the paper) cannot handle. The incremental constructions of §3.4 are the template reused by later MFOTL monitors.

The paper gives a mathematical proof of its monitor's correctness. This mission asks for a Lean proof that checks the MFOTL semantics, automatic relations over N\mathbb NN, and the correctness of this particular monitor, including the until construction whose printed version is defective (see Formalization scope).

Difficulty

Two parts are hard. The regularity claims need the fundamental property of automatic structures: first-order definable relations are regular, which requires closure of padded convolution languages under Boolean operations, cylindrification, permutation of tracks and projection, the last with removal of trailing padding. The arithmetic constraints of the since and until constructions additionally need successor and offset relations definable from ≺\prec≺.

The scheduling argument is the other part. Correctness of a build at (α,j)(\alpha,j)(α,j) requires that every input relation, at time points up to j+ℓjj+\ell_jj+ℓj​ for until, was built before and not discarded since. Following only the syntax of α\alphaα does not settle this: a needed relation for a subformula at a later time point may be built in the same iteration as α\alphaα's.

Formalization scope

The domain is N\mathbb NN, as §3.1 assumes. Relations are sets of lists of natural numbers, ordered by the sorted free variables. Interval upper bounds are in N∞\mathbb N_\inftyN∞​; intervals carry the proof that they are nonempty. The representation (L,ν)(\mathcal L,\nu)(L,ν) is a single parameter shared by the hypothesis "every rDir^{\mathcal D_i}rDi​ is regular" and the regularity claims of the conclusions; it is never chosen existentially. The binary predicate ≺\prec≺ interpreted as <<< is a hypothesis.

Two hypotheses on Φ\PhiΦ besides boundedness are the paper's own "without loss of generality" assumptions: each temporal subformula occurs once in Φ\PhiΦ (§3.6), and the direct subformulas of each SI\mathsf S_ISI​, UI\mathsf U_IUI​ subformula have the same free variables (§3.4; achieved by padding with x≈xx\approx xx≈x, as in §3.5). No other restriction is placed on Φ\PhiΦ.

The printed until construction (§3.4.4) is repaired: the guard of UrU_rUr​ is "aˉ∈β^D^i+k\bar a\in\hat\beta^{\hat{\mathcal D}_{i+k}}aˉ∈β^​D^i+k​ for all ℓi−1≤k≤ℓi\ell_{i-1}\le k\le\ell_iℓi−1​≤k≤ℓi​", since the printed guard empties rαr_\alpharα​ in the paper's own example of §3.5; UsU_sUs​ keeps only tuples with j′≥1j'\ge1j′≥1, since otherwise a γ\gammaγ-witness at time point i−1i-1i−1 survives to time point iii when τi=τi−1\tau_i=\tau_{i-1}τi​=τi−1​; and time-stamp equations are encoded additively. Lemma 3.8(i) reads aˉ∈Nn\bar a\in\mathbb N^naˉ∈Nn and adds j≤ℓij\le\ell_ij≤ℓi​. "Effectively computable" in Theorem 3.9(i) is not formalized. Part (ii) uses the output at index n−1n-1n−1 as the record of the line-11 increment to nnn; for n=0n=0n=0, the counter is initialized by line 2. Loop-entry states alone can skip counter values reached within one iteration.

The monitor is a state machine whose builds and outputs are computed only from its store of relations; it never consults the satisfaction relation or satisfying sets. A formalization in which line 7 reads the semantics would turn Theorem 3.9(i) into a restatement of Lemma 3.4, and is ruled out. A build whose input is missing stores nothing, so a monitor that silently fails would violate (ii).

Contributions welcome: the theory of automatic relations (reusable beyond this mission), the semantic halves of Lemmas 3.4–3.8, and the scheduling invariants.

Selected references

  • D. Basin, F. Klaedtke, S. Müller, E. Zălinescu, Monitoring metric first-order temporal properties, J. ACM 62(2), Article 15, 2015. https://doi.org/10.1145/2699444
14 thms2 active usersReviewed
🏆Completed
Functional Analysis·Captain: marwahaha

Relative independence of the separable quotient problemOpen Problem

Motivation

The separable quotient problem asks whether every infinite-dimensional Banach space admits a separable infinite-dimensional quotient. The selected statement isolates a negative result under the continuum hypothesis. The pinned manuscript supplies the research context.

Setting

A quotient is encoded as a surjective bounded linear map between Banach spaces over the same scalar field. The target considers both real and complex scalars.

Formalization target

The selected goal is OAI.SeparableQuotient.negative_main. Its central assertion is

CH⟹¬SQ(R)∧¬SQ(C).\mathrm{CH}\quad\Longrightarrow\quad\neg\mathrm{SQ}(\mathbb R)\land\neg\mathrm{SQ}(\mathbb C).CH⟹¬SQ(R)∧¬SQ(C).

The theorem states that, under the continuum hypothesis CH (the defined proposition that the cardinality of ℝ equals ℵ₁), the separable quotient assertion fails over both the real and the complex numbers, at any universe level u. Here SQ over a scalar field 𝕜 (ℝ or ℂ) asserts that every complete normed space X over 𝕜 in Type u that is not finite-dimensional has a separable quotient in the following sense: there exist a complete, separable, infinite-dimensional normed space Y over 𝕜, also in Type u, and a bounded 𝕜-linear map T from X to Y that is surjective. The conclusion is the conjunction of ¬SQ(ℝ) and ¬SQ(ℂ), so for each field there is an infinite-dimensional Banach space with no such bounded surjection onto an infinite-dimensional separable Banach space. The statement is admitted without proof in the source.

Significance and status

CH is an explicit assumption. The published goal does not state relative consistency, a positive model, or the complete independence assertion in the manuscript title. The target is currently Open on Prove2Me. The manuscript's mathematical argument and a machine-checked proof of the selected statement are separate deliverables.

Difficulty

The obstruction must rule out every bounded surjection onto every separable infinite-dimensional target space, rather than one proposed quotient.

Formalization scope

The exact published goal, its hypotheses and its referenced definition blocks specify the requested formalization. The explanatory formula above is a summary; all quantifiers and additional clauses in the linked statement remain required.

The available published material supplies this goal and its necessary definitions. Additional manuscript lemmas are not represented as attached milestones.

Selected references

  • OpenAI, Relative independence of the separable quotient problem, preprint, 2026. Manuscript.
  • OpenAI, accompanying formal statements, commit adc7f1241b42. Selected goal source.
5 thms2 active usersReviewed
PreviousPage 1 of 3Next

Get started

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

About Prove2Me

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

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me