Question: defdata bit ( oneof 0 1 ) ) defdata bv ( listof bit ) ) defdata bv 5 ( list bit bit bit bit bit
defdata bit oneof
defdata bv listof bit
defdata bvlist bit bit bit bit bit
Note that bv is a subtype of bv: every element of bv is also an
element of bv This is how you state this fact. Think of the form
below as a kind of property involving data definitions.
defdatasubtype bv bv
We define lobv a list of bvs Something of this type is a
message.
defdata lobvlistof bv
We also define a list of bvs
defdata lobv listof bv
Notice that lobv is a subtype of lobv.
defdatasubtype lobv lobv
Question
Use CHECK to check that is of type lobv
Us;; Question
;; Use CHECK to check that SECRETMESSAGE is of type lobv
;; Use PROPERTY to check that SECRETMESSAGE is of type lobv
;;
;; Notice that PROPERTY is more general than CHECK and CHECK as we can always
;; turn a CHECK or CHECK form into a PROPERTY form, eg given the form
;; CHECK exp
;; an equivalent PROPERTY form is:
;; PROPERTY exp
;; Given the form
;; CHECK exp exp
;; an equivalent PROPERTY form is:
;; PROPERTY exp exp
check XXX
"Property
property
XXX
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
