The enumerator's epilogue #
⚠️ Unreviewed by Bolton
The loop leaves the accepting tally on PolyExists.aIdx, and the answer is whether it is
positive. A machine has no >; it has subtraction and a test against zero. So the epilogue makes
a one on the permanently blank tape, subtracts the tally from it — the difference is zero exactly
when the tally is positive — and tests that difference against zero, publishing the answer.
The two tapes it borrows for the test are the emitter's target and the matrix machine's input: both are blank once the loop's last wipe has run, and nothing reads them again.
Main results #
PolyExists.epilogueTM— the epilogue, andPolyExists.epilogueTimeits running timePolyExists.epilogueTM_hoareTime— its contract: the slot ends holdingdecide (0 < a)
The epilogue's arithmetic: make a one, subtract the accepting tally from it.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The epilogue's tail: put the test's answer at cell one and publish it.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The enumerator's epilogue.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The state the epilogue's test leaves: every tape parked, and the answer bit sitting at cell one of the register the test wrote to.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A counter tape holding zero is the blank tape.
The epilogue's test. The difference is zero exactly when the accepting tally is positive, so comparing it with zero decides the bounded existential.
The epilogue's arithmetic. Make a one on the blank tape, then subtract the accepting tally from it; the difference is zero exactly when that tally is positive.
The state between the epilogue's test and its publication survives a phase boundary: every tape it names is parked, so the boundary is the identity.
The epilogue's running time: its three stages and the two boundaries between them.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The epilogue's contract. From the bank the loop leaves, the machine writes 1 into the
verdict slot exactly when some witness was accepted.