0∨1 is not undefined it's ω
This commit is contained in:
parent
6428d39ce1
commit
682965eebd
1 changed files with 2 additions and 5 deletions
|
@ -81,15 +81,12 @@ compat pi Any = True
|
||||||
compat pi rh = pi == rh
|
compat pi rh = pi == rh
|
||||||
|
|
||||||
|
|
||||||
||| "π ∧ ρ"
|
||| "π ∨ ρ"
|
||||||
|||
|
|||
|
||||||
||| returns some quantity τ where π ≤ τ and ρ ≤ τ, if one exists.
|
||| returns some quantity τ where π ≤ τ and ρ ≤ τ, if one exists.
|
||||||
public export
|
public export
|
||||||
lub : Qty -> Qty -> Maybe Qty
|
lub : Qty -> Qty -> Maybe Qty
|
||||||
lub p q =
|
lub p q = Just $ if p == q then p else Any
|
||||||
if p == Any || q == Any then Just Any
|
|
||||||
else if p == q then Just p
|
|
||||||
else Nothing
|
|
||||||
|
|
||||||
|
|
||||||
||| to maintain subject reduction, only 0 or 1 can occur
|
||| to maintain subject reduction, only 0 or 1 can occur
|
||||||
|
|
Loading…
Reference in a new issue