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 a, b
from proveit.logic import Forall, Equals, InSet
from proveit.numbers import one, i, Real, Complex, Add, subtract, Neg, Mult, Conjugate
%begin axioms
The imaginary number is defined as a number that squares to -1.
imaginary_number_def = Equals(Mult(i, i), Neg(one))
complex_numbers_def = Forall((a, b), InSet(Add(a, Mult(i, b)), Complex), domain=Real)
conjugate_def = Forall((a, b), Equals(Conjugate(Add(a, Mult(i, b))),
subtract(a, Mult(i, b))))
%end axioms