polyzonotope
Sparse polynomial zonotopes (Kochdumper & Althoff, IEEE TAC 2021), zonotopes, and interval boxes, for set-based reachability analysis.
PZ = { c + Σ_i (Π_k α_k^E[k,i]) G[:,i] + Σ_j β_j GI[:,j] | α, β ∈ [-1, 1] }
Dependent factors carry global FactorIds, so sets derived from the same uncertainty stay correlated.
| Operation | Exact? |
|---|---|
linear_map, translate, minkowski_sum, exact_plus, cartesian_product, compact, split |
exact |
interval_hull, to_zonotope |
sound enclosure |
flowchart LR
Z[Zonotope] -- "from_zonotope (exact)" --> PZ[SparsePolyZonotope]
PZ -- "to_zonotope (enclosure)" --> Z
PZ -- "interval_hull (enclosure)" --> B[IntervalBox]
Z -- "interval_hull (tight)" --> B
B -- "from_box (exact)" --> Z
Usage
The parabola arc { (α, α²) | α ∈ [-1, 1] } is a curved set that no zonotope represents exactly:
use ;
use ;
let parabola = new?;
let hull = parabola.interval_hull;
assert_eq!;
assert_eq!;
# Ok::
MSRV
Rust 1.89. The MSRV is a signal, not a contract: it may rise in a minor release when a dependency or a language feature needs it.
Verification
Property tests on random sets plus random samples of α and β:
- Every sampled point lies in
interval_hull. to_zonotopeis checked by construction: each point is reproduced with explicit coefficients in [-1, 1].- Exact operations commute with evaluation.
Soundness caveat
Arithmetic is plain f64 for now. A sound mode with outward rounding (inari) is the top roadmap item, and is required before any formal-verification use.
Roadmap
- Sound interval mode;
quadratic_map; order reduction (Girard, PCA); recursive split-based tight hulls. - Halfspace intersection checks, containment heuristics,
plottersvisualization. - Separate
polyzonotope-reachcrate: nonlinear reachability by conservative polynomialization (Althoff 2013), with a CORA cross-check. - Constrained polynomial zonotopes.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option. The code under examples/ is public domain (CC0-1.0), so you can copy it into anything.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.