Users' Mathboxes Mathbox for Glauco Siliprandi < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  upbdrech2 Structured version   Visualization version   GIF version

Theorem upbdrech2 40321
Description: Choice of an upper bound for a possibly empty bunded set (image set version). (Contributed by Glauco Siliprandi, 11-Dec-2019.)
Hypotheses
Ref Expression
upbdrech2.b ((𝜑𝑥𝐴) → 𝐵 ∈ ℝ)
upbdrech2.bd (𝜑 → ∃𝑦 ∈ ℝ ∀𝑥𝐴 𝐵𝑦)
upbdrech2.c 𝐶 = if(𝐴 = ∅, 0, sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < ))
Assertion
Ref Expression
upbdrech2 (𝜑 → (𝐶 ∈ ℝ ∧ ∀𝑥𝐴 𝐵𝐶))
Distinct variable groups:   𝑥,𝐴,𝑦,𝑧   𝑦,𝐵,𝑧   𝜑,𝑥,𝑦
Allowed substitution hints:   𝜑(𝑧)   𝐵(𝑥)   𝐶(𝑥,𝑦,𝑧)

Proof of Theorem upbdrech2
StepHypRef Expression
1 upbdrech2.c . . 3 𝐶 = if(𝐴 = ∅, 0, sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < ))
2 iftrue 4313 . . . . . 6 (𝐴 = ∅ → if(𝐴 = ∅, 0, sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )) = 0)
3 0red 10361 . . . . . 6 (𝐴 = ∅ → 0 ∈ ℝ)
42, 3eqeltrd 2907 . . . . 5 (𝐴 = ∅ → if(𝐴 = ∅, 0, sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )) ∈ ℝ)
54adantl 475 . . . 4 ((𝜑𝐴 = ∅) → if(𝐴 = ∅, 0, sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )) ∈ ℝ)
6 simpr 479 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 = ∅) → ¬ 𝐴 = ∅)
76iffalsed 4318 . . . . 5 ((𝜑 ∧ ¬ 𝐴 = ∅) → if(𝐴 = ∅, 0, sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )) = sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < ))
86neqned 3007 . . . . . . 7 ((𝜑 ∧ ¬ 𝐴 = ∅) → 𝐴 ≠ ∅)
9 upbdrech2.b . . . . . . . 8 ((𝜑𝑥𝐴) → 𝐵 ∈ ℝ)
109adantlr 708 . . . . . . 7 (((𝜑 ∧ ¬ 𝐴 = ∅) ∧ 𝑥𝐴) → 𝐵 ∈ ℝ)
11 upbdrech2.bd . . . . . . . 8 (𝜑 → ∃𝑦 ∈ ℝ ∀𝑥𝐴 𝐵𝑦)
1211adantr 474 . . . . . . 7 ((𝜑 ∧ ¬ 𝐴 = ∅) → ∃𝑦 ∈ ℝ ∀𝑥𝐴 𝐵𝑦)
13 eqid 2826 . . . . . . 7 sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < ) = sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )
148, 10, 12, 13upbdrech 40318 . . . . . 6 ((𝜑 ∧ ¬ 𝐴 = ∅) → (sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < ) ∈ ℝ ∧ ∀𝑥𝐴 𝐵 ≤ sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )))
1514simpld 490 . . . . 5 ((𝜑 ∧ ¬ 𝐴 = ∅) → sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < ) ∈ ℝ)
167, 15eqeltrd 2907 . . . 4 ((𝜑 ∧ ¬ 𝐴 = ∅) → if(𝐴 = ∅, 0, sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )) ∈ ℝ)
175, 16pm2.61dan 849 . . 3 (𝜑 → if(𝐴 = ∅, 0, sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )) ∈ ℝ)
181, 17syl5eqel 2911 . 2 (𝜑𝐶 ∈ ℝ)
19 rzal 4296 . . . 4 (𝐴 = ∅ → ∀𝑥𝐴 𝐵𝐶)
2019adantl 475 . . 3 ((𝜑𝐴 = ∅) → ∀𝑥𝐴 𝐵𝐶)
2114simprd 491 . . . 4 ((𝜑 ∧ ¬ 𝐴 = ∅) → ∀𝑥𝐴 𝐵 ≤ sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < ))
22 iffalse 4316 . . . . . . . 8 𝐴 = ∅ → if(𝐴 = ∅, 0, sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )) = sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < ))
231, 22syl5eq 2874 . . . . . . 7 𝐴 = ∅ → 𝐶 = sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < ))
2423breq2d 4886 . . . . . 6 𝐴 = ∅ → (𝐵𝐶𝐵 ≤ sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )))
2524ralbidv 3196 . . . . 5 𝐴 = ∅ → (∀𝑥𝐴 𝐵𝐶 ↔ ∀𝑥𝐴 𝐵 ≤ sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )))
2625adantl 475 . . . 4 ((𝜑 ∧ ¬ 𝐴 = ∅) → (∀𝑥𝐴 𝐵𝐶 ↔ ∀𝑥𝐴 𝐵 ≤ sup({𝑧 ∣ ∃𝑥𝐴 𝑧 = 𝐵}, ℝ, < )))
2721, 26mpbird 249 . . 3 ((𝜑 ∧ ¬ 𝐴 = ∅) → ∀𝑥𝐴 𝐵𝐶)
2820, 27pm2.61dan 849 . 2 (𝜑 → ∀𝑥𝐴 𝐵𝐶)
2918, 28jca 509 1 (𝜑 → (𝐶 ∈ ℝ ∧ ∀𝑥𝐴 𝐵𝐶))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 198  wa 386   = wceq 1658  wcel 2166  {cab 2812  wral 3118  wrex 3119  c0 4145  ifcif 4307   class class class wbr 4874  supcsup 8616  cr 10252  0cc0 10253   < clt 10392  cle 10393
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1896  ax-4 1910  ax-5 2011  ax-6 2077  ax-7 2114  ax-8 2168  ax-9 2175  ax-10 2194  ax-11 2209  ax-12 2222  ax-13 2391  ax-ext 2804  ax-sep 5006  ax-nul 5014  ax-pow 5066  ax-pr 5128  ax-un 7210  ax-resscn 10310  ax-1cn 10311  ax-icn 10312  ax-addcl 10313  ax-addrcl 10314  ax-mulcl 10315  ax-mulrcl 10316  ax-mulcom 10317  ax-addass 10318  ax-mulass 10319  ax-distr 10320  ax-i2m1 10321  ax-1ne0 10322  ax-1rid 10323  ax-rnegex 10324  ax-rrecex 10325  ax-cnre 10326  ax-pre-lttri 10327  ax-pre-lttrn 10328  ax-pre-ltadd 10329  ax-pre-mulgt0 10330  ax-pre-sup 10331
This theorem depends on definitions:  df-bi 199  df-an 387  df-or 881  df-3or 1114  df-3an 1115  df-tru 1662  df-ex 1881  df-nf 1885  df-sb 2070  df-mo 2606  df-eu 2641  df-clab 2813  df-cleq 2819  df-clel 2822  df-nfc 2959  df-ne 3001  df-nel 3104  df-ral 3123  df-rex 3124  df-reu 3125  df-rmo 3126  df-rab 3127  df-v 3417  df-sbc 3664  df-csb 3759  df-dif 3802  df-un 3804  df-in 3806  df-ss 3813  df-nul 4146  df-if 4308  df-pw 4381  df-sn 4399  df-pr 4401  df-op 4405  df-uni 4660  df-br 4875  df-opab 4937  df-mpt 4954  df-id 5251  df-po 5264  df-so 5265  df-xp 5349  df-rel 5350  df-cnv 5351  df-co 5352  df-dm 5353  df-rn 5354  df-res 5355  df-ima 5356  df-iota 6087  df-fun 6126  df-fn 6127  df-f 6128  df-f1 6129  df-fo 6130  df-f1o 6131  df-fv 6132  df-riota 6867  df-ov 6909  df-oprab 6910  df-mpt2 6911  df-er 8010  df-en 8224  df-dom 8225  df-sdom 8226  df-sup 8618  df-pnf 10394  df-mnf 10395  df-xr 10396  df-ltxr 10397  df-le 10398  df-sub 10588  df-neg 10589
This theorem is referenced by:  ssfiunibd  40322
  Copyright terms: Public domain W3C validator