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.

✓ 6 results · all verified · 5 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.

Power and sample size

1 · Prerequisites

2 · Summary

Scope

A planning record fixes the statistical model, null and target alternative, size and power requirements, allocation, sidedness, integer candidate sizes, and any precision target. Its least-size rule is defined over the full feasible set. Given its required exact evaluator, which terminates at every positive size, the unbounded positive-integer search visits sizes in ascending order and terminates at the least feasible size whenever one exists. A valid finite completeness bound or global infeasibility certificate makes a full-domain none output sound; no universal terminating black-box infeasibility test is claimed. The separate finite-candidate algorithm retains its supplied-list guarantee.

For independent N(μ,σ2) observations with known σ>0, the page proves the exact size, power, and least positive integer sample size for the upper-tail one-sided z-test. A second result gives the exact two-sided power by adding both rejection tails. Effect and variance sensitivity are shown on the examples page.

The normal claims are conditional on that stated model; they do not justify its adequacy for an application. Unknown-variance t designs and other sampling laws need their own power derivations. The required finite-population and random-assignment pages supply design-based contexts, not Gaussian error laws; the weak-convergence prerequisite is not used to replace the exact finite-sample normal calculation.

3 · Logical flowchart

4 · Definitions, theorems and proofs

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Standard-normal CDF, tail, and quantile identities for power calculations

Statement

Assume AC. Let Z∼N(0,1) and Φ(x)=P(Z≤x). Then Φ is continuous and strictly increasing, with limits 0 and 1 at −∞ and +∞; P(Z=x)=0 for every x∈R; and Φ(−x)=1−Φ(x). For each q∈(0,1), there is a unique real zq with Φ(zq)=q, and z1−q=−zq, in particular z1/2=0.

Facts & Assumptions

Given: AC, the standard normal law N(0,1), and its cumulative distribution function Φ.

[A1]

The standard-normal law is constructed under AC, and AC implies countable choice. The Axiom of Choice Standard normal and normal laws The Axiom of Choice implies countable choice

[F1]

The standard-normal law is the probability measure with density g(t)=e−t2/2/2π; this density is positive, Borel, and has integral one. Standard normal and normal laws The standard normal density has total mass one

[F3]

A continuous real-valued function on a nonempty compact interval attains finite maximum and minimum values. Extreme value theorem: a continuous real function on a nonempty compact subset of R attains a greatest and a least value

[F4]

Probability is continuous on increasing event sequences and on decreasing event sequences, the latter because all probabilities are finite. Continuity from below for measures Continuity from above when one set has finite measure

[F7]

Substitution u=−t in a convergent improper integral is valid for the monotone differentiable bijection t↦−t; its derivative reverses orientation. Change of variable in an improper integral

[F8]

If A⊆B, then P(B∖A)=P(B)−P(A), and P(Ac)=1−P(A). Basic identities for a probability measure

[F9]

The CDF is Φ(x)=P(Z≤x). Cumulative distribution function of a real random variable

Proof

1.1A1F1F2F3F8F9algebra

For a<b, [F8] and [F9] give Φ(b)−Φ(a)=P(a<Z≤b)=∫(a,b]g(t) dt. By [F2] and [F3], g has a minimum c on [a,b]; [F1] makes c>0, so Φ(b)−Φ(a)≥c(b−a)>0, proving strict increase. For a fixed x, [F2] and [F3] bound g by some M<∞ on [x−1,x+1]; whenever ∣y−x∣<1, ∣Φ(y)−Φ(x)∣≤M∣y−x∣, proving continuity at x. Since x was arbitrary, Φ is continuous.

2.1F1F4F5step 1.1choose

The events {Z≤k} increase to the whole space and {Z≤−k} decrease to the empty set as positive integers k→∞. By [F1] and [F4], Φ(k)→1 and Φ(−k)→0. Given q∈(0,1), choose k with Φ(−k)<q<Φ(k); [F5] on [−k,k] gives zq with Φ(zq)=q, and strict increase from step 1.1 makes it unique.

3.1A1F1F6F7F8step 2.1algebra∎

By [A1] and [F6], P(Z=x)=∫{x}g dλ=0 for every x. The density g is even; applying [F7] gives Φ(−x)=∫x∞g(t) dt. Since P(Z=x)=0, [F8] identifies this upper tail with 1−Φ(x). Thus Φ(−x)=1−Φ(x). Taking x=zq and using the uniqueness in step 2.1 gives Φ(−zq)=1−q and z1−q=−zq; at q=1/2, this yields z1/2=0.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

The mean of a finite independent normal sample is normal

Statement

Assume AC. Let n≥1, and let X1,…,Xn be mutually independent real random variables on one probability space, each with law N(μ,σ2) for a fixed μ∈R and σ≥0. Then Xˉn=n−1∑i=1nXi has law N(μ,σ2/n). If σ>0, then for every μ0∈R, n(Xˉn−μ0)σ∼N ⁣(n(μ−μ0)σ,1).

Facts & Assumptions

Given: AC, a positive integer n, mutually independent X1,…,Xn, and their common normal law N(μ,σ2) with σ≥0.

[A1]

The standard normal and its affine normal laws are defined under AC. The Axiom of Choice Standard normal and normal laws

[F0]

The characteristic function of a real random variable X is φX(t)=E[eitX] for real t. Characteristic function of a real random variable

[F1]

If X∼N(m,s2), then its characteristic function is φX(t)=exp⁡(imt−s2t2/2). Characteristic function of a normal law

[F2]

For a finite mutually independent family, the characteristic function of the sum is the product of the individual characteristic functions, and φaX+b(t)=eitbφX(at). Independent random elements Characteristic functions under affine maps and independent sums

[F3]

Borel probability laws on R with the same characteristic function are equal. Uniqueness of a law from its characteristic function

[F4]

The complex exponential satisfies ez+w=ezew, so finite repeated products combine by adding exponents. exp⁡(z+w)=exp⁡z exp⁡w, and the complex exponential extends the real exponential

Proof

1.1A1F0F1F2F4algebra

By [F0] and [F2], for every t∈R, φXˉn(t)=φ∑iXi(t/n)=∏i=1nφXi(t/n)=[exp⁡ ⁣(iμt/n−σ2t2/(2n2))]n=exp⁡ ⁣(iμt−σ2t2/(2n)), where [F1] supplies each factor and [F4] combines the n exponents.

2.1A1F0F1F2F3step 1.1algebra∎

By [F1], the last expression is the characteristic function of N(μ,σ2/n). Uniqueness [F3] proves Xˉn∼N(μ,σ2/n). When σ>0, the affine identity in [F2] applied to n(Xˉn−μ0)/σ gives the stated shifted N(⋅,1) law. The same calculation covers σ=0, where both laws are point masses at their respective means.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

A nonempty set of positive integers has a least member

Statement

Let S⊆N≥1 be nonempty. Then there is a unique n∗∈S such that n∗≤n for every n∈S.

Facts & Assumptions

Given: A nonempty set S⊆N≥1.

[F1]

The positive integers are a subset of N. The natural numbers N (von Neumann)

[F2]

Every nonempty subset of N has a least element. The well-ordering principle

Proof

1.1givenF1

By [F1], S⊆N; by the Given, S is nonempty.

2.1step 1.1F2algebra∎

Apply [F2] to obtain a least member n∗∈S. If n∗′ were another least member, then n∗≤n∗′ and n∗′≤n∗, hence n∗=n∗′ by antisymmetry.

LemmaStatement: AI-adaptedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Ceilings give the least positive integer meeting a real threshold

Statement

Identify integers and naturals with their canonical copies in the reals. For every real x, put ⌈x⌉=−⌊−x⌋, using Integer part: for every real x there is exactly one integer m with m≤x<m+1. Then ⌈x⌉ is an integer, x≤⌈x⌉, and ⌈x⌉≤m⟺x≤m(m∈Z). For a≥0, the least positive integer n with n≥a is max⁡{1,⌈a⌉}. In particular ⌈0⌉=0, and ⌈k⌉=k for every integer k.

Facts & Assumptions

Given: Real x, integer m, and, for the positive-size claim, real a≥0.

[F1]

Every real t has a unique integer k with k≤t<k+1, denoted ⌊t⌋. Integer part: for every real x there is exactly one integer m with m≤x<m+1

[F2]

Integers form an ordered ring. Every nonnegative integer is the image of a unique natural, and this embedding preserves order, addition, zero and one. The integers form a totally ordered ring, The naturals embed in the integers

[F3]

For naturals u,v, u<v exactly when u+1≤v; in particular a positive natural is at least one. Discreteness: σ(n) is the immediate successor

[F4]

Real order is total and transitive, and addition preserves strict order; adjoining the equality case gives the nonstrict version. Ordered field, Order is preserved by adding a constant and by adding inequalities

Proof

1.1F1F2F4givenconstruct

Apply [F1] to −x and write k=⌊−x⌋, c=−k. By [F2], c is an integer. Negating k≤−x<k+1 using [F4] gives c−1<x≤c.

1.2F1F2F4algebra

For an integer k, [F1] applied to −k≤−k<−k+1 gives ⌊−k⌋=−k, so ⌈k⌉=k. This includes k=0.

2.1F2F3F4step 1.1algebra

Every positive integer d is at least one: by [F2] it is the image of a natural, which is nonzero because the embedding is injective and preserves zero, and [F3] gives the conclusion. If an integer m satisfies x≤m but m<c, then the positive integer c−m is at least one. Thus m≤c−1<x≤m by step 1.1, a contradiction. Therefore x≤m implies c≤m; conversely c≤m implies x≤m because x≤c. This proves the equivalence with c=⌈x⌉.

3.1F2F4step 1.1step 2.1algebra∎

For a≥0, step 1.1 gives ⌈a⌉≥a≥0. Thus n∗=max⁡{1,⌈a⌉} is an integer at least one, hence a positive natural under [F2], and n∗≥a. If a positive integer n satisfies n≥a, step 2.1 gives n≥⌈a⌉ and step 2.1's discreteness argument gives n≥1. Hence n≥n∗, proving leastness.

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Power and sample-size planning specifications

Definition

Let Ed=((Xd,Ad),Θ,(Pθ,d)θ∈Θ) be the specified statistical experiment for each candidate plan d in a nonempty or empty candidate set D. A plan records its sampling or assignment law, a permitted allocation vector n(d)=(n1,…,ng) for an integer g≥1, with nonnegative integer counts nj, and its total sample size n(d)=∑j=1gnj∈N≥1. Which allocations are permitted, including any positive lower bounds, capacity limits, or costs, is part of D.

For a test plan, fix disjoint nonempty hypotheses Θ0,Θ1⊆Θ, a measurable randomized test function φd:Xd→[0,1] (Randomized tests), and a nonempty target set Θ⋆⊆Θ1. Its power at θ is πd(θ)=Eθ,d[φd(X)], its size is sd=sup⁡θ∈Θ0πd(θ), and its type-II error at a specified alternative θ is 1−πd(θ) (Test size and power). A target effect is the declared alternative parameter or contrast, for example δ=μ1−μ0 in a scalar location model. The sidedness is fixed by the test's predeclared rejection region: an upper or lower tail, or a stated two-sided region such as {∣Td−c0∣>c}; no conversion from a one-sided cutoff to a two-sided cutoff is implicit.

A test-based request specifies nominal size α∈[0,1], target type-II error β∈[0,1], and the target set Θ⋆. A plan meets it when sd≤α and πd(θ)≥1−β for every θ∈Θ⋆, together with every other declared design constraint.

An optional precision request specifies a scalar estimand ψ:Θ→R, measurable endpoint functions Ld,Ud:(Xd,Ad)→(R,B(R)) with Ld≤Ud and interval Cd(X)=[Ld(X),Ud(X)], a target set Θ⋆, coverage target 1−γ with γ∈[0,1], maximum width w>0, and width assurance 1−η with η∈[0,1]. It is met when, for every θ∈Θ⋆, Pθ,d{ψ(θ)∈Cd(X)}≥1−γandPθ,d{Ud(X)−Ld(X)≤w}≥1−η. Thus precision is a property of the stated interval procedure and sampling law, not just a target effect label.

Let F⊆D be the plans meeting all selected test, precision, allocation, and resource conditions. The planned sample size is none if F=∅, and otherwise is the least integer in {n(d):d∈F}. Among plans tied at that size, the specification may return any one or a declared tie-breaking choice. The definition is an extensional selection rule over its declared candidates; a finite search algorithm is a separate procedure.

Remarks

The condition that a plan meets a target is always tied to its declared model, observation and assignment laws, test or interval, effect, allocation, sidedness, and constraints. No model-adequacy or universal power guarantee follows from the planning record.

The least-size or none characterization is extensional on the full candidate set. Operational evaluation over all positive sizes is supplied by Search over all positive sample sizes with explicit stopping certificates and its separate correctness theorem. Its ascending branch requires a feasible size to terminate; reporting none over the whole domain requires a sound global certificate. The finite-list algorithm retains its distinct supplied-list guarantee.

PropositionStatement: Literature-sourcedProof: AI-adaptedprecheck passOpen item page →

Both tails determine power for the known-variance two-sided normal z-test

Statement

Assume AC. Let X1,…,Xn be mutually independent with common law N(μ,σ2), where n≥1 and σ>0. For the simple null H0:μ=μ0 against the two-sided alternative H1:μ≠μ0, let Zn=n(Xˉn−μ0)/σ, let cα=z1−α/2 for α∈(0,1), and reject when ∣Zn∣>cα. This test has size α. At μ=μ0+δ, where δ∈R, its rejection probability (the power function evaluated at this parameter) is 1−Φ(cα−λ)+Φ(−cα−λ),λ=n δσ. For δ≠0 this is power at the stated alternative; for δ=0 it is the null rejection probability. The first term is the upper-tail rejection probability and the second is the lower-tail rejection probability.

Facts & Assumptions

Given: AC; the independent normal sample and parameters in the Statement; the simple null, the two-sided alternative, and the stated symmetric rejection region.

[A1]

Assume AC, as required by the Gaussian-law convention. It also supplies countable choice: apply AC to the family of values of any sequence of nonempty sets and compose the resulting choice function with that sequence. This discharges the countable-choice premise in [F5]. The Axiom of Choice The Axiom of Countable Choice (ACω) The Axiom of Choice implies countable choice

[F1]

The standardized sample mean has law N(λ,1) at μ=μ0+δ, and N(0,1) at the null; these normal laws are affine shifts of the standard normal. The mean of a finite independent normal sample is normal Standard normal and normal laws

[F2]

Φ has unique quantiles, is strictly increasing, is symmetric about zero, and has no atoms. Standard-normal CDF, tail, and quantile identities for power calculations

[F3]

The sample-mean observation with its parameter-indexed probability laws is a statistical experiment. Statistical experiments

[F4]

A randomized test has a measurable rejection-probability function φ; here it is the indicator of the two-sided rejection region. Randomized tests

[F6]

Size is the null rejection probability for this singleton null, and the power function is the rejection probability under each parameter. Test size and power

Proof

1.1A1F1F2F3F4F5givenalgebra

By [A1], countable choice is available for the Borel-measurability supplier in [F5]. The affine map T(x)=n(x−μ0)/σ is continuous, so the sample-mean rejection region R={x∈R:∣T(x)∣>cα}=T−1((−∞,−cα)∪(cα,∞)) is Borel. Its indicator φ=1R is measurable: preimages of Borel sets in [0,1] are among ∅,R,Rc,R. By [F5], it defines a randomized test in the experiment [F3], and φ(Xˉn)=1{∣Zn∣>cα}. By [F1], under H0 the statistic Zn has law N(0,1). Since 1−α/2>1/2, [F2] gives cα>0, and the two rejection tails are disjoint.

2.1F2F6step 1.1algebra

Under the null, the probability of the upper tail is 1−Φ(cα)=α/2, and the probability of the lower tail is Φ(−cα)=α/2 by symmetry and the quantile identity. Their sum is α, proving the test size.

3.1F1F2step 1.1algebra∎

Under μ=μ0+δ, [F1] gives Zn∼N(λ,1). Thus P(Zn>cα)=1−Φ(cα−λ), while P(Zn<−cα)=Φ(−cα−λ); the no-atom clause in [F2] justifies the strict lower tail. The two events are disjoint by step 1.1, so their probabilities add to the stated power-function value.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Exact power and least sample size for a known-variance normal z-test

Statement

Assume AC. Let X1,…,Xn be mutually independent with common law N(μ,σ2), where n∈N≥1, σ>0, and μ∈R. Fix μ0∈R, α,βII∈(0,1), and δ>0, and put μ1=μ0+δ. Observe Xˉn=n−1∑iXi in the one-dimensional experiment with law N(μ,σ2/n). For the upper-tail test of H0:μ≤μ0 against H1:μ>μ0 with rejection rule φn(x)=1 ⁣{n(x−μ0)σ>z1−α}, the test size is α, and its power at any μ is πn(μ)=Φ ⁣(n(μ−μ0)σ−z1−α). The least positive integer sample size attaining target power 1−βII at μ1, with candidate sizes N≥1, is n∗=max⁡ ⁣{1,⌈(σδ)2max⁡ ⁣{0,z1−α+z1−βII}2⌉}. If z1−α+z1−βII≤0, every positive integer size meets the target and the least is 1. This is an exact result for the specified known-σ normal model; it makes no approximation or claim for an unknown-σ t-test or another sampling law.

Facts & Assumptions

Given: AC; the independent normal sample and parameters in the Statement; the one-dimensional sample-mean experiment; and the definitions of test size and power.

[A1]

Assume AC, as required by the Gaussian-law convention. It also supplies countable choice: apply AC to the family of values of any sequence of nonempty sets and compose the resulting choice function with that sequence. This discharges the countable-choice premise in [F5]. The Axiom of Choice The Axiom of Countable Choice (ACω) The Axiom of Choice implies countable choice

[F1]

The sample mean has law N(μ,σ2/n), and its standardized value has law N(n(μ−μ0)/σ,1). The mean of a finite independent normal sample is normal

[F2]

Φ is continuous and strictly increasing, has no atoms, satisfies Φ(−x)=1−Φ(x), and has unique quantiles zq with Φ(zq)=q. Standard-normal CDF, tail, and quantile identities for power calculations

[F3]

A statistical experiment specifies a data measurable space, a parameter set, and a probability law for each parameter; here the observation is Xˉn with law N(μ,σ2/n). Statistical experiments

[F4]

A randomized test has a measurable rejection-probability function φ; in this deterministic case it is the indicator of the rejection region. Randomized tests

[F6]

Power is the rejection probability at each parameter and size is the supremum of power over the nonempty null set. Test size and power

[F7]

The planning rule returns the least feasible positive integer size when the feasible set is nonempty. Power and sample-size planning specifications A nonempty set of positive integers has a least member

[F8]

Define ⌈x⌉=−⌊−x⌋; it is the least integer greater than or equal to x. Ceilings give the least positive integer meeting a real threshold

Proof

1.1A1F1F3F4F5givenalgebra

By [A1], countable choice is available for the Borel-measurability supplier in [F5]. The affine statistic x↦n(x−μ0)/σ is continuous, so the strict upper-level rejection set is Borel and its indicator is measurable. [F5] therefore makes φn a randomized-test function in the sample-mean experiment described by [F3]; [F1] gives its statistic the stated shifted normal law.

2.1F1F2step 1.1algebra

Write λμ=n(μ−μ0)/σ. Under parameter μ, the rejection probability is 1−Φ(z1−α−λμ)=Φ(λμ−z1−α) by the symmetry in [F2]. This is the stated power function.

3.1F2F6step 2.1algebra

On H0, λμ≤0. Since Φ is strictly increasing, the power in step 2.1 is increasing in μ, so its supremum over μ≤μ0 occurs at μ0. There it equals Φ(−z1−α)=Φ(zα)=α by [F2]; hence the test size is α.

3.2F2givenstep 2.1algebra

At μ1=μ0+δ, target power is attained exactly when Φ(δn/σ−z1−α)≥Φ(z1−βII). Strict increase of Φ makes this equivalent to δn/σ≥q, where q=z1−α+z1−βII. If q≤0, the left side is positive for every n≥1, so all positive sizes qualify. If q>0, the condition is n≥(σ/δ)2q2.

4.1F7F8step 3.1step 3.2algebra∎

For q≤0, the least positive size is 1, which agrees with the displayed formula. For q>0, [F8] makes the least integer at least (σ/δ)2q2 its ceiling, already positive. The cases in step 3.2 make the target-feasible set nonempty; step 3.1 shows that every candidate size satisfies the size constraint sn=α. Thus the target-feasible sizes are exactly the plans meeting the test request, and [F7] identifies their least size with the planning rule's output. The unified expression is the stated n∗.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Finite-candidate power and sample-size search is correct

Statement

For the finite-candidate algorithm Finite-candidate power and sample-size search, suppose the input list is ordered by nondecreasing total size and its evaluator returns the exact feasibility truth value for every candidate. The algorithm terminates after at most m evaluations. If it returns a plan, that plan is feasible and its total size is least among feasible plans in the supplied list; if it returns none, no plan in that list is feasible. When several feasible plans have the same least size, the algorithm returns the first such plan in the supplied tie order.

Facts & Assumptions

Given: A finite list of m≥0 candidate plans ordered by nondecreasing positive-integer size, an exact evaluator that terminates for each plan, and the algorithm of Finite-candidate power and sample-size search.

[F1]

Feasibility is the exact set of test, precision, allocation, and resource conditions declared by the planning specification. Power and sample-size planning specifications

[F2]

The algorithm evaluates each listed candidate once, returns at the first true result, and returns none after a finite list is exhausted. Finite-candidate power and sample-size search

Proof

1.1givenF2algebra

Each evaluator call terminates by the hypothesis. The loop makes at most m calls; for m=0 it returns immediately. Thus the algorithm terminates after finitely many calls.

1.2givenF1F2algebra

If the algorithm returns dj, it does so only after the evaluator returns true, which by [F1] means dj is feasible. Each earlier dk, k<j, was evaluated false; since the list is ordered by size, no feasible listed plan has smaller total size than dj. The first passing index also gives the declared tie rule.

2.1givenF1F2∎

If the algorithm returns none, it evaluated every listed plan and each exact result was false, so no candidate in that list is feasible.

TheoremStatement: AI-adaptedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Correctness and exact termination conditions for all-size planning search

Statement

Use the exact terminating evaluator and admissible modes of Search over all positive sample sizes with explicit stopping certificates, and let S={n∈N≥1:E(n) is true}. The unbounded ascending mode terminates if and only if S≠∅, and then returns min⁡S after exactly min⁡S evaluations. If S=∅, it continues forever and returns no value, including no none.

With a valid finite completeness bound B, the bounded mode terminates after at most B evaluations and returns the full-domain extensional answer: min⁡S if S≠∅ and none if S=∅. The certified-infeasibility mode returns that answer immediately. No monotonicity is needed for these conclusions. If feasibility is nondecreasing and E(B) is true, that witness is a valid bound, but monotonicity without a crossing witness or other stopping certificate does not guarantee termination in the empty case.

Facts & Assumptions

Given: The algorithm's exact per-size evaluator, each evaluation terminating, and the stated valid certificate whenever a certified mode is chosen.

[F1]

The planning specification defines feasibility and its extensional output as the least feasible positive integer, or none when the feasible set is empty. Power and sample-size planning specifications

[F2]

The ascending mode visits positive integers in order; the bounded mode visits the prefix through B; the infeasibility mode uses the supplied all-size proof. Search over all positive sample sizes with explicit stopping certificates

[F3]

A nonempty set of positive integers has a unique least member. A nonempty set of positive integers has a least member

Proof

1.1F1F2F3given

Suppose S≠∅. By [F3] let n∗=min⁡S. In ascending mode [F2] calls the evaluator at 1,…,n∗: each call terminates, every earlier answer is false by leastness, and the answer at n∗ is true. The finite sequence of calls therefore terminates at n∗, with exactly n∗ evaluations and the output required by [F1].

1.2F1F2givenalgebra

In bounded mode at most B calls occur and every call terminates, so the mode terminates, including when B=0. If an index is returned, every smaller positive integer has already answered false, and exactness makes the returned integer the least of S, not merely least in a selected list.

2.1F2step 1.1given

If ascending mode terminates, [F2] says it returns only at a true answer, so its returned integer is in S and S is nonempty. Conversely, if S is empty, every terminating call answers false and [F2] increments to the next positive integer. No return instruction is reached, so the execution continues forever. Together with step 1.1 this proves the equivalence and the empty-case behavior.

2.2F1F2givenstep 1.2

If bounded mode returns none, every index at most B is infeasible. Were S nonempty, the completeness certificate would place some element of S at most B, contradicting those answers. Thus S is empty and none is the answer of [F1]. Conversely, empty S makes every bounded answer false, so none is returned.

3.1F1F2givenstep 2.1algebra∎

In the infeasibility mode the supplied proof states that S is empty, so immediate return of none is correct by [F1]. A true answer at a positive B proves that B∈S and therefore is itself a finite completeness witness, whether or not feasibility is monotone. The constant-false evaluator is nondecreasing but has empty S, so step 2.1 shows that monotonicity alone does not give termination of ascending search. These observations establish all remaining assertions.

5 · Examples, counterexamples and false statements

None yet.

Sources