Proof: Do Expr At Unchanged 47
Let's prove the following theorem:
if the following are true:
- expression state at time 47 = "begin_expr"
- the expression at time 47 =
self.x
then the expression at time 48 = self.x
Proof:
Given
1 | expression state at time 47 = "begin_expr" |
---|---|
2 | the expression at time 47 = self.x |
# | Claim | Reason |
---|---|---|
1 | the expression at time (47 + 1) = the expression at time 47 | if expression state at time 47 = "begin_expr", then the expression at time (47 + 1) = the expression at time 47 |
2 | the expression at time (47 + 1) = self.x |
if the expression at time (47 + 1) = the expression at time 47 and the expression at time 47 = self.x , then the expression at time (47 + 1) = self.x |
3 | 47 + 1 = 48 | 47 + 1 = 48 |
4 | the expression at time (47 + 1) = the expression at time 48 | if 47 + 1 = 48, then the expression at time (47 + 1) = the expression at time 48 |
5 | the expression at time 48 = self.x |
if the expression at time (47 + 1) = the expression at time 48 and the expression at time (47 + 1) = self.x , then the expression at time 48 = self.x |
Comments
Please log in to add comments