Reference · The Applied Higher-Order Functions catalogue
rainbow.algorithms.proofs.ahof.shubert
AHoF O11 Shubert-Piyavskii: build a piecewise-linear (sawtooth) lower bound of a Lipschitz objective and sample where the lower bound is smallest; between two candidate lower- bound values it keeps the smaller value: prefers-lower? a b = decide ('a 'b) sample-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.shubert` prints this classification.
shubert/prefers-lower?
shubert/prefers-lower? : (x₁ x₂ : ℚ≥0) → data/Bool
ℚ≥0 = nnrat/NonnegativeRational
shubert/sample-value
shubert/sample-value : (x₁ x₂ : ℚ≥0) → ℚ≥0
ℚ≥0 = nnrat/NonnegativeRational
shubert/prefers-example
shubert/prefers-example : → lis/extends? 1/2 3/4 = data/true
= = equality/Eq
shubert/selected-value
shubert/selected-value : → ppo/nnrat-min 1/2 3/4 = 1/2
= = equality/Eq
shubert/switches
shubert/switches : → lis/extends? 3/4 1/2 = data/false
= = equality/Eq