3
(local (include-book "bias-proofs"))
6
(declare (xargs :guard (integerp k)))
11
; bias of a q bit exponent field is 2^(q-1)-1
12
(defund bias (q) (- (expt 2 (- q 1)) 1) )
14
(defthm bias-non-negative-integerp-type-prescription
15
(implies (and (case-split (integerp q))
18
(and (integerp (bias q))
20
:rule-classes :TYPE-PRESCRIPTION)
24
(implies (and (<= (1- q) q2)
26
(case-split (integerp q))
27
(case-split (integerp q2))
31
(defthm bias-integerp-rewrite
32
(equal (integerp (bias q))
33
(or (and (acl2-numberp q) (not (integerp q)))
36
;where's bias-integerp?
38
(implies (case-split (< 0 k))
41
(defthm bias-with-q-an-acl2-number-but-not-an-integer
42
(implies (and (not (integerp q))
43
(case-split (acl2-numberp q)))
47
(defthm bias-with-q-not-an-acl2-number
48
(implies (not (acl2-numberp q))
b'\\ No newline at end of file'