import proveit
# Prepare this notebook for defining the theorems of a theory:
%theorems_notebook # Keep this at the top following 'import proveit'.
from proveit import b
from proveit.logic import Forall, InSet
from proveit.numbers import zero, one, greater_eq, LessEq, Natural, number_ordering
from proveit.numbers.numerals.binaries import Bit
%begin theorems
bits_lower_bound = Forall(b, greater_eq(b, zero), domain=Bit)
bits_upper_bound = Forall(b, LessEq(b, one), domain=Bit)
b_in_bits = Forall(b, InSet(b, Bit),
conditions=[number_ordering(LessEq(zero, b), LessEq(b, one))],
domain=Natural)
%end theorems