def
MindFormal.A695LogicPaper.IntegerProgram.rejectionAttempt
(zeroReg one bound candidate found saved : ℕ)
:
Both acceptance and found/not-found tests are performed on paper. A later accepted word cannot overwrite the first accepted word.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
MindFormal.A695LogicPaper.IntegerProgram.rejectionAttempt_safe
(zeroReg one bound candidate found saved : ℕ)
:
Safe (rejectionAttempt zeroReg one bound candidate found saved)
theorem
MindFormal.A695LogicPaper.IntegerProgram.rejectionAttempt_spec
(zeroReg one bound candidate found saved fresh : ℕ)
(v : Values)
(hz : zeroReg < fresh)
(ho : one < fresh)
(hc : candidate < fresh)
(hf : found < fresh)
(hs : saved < fresh)
(hzero : v zeroReg = 0)
(hone : v one = 1)
:
(rejectionAttempt zeroReg one bound candidate found saved fresh).commands.length = 5 ∧ (∀ (i : Fin 2),
(rejectionAttempt zeroReg one bound candidate found saved fresh).result i < (rejectionAttempt zeroReg one bound candidate found saved fresh).next) ∧ (evaluate (rejectionAttempt zeroReg one bound candidate found saved fresh).commands v
((rejectionAttempt zeroReg one bound candidate found saved fresh).result 0) = if v candidate ≤ v bound then 1 else v found) ∧ evaluate (rejectionAttempt zeroReg one bound candidate found saved fresh).commands v
((rejectionAttempt zeroReg one bound candidate found saved fresh).result 1) = if v found = 0 ∧ v candidate ≤ v bound then v candidate else v saved