Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Can Witnessing theorems lead to code extraction from proofs? (bounded arithmetics)

Mathematical logic

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

In bounded arithmetic (or bounded reverse mathematics) we study formal systems so weak that the structures of their proofs correspond to some known complexity classes such as PTIME, LOGSPACE or AC0.

Here I will refer to the astonishing work of Steven Cook and Phuong Nguyen, "Logical Foundations of Proof Complexity" - specifically, to the draft available here: cook-nguyen.pdf, as the original is non open-access. For motivation:

Conceptually the theory VC associated with a complexity class C can prove a given mathematical theorem if the induction hypotheses needed in the proof can be formulated using concepts from C. We are interested in trying to find the weakest class C needed to prove various theorems of interest in computer science.

The authors show that weak pigeonhole principle is not provable in theory VAC0VAC^0VAC0 corresponding to AC0AC^0AC0 complexity class, but it is provable in VTC0VTC^0VTC0, along with a formula denoting that for every sequence, a sorted sequence exists. Fermat's Little Theorem is not provable in VPTIMEVPTIMEVPTIME, condition prime factorization is not in PTIMEPTIMEPTIME.

In the area of bounded arithmetic, Witnessing theorems are studied, which roughly say that if a formula ∀x∃yφ(x,y)\forall x \exists y \varphi(x, y)∀x∃yφ(x,y) is provable in theory VCVCVC (for a complexity class CCC), then there exists a function fff of complexity CCC such that ∀xφ(x,f(x))\forall x \varphi(x, f(x))∀xφ(x,f(x)) is provable in VCVCVC.

So, that we can theoretically extract a real algorithm from a proof of a functional formula! The problem with these theorems are that their proofs typically involve cut elimination theorem or Herbrand's theorem, which say that something is possible to do, but in practice it's not really computationally feasible. As I don't have enough expertise to judge myself, it leads me to thinking that we won't really be able to implement a real code extraction tool from the proofs in these weak logics.

My question is: can we actually implement algorithm extraction from a proof of the Witnessing theorem? Maybe I'm wrong in thinking that the current proofs are not convertible to feasible computation? Maybe alternative proofs exist (there are at least 2 for V0V^0V0 (i.e. VAC0VAC^0VAC0) in the book above), which are computationally feasible? Maybe no feasible proof is known, but theoretically there might exist one?

I don't want to list all the technical definitions here, as it would require introducing the two-sorted logic and the bounded arithmetical hierarchy the authors use, which is not strictly essential to this question. But, as an example of a witnessing theorem for AC0:

At page 105 (116 of the pdf): Theorem 5.60 (Witnessing Theorem for V0). Suppose that φ(x→,y→,X→,Y→)\varphi (\overrightarrow x, \overrightarrow y, \overrightarrow X, \overrightarrow Y )φ(x,y​,X,Y) is a Σ0B\Sigma^B_0Σ0B​ formula such that V0⊢∀x→∀X→∃y→∃Y→φ(x→,y→,X→,Y→)V^0 \vdash \forall \overrightarrow x \forall \overrightarrow X\exists \overrightarrow y \exists \overrightarrow Y \varphi( \overrightarrow x, \overrightarrow y, \overrightarrow X, \overrightarrow Y )V0⊢∀x∀X∃y​∃Yφ(x,y​,X,Y) Then there are FAC0FAC^0FAC0 functions f1,…,fk,F1,…,Fmf_1, \dots , f_k, F_1, \dots , F_mf1​,…,fk​,F1​,…,Fm​ so that V0(f1,…,fk,F1,…,Fm)⊢∀x→∀X→φ(x→,f→(x→,X→),X→,F→(x→,X→))V^0(f_1, \dots , f_k, F_1, \dots , F_m) \vdash \forall \overrightarrow x \forall \overrightarrow X \varphi( \overrightarrow x , \overrightarrow f(\overrightarrow x, \overrightarrow X), \overrightarrow X, \overrightarrow F ( \overrightarrow x, \overrightarrow X)) V0(f1​,…,fk​,F1​,…,Fm​)⊢∀x∀Xφ(x,f​(x,X),X,F(x,X))

Statement and context adapted from MathOverflow · ruplet

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Prime number
An integer greater than 1 whose only positive divisors are 1 and itself. Examples include 2, 3, 5 and 7.

Topics : lo.logic · reverse-math · theories-of-arithmetic · bounded-arithmetic

Authors listed by the source : ruplet

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : May 12, 2025

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni