Common — library colibrilib.spec — module Value

The shapes of the specifications of the numbers: real x is the number that x represents. Registered as soundness shapes (shape_sound of why3find.json).

133
module Value
134
use real.RealInfix

r is the number c

137
predicate
value_is
(c: 'v) (r: 'v) = r = c

r represents c

140
predicate
value0
(real: 't -> 'v) (c: 'v) (r: 't) = real r = c

r represents f of the number of a

143
predicate
value1
(real: 't -> 'v) (f: 'v -> 'v) (a r: 't) =
144
real r = f (real a)

r represents f of the numbers of a and b

147
predicate
value2
(real: 't -> 'v) (f: 'v -> 'v -> 'v) (a b r: 't) =
148
real r = f (real a) (real b)

r represents the largest element of the set s at most c

151
predicate
value_floor
(real: 't -> real) (s: real -> bool) (c: real) (r: 't) =
152
s (real r) /\ real r <=. c /\ forall z. s z -> z <=. c -> z <=. real r

r represents the least element of the set s at least c

155
predicate
value_ceil
(real: 't -> real) (s: real -> bool) (c: real) (r: 't) =
156
s (real r) /\ c <=. real r /\ forall z. s z -> c <=. z -> real r <=. z
157
end