Metamath Proof Explorer


Theorem rmyluc

Description: The Y sequence is a Lucas sequence, definable via this second-order recurrence with rmy0 and rmy1 . Part 3 of equation 2.12 of JonesMatijasevic p. 695. JonesMatijasevic uses this theorem to redefine the X and Y sequences to have domain ( ZZ X. ZZ ) , which simplifies some later theorems. It may shorten the derivation to use this as our initial definition. Incidentally, the X sequence satisfies the exact same recurrence. (Contributed by Stefan O'Rear, 1-Oct-2014)

Ref Expression
Assertion rmyluc A2NAYrmN+1=2AYrmNAAYrmN1

Proof

Step Hyp Ref Expression
1 peano2z NN+1
2 frmy Yrm:2×
3 2 fovcl A2N+1AYrmN+1
4 1 3 sylan2 A2NAYrmN+1
5 4 zcnd A2NAYrmN+1
6 2cn 2
7 2 fovcl A2NAYrmN
8 7 zcnd A2NAYrmN
9 eluzelcn A2A
10 9 adantr A2NA
11 8 10 mulcld A2NAYrmNA
12 mulcl 2AYrmNA2AYrmNA
13 6 11 12 sylancr A2N2AYrmNA
14 peano2zm NN1
15 2 fovcl A2N1AYrmN1
16 14 15 sylan2 A2NAYrmN1
17 16 zcnd A2NAYrmN1
18 13 17 subcld A2N2AYrmNAAYrmN1
19 rmyp1 A2NAYrmN+1=AYrmNA+AXrmN
20 rmym1 A2NAYrmN1=AYrmNAAXrmN
21 19 20 oveq12d A2NAYrmN+1+AYrmN1=AYrmNA+AXrmN+AYrmNAAXrmN
22 frmx Xrm:2×0
23 22 fovcl A2NAXrmN0
24 23 nn0cnd A2NAXrmN
25 11 24 11 ppncand A2NAYrmNA+AXrmN+AYrmNAAXrmN=AYrmNA+AYrmNA
26 13 17 npcand A2N2AYrmNA-AYrmN1+AYrmN1=2AYrmNA
27 11 2timesd A2N2AYrmNA=AYrmNA+AYrmNA
28 26 27 eqtr2d A2NAYrmNA+AYrmNA=2AYrmNA-AYrmN1+AYrmN1
29 21 25 28 3eqtrd A2NAYrmN+1+AYrmN1=2AYrmNA-AYrmN1+AYrmN1
30 5 18 17 29 addcan2ad A2NAYrmN+1=2AYrmNAAYrmN1