ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  findcard Unicode version

Theorem findcard 6854
Description: Schema for induction on the cardinality of a finite set. The inductive hypothesis is that the result is true on the given set with any one element removed. The result is then proven to be true for all finite sets. (Contributed by Jeff Madsen, 2-Sep-2009.)
Hypotheses
Ref Expression
findcard.1  |-  ( x  =  (/)  ->  ( ph  <->  ps ) )
findcard.2  |-  ( x  =  ( y  \  { z } )  ->  ( ph  <->  ch )
)
findcard.3  |-  ( x  =  y  ->  ( ph 
<->  th ) )
findcard.4  |-  ( x  =  A  ->  ( ph 
<->  ta ) )
findcard.5  |-  ps
findcard.6  |-  ( y  e.  Fin  ->  ( A. z  e.  y  ch  ->  th ) )
Assertion
Ref Expression
findcard  |-  ( A  e.  Fin  ->  ta )
Distinct variable groups:    x, y, z, A    ps, x    ch, x    th, x    ta, x    ph, y, z
Allowed substitution hints:    ph( x)    ps( y,
z)    ch( y, z)    th( y,
z)    ta( y, z)

Proof of Theorem findcard
Dummy variables  w  v are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 findcard.4 . 2  |-  ( x  =  A  ->  ( ph 
<->  ta ) )
2 isfi 6727 . . 3  |-  ( x  e.  Fin  <->  E. w  e.  om  x  ~~  w
)
3 breq2 3986 . . . . . . . 8  |-  ( w  =  (/)  ->  ( x 
~~  w  <->  x  ~~  (/) ) )
43imbi1d 230 . . . . . . 7  |-  ( w  =  (/)  ->  ( ( x  ~~  w  ->  ph )  <->  ( x  ~~  (/) 
->  ph ) ) )
54albidv 1812 . . . . . 6  |-  ( w  =  (/)  ->  ( A. x ( x  ~~  w  ->  ph )  <->  A. x
( x  ~~  (/)  ->  ph )
) )
6 breq2 3986 . . . . . . . 8  |-  ( w  =  v  ->  (
x  ~~  w  <->  x  ~~  v ) )
76imbi1d 230 . . . . . . 7  |-  ( w  =  v  ->  (
( x  ~~  w  ->  ph )  <->  ( x  ~~  v  ->  ph )
) )
87albidv 1812 . . . . . 6  |-  ( w  =  v  ->  ( A. x ( x  ~~  w  ->  ph )  <->  A. x
( x  ~~  v  ->  ph ) ) )
9 breq2 3986 . . . . . . . 8  |-  ( w  =  suc  v  -> 
( x  ~~  w  <->  x 
~~  suc  v )
)
109imbi1d 230 . . . . . . 7  |-  ( w  =  suc  v  -> 
( ( x  ~~  w  ->  ph )  <->  ( x  ~~  suc  v  ->  ph )
) )
1110albidv 1812 . . . . . 6  |-  ( w  =  suc  v  -> 
( A. x ( x  ~~  w  ->  ph )  <->  A. x ( x 
~~  suc  v  ->  ph ) ) )
12 en0 6761 . . . . . . . 8  |-  ( x 
~~  (/)  <->  x  =  (/) )
13 findcard.5 . . . . . . . . 9  |-  ps
14 findcard.1 . . . . . . . . 9  |-  ( x  =  (/)  ->  ( ph  <->  ps ) )
1513, 14mpbiri 167 . . . . . . . 8  |-  ( x  =  (/)  ->  ph )
1612, 15sylbi 120 . . . . . . 7  |-  ( x 
~~  (/)  ->  ph )
1716ax-gen 1437 . . . . . 6  |-  A. x
( x  ~~  (/)  ->  ph )
18 peano2 4572 . . . . . . . . . . . . 13  |-  ( v  e.  om  ->  suc  v  e.  om )
19 breq2 3986 . . . . . . . . . . . . . 14  |-  ( w  =  suc  v  -> 
( y  ~~  w  <->  y 
~~  suc  v )
)
2019rspcev 2830 . . . . . . . . . . . . 13  |-  ( ( suc  v  e.  om  /\  y  ~~  suc  v
)  ->  E. w  e.  om  y  ~~  w
)
2118, 20sylan 281 . . . . . . . . . . . 12  |-  ( ( v  e.  om  /\  y  ~~  suc  v )  ->  E. w  e.  om  y  ~~  w )
22 isfi 6727 . . . . . . . . . . . 12  |-  ( y  e.  Fin  <->  E. w  e.  om  y  ~~  w
)
2321, 22sylibr 133 . . . . . . . . . . 11  |-  ( ( v  e.  om  /\  y  ~~  suc  v )  ->  y  e.  Fin )
24233adant2 1006 . . . . . . . . . 10  |-  ( ( v  e.  om  /\  A. x ( x  ~~  v  ->  ph )  /\  y  ~~  suc  v )  -> 
y  e.  Fin )
25 dif1en 6845 . . . . . . . . . . . . . . . 16  |-  ( ( v  e.  om  /\  y  ~~  suc  v  /\  z  e.  y )  ->  ( y  \  {
z } )  ~~  v )
26253expa 1193 . . . . . . . . . . . . . . 15  |-  ( ( ( v  e.  om  /\  y  ~~  suc  v
)  /\  z  e.  y )  ->  (
y  \  { z } )  ~~  v
)
27 vex 2729 . . . . . . . . . . . . . . . . 17  |-  y  e. 
_V
28 difexg 4123 . . . . . . . . . . . . . . . . 17  |-  ( y  e.  _V  ->  (
y  \  { z } )  e.  _V )
2927, 28ax-mp 5 . . . . . . . . . . . . . . . 16  |-  ( y 
\  { z } )  e.  _V
30 breq1 3985 . . . . . . . . . . . . . . . . 17  |-  ( x  =  ( y  \  { z } )  ->  ( x  ~~  v 
<->  ( y  \  {
z } )  ~~  v ) )
31 findcard.2 . . . . . . . . . . . . . . . . 17  |-  ( x  =  ( y  \  { z } )  ->  ( ph  <->  ch )
)
3230, 31imbi12d 233 . . . . . . . . . . . . . . . 16  |-  ( x  =  ( y  \  { z } )  ->  ( ( x 
~~  v  ->  ph )  <->  ( ( y  \  {
z } )  ~~  v  ->  ch ) ) )
3329, 32spcv 2820 . . . . . . . . . . . . . . 15  |-  ( A. x ( x  ~~  v  ->  ph )  ->  (
( y  \  {
z } )  ~~  v  ->  ch ) )
3426, 33syl5com 29 . . . . . . . . . . . . . 14  |-  ( ( ( v  e.  om  /\  y  ~~  suc  v
)  /\  z  e.  y )  ->  ( A. x ( x  ~~  v  ->  ph )  ->  ch ) )
3534ralrimdva 2546 . . . . . . . . . . . . 13  |-  ( ( v  e.  om  /\  y  ~~  suc  v )  ->  ( A. x
( x  ~~  v  ->  ph )  ->  A. z  e.  y  ch )
)
3635imp 123 . . . . . . . . . . . 12  |-  ( ( ( v  e.  om  /\  y  ~~  suc  v
)  /\  A. x
( x  ~~  v  ->  ph ) )  ->  A. z  e.  y  ch )
3736an32s 558 . . . . . . . . . . 11  |-  ( ( ( v  e.  om  /\ 
A. x ( x 
~~  v  ->  ph )
)  /\  y  ~~  suc  v )  ->  A. z  e.  y  ch )
38373impa 1184 . . . . . . . . . 10  |-  ( ( v  e.  om  /\  A. x ( x  ~~  v  ->  ph )  /\  y  ~~  suc  v )  ->  A. z  e.  y  ch )
39 findcard.6 . . . . . . . . . 10  |-  ( y  e.  Fin  ->  ( A. z  e.  y  ch  ->  th ) )
4024, 38, 39sylc 62 . . . . . . . . 9  |-  ( ( v  e.  om  /\  A. x ( x  ~~  v  ->  ph )  /\  y  ~~  suc  v )  ->  th )
41403exp 1192 . . . . . . . 8  |-  ( v  e.  om  ->  ( A. x ( x  ~~  v  ->  ph )  ->  (
y  ~~  suc  v  ->  th ) ) )
4241alrimdv 1864 . . . . . . 7  |-  ( v  e.  om  ->  ( A. x ( x  ~~  v  ->  ph )  ->  A. y
( y  ~~  suc  v  ->  th ) ) )
43 breq1 3985 . . . . . . . . 9  |-  ( x  =  y  ->  (
x  ~~  suc  v  <->  y  ~~  suc  v ) )
44 findcard.3 . . . . . . . . 9  |-  ( x  =  y  ->  ( ph 
<->  th ) )
4543, 44imbi12d 233 . . . . . . . 8  |-  ( x  =  y  ->  (
( x  ~~  suc  v  ->  ph )  <->  ( y  ~~  suc  v  ->  th )
) )
4645cbvalv 1905 . . . . . . 7  |-  ( A. x ( x  ~~  suc  v  ->  ph )  <->  A. y ( y  ~~  suc  v  ->  th )
)
4742, 46syl6ibr 161 . . . . . 6  |-  ( v  e.  om  ->  ( A. x ( x  ~~  v  ->  ph )  ->  A. x
( x  ~~  suc  v  ->  ph ) ) )
485, 8, 11, 17, 47finds1 4579 . . . . 5  |-  ( w  e.  om  ->  A. x
( x  ~~  w  ->  ph ) )
494819.21bi 1546 . . . 4  |-  ( w  e.  om  ->  (
x  ~~  w  ->  ph ) )
5049rexlimiv 2577 . . 3  |-  ( E. w  e.  om  x  ~~  w  ->  ph )
512, 50sylbi 120 . 2  |-  ( x  e.  Fin  ->  ph )
521, 51vtoclga 2792 1  |-  ( A  e.  Fin  ->  ta )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    /\ w3a 968   A.wal 1341    = wceq 1343    e. wcel 2136   A.wral 2444   E.wrex 2445   _Vcvv 2726    \ cdif 3113   (/)c0 3409   {csn 3576   class class class wbr 3982   suc csuc 4343   omcom 4567    ~~ cen 6704   Fincfn 6706
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-coll 4097  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-iinf 4565
This theorem depends on definitions:  df-bi 116  df-dc 825  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-ral 2449  df-rex 2450  df-reu 2451  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-if 3521  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-iun 3868  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-suc 4349  df-iom 4568  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-er 6501  df-en 6707  df-fin 6709
This theorem is referenced by:  xpfi  6895
  Copyright terms: Public domain W3C validator