Reference · The Applied Higher-Order Functions catalogue
rainbow.algorithms.proofs.ahof.mle-system
AHoF V1 MLE for System Models: fit a system model by maximum likelihood, keeping the model with the larger data likelihood: prefers-model-zero? l0 l1 = decide (l1 <= l0) best-likelihood l0 l1 = if (l1 <= l0) then l0 else l1 over exact rationals. Proved native and axiom-free: preference decision, max value, 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.mle-system` prints this classification.
mle/prefers-model-zero?
mle/prefers-model-zero? : (x₁ x₂ : ℚ≥0) → data/Bool
ℚ≥0 = nnrat/NonnegativeRational
mle/best-likelihood
mle/best-likelihood : (x₁ x₂ : ℚ≥0) → ℚ≥0
ℚ≥0 = nnrat/NonnegativeRational
mle/prefers-higher
mle/prefers-higher : → bo/is-safe 3/4 1/2 = data/true
= = equality/Eq
mle/value-is-maximum
mle/value-is-maximum : → fsc/node-value 3/4 1/2 = 3/4
= = equality/Eq
mle/switches
mle/switches : → bo/is-safe 1/2 3/4 = data/false
= = equality/Eq