MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  suplub Structured version   Visualization version   GIF version

Theorem suplub 9149
Description: A supremum is the least upper bound. See also supcl 9147 and supub 9148. (Contributed by NM, 13-Oct-2004.) (Revised by Mario Carneiro, 24-Dec-2016.)
Hypotheses
Ref Expression
supmo.1 (𝜑𝑅 Or 𝐴)
supcl.2 (𝜑 → ∃𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
Assertion
Ref Expression
suplub (𝜑 → ((𝐶𝐴𝐶𝑅sup(𝐵, 𝐴, 𝑅)) → ∃𝑧𝐵 𝐶𝑅𝑧))
Distinct variable groups:   𝑥,𝑦,𝑧,𝐴   𝑥,𝑅,𝑦,𝑧   𝑥,𝐵,𝑦,𝑧   𝑧,𝐶
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧)   𝐶(𝑥,𝑦)

Proof of Theorem suplub
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 simpr 484 . . . . . . 7 ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))
2 breq1 5073 . . . . . . . . 9 (𝑦 = 𝑤 → (𝑦𝑅𝑥𝑤𝑅𝑥))
3 breq1 5073 . . . . . . . . . 10 (𝑦 = 𝑤 → (𝑦𝑅𝑧𝑤𝑅𝑧))
43rexbidv 3225 . . . . . . . . 9 (𝑦 = 𝑤 → (∃𝑧𝐵 𝑦𝑅𝑧 ↔ ∃𝑧𝐵 𝑤𝑅𝑧))
52, 4imbi12d 344 . . . . . . . 8 (𝑦 = 𝑤 → ((𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)))
65cbvralvw 3372 . . . . . . 7 (∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧))
71, 6sylib 217 . . . . . 6 ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧))
87a1i 11 . . . . 5 (𝑥𝐴 → ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)))
98ss2rabi 4006 . . . 4 {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} ⊆ {𝑥𝐴 ∣ ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)}
10 supmo.1 . . . . . 6 (𝜑𝑅 Or 𝐴)
1110supval2 9144 . . . . 5 (𝜑 → sup(𝐵, 𝐴, 𝑅) = (𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))))
12 supcl.2 . . . . . . 7 (𝜑 → ∃𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
1310, 12supeu 9143 . . . . . 6 (𝜑 → ∃!𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
14 riotacl2 7229 . . . . . 6 (∃!𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → (𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))) ∈ {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))})
1513, 14syl 17 . . . . 5 (𝜑 → (𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))) ∈ {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))})
1611, 15eqeltrd 2839 . . . 4 (𝜑 → sup(𝐵, 𝐴, 𝑅) ∈ {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))})
179, 16sselid 3915 . . 3 (𝜑 → sup(𝐵, 𝐴, 𝑅) ∈ {𝑥𝐴 ∣ ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)})
18 breq2 5074 . . . . . . 7 (𝑥 = sup(𝐵, 𝐴, 𝑅) → (𝑤𝑅𝑥𝑤𝑅sup(𝐵, 𝐴, 𝑅)))
1918imbi1d 341 . . . . . 6 (𝑥 = sup(𝐵, 𝐴, 𝑅) → ((𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧) ↔ (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧)))
2019ralbidv 3120 . . . . 5 (𝑥 = sup(𝐵, 𝐴, 𝑅) → (∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧) ↔ ∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧)))
2120elrab 3617 . . . 4 (sup(𝐵, 𝐴, 𝑅) ∈ {𝑥𝐴 ∣ ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)} ↔ (sup(𝐵, 𝐴, 𝑅) ∈ 𝐴 ∧ ∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧)))
2221simprbi 496 . . 3 (sup(𝐵, 𝐴, 𝑅) ∈ {𝑥𝐴 ∣ ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)} → ∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧))
2317, 22syl 17 . 2 (𝜑 → ∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧))
24 breq1 5073 . . . . 5 (𝑤 = 𝐶 → (𝑤𝑅sup(𝐵, 𝐴, 𝑅) ↔ 𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
25 breq1 5073 . . . . . 6 (𝑤 = 𝐶 → (𝑤𝑅𝑧𝐶𝑅𝑧))
2625rexbidv 3225 . . . . 5 (𝑤 = 𝐶 → (∃𝑧𝐵 𝑤𝑅𝑧 ↔ ∃𝑧𝐵 𝐶𝑅𝑧))
2724, 26imbi12d 344 . . . 4 (𝑤 = 𝐶 → ((𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧) ↔ (𝐶𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝐶𝑅𝑧)))
2827rspccv 3549 . . 3 (∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧) → (𝐶𝐴 → (𝐶𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝐶𝑅𝑧)))
2928impd 410 . 2 (∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧) → ((𝐶𝐴𝐶𝑅sup(𝐵, 𝐴, 𝑅)) → ∃𝑧𝐵 𝐶𝑅𝑧))
3023, 29syl 17 1 (𝜑 → ((𝐶𝐴𝐶𝑅sup(𝐵, 𝐴, 𝑅)) → ∃𝑧𝐵 𝐶𝑅𝑧))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395   = wceq 1539  wcel 2108  wral 3063  wrex 3064  ∃!wreu 3065  {crab 3067   class class class wbr 5070   Or wor 5493  crio 7211  supcsup 9129
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-po 5494  df-so 5495  df-iota 6376  df-riota 7212  df-sup 9131
This theorem is referenced by:  suplub2  9150  supnub  9151  supiso  9164  infglb  9179  supxrun  12979  supxrunb1  12982  supxrunb2  12983  esum2d  31961
  Copyright terms: Public domain W3C validator