Skip to content
Rainbow docs menu

Reference · The Applied Higher-Order Functions catalogue

rainbow.algorithms.proofs.ahof.mle-system

The Applied Higher-Order Functions cataloguesrc/rainbow/algorithms/proofs/ahof/mle_system.clj2 definitions, 3 theorems

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?

DefinitionSource, line 39

mle/prefers-model-zero? :
  (x₁ x₂ : ℚ≥0)
  → data/Bool

ℚ≥0 = nnrat/NonnegativeRational

mle/best-likelihood

DefinitionSource, line 44

mle/best-likelihood :
  (x₁ x₂ : ℚ≥0)
  → ℚ≥0

ℚ≥0 = nnrat/NonnegativeRational

mle/prefers-higher

TheoremWorked exampleNo axiomsSource, line 54

mle/prefers-higher :
  → bo/is-safe 3/4 1/2 = data/true

= = equality/Eq

mle/value-is-maximum

TheoremWorked exampleNo axiomsSource, line 60

mle/value-is-maximum :
  → fsc/node-value 3/4 1/2 = 3/4

= = equality/Eq

mle/switches

TheoremWorked exampleNo axiomsSource, line 66

mle/switches :
  → bo/is-safe 1/2 3/4 = data/false

= = equality/Eq