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 x, y
from proveit.logic import Equals, Forall, InSet
from proveit.numbers import (one, two, Abs, Ceil, Floor, frac, greater_eq,
Integer, LessEq, Real, Round, subtract)
```

In [2]:

```
%begin axioms
```

In [3]:

```
ceil_is_an_int = Forall(
x,
InSet(Ceil(x), Integer),
domain=Real)
```

In [4]:

```
ceil_of_x_greater_eq_x = Forall(
x,
greater_eq(Ceil(x), x),
domain=Real)
```

In [5]:

```
ceil_of_x_less_eq = Forall(
(x, y),
LessEq(Ceil(x), y),
domains=[Real, Integer],
conditions=[greater_eq(y, x)])
```

In [6]:

```
floor_is_an_int = Forall(
x,
InSet(Floor(x), Integer),
domain=Real)
```

In [7]:

```
floor_of_x_less_eq_x = Forall(
x,
LessEq(Floor(x), x),
domain=Real)
```

In [8]:

```
floor_of_x_greater_eq = Forall(
(x, y),
greater_eq(Floor(x), y),
domains=[Real, Integer],
conditions=[LessEq(y, x)])
```

In [9]:

```
round_is_an_int = Forall(
x,
InSet(Round(x), Integer),
domain=Real)
```

In [10]:

```
round_is_closest_int = Forall(
(x, y),
LessEq(Abs(subtract(Round(x), x)), Abs(subtract(y, x))),
domains=[Real, Integer])
```

In [11]:

```
# Leaving this instantiation for futher consider later;
# see next cell for current round_up axiom
# round_up = Forall(
# x,
# greater_eq(Round(x), x),
# domain=Real,
# conditions=[Equals(Abs(subtract(Round(x), x)), frac(one, two))])
```

In [12]:

```
round_up = Forall(
x,
Equals(Round(x), Ceil(x)),
domain=Real,
conditions=[Equals(subtract(x, Floor(x)), subtract(Ceil(x), x))])
```

In [13]:

```
%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.