Reference · The Applied Higher-Order Functions catalogue
rainbow.algorithms.proofs.ahof.tree-search-fal
AHoF V17 Tree Search for Falsification: best-first search over behaviours toward a violation, expanding the node with the lowest cost-to-violation; it keeps the smaller value: prefers-lower-cost? a b = decide ('a 'b) frontier-value a b = if ('a 'b) then 'a else 'b over exact rationals. Proved native and axiom-free: the preference decision, the selected value, and the switch. Requires audit/decide-nnrat-at-most, logic/if-data (both in the D63 checkpoint). Scope (measured by the kernel): this module has 3 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.tree-search-fal` prints this classification.
tree-fal/prefers-lower-cost?
tree-fal/prefers-lower-cost? : (x₁ x₂ : ℚ≥0) → data/Bool
ℚ≥0 = nnrat/NonnegativeRational
tree-fal/frontier-value
tree-fal/frontier-value : (x₁ x₂ : ℚ≥0) → ℚ≥0
ℚ≥0 = nnrat/NonnegativeRational
tree-fal/prefers-example
tree-fal/prefers-example : → lis/extends? 1/2 3/4 = data/true
= = equality/Eq
tree-fal/selected-value
tree-fal/selected-value : → ppo/nnrat-min 1/2 3/4 = 1/2
= = equality/Eq
tree-fal/switches
tree-fal/switches : → lis/extends? 3/4 1/2 = data/false
= = equality/Eq