In [1]:

```
import proveit
# Prepare this notebook for defining the axioms of a theory:
%axioms_notebook # Keep this at the top following 'import proveit'.
from proveit import Literal
from proveit import n, x
from proveit.logic import Equals, Forall, And, InSet
from proveit.numbers import num, zero, one, Add, LessEq, Natural
from proveit.numbers.numerals.decimals import DecimalSequence, Digits
```

In [2]:

```
%begin axioms
```

In [3]:

```
one_def = Equals(num(1), Add(zero, one))
```

In [4]:

```
two_def = Equals(num(2), Add(one, one))
```

In [5]:

```
three_def = Equals(num(3), Add(num(2), one))
```

In [6]:

```
four_def = Equals(num(4), Add(num(3), one))
```

In [7]:

```
five_def = Equals(num(5), Add(num(4), one))
```

In [8]:

```
six_def = Equals(num(6), Add(num(5), one))
```

In [9]:

```
seven_def = Equals(num(7), Add(num(6), one))
```

In [10]:

```
eight_def = Equals(num(8), Add(num(7), one))
```

In [11]:

```
nine_def = Equals(num(9), Add(num(8), one))
```

In [12]:

```
#\forall_{n} (n \in N_{\leq 9}) = (n \in N and n \leq 9)
```

In [13]:

```
N_leq_9_def = Forall(n, Equals(InSet(n, Digits), And(InSet(n, Natural), LessEq(n, num(9)))))
```

In [14]:

```
single_digit_reduction = Forall(n, Equals(DecimalSequence(n), n), domain=Digits)
```

In [15]:

```
%end axioms
```

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.