fix subvalue check
This commit is contained in:
parent
b4d7c1af42
commit
76b1bdd8bd
1 changed files with 4 additions and 4 deletions
|
|
@ -176,13 +176,13 @@ psubtractSortedValue = phoistAcyclic $ plam $ \a b ->
|
|||
# (pfmap # pnegate)
|
||||
# pto b
|
||||
|
||||
pisPositiveValue ::
|
||||
pisNonNegativeValue ::
|
||||
forall (kg :: KeyGuarantees) (am :: AmountGuarantees) (s :: S).
|
||||
Term s (PValue kg am :--> PBool)
|
||||
pisPositiveValue =
|
||||
pisNonNegativeValue =
|
||||
phoistAcyclic $
|
||||
plam $
|
||||
(AssocMap.pall # (AssocMap.pall # plam (0 #<)) #)
|
||||
(AssocMap.pall # (AssocMap.pall # plam (0 #<=)) #)
|
||||
. pto
|
||||
|
||||
pisSubValueOf ::
|
||||
|
|
@ -194,7 +194,7 @@ pisSubValueOf ::
|
|||
:--> PBool
|
||||
)
|
||||
pisSubValueOf = phoistAcyclic $ plam $ \vl vr ->
|
||||
pisPositiveValue
|
||||
pisNonNegativeValue
|
||||
#$ psubtractSortedValue
|
||||
# vl
|
||||
# vr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue