Reference · The Applied Higher-Order Functions catalogue
rainbow.algorithms.proofs.ahof.discrete-search
Kochenderfer discrete-search / sampling / metaheuristic cores as higher-order-function compositions, proved axiom-free, extending the 222 AHoF catalog: O22.7 0-1 knapsack DP : cell = max(exclude value, include value) V5.4 RRT nearest-node : steer toward the nearest existing node (min distance) V5.8 star discrepancy bound : worst-case box discrepancy = max over sub-boxes O22.10 ant colony optimization: pheromone update = evaporation*old + deposit DP/coverage reuse nnrat-minmax max (cell/upper-bound dominates each option); the RRT nearest reuses min (dominated by both candidates); the pheromone dynamics is an add/multiply composition with a worked instance. Native and axiom-free; chains nnrat-minmax on d63.
dp/knapsack-cell
dp/knapsack-cell : (x₁ x₂ : ℚ≥0) → ℚ≥0
ℚ≥0 = nnrat/NonnegativeRational
plan/rrt-nearest
plan/rrt-nearest : (x₁ x₂ : ℚ≥0) → ℚ≥0
ℚ≥0 = nnrat/NonnegativeRational
sample/star-discrepancy-upper
sample/star-discrepancy-upper : (x₁ x₂ : ℚ≥0) → ℚ≥0
ℚ≥0 = nnrat/NonnegativeRational
aco/pheromone-update
aco/pheromone-update : (x₁ x₂ x₃ : ℚ≥0) → ℚ≥0
ℚ≥0 = nnrat/NonnegativeRational
dp/knapsack-at-least-exclude
dp/knapsack-at-least-exclude : (exclude include : ℚ≥0) → exclude ≤ dp/knapsack-cell exclude include
ℚ≥0 = nnrat/NonnegativeRational≤ = nnrat/at-most
dp/knapsack-at-least-include
dp/knapsack-at-least-include : (exclude include : ℚ≥0) → include ≤ dp/knapsack-cell exclude include
ℚ≥0 = nnrat/NonnegativeRational≤ = nnrat/at-most
plan/rrt-nearest-below-left
plan/rrt-nearest-below-left : (d0 d1 : ℚ≥0) → opt/ldp-min-norm d0 d1 ≤ d0
ℚ≥0 = nnrat/NonnegativeRational≤ = nnrat/at-most
plan/rrt-nearest-below-right
plan/rrt-nearest-below-right : (d0 d1 : ℚ≥0) → opt/ldp-min-norm d0 d1 ≤ d1
ℚ≥0 = nnrat/NonnegativeRational≤ = nnrat/at-most
sample/star-discrepancy-bounds-box0
sample/star-discrepancy-bounds-box0 : (b0 b1 : ℚ≥0) → b0 ≤ dp/knapsack-cell b0 b1
ℚ≥0 = nnrat/NonnegativeRational≤ = nnrat/at-most
aco/pheromone-update-example
aco/pheromone-update-example : → aco/pheromone-update 1/2 1 1/2 = 1
= = nnrat/equivalent: equality of rational values