Skip to content

Commit

Permalink
better description of properties
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Feb 24, 2019
1 parent f764126 commit 1d3b958
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Properties/IntersectionProperty.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ set of bad states is empty.
- `bad` -- convex set representing the bad states
- `witness` -- witness point (empty vector if not set)
### Notes
The following formula characterizes whether a set ``X`` satisfies a safety
property characterized by a set of bad states 𝑃:
```math
X \\models 𝑃 \\iff X ∩ 𝑃.\\texttt{bad} = ∅
```
"""
mutable struct IntersectionProperty{N<:Real} <: Property
bad::LazySet
Expand All @@ -33,7 +42,8 @@ Checks whether a convex set is disjoint from the set of bad states.
### Output
`true` iff the given set of states does not intersect with the bad states.
`true` iff the given set of states does not intersect with the set of bad
states.
"""
@inline function check(𝑃::IntersectionProperty, X::LazySet)::Bool
empty_intersection, witness = is_intersection_empty(X, 𝑃.bad, true)
Expand Down
9 changes: 9 additions & 0 deletions src/Properties/SubsetProperty.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ contained in the set of safe states.
- `safe` -- convex set representing the safe states
- `witness` -- witness point (empty vector if not set)
### Notes
The following formula characterizes whether a set ``X`` satisfies a safety
property characterized by a set of safe states 𝑃:
```math
X \\models 𝑃 \\iff X ⊆ 𝑃.\\texttt{safe}
```
"""
mutable struct SubsetProperty{N<:Real} <: Property
safe::LazySet
Expand Down

0 comments on commit 1d3b958

Please sign in to comment.