Reference · The Applied Higher-Order Functions catalogue
rainbow.algorithms.proofs.ahof.stl-monitor
AHoF V63 Runtime STL Monitor: online monitoring of a Signal Temporal Logic specification. The monitor tracks the quantitative robustness margin of the signal and reports the spec as satisfied while that margin stays at or above a required safety margin: satisfied? robustness margin = decide (margin <= robustness). A robustness of 3/4 against a required margin 1/2 is satisfied; a margin exactly met is still satisfied; a robustness of 1/4 below the margin is a runtime violation. Proved native and axiom-free (decision, boundary, at-most certificate, violation). Requires audit/decide-nnrat-at-most, nnrat/at-most, nnrat/decide-at-most-true-sound. 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.stl-monitor` prints this classification.
stl-monitor/satisfied?
stl-monitor/satisfied? : (x₁ x₂ : ℚ≥0) → data/Bool
ℚ≥0 = nnrat/NonnegativeRational
stl-monitor/satisfied-above-margin
stl-monitor/satisfied-above-margin : → bo/is-safe 3/4 1/2 = data/true
= = equality/Eq
stl-monitor/satisfied-at-margin
stl-monitor/satisfied-at-margin : → bo/is-safe 1/2 1/2 = data/true
= = equality/Eq
stl-monitor/robustness-certificate
stl-monitor/robustness-certificate : → 1/2 ≤ 3/4
≤ = nnrat/at-most
stl-monitor/violated-below-margin
stl-monitor/violated-below-margin : → bo/is-safe 1/4 1/2 = data/false
= = equality/Eq