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

Theorem zsupcllemex 11930
Description: Lemma for zsupcl 11931. Existence of the supremum. (Contributed by Jim Kingdon, 7-Dec-2021.)
Hypotheses
Ref Expression
zsupcllemex.m  |-  ( ph  ->  M  e.  ZZ )
zsupcllemex.sbm  |-  ( n  =  M  ->  ( ps 
<->  ch ) )
zsupcllemex.mtru  |-  ( ph  ->  ch )
zsupcllemex.dc  |-  ( (
ph  /\  n  e.  ( ZZ>= `  M )
)  -> DECID  ps )
zsupcllemex.bnd  |-  ( ph  ->  E. j  e.  (
ZZ>= `  M ) A. n  e.  ( ZZ>= `  j )  -.  ps )
Assertion
Ref Expression
zsupcllemex  |-  ( ph  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) )
Distinct variable groups:    n, M, y    ch, n    j, n, ph, y    ps, j, x, z, y    x, n, z
Allowed substitution hints:    ph( x, z)    ps( n)    ch( x, y, z, j)    M( x, z, j)

Proof of Theorem zsupcllemex
Dummy variables  k  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 zsupcllemex.bnd . 2  |-  ( ph  ->  E. j  e.  (
ZZ>= `  M ) A. n  e.  ( ZZ>= `  j )  -.  ps )
2 simpl 109 . . 3  |-  ( (
ph  /\  ( j  e.  ( ZZ>= `  M )  /\  A. n  e.  (
ZZ>= `  j )  -. 
ps ) )  ->  ph )
3 simprr 531 . . 3  |-  ( (
ph  /\  ( j  e.  ( ZZ>= `  M )  /\  A. n  e.  (
ZZ>= `  j )  -. 
ps ) )  ->  A. n  e.  ( ZZ>=
`  j )  -. 
ps )
4 fveq2 5511 . . . . . . . 8  |-  ( w  =  M  ->  ( ZZ>=
`  w )  =  ( ZZ>= `  M )
)
54raleqdv 2678 . . . . . . 7  |-  ( w  =  M  ->  ( A. n  e.  ( ZZ>=
`  w )  -. 
ps 
<-> 
A. n  e.  (
ZZ>= `  M )  -. 
ps ) )
65anbi2d 464 . . . . . 6  |-  ( w  =  M  ->  (
( ph  /\  A. n  e.  ( ZZ>= `  w )  -.  ps )  <->  ( ph  /\ 
A. n  e.  (
ZZ>= `  M )  -. 
ps ) ) )
76imbi1d 231 . . . . 5  |-  ( w  =  M  ->  (
( ( ph  /\  A. n  e.  ( ZZ>= `  w )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) )  <-> 
( ( ph  /\  A. n  e.  ( ZZ>= `  M )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) ) ) )
8 fveq2 5511 . . . . . . . 8  |-  ( w  =  k  ->  ( ZZ>=
`  w )  =  ( ZZ>= `  k )
)
98raleqdv 2678 . . . . . . 7  |-  ( w  =  k  ->  ( A. n  e.  ( ZZ>=
`  w )  -. 
ps 
<-> 
A. n  e.  (
ZZ>= `  k )  -. 
ps ) )
109anbi2d 464 . . . . . 6  |-  ( w  =  k  ->  (
( ph  /\  A. n  e.  ( ZZ>= `  w )  -.  ps )  <->  ( ph  /\ 
A. n  e.  (
ZZ>= `  k )  -. 
ps ) ) )
1110imbi1d 231 . . . . 5  |-  ( w  =  k  ->  (
( ( ph  /\  A. n  e.  ( ZZ>= `  w )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) )  <-> 
( ( ph  /\  A. n  e.  ( ZZ>= `  k )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) ) ) )
12 fveq2 5511 . . . . . . . 8  |-  ( w  =  ( k  +  1 )  ->  ( ZZ>=
`  w )  =  ( ZZ>= `  ( k  +  1 ) ) )
1312raleqdv 2678 . . . . . . 7  |-  ( w  =  ( k  +  1 )  ->  ( A. n  e.  ( ZZ>=
`  w )  -. 
ps 
<-> 
A. n  e.  (
ZZ>= `  ( k  +  1 ) )  -. 
ps ) )
1413anbi2d 464 . . . . . 6  |-  ( w  =  ( k  +  1 )  ->  (
( ph  /\  A. n  e.  ( ZZ>= `  w )  -.  ps )  <->  ( ph  /\ 
A. n  e.  (
ZZ>= `  ( k  +  1 ) )  -. 
ps ) ) )
1514imbi1d 231 . . . . 5  |-  ( w  =  ( k  +  1 )  ->  (
( ( ph  /\  A. n  e.  ( ZZ>= `  w )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) )  <-> 
( ( ph  /\  A. n  e.  ( ZZ>= `  ( k  +  1 ) )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) ) ) )
16 fveq2 5511 . . . . . . . 8  |-  ( w  =  j  ->  ( ZZ>=
`  w )  =  ( ZZ>= `  j )
)
1716raleqdv 2678 . . . . . . 7  |-  ( w  =  j  ->  ( A. n  e.  ( ZZ>=
`  w )  -. 
ps 
<-> 
A. n  e.  (
ZZ>= `  j )  -. 
ps ) )
1817anbi2d 464 . . . . . 6  |-  ( w  =  j  ->  (
( ph  /\  A. n  e.  ( ZZ>= `  w )  -.  ps )  <->  ( ph  /\ 
A. n  e.  (
ZZ>= `  j )  -. 
ps ) ) )
1918imbi1d 231 . . . . 5  |-  ( w  =  j  ->  (
( ( ph  /\  A. n  e.  ( ZZ>= `  w )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) )  <-> 
( ( ph  /\  A. n  e.  ( ZZ>= `  j )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) ) ) )
20 zsupcllemex.mtru . . . . . . . 8  |-  ( ph  ->  ch )
2120adantr 276 . . . . . . 7  |-  ( (
ph  /\  A. n  e.  ( ZZ>= `  M )  -.  ps )  ->  ch )
22 zsupcllemex.m . . . . . . . . 9  |-  ( ph  ->  M  e.  ZZ )
23 uzid 9531 . . . . . . . . 9  |-  ( M  e.  ZZ  ->  M  e.  ( ZZ>= `  M )
)
24 zsupcllemex.sbm . . . . . . . . . . 11  |-  ( n  =  M  ->  ( ps 
<->  ch ) )
2524notbid 667 . . . . . . . . . 10  |-  ( n  =  M  ->  ( -.  ps  <->  -.  ch )
)
2625rspcv 2837 . . . . . . . . 9  |-  ( M  e.  ( ZZ>= `  M
)  ->  ( A. n  e.  ( ZZ>= `  M )  -.  ps  ->  -.  ch ) )
2722, 23, 263syl 17 . . . . . . . 8  |-  ( ph  ->  ( A. n  e.  ( ZZ>= `  M )  -.  ps  ->  -.  ch )
)
2827imp 124 . . . . . . 7  |-  ( (
ph  /\  A. n  e.  ( ZZ>= `  M )  -.  ps )  ->  -.  ch )
2921, 28pm2.21dd 620 . . . . . 6  |-  ( (
ph  /\  A. n  e.  ( ZZ>= `  M )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  { n  e.  ZZ  |  ps }  -.  x  <  y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) )
3029a1i 9 . . . . 5  |-  ( M  e.  ZZ  ->  (
( ph  /\  A. n  e.  ( ZZ>= `  M )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  { n  e.  ZZ  |  ps }  -.  x  <  y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) ) )
31 zsupcllemex.dc . . . . . 6  |-  ( (
ph  /\  n  e.  ( ZZ>= `  M )
)  -> DECID  ps )
3231zsupcllemstep 11929 . . . . 5  |-  ( k  e.  ( ZZ>= `  M
)  ->  ( (
( ph  /\  A. n  e.  ( ZZ>= `  k )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  { n  e.  ZZ  |  ps }  -.  x  <  y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) )  ->  ( ( ph  /\ 
A. n  e.  (
ZZ>= `  ( k  +  1 ) )  -. 
ps )  ->  E. x  e.  ZZ  ( A. y  e.  { n  e.  ZZ  |  ps }  -.  x  <  y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) ) ) )
337, 11, 15, 19, 30, 32uzind4 9577 . . . 4  |-  ( j  e.  ( ZZ>= `  M
)  ->  ( ( ph  /\  A. n  e.  ( ZZ>= `  j )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  { n  e.  ZZ  |  ps }  -.  x  <  y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) ) )
3433ad2antrl 490 . . 3  |-  ( (
ph  /\  ( j  e.  ( ZZ>= `  M )  /\  A. n  e.  (
ZZ>= `  j )  -. 
ps ) )  -> 
( ( ph  /\  A. n  e.  ( ZZ>= `  j )  -.  ps )  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) ) )
352, 3, 34mp2and 433 . 2  |-  ( (
ph  /\  ( j  e.  ( ZZ>= `  M )  /\  A. n  e.  (
ZZ>= `  j )  -. 
ps ) )  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) )
361, 35rexlimddv 2599 1  |-  ( ph  ->  E. x  e.  ZZ  ( A. y  e.  {
n  e.  ZZ  |  ps }  -.  x  < 
y  /\  A. y  e.  RR  ( y  < 
x  ->  E. z  e.  { n  e.  ZZ  |  ps } y  < 
z ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 104    <-> wb 105  DECID wdc 834    = wceq 1353    e. wcel 2148   A.wral 2455   E.wrex 2456   {crab 2459   class class class wbr 4000   ` cfv 5212  (class class class)co 5869   RRcr 7801   1c1 7803    + caddc 7805    < clt 7982   ZZcz 9242   ZZ>=cuz 9517
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 614  ax-in2 615  ax-io 709  ax-5 1447  ax-7 1448  ax-gen 1449  ax-ie1 1493  ax-ie2 1494  ax-8 1504  ax-10 1505  ax-11 1506  ax-i12 1507  ax-bndl 1509  ax-4 1510  ax-17 1526  ax-i9 1530  ax-ial 1534  ax-i5r 1535  ax-13 2150  ax-14 2151  ax-ext 2159  ax-sep 4118  ax-pow 4171  ax-pr 4206  ax-un 4430  ax-setind 4533  ax-cnex 7893  ax-resscn 7894  ax-1cn 7895  ax-1re 7896  ax-icn 7897  ax-addcl 7898  ax-addrcl 7899  ax-mulcl 7900  ax-addcom 7902  ax-addass 7904  ax-distr 7906  ax-i2m1 7907  ax-0lt1 7908  ax-0id 7910  ax-rnegex 7911  ax-cnre 7913  ax-pre-ltirr 7914  ax-pre-ltwlin 7915  ax-pre-lttrn 7916  ax-pre-apti 7917  ax-pre-ltadd 7918
This theorem depends on definitions:  df-bi 117  df-dc 835  df-3or 979  df-3an 980  df-tru 1356  df-fal 1359  df-nf 1461  df-sb 1763  df-eu 2029  df-mo 2030  df-clab 2164  df-cleq 2170  df-clel 2173  df-nfc 2308  df-ne 2348  df-nel 2443  df-ral 2460  df-rex 2461  df-reu 2462  df-rab 2464  df-v 2739  df-sbc 2963  df-csb 3058  df-dif 3131  df-un 3133  df-in 3135  df-ss 3142  df-pw 3576  df-sn 3597  df-pr 3598  df-op 3600  df-uni 3808  df-int 3843  df-iun 3886  df-br 4001  df-opab 4062  df-mpt 4063  df-id 4290  df-xp 4629  df-rel 4630  df-cnv 4631  df-co 4632  df-dm 4633  df-rn 4634  df-res 4635  df-ima 4636  df-iota 5174  df-fun 5214  df-fn 5215  df-f 5216  df-fv 5220  df-riota 5825  df-ov 5872  df-oprab 5873  df-mpo 5874  df-1st 6135  df-2nd 6136  df-pnf 7984  df-mnf 7985  df-xr 7986  df-ltxr 7987  df-le 7988  df-sub 8120  df-neg 8121  df-inn 8909  df-n0 9166  df-z 9243  df-uz 9518  df-fz 9996  df-fzo 10129
This theorem is referenced by:  zsupcl  11931  infssuzex  11933  gcdsupex  11941
  Copyright terms: Public domain W3C validator