qty lub is total actually (usually ω)

This commit is contained in:
rhiannon morris 2023-05-12 17:28:29 +02:00
parent ba755a9c4b
commit f6abf084b3
2 changed files with 12 additions and 18 deletions

View file

@ -83,10 +83,11 @@ compat pi rh = pi == rh
||| "π ρ"
|||
||| returns some quantity τ where π ≤ τ and ρ ≤ τ, if one exists.
||| returns a quantity τ with π ≤ τ and ρ ≤ τ.
||| if π = ρ, then it's that, otherwise it's ω.
public export
lub : Qty -> Qty -> Maybe Qty
lub p q = Just $ if p == q then p else Any
lub : Qty -> Qty -> Qty
lub p q = if p == q then p else Any
||| to maintain subject reduction, only 0 or 1 can occur