Reference · The Applied Higher-Order Functions catalogue
rainbow.algorithms.proofs.ahof.decision-network
AHoF D18 worked decision network evaluation over exact rationals. A chance node has two outcomes with probabilities 3/4 and 1/4; the utility node pays 1 for the first outcome and 0 for the second. Evaluating the network is the expected utility 3/4 * 1 + 1/4 * 0 = 3/4. The value is proved by cross-product equivalence over the finite expectation. Scope (measured by the kernel): this module has 4 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.decision-network` prints this classification.
ahof-d18/outcome-space
ahof-d18/outcome-space : → Finset ℕ
Finset = finset-data/Finsetℕ = data/Nat
ahof-d18/probability
ahof-d18/probability : (x₁ : ℕ) → ℚ≥0
ℕ = data/Natℚ≥0 = nnrat/NonnegativeRational
ahof-d18/utility
ahof-d18/utility : (x₁ : ℕ) → ℚ≥0
ℕ = data/Natℚ≥0 = nnrat/NonnegativeRational
ahof-d18/network-eu
ahof-d18/network-eu : → ℚ≥0
ℚ≥0 = nnrat/NonnegativeRational
ahof-d18/network-eu-is-three-quarters
ahof-d18/network-eu-is-three-quarters : → ahof-d18/network-eu = 3/4
= = nnrat/equivalent: equality of rational values
ahof-d18/utility-at-zero-is-one
ahof-d18/utility-at-zero-is-one : → ahof-d18/utility 0 = 1
1 = nnrat/one= = nnrat/equivalent: equality of rational values
ahof-d18/utility-at-one-is-zero
ahof-d18/utility-at-one-is-zero : → ahof-d18/utility 1 = 0
0 = nnrat/zero= = nnrat/equivalent: equality of rational values
ahof-d18/decision-network
ahof-d18/decision-network : → proposition/conjunction (ahof-d18/network-eu = 3/4) (conjunction) where conjunction := proposition/conjunction (ahof-d18/utility 0 = 1) (ahof-d18/utility 1 = 0)
0 = nnrat/zero1 = nnrat/one= = nnrat/equivalent: equality of rational values