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

Theorem suprzubdc 11852
Description: The supremum of a bounded-above decidable set of integers is greater than any member of the set. (Contributed by Mario Carneiro, 21-Apr-2015.) (Revised by Jim Kingdon, 5-Oct-2024.)
Hypotheses
Ref Expression
suprzubdc.ss (𝜑𝐴 ⊆ ℤ)
suprzubdc.dc (𝜑 → ∀𝑥 ∈ ℤ DECID 𝑥𝐴)
suprzubdc.ub (𝜑 → ∃𝑥 ∈ ℤ ∀𝑦𝐴 𝑦𝑥)
suprzubdc.b (𝜑𝐵𝐴)
Assertion
Ref Expression
suprzubdc (𝜑𝐵 ≤ sup(𝐴, ℝ, < ))
Distinct variable groups:   𝑦,𝐴,𝑥   𝑦,𝐵
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐵(𝑥)

Proof of Theorem suprzubdc
Dummy variables 𝑢 𝑣 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 suprzubdc.ub . . 3 (𝜑 → ∃𝑥 ∈ ℤ ∀𝑦𝐴 𝑦𝑥)
2 breq2 3971 . . . . 5 (𝑥 = 𝑢 → (𝑦𝑥𝑦𝑢))
32ralbidv 2457 . . . 4 (𝑥 = 𝑢 → (∀𝑦𝐴 𝑦𝑥 ↔ ∀𝑦𝐴 𝑦𝑢))
43cbvrexv 2681 . . 3 (∃𝑥 ∈ ℤ ∀𝑦𝐴 𝑦𝑥 ↔ ∃𝑢 ∈ ℤ ∀𝑦𝐴 𝑦𝑢)
51, 4sylib 121 . 2 (𝜑 → ∃𝑢 ∈ ℤ ∀𝑦𝐴 𝑦𝑢)
6 dfin5 3109 . . . . . . 7 (ℤ ∩ 𝐴) = {𝑧 ∈ ℤ ∣ 𝑧𝐴}
7 suprzubdc.ss . . . . . . . 8 (𝜑𝐴 ⊆ ℤ)
8 sseqin2 3327 . . . . . . . 8 (𝐴 ⊆ ℤ ↔ (ℤ ∩ 𝐴) = 𝐴)
97, 8sylib 121 . . . . . . 7 (𝜑 → (ℤ ∩ 𝐴) = 𝐴)
106, 9eqtr3id 2204 . . . . . 6 (𝜑 → {𝑧 ∈ ℤ ∣ 𝑧𝐴} = 𝐴)
1110supeq1d 6934 . . . . 5 (𝜑 → sup({𝑧 ∈ ℤ ∣ 𝑧𝐴}, ℝ, < ) = sup(𝐴, ℝ, < ))
1211adantr 274 . . . 4 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → sup({𝑧 ∈ ℤ ∣ 𝑧𝐴}, ℝ, < ) = sup(𝐴, ℝ, < ))
13 suprzubdc.b . . . . . . 7 (𝜑𝐵𝐴)
147, 13sseldd 3129 . . . . . 6 (𝜑𝐵 ∈ ℤ)
1514adantr 274 . . . . 5 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → 𝐵 ∈ ℤ)
16 eleq1 2220 . . . . 5 (𝑧 = 𝐵 → (𝑧𝐴𝐵𝐴))
1713adantr 274 . . . . 5 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → 𝐵𝐴)
18 eleq1w 2218 . . . . . . 7 (𝑥 = 𝑧 → (𝑥𝐴𝑧𝐴))
1918dcbid 824 . . . . . 6 (𝑥 = 𝑧 → (DECID 𝑥𝐴DECID 𝑧𝐴))
20 suprzubdc.dc . . . . . . 7 (𝜑 → ∀𝑥 ∈ ℤ DECID 𝑥𝐴)
2120ad2antrr 480 . . . . . 6 (((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ𝐵)) → ∀𝑥 ∈ ℤ DECID 𝑥𝐴)
22 eluzelz 9454 . . . . . . 7 (𝑧 ∈ (ℤ𝐵) → 𝑧 ∈ ℤ)
2322adantl 275 . . . . . 6 (((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ𝐵)) → 𝑧 ∈ ℤ)
2419, 21, 23rspcdva 2821 . . . . 5 (((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ𝐵)) → DECID 𝑧𝐴)
25 simprl 521 . . . . . . . 8 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → 𝑢 ∈ ℤ)
2625peano2zd 9295 . . . . . . 7 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → (𝑢 + 1) ∈ ℤ)
2715zred 9292 . . . . . . . 8 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → 𝐵 ∈ ℝ)
2825zred 9292 . . . . . . . 8 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → 𝑢 ∈ ℝ)
2926zred 9292 . . . . . . . 8 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → (𝑢 + 1) ∈ ℝ)
30 breq1 3970 . . . . . . . . 9 (𝑦 = 𝐵 → (𝑦𝑢𝐵𝑢))
31 simprr 522 . . . . . . . . 9 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → ∀𝑦𝐴 𝑦𝑢)
3230, 31, 17rspcdva 2821 . . . . . . . 8 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → 𝐵𝑢)
3328lep1d 8808 . . . . . . . 8 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → 𝑢 ≤ (𝑢 + 1))
3427, 28, 29, 32, 33letrd 8004 . . . . . . 7 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → 𝐵 ≤ (𝑢 + 1))
35 eluz2 9451 . . . . . . 7 ((𝑢 + 1) ∈ (ℤ𝐵) ↔ (𝐵 ∈ ℤ ∧ (𝑢 + 1) ∈ ℤ ∧ 𝐵 ≤ (𝑢 + 1)))
3615, 26, 34, 35syl3anbrc 1166 . . . . . 6 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → (𝑢 + 1) ∈ (ℤ𝐵))
37 eluzle 9457 . . . . . . . . . 10 (𝑧 ∈ (ℤ‘(𝑢 + 1)) → (𝑢 + 1) ≤ 𝑧)
3837ad2antlr 481 . . . . . . . . 9 ((((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) ∧ 𝑧𝐴) → (𝑢 + 1) ≤ 𝑧)
3925ad2antrr 480 . . . . . . . . . 10 ((((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) ∧ 𝑧𝐴) → 𝑢 ∈ ℤ)
40 eluzelz 9454 . . . . . . . . . . 11 (𝑧 ∈ (ℤ‘(𝑢 + 1)) → 𝑧 ∈ ℤ)
4140ad2antlr 481 . . . . . . . . . 10 ((((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) ∧ 𝑧𝐴) → 𝑧 ∈ ℤ)
42 zltp1le 9227 . . . . . . . . . 10 ((𝑢 ∈ ℤ ∧ 𝑧 ∈ ℤ) → (𝑢 < 𝑧 ↔ (𝑢 + 1) ≤ 𝑧))
4339, 41, 42syl2anc 409 . . . . . . . . 9 ((((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) ∧ 𝑧𝐴) → (𝑢 < 𝑧 ↔ (𝑢 + 1) ≤ 𝑧))
4438, 43mpbird 166 . . . . . . . 8 ((((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) ∧ 𝑧𝐴) → 𝑢 < 𝑧)
4541zred 9292 . . . . . . . . 9 ((((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) ∧ 𝑧𝐴) → 𝑧 ∈ ℝ)
4628ad2antrr 480 . . . . . . . . 9 ((((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) ∧ 𝑧𝐴) → 𝑢 ∈ ℝ)
47 breq1 3970 . . . . . . . . . 10 (𝑦 = 𝑧 → (𝑦𝑢𝑧𝑢))
4831ad2antrr 480 . . . . . . . . . 10 ((((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) ∧ 𝑧𝐴) → ∀𝑦𝐴 𝑦𝑢)
49 simpr 109 . . . . . . . . . 10 ((((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) ∧ 𝑧𝐴) → 𝑧𝐴)
5047, 48, 49rspcdva 2821 . . . . . . . . 9 ((((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) ∧ 𝑧𝐴) → 𝑧𝑢)
5145, 46, 50lensymd 8002 . . . . . . . 8 ((((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) ∧ 𝑧𝐴) → ¬ 𝑢 < 𝑧)
5244, 51pm2.65da 651 . . . . . . 7 (((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) ∧ 𝑧 ∈ (ℤ‘(𝑢 + 1))) → ¬ 𝑧𝐴)
5352ralrimiva 2530 . . . . . 6 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → ∀𝑧 ∈ (ℤ‘(𝑢 + 1)) ¬ 𝑧𝐴)
54 fveq2 5471 . . . . . . . 8 (𝑣 = (𝑢 + 1) → (ℤ𝑣) = (ℤ‘(𝑢 + 1)))
5554raleqdv 2658 . . . . . . 7 (𝑣 = (𝑢 + 1) → (∀𝑧 ∈ (ℤ𝑣) ¬ 𝑧𝐴 ↔ ∀𝑧 ∈ (ℤ‘(𝑢 + 1)) ¬ 𝑧𝐴))
5655rspcev 2816 . . . . . 6 (((𝑢 + 1) ∈ (ℤ𝐵) ∧ ∀𝑧 ∈ (ℤ‘(𝑢 + 1)) ¬ 𝑧𝐴) → ∃𝑣 ∈ (ℤ𝐵)∀𝑧 ∈ (ℤ𝑣) ¬ 𝑧𝐴)
5736, 53, 56syl2anc 409 . . . . 5 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → ∃𝑣 ∈ (ℤ𝐵)∀𝑧 ∈ (ℤ𝑣) ¬ 𝑧𝐴)
5815, 16, 17, 24, 57zsupcl 11847 . . . 4 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → sup({𝑧 ∈ ℤ ∣ 𝑧𝐴}, ℝ, < ) ∈ (ℤ𝐵))
5912, 58eqeltrrd 2235 . . 3 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → sup(𝐴, ℝ, < ) ∈ (ℤ𝐵))
60 eluzle 9457 . . 3 (sup(𝐴, ℝ, < ) ∈ (ℤ𝐵) → 𝐵 ≤ sup(𝐴, ℝ, < ))
6159, 60syl 14 . 2 ((𝜑 ∧ (𝑢 ∈ ℤ ∧ ∀𝑦𝐴 𝑦𝑢)) → 𝐵 ≤ sup(𝐴, ℝ, < ))
625, 61rexlimddv 2579 1 (𝜑𝐵 ≤ sup(𝐴, ℝ, < ))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  DECID wdc 820   = wceq 1335  wcel 2128  wral 2435  wrex 2436  {crab 2439  cin 3101  wss 3102   class class class wbr 3967  cfv 5173  (class class class)co 5827  supcsup 6929  cr 7734  1c1 7736   + caddc 7738   < clt 7915  cle 7916  cz 9173  cuz 9445
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 1427  ax-7 1428  ax-gen 1429  ax-ie1 1473  ax-ie2 1474  ax-8 1484  ax-10 1485  ax-11 1486  ax-i12 1487  ax-bndl 1489  ax-4 1490  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-13 2130  ax-14 2131  ax-ext 2139  ax-sep 4085  ax-pow 4138  ax-pr 4172  ax-un 4396  ax-setind 4499  ax-cnex 7826  ax-resscn 7827  ax-1cn 7828  ax-1re 7829  ax-icn 7830  ax-addcl 7831  ax-addrcl 7832  ax-mulcl 7833  ax-addcom 7835  ax-addass 7837  ax-distr 7839  ax-i2m1 7840  ax-0lt1 7841  ax-0id 7843  ax-rnegex 7844  ax-cnre 7846  ax-pre-ltirr 7847  ax-pre-ltwlin 7848  ax-pre-lttrn 7849  ax-pre-apti 7850  ax-pre-ltadd 7851
This theorem depends on definitions:  df-bi 116  df-dc 821  df-3or 964  df-3an 965  df-tru 1338  df-fal 1341  df-nf 1441  df-sb 1743  df-eu 2009  df-mo 2010  df-clab 2144  df-cleq 2150  df-clel 2153  df-nfc 2288  df-ne 2328  df-nel 2423  df-ral 2440  df-rex 2441  df-reu 2442  df-rmo 2443  df-rab 2444  df-v 2714  df-sbc 2938  df-csb 3032  df-dif 3104  df-un 3106  df-in 3108  df-ss 3115  df-pw 3546  df-sn 3567  df-pr 3568  df-op 3570  df-uni 3775  df-int 3810  df-iun 3853  df-br 3968  df-opab 4029  df-mpt 4030  df-id 4256  df-xp 4595  df-rel 4596  df-cnv 4597  df-co 4598  df-dm 4599  df-rn 4600  df-res 4601  df-ima 4602  df-iota 5138  df-fun 5175  df-fn 5176  df-f 5177  df-fv 5181  df-riota 5783  df-ov 5830  df-oprab 5831  df-mpo 5832  df-1st 6091  df-2nd 6092  df-sup 6931  df-pnf 7917  df-mnf 7918  df-xr 7919  df-ltxr 7920  df-le 7921  df-sub 8053  df-neg 8054  df-inn 8840  df-n0 9097  df-z 9174  df-uz 9446  df-fz 9920  df-fzo 10052
This theorem is referenced by:  pcprendvds  12181  pcpremul  12184
  Copyright terms: Public domain W3C validator