Skip to content
Rainbow docs menu

Reference · The Applied Higher-Order Functions catalogue

rainbow.algorithms.proofs.ahof.stl-monitor

The Applied Higher-Order Functions cataloguesrc/rainbow/algorithms/proofs/ahof/stl_monitor.clj1 definitions, 4 theorems

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?

DefinitionSource, line 48

stl-monitor/satisfied? :
  (x₁ x₂ : ℚ≥0)
  → data/Bool

ℚ≥0 = nnrat/NonnegativeRational

stl-monitor/satisfied-above-margin

TheoremWorked exampleNo axiomsSource, line 56

stl-monitor/satisfied-above-margin :
  → bo/is-safe 3/4 1/2 = data/true

= = equality/Eq

stl-monitor/satisfied-at-margin

TheoremWorked exampleNo axiomsSource, line 62

stl-monitor/satisfied-at-margin :
  → bo/is-safe 1/2 1/2 = data/true

= = equality/Eq

stl-monitor/robustness-certificate

TheoremWorked exampleNo axiomsSource, line 68

stl-monitor/robustness-certificate :
  → 1/2 ≤ 3/4

≤ = nnrat/at-most

stl-monitor/violated-below-margin

TheoremWorked exampleNo axiomsSource, line 73

stl-monitor/violated-below-margin :
  → bo/is-safe 1/4 1/2 = data/false

= = equality/Eq