The cumulative-count test is implemented by subtraction and a strict comparison, with a declared last-coordinate fallback on malformed input.
Equations
- MindFormal.A695LogicPaper.SecurityProgram.selectCount x_3 x✝ = 0
- MindFormal.A695LogicPaper.SecurityProgram.selectCount c x✝ = if x✝ < c 0 then 0 else (MindFormal.A695LogicPaper.SecurityProgram.selectCount (fun (i : Fin (m + 1)) => c i.succ) (x✝ - c 0)).succ
Instances For
theorem
MindFormal.A695LogicPaper.SecurityProgram.select_grid_histogram
{m Q : ℕ}
(g : Security.Grid m Q)
(i : Fin (m + 1))
: