Alphabeta Math
Pipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

✓ 5 results · all verified · 4 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 1 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Approximation Algorithms and Gap Reductions: Examples and Counterexamples

1 · Prerequisites

2 · Summary

These examples check the page's definitions and reductions on small inputs. A concrete four-element set-cover instance runs the weighted greedy algorithm to completion, with OPT=4, unit charges, and the harmonic bound 25/3; the pointwise charge bounds are evaluated with the remaining count of each round. The four-vertex square metric gives an MST of weight 3, a doubled-tree Euler walk of cost 6, and a first-visit shortcut tour of cost 4, which is also optimal; the closing shortcut replaces a segment of length 3 with an edge of length 1.

Conditional expectation is run by hand on the triangle: the initial expectation is 3/2, fixing the first vertex leaves candidates 1 and 2 for the second, and either choice for the third returns a cut of two edges. The clause-literal graph of the two-clause formula (x or x or x) and (not x or not x or not x) has six vertices but independent-set number one, equal to the formula's maximum satisfied-clause count, exhibiting an L-reduction with both constants equal to one. A four-vertex path shows that a maximal matching of the middle edge yields the optimal cover of size two while the two outer edges realize the factor-two bound, refuting the claim that exact NP-hardness rules out constant-factor approximation.

3 · Logical flowchart

4 · Definitions, theorems and proofs

None yet.

5 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passjudge pass (gpt-6.1-sol)audited 2026-10-02Open item page →

A four-element greedy set-cover charge calculation

Example

Take U={1,2,3,4}, S1={1,2} of cost 2, S2={3,4} of cost 2, and S3=U of cost 5. Greedy chooses S1 then S2 (input-order tie), charges each element 1, and costs 4=OPT. The pointwise bounds OPT/4, OPT/3, OPT/2, OPT are conservative: the actual charges satisfy them with equality only at the first index, and the correct uncovered count must be used at each round.

Facts & Assumptions

Given: The weighted set-cover instance with universe U={1,2,3,4}, listed sets S1={1,2}, S2={3,4}, S3=U of costs 2,2,5, and the weighted greedy algorithm run in the listed order.

[F1]

The greedy algorithm chooses a listed set of positive newly covered count minimizing cost divided by that count, ties going to the smallest input index, and charges every newly covered element that same ratio; the total cost of the chosen cover is the sum of all charges. (Weighted greedy set cover and element charges)

[F2]

With r≥1 elements uncovered before a step, the chosen price is at most OPT/r, and the j-th element in first-coverage order receives charge at most OPT/(n−j+1) for a universe of size n. (The greedy charge on each newly covered element is at most OPT divided by the remaining count)

[F3]

For this instance the greedy cover has total cost at most Hn OPT with Hn=∑j=1n1/j and H0=0. (Weighted greedy set cover has approximation factor H_n, Harmonic numbers for set-cover analysis)

Verification

technique · direct
1.1F1givenalgebra

The cover {S1,S2} has cost 2+2=4. Every cover containing S3 costs at least 5, since costs are nonnegative; every cover not containing S3 must contain S1 to cover element 1 and S2 to cover element 3, hence costs at least 4. Therefore the minimum cover cost is OPT=4.

2.1F1step 1.1algebra

Initially all four elements are uncovered, so r=4 and the ratios are 2/2=1 for S1, 2/2=1 for S2 and 5/4 for S3; the minimum 1 is attained by both S1 and S2, and the input-order tie rule selects S1, which charges 2/2=1 to each of the elements 1 and 2. With r=2 elements {3,4} uncovered, the ratios are 2/2=1 for S2 and 5/2 for S3; the algorithm selects S2 and charges 1 to each of 3 and 4. The uncovered set is then empty, so the algorithm stops with cover {S1,S2} of total cost 4=OPT.

3.1F2F3step 2.1algebra

At the first round r=4 and the chosen price 1 satisfies 1≤OPT/4=1; at the second round r=2 and 1≤OPT/2=2. Ordering the elements by first coverage, ties by input order, gives 1,2,3,4, so the four charges are all 1 and satisfy 1≤OPT/(4−j+1) for j=1,2,3,4, namely 1≤4/4, 1≤4/3, 1≤4/2, 1≤4/1; the first of these is an equality and the other three are strict. The sum of the charges is 4≤H4 OPT=(25/12)⋅4=25/3 by [F3].

4.1F2step 3.1algebra∎

Thus the total greedy cost here equals the optimum 4, the pointwise charge bound of [F2] holds at each element with the remaining count actually in force, and the harmonic bound H4 OPT=25/3 is strictly larger than both the greedy cost and the optimum; the example also shows the two bound forms at work: the per-round bound OPT/r uses the remaining count r of that round, while the per-element bound OPT/(n−j+1) is the index-based consequence.

ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passjudge pass (gpt-6.1-sol)audited 2026-10-02Open item page →

The clause graph is an L-reduction with constants one and one

Example

On the Max-3SAT-to-independent-set clause-literal graph, the optimum values are equal and every independent set of size k decodes to an assignment satisfying at least k clauses. Hence this explicit map is an L-reduction with a=b=1, and any independent-set approximation ratio transfers with the same relative error to Max-3SAT.

Facts & Assumptions

Given: The clause-literal consistency construction that carries a 3-CNF formula F with m clauses of three literal occurrences to a simple graph GF with 3m vertices, with α(GF)=OPT⁡Max3SAT(F) and with a polynomial-time decoder from independent sets to assignments.

[F1]

Vertices of GF are the literal occurrences, vertices in a clause are pairwise adjacent, vertices from distinct clauses are adjacent exactly when their literals are complementary, α(GF)=OPT⁡Max3SAT(F) for every such formula, and an independent set of size k yields in polynomial time an assignment satisfying at least k clauses. (Clause-literal consistency graph preserves the Max-3SAT optimum)

[F2]

An L-reduction from optimization problem Π to Γ consists of polynomial-time maps f and g and constants a,b>0 with OPT⁡Γ(f(x))≤aOPT⁡Π(x) and ∣OPT⁡Π(x)−val⁡Π(g(x,y))∣≤b∣OPT⁡Γ(f(x))−val⁡Γ(y)∣. (L-reductions between optimization problems)

[F3]

If Π L-reduces to Γ with constants a,b, then a feasible Γ solution of relative error at most ϵ decodes to a Π solution of relative error at most abϵ whenever the target optimum is positive, and zero target optimum forces an optimal decoded solution; consequently L-reductions transfer approximation quality. (L-reductions compose and transfer PTAS and APX-hardness)

[F4]

Both Max-3SAT and maximum independent set are maximization problems in the finite-instance model: the value of a feasible solution is nonnegative, and the optimum is the attained maximum, so a feasible solution's quality is measured by how far its value falls below the optimum. (Optimization problems and approximation ratios, Clique, independent set, and vertex cover decision problems)

Verification

technique · direct
1.1F1F2F4givenconstruct

Take the instance map f(F):=GF of [F1], which runs in polynomial time and produces a finite simple graph whose independent sets have value val⁡Γ(I)=∣I∣. Take the decoder g(F,I) of [F1], which from every independent set I of GF produces in polynomial time an assignment of F satisfying at least ∣I∣ clauses, of value val⁡Π(g(F,I)) equal to its satisfied-clause count. Both objectives are maximization with nonnegative values by [F4].

2.1F1step 1.1algebra

The first L-reduction inequality holds with a=1: by the exact optimum equality of [F1], OPT⁡Γ(f(F))=α(GF)=OPT⁡Max3SAT(F)=1⋅OPT⁡Π(F) for every 3-CNF formula F with three literal occurrences per clause.

3.1F1step 1.1step 2.1algebra

The second L-reduction inequality holds with b=1: writing t:=val⁡Π(g(F,I)) for the number of clauses satisfied by the decoded assignment, [F1] gives t≥∣I∣, and therefore ∣OPT⁡Π(F)−val⁡Π(g(F,I))∣=OPT⁡Max3SAT(F)−t≤OPT⁡Max3SAT(F)−∣I∣=α(GF)−∣I∣=∣OPT⁡Γ(f(F))−val⁡Γ(I)∣, where the last step uses val⁡Γ(I)=∣I∣ and step 2.1.

4.1F2F3step 2.1step 3.1algebra

Steps 2.1 and 3.1 exhibit the maps and constants required by [F2], so (f,g,1,1) is an L-reduction from Max-3SAT to maximum independent set. By the transfer statement [F3], a feasible independent set with relative error at most ϵ, that is val⁡Γ(I)≥(1−ϵ)α(GF), decodes to a Max-3SAT assignment with relative error at most 1⋅1⋅ϵ=ϵ; when α(GF)=0 the decoded assignment is optimal.

5.1F1step 2.1step 4.1algebra

A concrete formula is F=(x∨x∨x)∧(¬x∨¬x∨¬x) with m=2 clauses of three literal occurrences. No assignment satisfies both clauses: x true satisfies only the first and x false satisfies only the second, so OPT⁡Max3SAT(F)=1. The graph GF has 6 vertices in two clause clusters of three; an independent set takes at most one vertex per cluster, and every vertex of the first cluster is complementary to every vertex of the second, so no independent set has size 2, while a single vertex is independent; hence α(GF)=1=OPT⁡Max3SAT(F), and an independent set of size 1 decodes to an assignment satisfying at least 1 clause.

6.1F3step 4.1step 5.1algebra∎

The explicit clause-literal construction therefore is an L-reduction with constants a=b=1: the optimum values agree, and every independent set of size k decodes to an assignment satisfying at least k clauses, so errors transfer unchanged and an independent-set approximation ratio carries over to Max-3SAT with the same relative error.

CounterexampleConstruction: AI-generatedVerification: AI-adaptedprecheck passjudge pass (gpt-6.1-sol)audited 2026-10-02Open item page →

Minimum vertex cover refutes the exact-hardness approximation claim

Statement refuted

Minimum vertex cover has an NP-complete exact threshold problem and a deterministic polynomial-time 2-approximation. For the three-edge path P4, a maximal middle-edge matching returns the two middle vertices, the matching lower bound is one, and a maximal matching of the two outer edges returns all four vertices; the general theorem, not this single graph, establishes the uniform factor two. This refutes the unqualified claim that exact NP-hardness rules out every constant-factor approximation; it does not refute a conditional claim that no approximation exists unless P=NP.

Facts & Assumptions

Given: The universal claim under examination, and the minimum vertex cover problem on finite simple graphs.

[F1]

The claim under examination is: if exact optimization of a problem is NP-hard, then no polynomial-time constant-factor approximation exists. (False: exact NP-hardness rules out constant-factor approximation)

[F2]

VERTEX COVER, deciding whether a finite simple graph has a vertex cover of size at most k, is NP-complete, where a vertex cover meets every edge. (INDEPENDENT SET and VERTEX COVER are NP-complete, Clique, independent set, and vertex cover decision problems)

[F3]

Every maximal matching in a finite simple graph gives, in deterministic polynomial time, a vertex cover C consisting of its endpoints with ∣C∣=2∣M∣≤2OPT⁡VC; a matching is a set of pairwise disjoint edges, and a maximal matching is contained in no strictly larger matching. (A maximal matching gives a 2-approximate minimum vertex cover, Matchings, saturated vertices, maximal and maximum matchings, perfect matchings and ν(G))

[F4]

A finite simple graph is a pair (V,E) with finite vertex set and edges the two-element subsets of distinct vertices. (A finite simple graph is a finite vertex set together with a set of two-element vertex subsets)

Counterexample

technique · counterexample
1.1F1F2F3givenalgebra

Minimum vertex cover has NP-hard exact optimization: by [F2] its threshold problem is NP-complete, so a polynomial-time exact optimizer would decide an NP-complete problem and imply P=NP. Yet [F3] gives a deterministic polynomial-time algorithm that always returns a vertex cover of size at most 2OPT⁡VC. Thus the existence of a constant-factor approximation is compatible with exact NP-hardness and refutes the unqualified claim of [F1]; it does not establish or refute a lower bound conditioned on P≠NP.

2.1F3F4step 1.1algebra

The four-vertex path P4 with vertices v1,v2,v3,v4 and edges v1v2,v2v3,v3v4 exhibits the two matchings. The single edge v2v3 is a maximal matching whose endpoint set {v2,v3} is a vertex cover: it meets v1v2 at v2, v2v3 itself, and v3v4 at v3. One vertex meets at most two of the three edges, so no cover of size one exists and OPT⁡VC(P4)=2; the matching lower bound is ∣M∣=1≤2. Scanning edges in the order v1v2,v2v3,v3v4 instead inserts the disjoint outer edges v1v2 and v3v4, a maximal matching whose endpoint set is all of V with ∣C∣=4=2⋅OPT⁡VC(P4), realizing the factor-two upper bound on this graph.

3.1F1F2F3step 1.1step 2.1algebra∎

Minimum vertex cover has NP-hard exact optimization and a polynomial-time factor-two approximation by step 1.1, so it refutes the unqualified claim of [F1]. The path in step 2.1 illustrates the tightness of the factor but does not establish the uniform ratio; that is the content of the general theorem in [F3]. A conditional claim that approximation is impossible unless P=NP is not refuted here.

ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passaudited 2026-10-02Open item page →

Conditional expectation derandomizes Max-Cut on a triangle

Example

Run the conditional-expectation algorithm on K3 with vertices v1,v2,v3 in that order. The initial expected cut size is 3/2. Fix v1=0. Setting v2=0 leaves conditional expectation 1, while setting v2=1 gives 2, so choose v2=1. The two choices for v3 then both give final cut size 2. Thus the returned cut has 2≥3/2 edges.

Facts & Assumptions

Given: The complete graph K3 on V={v1,v2,v3} with edge set E={v1v2,v2v3,v1v3}, so m=3, and the independent fair bits b1,b2,b3 of the conditional-expectation algorithm applied in the vertex order v1,v2,v3.

[F1]

For a graph with m edges the independent uniform placement crosses m/2 edges in expectation, and every placement crosses at most m edges, so OPT⁡MaxCut≤m. (A random cut crosses half the edges in expectation)

[F2]

The conditional-expectation algorithm fixes the vertices one at a time, choosing at each step the value of the next bit whose conditional expected final cut size is larger, with ties resolved by the value 0; its conditional expectation is the average of the cut size over the equally weighted completions, and it is computable from the finished and unfinished edge contributions. (Conditional expectation yields a deterministic half-approximation for Max-Cut)

[F3]

For Max-Cut the objective is the number of crossing edges and OPT⁡MaxCut is the attained maximum over the finitely many placements. (Optimization problems and approximation ratios)

Verification

technique · direct
1.1F1F2givenconstruct

For K3 the edge set has m=3 elements, so by [F1] the initial conditional expectation over no fixed bits is the expected cut size m/2=3/2; the algorithm of [F2] now fixes b1,b2,b3 in order.

2.1F2step 1.1algebra

At the first step every one of the three edges has at least one unfixed endpoint, so each contributes 1/2 to both candidates for b1 and both conditional expectations equal 3/2; the tie rule of [F2] selects b1=0. With b1=0 fixed, the candidate b2=0 finishes the edge v1v2 as non-crossing and leaves v2v3 and v1v3 with an unfixed endpoint each, giving conditional expectation 0+12+12=1, while the candidate b2=1 makes v1v2 crossing and again leaves the other two edges half-crossing, giving 1+12+12=2; since 2>1 the algorithm fixes b2=1.

3.1F2step 2.1algebra

With b1=0 and b2=1 fixed, the candidate b3=0 gives crossing edges v1v2 and v2v3 but not v1v3, a cut size of 2, and the candidate b3=1 gives crossing edges v1v2 and v1v3 but not v2v3, also a cut size of 2; both conditional expectations equal the actual final cut size because every edge is then finished, and the tie rule fixes b3=0.

4.1F1F3step 1.1step 3.1algebra∎

The returned placement (b1,b2,b3)=(0,1,0) has cut {v1,v3} against {v2} with crossing edges v1v2 and v2v3, so its cut size is 2≥3/2=m/2, and this equals OPT⁡MaxCut(K3)=2, since a triangle placement crosses at most two of its three edges and the displayed cut crosses exactly two. The instance therefore realizes the conditional-expectation guarantee with the initial expectation 3/2.

ExampleConstruction: AI-generatedVerification: AI-adaptedprecheck passjudge pass (gpt-6.1-sol)audited 2026-10-02Open item page →

Double-tree shortcutting on the four-vertex square metric

Example

Let the four vertices be A,B,C,D, with the four cyclic side lengths AB=BC=CD=DA=1 and diagonals AC=BD=2. For T={AB,BC,CD}, the doubled-tree Euler walk A-B-C-D-C-B-A has cost 6. First-visit shortcutting gives the tour A-B-C-D-A of cost 4; in particular the closing edge D-A has length 1, at most the bypass D-C-B-A of length 3. The MST has weight 3, the optimum tour has weight 4, and the output meets the 2⋅MST bound.

Facts & Assumptions

Given: The four-vertex graph with distances d(A,B)=d(B,C)=d(C,D)=d(D,A)=1 and d(A,C)=d(B,D)=2, the tree T={AB,BC,CD}, and the doubled-tree algorithm.

[F1]

A metric-TSP instance has nonnegative symmetric rational lengths with d(u,u)=0 and the triangle inequality d(u,w)≤d(u,v)+d(v,w), a tour is a cyclic ordering with cost the sum of consecutive lengths including the closing edge, and all ties are resolved by fixed orders. (Metric traveling-salesperson problem)

[F2]

A spanning tree of a graph is a spanning connected acyclic subgraph, its weight is the sum of its edge lengths, and a tree on n≥1 vertices has exactly n−1 edges. (Spanning trees of a graph, Real edge-weighted graphs, total tree weight and minimum spanning trees, A tree on n≥1 vertices has n−1 edges)

[F3]

Doubling the edges of a spanning tree and shortcutting an Euler circuit in first-visit order yields a Hamiltonian tour of cost at most 2w(T), with each shortcut edge bounded by the length of the walk segment it replaces. (Euler-tour shortcutting of a doubled tree does not increase metric cost)

[F4]

A minimum spanning tree T satisfies w(T)≤OPT⁡TSP, and the double-tree algorithm returns a tour of cost at most 2w(T)≤2OPT⁡TSP in polynomial time. (A minimum spanning tree lower-bounds metric-TSP optimum, Double-tree shortcutting is a 2-approximation for metric TSP)

Verification

technique · direct
1.1F1givenalgebra

The six stated distances are nonnegative and symmetric with d(u,u)=0; every distance between distinct vertices is 1 or 2, so for any three vertices with u≠v≠w one has d(u,v)+d(v,w)≥1+1=2≥d(u,w), and inserting v=u or v=w gives the equality d(u,w)=d(u,v)+d(v,w). The triangle inequality therefore holds and the data form a metric-TSP instance on four vertices.

2.1F2step 1.1algebra

The edge set T={AB,BC,CD} has 4 vertices, 3 edges, and forms the path A−B−C−D, hence is connected and acyclic, a spanning tree; its weight is w(T)=1+1+1=3. Every spanning tree of a four-vertex graph has exactly 3 edges by [F2] and every edge length is at least 1, so every spanning tree has weight at least 3; therefore T is a minimum spanning tree and w(T)=3.

2.2F1step 1.1algebra

Every tour is a cyclic ordering of the four vertices and consists of four edges, each of length at least 1, so every tour has cost at least 4; the cyclic ordering A−B−C−D−A has cost 1+1+1+1=4. Hence OPT⁡TSP=4.

3.1F3step 2.1algebra

Doubling the three tree edges produces the multigraph with edges AB,BA,BC,CB,CD,DC; it is connected and the degrees are deg⁡(A)=2, deg⁡(B)=4, deg⁡(C)=4, deg⁡(D)=2, all even. The closed walk A−B−C−D−C−B−A uses each of the six edges exactly once, so it is an Euler circuit of the doubled multigraph, with total cost 1+1+1+1+1+1=6=2w(T).

4.1F3step 2.2step 3.1algebra

The vertices occur for the first time along this walk in the order A,B,C,D, so first-visit shortcutting yields the tour A−B−C−D−A. Its segments are the walks A→B, B→C, C→D of length 1 each and the return segment D→C→B→A of length 3; the shortcut edge DA has length 1≤3, the sum of the segment lengths, so the shortcut tour has cost 1+1+1+1=4≤6=2w(T), and by step 2.2 it equals OPT⁡TSP.

5.1F4step 2.2step 4.1algebra∎

The computed tree satisfies w(T)=3≤4=OPT⁡TSP, in agreement with the minimum-spanning-tree lower bound, and the shortcut tour has cost 4≤6=2w(T)≤2OPT⁡TSP=8, so this instance realizes the double-tree guarantee of [F4] with a strict improvement over the doubled walk.

Sources