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 b, m, n, x, y, z, Conditional, ConditionalSet
from proveit.core_expr_types import a_1_to_m
from proveit.logic import Forall, Or, Equals
from proveit.numbers import (greater, greater_eq, Less, LessEq,
Max, Min, Natural, NaturalPos, Real)
```

In [2]:

```
%begin axioms
```

In [3]:

```
less_eq_def = Forall([x, y], Equals(LessEq(x, y), Or(Less(x, y), Equals(x, y))))
```

In [4]:

```
transitivity_less_less = Forall((x,y,z), Less(x, z),
conditions=[Less(x,y), Less(y, z)])
```

In [5]:

```
max_def_unary = Forall(x,
Equals(Max(x), x),
domain = Real)
```

In [6]:

```
min_def_unary = Forall(x,
Equals(Min(x), x),
domain = Real)
```

In [7]:

```
max_def_bin = (
Forall((x, y),
Equals(Max(x, y),
ConditionalSet(Conditional(x, greater_eq(x, y)),
Conditional(y, greater(y, x)))),
domain = Real))
```

In [8]:

```
min_def_bin = (
Forall((x, y),
Equals(Min(x, y),
ConditionalSet(Conditional(x, LessEq(x, y)),
Conditional(y, Less(y, x)))),
domain = Real))
```

In [9]:

```
max_def_multi = (
Forall(m,
Forall((a_1_to_m, b),
Equals(Max(a_1_to_m, b), Max(Max(a_1_to_m), b)),
domain=Real),
domain=NaturalPos))
```

In [10]:

```
min_def_multi = (
Forall(m,
Forall((a_1_to_m, b),
Equals(Min(a_1_to_m, b), Min(Min(a_1_to_m), b)),
domain=Real),
domain=NaturalPos))
```

In [11]:

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