HomeHome Metamath Proof Explorer < Previous   Next >
Related theorems
Unicode version

Theorem indpi 6186
Description: Principle of Finite Induction on positive integers.
Hypotheses
Ref Expression
indpi.1 |- (x = 1o -> (ph <-> ps))
indpi.2 |- (x = y -> (ph <-> ch))
indpi.3 |- (x = (y +N 1o) -> (ph <-> th))
indpi.4 |- (x = A -> (ph <-> ta))
indpi.5 |- ps
indpi.6 |- (y e. N. -> (ch -> th))
Assertion
Ref Expression
indpi |- (A e. N. -> ta)
Distinct variable groups:   x,y   x,A   ps,x   ch,x   th,x   ta,x   ph,y

Proof of Theorem indpi
StepHypRef Expression
1 nlt1pi 6185 . . . 4 |- -. A <N 1o
2 1pi 6163 . . . . 5 |- 1o e. N.
3 ltsopi 6168 . . . . . 6 |- <N Or N.
4 sotric 3615 . . . . . 6 |- (( <N Or N. /\ (A e. N. /\ 1o e. N.)) -> (A <N 1o <-> -. (A = 1o \/ 1o <N A)))
53, 4mpan 759 . . . . 5 |- ((A e. N. /\ 1o e. N.) -> (A <N 1o <-> -. (A = 1o \/ 1o <N A)))
62, 5mpan2 760 . . . 4 |- (A e. N. -> (A <N 1o <-> -. (A = 1o \/ 1o <N A)))
71, 6mtbii 784 . . 3 |- (A e. N. -> -. -. (A = 1o \/ 1o <N A))
8 notnot2 100 . . 3 |- (-. -. (A = 1o \/ 1o <N A) -> (A = 1o \/ 1o <N A))
97, 8syl 12 . 2 |- (A e. N. -> (A = 1o \/ 1o <N A))
102elisseti 2301 . . . . . . 7 |- 1o e. _V
1110eqvinc 2387 . . . . . 6 |- (1o = A <-> E.x(x = 1o /\ x = A))
12 indpi.4 . . . . . 6 |- (x = A -> (ph <-> ta))
13 indpi.5 . . . . . . 7 |- ps
14 indpi.1 . . . . . . 7 |- (x = 1o -> (ph <-> ps))
1513, 14mpbiri 211 . . . . . 6 |- (x = 1o -> ph)
1611, 12, 15gencl 2318 . . . . 5 |- (1o = A -> ta)
1716eqcoms 1887 . . . 4 |- (A = 1o -> ta)
1817a1i 8 . . 3 |- (A e. N. -> (A = 1o -> ta))
19 pinn 6158 . . . . . 6 |- (A e. N. -> A e. om)
20 elni2 6157 . . . . . . 7 |- (A e. N. <-> (A e. om /\ (/) e. A))
21 nnord 3959 . . . . . . . . . 10 |- (A e. om -> Ord A)
22 ordsucss 3899 . . . . . . . . . 10 |- (Ord A -> ((/) e. A -> suc (/) C_ A))
2321, 22syl 12 . . . . . . . . 9 |- (A e. om -> ((/) e. A -> suc (/) C_ A))
24 df-1o 5177 . . . . . . . . . 10 |- 1o = suc (/)
2524sseq1i 2641 . . . . . . . . 9 |- (1o C_ A <-> suc (/) C_ A)
2623, 25syl6ibr 230 . . . . . . . 8 |- (A e. om -> ((/) e. A -> 1o C_ A))
2726imp 377 . . . . . . 7 |- ((A e. om /\ (/) e. A) -> 1o C_ A)
2820, 27sylbi 216 . . . . . 6 |- (A e. N. -> 1o C_ A)
29 1onn 5310 . . . . . . 7 |- 1o e. om
30 eleq1 1957 . . . . . . . . . 10 |- (x = 1o -> (x e. N. <-> 1o e. N.))
31 breq2 3342 . . . . . . . . . 10 |- (x = 1o -> (1o <N x <-> 1o <N 1o))
3230, 31anbi12d 690 . . . . . . . . 9 |- (x = 1o -> ((x e. N. /\ 1o <N x) <-> (1o e. N. /\ 1o <N 1o)))
3332, 14imbi12d 688 . . . . . . . 8 |- (x = 1o -> (((x e. N. /\ 1o <N x) -> ph) <-> ((1o e. N. /\ 1o <N 1o) -> ps)))
34 eleq1 1957 . . . . . . . . . 10 |- (x = y -> (x e. N. <-> y e. N.))
35 breq2 3342 . . . . . . . . . 10 |- (x = y -> (1o <N x <-> 1o <N y))
3634, 35anbi12d 690 . . . . . . . . 9 |- (x = y -> ((x e. N. /\ 1o <N x) <-> (y e. N. /\ 1o <N y)))
37 indpi.2 . . . . . . . . 9 |- (x = y -> (ph <-> ch))
3836, 37imbi12d 688 . . . . . . . 8 |- (x = y -> (((x e. N. /\ 1o <N x) -> ph) <-> ((y e. N. /\ 1o <N y) -> ch)))
39 eleq1 1957 . . . . . . . . . . . . . . . . 17 |- (x = suc y -> (x e. om <-> suc y e. om))
40 peano2b 3968 . . . . . . . . . . . . . . . . 17 |- (y e. om <-> suc y e. om)
4139, 40syl6bbr 597 . . . . . . . . . . . . . . . 16 |- (x = suc y -> (x e. om <-> y e. om))
42 pinn 6158 . . . . . . . . . . . . . . . 16 |- (x e. N. -> x e. om)
4341, 42syl5bi 225 . . . . . . . . . . . . . . 15 |- (x = suc y -> (x e. N. -> y e. om))
4443adantrd 427 . . . . . . . . . . . . . 14 |- (x = suc y -> ((x e. N. /\ 1o <N x) -> y e. om))
45 eleq2 1958 . . . . . . . . . . . . . . . 16 |- (x = suc y -> (1o e. x <-> 1o e. suc y))
46 elsuci 3731 . . . . . . . . . . . . . . . . 17 |- (1o e. suc y -> (1o e. y \/ 1o = y))
47 ne0i 2881 . . . . . . . . . . . . . . . . . 18 |- (1o e. y -> y =/= (/))
48 0lt1o 5192 . . . . . . . . . . . . . . . . . . . 20 |- (/) e. 1o
49 eleq2 1958 . . . . . . . . . . . . . . . . . . . 20 |- (1o = y -> ((/) e. 1o <-> (/) e. y))
5048, 49mpbii 210 . . . . . . . . . . . . . . . . . . 19 |- (1o = y -> (/) e. y)
51 ne0i 2881 . . . . . . . . . . . . . . . . . . 19 |- ((/) e. y -> y =/= (/))
5250, 51syl 12 . . . . . . . . . . . . . . . . . 18 |- (1o = y -> y =/= (/))
5347, 52jaoi 368 . . . . . . . . . . . . . . . . 17 |- ((1o e. y \/ 1o = y) -> y =/= (/))
5446, 53syl 12 . . . . . . . . . . . . . . . 16 |- (1o e. suc y -> y =/= (/))
5545, 54syl6bi 231 . . . . . . . . . . . . . . 15 |- (x = suc y -> (1o e. x -> y =/= (/)))
56 ltpiord 6167 . . . . . . . . . . . . . . . . 17 |- ((1o e. N. /\ x e. N.) -> (1o <N x <-> 1o e. x))
572, 56mpan 759 . . . . . . . . . . . . . . . 16 |- (x e. N. -> (1o <N x <-> 1o e. x))
5857biimpa 460 . . . . . . . . . . . . . . 15 |- ((x e. N. /\ 1o <N x) -> 1o e. x)
5955, 58syl5 20 . . . . . . . . . . . . . 14 |- (x = suc y -> ((x e. N. /\ 1o <N x) -> y =/= (/)))
6044, 59jcad 661 . . . . . . . . . . . . 13 |- (x = suc y -> ((x e. N. /\ 1o <N x) -> (y e. om /\ y =/= (/))))
61 elni 6156 . . . . . . . . . . . . 13 |- (y e. N. <-> (y e. om /\ y =/= (/)))
6260, 61syl6ibr 230 . . . . . . . . . . . 12 |- (x = suc y -> ((x e. N. /\ 1o <N x) -> y e. N.))
63 breq2 3342 . . . . . . . . . . . . 13 |- (x = suc y -> (1o <N x <-> 1o <N suc y))
64 simpr 350 . . . . . . . . . . . . 13 |- ((x e. N. /\ 1o <N x) -> 1o <N x)
6563, 64syl5bi 225 . . . . . . . . . . . 12 |- (x = suc y -> ((x e. N. /\ 1o <N x) -> 1o <N suc y))
6662, 65jcad 661 . . . . . . . . . . 11 |- (x = suc y -> ((x e. N. /\ 1o <N x) -> (y e. N. /\ 1o <N suc y)))
67 addpiord 6164 . . . . . . . . . . . . . . . . . . . 20 |- ((y e. N. /\ 1o e. N.) -> (y +N 1o) = (y +o 1o))
682, 67mpan2 760 . . . . . . . . . . . . . . . . . . 19 |- (y e. N. -> (y +N 1o) = (y +o 1o))
69 pion 6159 . . . . . . . . . . . . . . . . . . . 20 |- (y e. N. -> y e. On)
70 oa1suc 5209 . . . . . . . . . . . . . . . . . . . 20 |- (y e. On -> (y +o 1o) = suc y)
7169, 70syl 12 . . . . . . . . . . . . . . . . . . 19 |- (y e. N. -> (y +o 1o) = suc y)
7268, 71eqtrd 1925 . . . . . . . . . . . . . . . . . 18 |- (y e. N. -> (y +N 1o) = suc y)
7372eqeq2d 1895 . . . . . . . . . . . . . . . . 17 |- (y e. N. -> (x = (y +N 1o) <-> x = suc y))
7473biimparc 463 . . . . . . . . . . . . . . . 16 |- ((x = suc y /\ y e. N.) -> x = (y +N 1o))
7574eleq1d 1963 . . . . . . . . . . . . . . 15 |- ((x = suc y /\ y e. N.) -> (x e. N. <-> (y +N 1o) e. N.))
76 addclpi 6172 . . . . . . . . . . . . . . . 16 |- ((y e. N. /\ 1o e. N.) -> (y +N 1o) e. N.)
772, 76mpan2 760 . . . . . . . . . . . . . . 15 |- (y e. N. -> (y +N 1o) e. N.)
7875, 77syl5bir 227 . . . . . . . . . . . . . 14 |- ((x = suc y /\ y e. N.) -> (y e. N. -> x e. N.))
7978ex 402 . . . . . . . . . . . . 13 |- (x = suc y -> (y e. N. -> (y e. N. -> x e. N.)))
8079pm2.43d 79 . . . . . . . . . . . 12 |- (x = suc y -> (y e. N. -> x e. N.))
8163biimprd 171 . . . . . . . . . . . 12 |- (x = suc y -> (1o <N suc y -> 1o <N x))
8280, 81anim12d 617 . . . . . . . . . . 11 |- (x = suc y -> ((y e. N. /\ 1o <N suc y) -> (x e. N. /\ 1o <N x)))
8366, 82impbid 574 . . . . . . . . . 10 |- (x = suc y -> ((x e. N. /\ 1o <N x) <-> (y e. N. /\ 1o <N suc y)))
8483imbi1d 675 . . . . . . . . 9 |- (x = suc y -> (((x e. N. /\ 1o <N x) -> ph) <-> ((y e. N. /\ 1o <N suc y) -> ph)))
85 indpi.3 . . . . . . . . . . . . 13 |- (x = (y +N 1o) -> (ph <-> th))
8673, 85syl6bir 232 . . . . . . . . . . . 12 |- (y e. N. -> (x = suc y -> (ph <-> th)))
8786adantr 425 . . . . . . . . . . 11 |- ((y e. N. /\ 1o <N suc y) -> (x = suc y -> (ph <-> th)))
8887com12 14 . . . . . . . . . 10 |- (x = suc y -> ((y e. N. /\ 1o <N suc y) -> (ph <-> th)))
8988pm5.74d 645 . . . . . . . . 9 |- (x = suc y -> (((y e. N. /\ 1o <N suc y) -> ph) <-> ((y e. N. /\ 1o <N suc y) -> th)))
9084, 89bitrd 587 . . . . . . . 8 |- (x = suc y -> (((x e. N. /\ 1o <N x) -> ph) <-> ((y e. N. /\ 1o <N suc y) -> th)))
91 eleq1 1957 . . . . . . . . . 10 |- (x = A -> (x e. N. <-> A e. N.))
92 breq2 3342 . . . . . . . . . 10 |- (x = A -> (1o <N x <-> 1o <N A))
9391, 92anbi12d 690 . . . . . . . . 9 |- (x = A -> ((x e. N. /\ 1o <N x) <-> (A e. N. /\ 1o <N A)))
9493, 12imbi12d 688 . . . . . . . 8 |- (x = A -> (((x e. N. /\ 1o <N x) -> ph) <-> ((A e. N. /\ 1o <N A) -> ta)))
9513a1i12 9 . . . . . . . 8 |- (1o e. om -> ((1o e. N. /\ 1o <N 1o) -> ps))
96 ltpiord 6167 . . . . . . . . . . . . . . . 16 |- ((1o e. N. /\ y e. N.) -> (1o <N y <-> 1o e. y))
972, 96mpan 759 . . . . . . . . . . . . . . 15 |- (y e. N. -> (1o <N y <-> 1o e. y))
9897pm5.32i 707 . . . . . . . . . . . . . 14 |- ((y e. N. /\ 1o <N y) <-> (y e. N. /\ 1o e. y))
9998simplbi2 466 . . . . . . . . . . . . 13 |- (y e. N. -> (1o e. y -> (y e. N. /\ 1o <N y)))
10099imim1d 33 . . . . . . . . . . . 12 |- (y e. N. -> (((y e. N. /\ 1o <N y) -> ch) -> (1o e. y -> ch)))
10110eqvinc 2387 . . . . . . . . . . . . . . . 16 |- (1o = y <-> E.x(x = 1o /\ x = y))
102101, 37, 15gencl 2318 . . . . . . . . . . . . . . 15 |- (1o = y -> ch)
103 jao 367 . . . . . . . . . . . . . . 15 |- ((1o e. y -> ch) -> ((1o = y -> ch) -> ((1o e. y \/ 1o = y) -> ch)))
104102, 103mpi 55 . . . . . . . . . . . . . 14 |- ((1o e. y -> ch) -> ((1o e. y \/ 1o = y) -> ch))
105104, 46syl5 20 . . . . . . . . . . . . 13 |- ((1o e. y -> ch) -> (1o e. suc y -> ch))
106 visset 2295 . . . . . . . . . . . . . . . . 17 |- y e. _V
107106sucex 3892 . . . . . . . . . . . . . . . 16 |- suc y e. _V
108 ltrelpi 6169 . . . . . . . . . . . . . . . 16 |- <N C_ (N. X. N.)
109107, 108brel 4048 . . . . . . . . . . . . . . 15 |- (1o <N suc y -> (1o e. N. /\ suc y e. N.))
110 ltpiord 6167 . . . . . . . . . . . . . . 15 |- ((1o e. N. /\ suc y e. N.) -> (1o <N suc y <-> 1o e. suc y))
111109, 110syl 12 . . . . . . . . . . . . . 14 |- (1o <N suc y -> (1o <N suc y <-> 1o e. suc y))
112111ibi 652 . . . . . . . . . . . . 13 |- (1o <N suc y -> 1o e. suc y)
113105, 112syl5 20 . . . . . . . . . . . 12 |- ((1o e. y -> ch) -> (1o <N suc y -> ch))
114100, 113syl6com 64 . . . . . . . . . . 11 |- (((y e. N. /\ 1o <N y) -> ch) -> (y e. N. -> (1o <N suc y -> ch)))
115114imp3a 388 . . . . . . . . . 10 |- (((y e. N. /\ 1o <N y) -> ch) -> ((y e. N. /\ 1o <N suc y) -> ch))
116 elni2 6157 . . . . . . . . . . . 12 |- (y e. N. <-> (y e. om /\ (/) e. y))
117 indpi.6 . . . . . . . . . . . 12 |- (y e. N. -> (ch -> th))
118116, 117sylbir 218 . . . . . . . . . . 11 |- ((y e. om /\ (/) e. y) -> (ch -> th))
11924sseq1i 2641 . . . . . . . . . . . 12 |- (1o C_ y <-> suc (/) C_ y)
120 0ex 3446 . . . . . . . . . . . . 13 |- (/) e. _V
121 sucssel 3763 . . . . . . . . . . . . 13 |- ((/) e. _V -> (suc (/) C_ y -> (/) e. y))
122120, 121ax-mp 7 . . . . . . . . . . . 12 |- (suc (/) C_ y -> (/) e. y)
123119, 122sylbi 216 . . . . . . . . . . 11 |- (1o C_ y -> (/) e. y)
124118, 123sylan2 500 . . . . . . . . . 10 |- ((y e. om /\ 1o C_ y) -> (ch -> th))
125115, 124syl9r 72 . . . . . . . . 9 |- ((y e. om /\ 1o C_ y) -> (((y e. N. /\ 1o <N y) -> ch) -> ((y e. N. /\ 1o <N suc y) -> th)))
126125adantlr 429 . . . . . . . 8 |- (((y e. om /\ 1o e. om) /\ 1o C_ y) -> (((y e. N. /\ 1o <N y) -> ch) -> ((y e. N. /\ 1o <N suc y) -> th)))
12733, 38, 90, 94, 95, 126findsg 3980 . . . . . . 7 |- (((A e. om /\ 1o e. om) /\ 1o C_ A) -> ((A e. N. /\ 1o <N A) -> ta))
12829, 127mpanl2 771 . . . . . 6 |- ((A e. om /\ 1o C_ A) -> ((A e. N. /\ 1o <N A) -> ta))
12919, 28, 128syl11anc 524 . . . . 5 |- (A e. N. -> ((A e. N. /\ 1o <N A) -> ta))
130129exp3a 405 . . . 4 |- (A e. N. -> (A e. N. -> (1o <N A -> ta)))
131130pm2.43i 78 . . 3 |- (A e. N. -> (1o <N A -> ta))
13218, 131jaod 469 . 2 |- (A e. N. -> ((A = 1o \/ 1o <N A) -> ta))
1339, 132mpd 29 1 |- (A e. N. -> ta)
Colors of variables: wff set class
Syntax hints:  -. wn 2   -> wi 3   <-> wb 163   \/ wo 239   /\ wa 240   = wceq 1298   e. wcel 1300   =/= wne 2017  _Vcvv 2292   C_ wss 2593  (/)c0 2875   class class class wbr 3338   Or wor 3590  Ord word 3656  Oncon0 3657  suc csuc 3659  omcom 3949  (class class class)co 4884  1oc1o 5172   +o coa 5174  N.cnpi 6124   +N cpli 6125   <N clti 6127
This theorem is referenced by:  prlem934a 6289
This theorem was proved from axioms:  ax-1 4  ax-2 5  ax-3 6  ax-mp 7  ax-7 1304  ax-gen 1305  ax-8 1306  ax-9 1307  ax-10 1308  ax-11 1309  ax-12 1310  ax-13 1311  ax-14 1312  ax-17 1317  ax-4 1319  ax-5o 1321  ax-6o 1324  ax-9o 1481  ax-10o 1500  ax-16 1580  ax-11o 1588  ax-ext 1865  ax-rep 3428  ax-sep 3438  ax-nul 3445  ax-pow 3481  ax-pr 3524  ax-un 3790
This theorem depends on definitions:  df-bi 164  df-or 241  df-an 242  df-3or 859  df-3an 860  df-ex 1327  df-sb 1536  df-eu 1775  df-mo 1776  df-clab 1872  df-cleq 1877  df-clel 1880  df-ne 2019  df-ral 2109  df-rex 2110  df-rab 2112  df-v 2294  df-sbc 2454  df-csb 2541  df-dif 2597  df-un 2600  df-in 2603  df-ss 2605  df-pss 2607  df-nul 2876  df-if 2983  df-pw 3035  df-sn 3049  df-pr 3050  df-tp 3052  df-op 3053  df-uni 3178  df-iun 3257  df-br 3339  df-opab 3396  df-tr 3412  df-eprel 3583  df-id 3586  df-po 3591  df-so 3604  df-fr 3625  df-we 3644  df-ord 3660  df-on 3661  df-lim 3662  df-suc 3663  df-om 3950  df-xp 4000  df-rel 4001  df-cnv 4002  df-co 4003  df-dm 4004  df-rn 4005  df-res 4006  df-ima 4007  df-fun 4008  df-fn 4009  df-fv 4014  df-opr 4886  df-oprab 4887  df-rdg 5140  df-1o 5177  df-oadd 5179  df-ni 6152  df-pli 6153  df-lti 6155
Copyright terms: Public domain