This is an inofficial mirror of http://metamath.tirix.org for personal testing of a visualizer extension only.
Description: Add 1 to a 2 digit number with carry. This is a special case of decsucc , but in closed form. As observed by ML, this theorem allows for carrying the 1 down multiple decimal constructors, so we can carry the 1 multiple times down a multi-digit number, e.g., by applying this theorem three times we get ( ; ; 9 9 9 + 1 ) = ; ; ; 1 0 0 0 . (Contributed by AV, 4-Aug-2020) (Revised by ML, 8-Aug-2020) (Proof shortened by AV, 10-Sep-2021)
| Ref | Expression | ||
|---|---|---|---|
| Assertion | deccarry | Could not format assertion : No typesetting found for |- ( A e. NN -> ( ; A 9 + 1 ) = ; ( A + 1 ) 0 ) with typecode |- |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | df-dec | Could not format ; ( A + 1 ) 0 = ( ( ( 9 + 1 ) x. ( A + 1 ) ) + 0 ) : No typesetting found for |- ; ( A + 1 ) 0 = ( ( ( 9 + 1 ) x. ( A + 1 ) ) + 0 ) with typecode |- | |
| 2 | 9nn | ||
| 3 | peano2nn | ||
| 4 | 2 3 | ax-mp | |
| 5 | 4 | a1i | |
| 6 | peano2nn | ||
| 7 | 5 6 | nnmulcld | |
| 8 | 7 | nncnd | |
| 9 | 8 | addridd | |
| 10 | 4 | nncni | |
| 11 | 10 | a1i | |
| 12 | nncn | ||
| 13 | 1cnd | ||
| 14 | 11 12 13 | adddid | |
| 15 | 11 | mulridd | |
| 16 | 15 | oveq2d | |
| 17 | df-dec | Could not format ; A 9 = ( ( ( 9 + 1 ) x. A ) + 9 ) : No typesetting found for |- ; A 9 = ( ( ( 9 + 1 ) x. A ) + 9 ) with typecode |- | |
| 18 | 17 | oveq1i | Could not format ( ; A 9 + 1 ) = ( ( ( ( 9 + 1 ) x. A ) + 9 ) + 1 ) : No typesetting found for |- ( ; A 9 + 1 ) = ( ( ( ( 9 + 1 ) x. A ) + 9 ) + 1 ) with typecode |- |
| 19 | id | ||
| 20 | 5 19 | nnmulcld | |
| 21 | 20 | nncnd | |
| 22 | 2 | nncni | |
| 23 | 22 | a1i | |
| 24 | 21 23 13 | addassd | |
| 25 | 18 24 | eqtr2id | Could not format ( A e. NN -> ( ( ( 9 + 1 ) x. A ) + ( 9 + 1 ) ) = ( ; A 9 + 1 ) ) : No typesetting found for |- ( A e. NN -> ( ( ( 9 + 1 ) x. A ) + ( 9 + 1 ) ) = ( ; A 9 + 1 ) ) with typecode |- |
| 26 | 16 25 | eqtrd | Could not format ( A e. NN -> ( ( ( 9 + 1 ) x. A ) + ( ( 9 + 1 ) x. 1 ) ) = ( ; A 9 + 1 ) ) : No typesetting found for |- ( A e. NN -> ( ( ( 9 + 1 ) x. A ) + ( ( 9 + 1 ) x. 1 ) ) = ( ; A 9 + 1 ) ) with typecode |- |
| 27 | 14 26 | eqtrd | Could not format ( A e. NN -> ( ( 9 + 1 ) x. ( A + 1 ) ) = ( ; A 9 + 1 ) ) : No typesetting found for |- ( A e. NN -> ( ( 9 + 1 ) x. ( A + 1 ) ) = ( ; A 9 + 1 ) ) with typecode |- |
| 28 | 9 27 | eqtrd | Could not format ( A e. NN -> ( ( ( 9 + 1 ) x. ( A + 1 ) ) + 0 ) = ( ; A 9 + 1 ) ) : No typesetting found for |- ( A e. NN -> ( ( ( 9 + 1 ) x. ( A + 1 ) ) + 0 ) = ( ; A 9 + 1 ) ) with typecode |- |
| 29 | 1 28 | eqtr2id | Could not format ( A e. NN -> ( ; A 9 + 1 ) = ; ( A + 1 ) 0 ) : No typesetting found for |- ( A e. NN -> ( ; A 9 + 1 ) = ; ( A + 1 ) 0 ) with typecode |- |