Reference · The Applied Higher-Order Functions catalogue
rainbow.algorithms.proofs.ahof.partitioning
AHoF V46 Partitioning: recursively split the state/input set into cells so each is small enough for an accurate local over-approximation; a cell is fine enough when its diameter is within the tolerance: fine-enough? diameter tolerance = decide (diameter <= tolerance). Proved native and axiom-free (decision, two positive instances, at-most certificate, negative instance). Requires audit/decide-nnrat-at-most, nnrat/at-most, nnrat/decide-at-most-true-sound (all in the D63 checkpoint). Scope (measured by the kernel): this module has 4 worked instances (statements about specific values). None of its theorems is a guarantee about the algorithm for all inputs; `lein verify rainbow.algorithms.proofs.ahof.partitioning` prints this classification.
partitioning/fine-enough?
partitioning/fine-enough? : (x₁ x₂ : ℚ≥0) → data/Bool
ℚ≥0 = nnrat/NonnegativeRational
partitioning/small-cell-fine
partitioning/small-cell-fine : → lis/extends? 1/4 1/2 = data/true
= = equality/Eq
partitioning/boundary-fine
partitioning/boundary-fine : → lis/extends? 1/2 1/2 = data/true
= = equality/Eq
partitioning/diameter-certificate
partitioning/diameter-certificate : → 1/4 ≤ 1/2
≤ = nnrat/at-most
partitioning/large-cell-coarse
partitioning/large-cell-coarse : → lis/extends? 3/4 1/2 = data/false
= = equality/Eq