fix subvalue check

This commit is contained in:
Hongrui Fang 2023-04-05 22:22:45 +08:00
parent 9e2b3e0cd3
commit df48c12f6e

View file

@ -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