In [1]:

```
import proveit
from proveit import defaults
#from proveit import Lambda, Iter, Indexed
from proveit import A, B, C, D, i, j, k, l, m, n
from proveit.logic import Or, TRUE, FALSE, Forall, Implies, Not, in_bool, And, Boolean, Equals, Set
from proveit.core_expr_types import A_1_to_m, C_1_to_n
from proveit.numbers import Natural, NaturalPos, Add, Exp, one, LessEq
from proveit.logic.booleans.disjunction import left_in_bool, right_in_bool, multi_disjunction_def
theory = proveit.Theory() # the theorem's theory
```

In [2]:

```
%proving each_is_bool
```

In [3]:

```
defaults.assumptions = each_is_bool.all_conditions()
```

In [4]:

```
BeqT_or_BeqF = in_bool(B).unfold(assumptions=[in_bool(B)])
```

In [5]:

```
BeqT = BeqT_or_BeqF.operands[0]
```

In [6]:

```
BeqT.evaluation(assumptions=[BeqT])
```

In [7]:

```
BeqF = BeqT_or_BeqF.operands[1]
```

In [8]:

```
BeqF.evaluation(assumptions=[BeqF])
```

These web pages were generated on 2023-08-23 by Prove-It Beta Version 0.3, licensed under the GNU Public License by Sandia Corporation.

Presented proofs are not absolutely guaranteed. For assurance, it is important to check the structure of the statement being proven, independently verify the derivation steps, track dependencies, and ensure that employed axioms are valid and properly structured. Inconsistencies may exist, unknowingly, in this system.

This material is based upon work supported by the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, under the Quantum Computing Application Teams program. Sandia National Labs is managed and operated by National Technology and Engineering Solutions of Sandia, LLC, a subsidiary of Honeywell International, Inc., for the U.S. Dept. of Energy's NNSA under contract DE-NA0003525. The views expressed above do not necessarily represent the views of the DOE or the U.S. Government.

Please send questions/comments to: wwitzel@sandia.gov.