theorem
MindFormal.A695LogicPaper.GenericPaper.Program.input_cost_cap
(P : Program)
(memory marked : ℕ → Bool)
:
RandomInput.scanCost (P.description.inputCells memory marked) 3 (P.description.begin - 3) + 5 * (P.description.begin - 4) + 15 ≤ 11 * P.description.span + 15
theorem
MindFormal.A695LogicPaper.GenericPaper.Program.complete_random_cap
(P : Program)
(u memory marked : ℕ → Bool)
(hzero : marked 0 = false)
(hcode : 0 < P.code.length)
(draws : ℕ)
:
have D := P.description;
have filled := D.scannedMemory u 0 memory marked;
∃ (n : ℕ) (bit : Bool),
n + 1 ≤ P.commandCap draws ∧ BooleanArithmetic.run P.code filled (P.address (P.code.length - 1) 2) = bit ∧ RandomInput.execute u 0 n (P.initialRandomTape memory marked) = P.completedTape (BooleanArithmetic.run P.code filled) bit ∧ RandomInput.drawVisits u 0 n (P.initialRandomTape memory marked) = RandomInput.markerCount (D.inputCells memory marked) 3 (D.begin - 3)
theorem
MindFormal.A695LogicPaper.GenericPaper.Program.complete_random_fixed
(P : Program)
(u memory marked : ℕ → Bool)
(hzero : marked 0 = false)
(hcode : 0 < P.code.length)
(draws : ℕ)
:
have filled := P.description.scannedMemory u 0 memory marked;
∃ (bit : Bool),
BooleanArithmetic.run P.code filled (P.address (P.code.length - 1) 2) = bit ∧ RandomInput.execute u 0 (P.commandCap draws - 1) (P.initialRandomTape memory marked) = P.completedTape (BooleanArithmetic.run P.code filled) bit ∧ RandomInput.drawVisits u 0 (P.commandCap draws - 1) (P.initialRandomTape memory marked) = RandomInput.markerCount (P.description.inputCells memory marked) 3 (P.description.begin - 3)
Every bit stream reaches a fixed declared deadline. Padding after the actual halt is charged, leaves the whole result bank intact, and adds no Draws. Thus the primitive caps are independent of sampled values.
theorem
MindFormal.A695LogicPaper.GenericPaper.Program.private_draw_cap
(P : Program)
(u memory marked : ℕ → Bool)
(K : ℕ)
(hzero : marked 0 = false)
(hcode : 0 < P.code.length)
(hsupport : ∀ (r : ℕ), marked r = true → r ≤ K)
:
have s := P.initialRandomTape memory marked;
{k ∈ Finset.range (P.commandCap K - 1) |
(PrivatePaper.idealTape s RandomInput.drawView RandomInput.bitGlyph (A595Paper.Command.write 1 (s.view 1))
RandomInput.table u k).view = RandomInput.drawView}.card ≤ K