logo

Theorem inf_geom_sum of type Forall

from the theory of proveit.numbers.summation

see dependencies

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.numbers.summation import inf_geom_sum
In [2]:
# check that the built expression is the same as the stored expression
assert inf_geom_sum.expr == stored_expr
assert inf_geom_sum.expr._style_id == stored_expr._style_id
print("Passed sanity check: inf_geom_sum matches stored_expr")
Passed sanity check: inf_geom_sum matches stored_expr
In [3]:
# Show the LaTeX representation of the expression for convenience if you need it.
print(stored_expr.latex())
\forall_{x \in \mathbb{C}~|~\left|x\right| < 1}~\left(\left(\sum_{m = 0}^{\infty} x^{m}\right) = \frac{1}{1 - x}\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: 1
operand: 3
1Literal
2ExprTuple3
3Lambdaparameter: 43
body: 4
4Conditionalvalue: 5
condition: 6
5Operationoperator: 7
operands: 8
6Operationoperator: 9
operands: 10
7Literal
8ExprTuple11, 12
9Literal
10ExprTuple13, 14
11Operationoperator: 15
operand: 22
12Operationoperator: 17
operands: 18
13Operationoperator: 37
operands: 19
14Operationoperator: 20
operands: 21
15Literal
16ExprTuple22
17Literal
18ExprTuple33, 23
19ExprTuple43, 24
20Literal
21ExprTuple25, 33
22Lambdaparameter: 41
body: 27
23Operationoperator: 28
operands: 29
24Literal
25Operationoperator: 30
operand: 43
26ExprTuple41
27Conditionalvalue: 31
condition: 32
28Literal
29ExprTuple33, 34
30Literal
31Operationoperator: 35
operands: 36
32Operationoperator: 37
operands: 38
33Literal
34Operationoperator: 39
operand: 43
35Literal
36ExprTuple43, 41
37Literal
38ExprTuple41, 42
39Literal
40ExprTuple43
41Variable
42Operationoperator: 44
operands: 45
43Variable
44Literal
45ExprTuple46, 47
46Literal
47Literal