logo
In [1]:
import proveit
# Automation is not needed when only building an expression:
proveit.defaults.automation = False # This will speed things up.
proveit.defaults.inline_pngs = False # Makes files smaller.
%load_theorem_expr # Load the stored theorem expression as 'stored_expr'
# import the special expression
from proveit.linear_algebra.matrices.exponentiation import eigen_exp_application
In [2]:
# check that the built expression is the same as the stored expression
assert eigen_exp_application.expr == stored_expr
assert eigen_exp_application.expr._style_id == stored_expr._style_id
print("Passed sanity check: eigen_exp_application matches stored_expr")
Passed sanity check: eigen_exp_application matches stored_expr
In [3]:
# Show the LaTeX representation of the expression for convenience if you need it.
print(stored_expr.latex())
\forall_{m \in \mathbb{N}^+}~\left[\forall_{b \in \mathbb{C}}~\left[\forall_{A, x~|~\left(A \thinspace x\right) = \left(b \cdot x\right)}~\left(\left(A^{m} \thinspace x\right) = \left(b^{m} \thinspace x\right)\right)\right]\right]
In [4]:
stored_expr.style_options()
namedescriptiondefaultcurrent valuerelated methods
with_wrappingIf 'True', wrap the Expression after the parametersNoneNone/False('with_wrapping',)
condition_wrappingWrap 'before' or 'after' the condition (or None).NoneNone/False('with_wrap_after_condition', 'with_wrap_before_condition')
wrap_paramsIf 'True', wraps every two parameters AND wraps the Expression after the parametersNoneNone/False('with_params',)
justificationjustify to the 'left', 'center', or 'right' in the array cellscentercenter('with_justification',)
In [5]:
# display the expression information
stored_expr.expr_info()
 core typesub-expressionsexpression
0Operationoperator: 15
operand: 2
1ExprTuple2
2Lambdaparameter: 46
body: 4
3ExprTuple46
4Conditionalvalue: 5
condition: 6
5Operationoperator: 15
operand: 9
6Operationoperator: 17
operands: 8
7ExprTuple9
8ExprTuple46, 10
9Lambdaparameter: 45
body: 12
10Literal
11ExprTuple45
12Conditionalvalue: 13
condition: 14
13Operationoperator: 15
operand: 19
14Operationoperator: 17
operands: 18
15Literal
16ExprTuple19
17Literal
18ExprTuple45, 20
19Lambdaparameters: 34
body: 21
20Literal
21Conditionalvalue: 22
condition: 23
22Operationoperator: 25
operands: 24
23Operationoperator: 25
operands: 26
24ExprTuple27, 28
25Literal
26ExprTuple29, 30
27Operationoperator: 33
operands: 31
28Operationoperator: 33
operands: 32
29Operationoperator: 33
operands: 34
30Operationoperator: 35
operands: 36
31ExprTuple37, 39
32ExprTuple38, 39
33Literal
34ExprTuple44, 39
35Literal
36ExprTuple45, 39
37Operationoperator: 40
operands: 41
38Operationoperator: 42
operands: 43
39Variable
40Literal
41ExprTuple44, 46
42Literal
43ExprTuple45, 46
44Variable
45Variable
46Variable