Metamath Proof Explorer


Theorem 2nn0ind

Description: Induction on nonnegative integers with two base cases, for use with Lucas-type sequences. (Contributed by Stefan O'Rear, 1-Oct-2014)

Ref Expression
Hypotheses 2nn0ind.1 ψ
2nn0ind.2 χ
2nn0ind.3 yθτη
2nn0ind.4 x=0φψ
2nn0ind.5 x=1φχ
2nn0ind.6 x=y1φθ
2nn0ind.7 x=yφτ
2nn0ind.8 x=y+1φη
2nn0ind.9 x=Aφρ
Assertion 2nn0ind A0ρ

Proof

Step Hyp Ref Expression
1 2nn0ind.1 ψ
2 2nn0ind.2 χ
3 2nn0ind.3 yθτη
4 2nn0ind.4 x=0φψ
5 2nn0ind.5 x=1φχ
6 2nn0ind.6 x=y1φθ
7 2nn0ind.7 x=yφτ
8 2nn0ind.8 x=y+1φη
9 2nn0ind.9 x=Aφρ
10 nn0p1nn A0A+1
11 oveq1 a=1a1=11
12 11 sbceq1d a=1[˙a1/x]˙φ[˙11/x]˙φ
13 dfsbcq a=1[˙a/x]˙φ[˙1/x]˙φ
14 12 13 anbi12d a=1[˙a1/x]˙φ[˙a/x]˙φ[˙11/x]˙φ[˙1/x]˙φ
15 oveq1 a=ya1=y1
16 15 sbceq1d a=y[˙a1/x]˙φ[˙y1/x]˙φ
17 dfsbcq a=y[˙a/x]˙φ[˙y/x]˙φ
18 16 17 anbi12d a=y[˙a1/x]˙φ[˙a/x]˙φ[˙y1/x]˙φ[˙y/x]˙φ
19 oveq1 a=y+1a1=y+1-1
20 19 sbceq1d a=y+1[˙a1/x]˙φ[˙y+1-1/x]˙φ
21 dfsbcq a=y+1[˙a/x]˙φ[˙y+1/x]˙φ
22 20 21 anbi12d a=y+1[˙a1/x]˙φ[˙a/x]˙φ[˙y+1-1/x]˙φ[˙y+1/x]˙φ
23 oveq1 a=A+1a1=A+1-1
24 23 sbceq1d a=A+1[˙a1/x]˙φ[˙A+1-1/x]˙φ
25 dfsbcq a=A+1[˙a/x]˙φ[˙A+1/x]˙φ
26 24 25 anbi12d a=A+1[˙a1/x]˙φ[˙a/x]˙φ[˙A+1-1/x]˙φ[˙A+1/x]˙φ
27 ovex 11V
28 1m1e0 11=0
29 28 eqeq2i x=11x=0
30 29 4 sylbi x=11φψ
31 27 30 sbcie [˙11/x]˙φψ
32 1 31 mpbir [˙11/x]˙φ
33 1ex 1V
34 33 5 sbcie [˙1/x]˙φχ
35 2 34 mpbir [˙1/x]˙φ
36 32 35 pm3.2i [˙11/x]˙φ[˙1/x]˙φ
37 simprr y[˙y1/x]˙φ[˙y/x]˙φ[˙y/x]˙φ
38 nncn yy
39 ax-1cn 1
40 pncan y1y+1-1=y
41 38 39 40 sylancl yy+1-1=y
42 41 adantr y[˙y1/x]˙φ[˙y/x]˙φy+1-1=y
43 42 sbceq1d y[˙y1/x]˙φ[˙y/x]˙φ[˙y+1-1/x]˙φ[˙y/x]˙φ
44 37 43 mpbird y[˙y1/x]˙φ[˙y/x]˙φ[˙y+1-1/x]˙φ
45 ovex y1V
46 45 6 sbcie [˙y1/x]˙φθ
47 vex yV
48 47 7 sbcie [˙y/x]˙φτ
49 46 48 anbi12i [˙y1/x]˙φ[˙y/x]˙φθτ
50 ovex y+1V
51 50 8 sbcie [˙y+1/x]˙φη
52 3 49 51 3imtr4g y[˙y1/x]˙φ[˙y/x]˙φ[˙y+1/x]˙φ
53 52 imp y[˙y1/x]˙φ[˙y/x]˙φ[˙y+1/x]˙φ
54 44 53 jca y[˙y1/x]˙φ[˙y/x]˙φ[˙y+1-1/x]˙φ[˙y+1/x]˙φ
55 54 ex y[˙y1/x]˙φ[˙y/x]˙φ[˙y+1-1/x]˙φ[˙y+1/x]˙φ
56 14 18 22 26 36 55 nnind A+1[˙A+1-1/x]˙φ[˙A+1/x]˙φ
57 10 56 syl A0[˙A+1-1/x]˙φ[˙A+1/x]˙φ
58 nn0cn A0A
59 pncan A1A+1-1=A
60 58 39 59 sylancl A0A+1-1=A
61 60 sbceq1d A0[˙A+1-1/x]˙φ[˙A/x]˙φ
62 61 biimpa A0[˙A+1-1/x]˙φ[˙A/x]˙φ
63 62 adantrr A0[˙A+1-1/x]˙φ[˙A+1/x]˙φ[˙A/x]˙φ
64 57 63 mpdan A0[˙A/x]˙φ
65 9 sbcieg A0[˙A/x]˙φρ
66 64 65 mpbid A0ρ