Question: defdata bit ( oneof 0 1 ) ) defdata bv ( listof bit ) ) defdata bv 5 ( list bit bit bit bit bit

defdata bit (oneof 01))
defdata bv (listof bit))
defdata bv5(list bit bit bit bit bit))
Note that bv5 is a subtype of bv: every element of bv5 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.
defdata-subtype bv5 bv)
We define lobv5, a list of bv5's. Something of this type is a
message.
defdata lobv5(listof bv5))
We also define a list of bv's.
defdata lobv (listof bv))
Notice that lobv5 is a subtype of lobv.
defdata-subtype lobv5 lobv)
Question 1
Use CHECK to check that is of type lobv5.
Us;; Question 1
;; Use CHECK to check that *SECRET-MESSAGE* is of type lobv5.
;; Use PROPERTY to check that *SECRET-MESSAGE* is of type lobv5.
;;
;; 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 exp1)
;; an equivalent PROPERTY form is:
;; (PROPERTY () exp1)
;; Given the form
;; (CHECK= exp1 exp2)
;; an equivalent PROPERTY form is:
;; (PROPERTY ()(== exp1 exp2))
(check XXX)
"Property 1"
(property ()
XXX)
defdata bit ( oneof 0 1 ) ) defdata bv ( listof

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!