logo
In [1]:
import proveit
from proveit.logic import InSet
from proveit.numbers import Integer
from proveit.physics.quantum.QPE import _best_round_def
from proveit.physics.quantum.QPE import _phase_is_real, _two_pow_t_is_nat_pos
theory = proveit.Theory() # the theorem's theory
In [2]:
%proving _best_round_is_int
With these allowed/disallowed theorem/theory presumptions (e.g., to avoid circular dependencies), we begin our proof of
_best_round_is_int:
(see dependencies)
In [3]:
_best_round_def
In [4]:
_phase_is_real
In [5]:
_two_pow_t_is_nat_pos
In [6]:
InSet(_best_round_def.rhs, Integer).prove()