Skip to content
Rainbow docs menu

Reference · The Applied Higher-Order Functions catalogue

rainbow.algorithms.proofs.ahof.ellipsoid

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

AHoF V36 Ellipsoid Propagation: over-approximate a reachable set by an ellipsoid; a point lies inside when its quadratic form (x-c)'P(x-c) is within the ellipsoid limit: in-ellipsoid? quadratic-value limit = decide (quadratic-value <= limit). Proved native and axiom-free (decision, two positive instances, at-most certificate, negative instance). Requires audit/decide-nnrat-at-most, nnrat/at-most, nnrat/decide-at-most-true-sound (all in the D63 checkpoint). 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.ellipsoid` prints this classification.

ellipsoid/in-ellipsoid?

DefinitionSource, line 43

ellipsoid/in-ellipsoid? :
  (x₁ x₂ : ℚ≥0)
  → data/Bool

ℚ≥0 = nnrat/NonnegativeRational

ellipsoid/within-ellipsoid-inside

TheoremWorked exampleNo axiomsSource, line 50

ellipsoid/within-ellipsoid-inside :
  → ce-is/elite? 1/2 3/4 = data/true

= = equality/Eq

ellipsoid/boundary-inside

TheoremWorked exampleNo axiomsSource, line 56

ellipsoid/boundary-inside :
  → ce-is/elite? 1/2 1/2 = data/true

= = equality/Eq

ellipsoid/ellipsoid-certificate

TheoremWorked exampleNo axiomsSource, line 62

ellipsoid/ellipsoid-certificate :
  → 1/2 ≤ 3/4

≤ = nnrat/at-most

ellipsoid/outside-ellipsoid

TheoremWorked exampleNo axiomsSource, line 67

ellipsoid/outside-ellipsoid :
  → ce-is/elite? 3/4 1/2 = data/false

= = equality/Eq