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

Theorem suplub 9219
Description: A supremum is the least upper bound. See also supcl 9217 and supub 9218. (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 485 . . . . . . 7 ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))
2 breq1 5077 . . . . . . . . 9 (𝑦 = 𝑤 → (𝑦𝑅𝑥𝑤𝑅𝑥))
3 breq1 5077 . . . . . . . . . 10 (𝑦 = 𝑤 → (𝑦𝑅𝑧𝑤𝑅𝑧))
43rexbidv 3226 . . . . . . . . 9 (𝑦 = 𝑤 → (∃𝑧𝐵 𝑦𝑅𝑧 ↔ ∃𝑧𝐵 𝑤𝑅𝑧))
52, 4imbi12d 345 . . . . . . . 8 (𝑦 = 𝑤 → ((𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)))
65cbvralvw 3383 . . . . . . 7 (∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧))
71, 6sylib 217 . . . . . 6 ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧))
87a1i 11 . . . . 5 (𝑥𝐴 → ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)))
98ss2rabi 4010 . . . 4 {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} ⊆ {𝑥𝐴 ∣ ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)}
10 supmo.1 . . . . . 6 (𝜑𝑅 Or 𝐴)
1110supval2 9214 . . . . 5 (𝜑 → sup(𝐵, 𝐴, 𝑅) = (𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))))
12 supcl.2 . . . . . . 7 (𝜑 → ∃𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
1310, 12supeu 9213 . . . . . 6 (𝜑 → ∃!𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
14 riotacl2 7249 . . . . . 6 (∃!𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → (𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))) ∈ {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))})
1513, 14syl 17 . . . . 5 (𝜑 → (𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))) ∈ {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))})
1611, 15eqeltrd 2839 . . . 4 (𝜑 → sup(𝐵, 𝐴, 𝑅) ∈ {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))})
179, 16sselid 3919 . . 3 (𝜑 → sup(𝐵, 𝐴, 𝑅) ∈ {𝑥𝐴 ∣ ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)})
18 breq2 5078 . . . . . . 7 (𝑥 = sup(𝐵, 𝐴, 𝑅) → (𝑤𝑅𝑥𝑤𝑅sup(𝐵, 𝐴, 𝑅)))
1918imbi1d 342 . . . . . 6 (𝑥 = sup(𝐵, 𝐴, 𝑅) → ((𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧) ↔ (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧)))
2019ralbidv 3112 . . . . 5 (𝑥 = sup(𝐵, 𝐴, 𝑅) → (∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧) ↔ ∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧)))
2120elrab 3624 . . . 4 (sup(𝐵, 𝐴, 𝑅) ∈ {𝑥𝐴 ∣ ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)} ↔ (sup(𝐵, 𝐴, 𝑅) ∈ 𝐴 ∧ ∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧)))
2221simprbi 497 . . 3 (sup(𝐵, 𝐴, 𝑅) ∈ {𝑥𝐴 ∣ ∀𝑤𝐴 (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)} → ∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧))
2317, 22syl 17 . 2 (𝜑 → ∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧))
24 breq1 5077 . . . . 5 (𝑤 = 𝐶 → (𝑤𝑅sup(𝐵, 𝐴, 𝑅) ↔ 𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
25 breq1 5077 . . . . . 6 (𝑤 = 𝐶 → (𝑤𝑅𝑧𝐶𝑅𝑧))
2625rexbidv 3226 . . . . 5 (𝑤 = 𝐶 → (∃𝑧𝐵 𝑤𝑅𝑧 ↔ ∃𝑧𝐵 𝐶𝑅𝑧))
2724, 26imbi12d 345 . . . 4 (𝑤 = 𝐶 → ((𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧) ↔ (𝐶𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝐶𝑅𝑧)))
2827rspccv 3558 . . 3 (∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧) → (𝐶𝐴 → (𝐶𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝐶𝑅𝑧)))
2928impd 411 . 2 (∀𝑤𝐴 (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝑤𝑅𝑧) → ((𝐶𝐴𝐶𝑅sup(𝐵, 𝐴, 𝑅)) → ∃𝑧𝐵 𝐶𝑅𝑧))
3023, 29syl 17 1 (𝜑 → ((𝐶𝐴𝐶𝑅sup(𝐵, 𝐴, 𝑅)) → ∃𝑧𝐵 𝐶𝑅𝑧))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396   = wceq 1539  wcel 2106  wral 3064  wrex 3065  ∃!wreu 3066  {crab 3068   class class class wbr 5074   Or wor 5502  crio 7231  supcsup 9199
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-po 5503  df-so 5504  df-iota 6391  df-riota 7232  df-sup 9201
This theorem is referenced by:  suplub2  9220  supnub  9221  supiso  9234  infglb  9249  supxrun  13050  supxrunb1  13053  supxrunb2  13054  esum2d  32061
  Copyright terms: Public domain W3C validator