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

Theorem suplub2 9150
Description: Bidirectional form of suplub 9149. (Contributed by Mario Carneiro, 6-Sep-2014.)
Hypotheses
Ref Expression
supmo.1 (𝜑𝑅 Or 𝐴)
supcl.2 (𝜑 → ∃𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
suplub2.3 (𝜑𝐵𝐴)
Assertion
Ref Expression
suplub2 ((𝜑𝐶𝐴) → (𝐶𝑅sup(𝐵, 𝐴, 𝑅) ↔ ∃𝑧𝐵 𝐶𝑅𝑧))
Distinct variable groups:   𝑥,𝑦,𝑧,𝐴   𝑥,𝑅,𝑦,𝑧   𝑥,𝐵,𝑦,𝑧   𝑧,𝐶
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧)   𝐶(𝑥,𝑦)

Proof of Theorem suplub2
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 supmo.1 . . . 4 (𝜑𝑅 Or 𝐴)
2 supcl.2 . . . 4 (𝜑 → ∃𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
31, 2suplub 9149 . . 3 (𝜑 → ((𝐶𝐴𝐶𝑅sup(𝐵, 𝐴, 𝑅)) → ∃𝑧𝐵 𝐶𝑅𝑧))
43expdimp 452 . 2 ((𝜑𝐶𝐴) → (𝐶𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝐶𝑅𝑧))
5 breq2 5074 . . . 4 (𝑧 = 𝑤 → (𝐶𝑅𝑧𝐶𝑅𝑤))
65cbvrexvw 3373 . . 3 (∃𝑧𝐵 𝐶𝑅𝑧 ↔ ∃𝑤𝐵 𝐶𝑅𝑤)
7 breq2 5074 . . . . . . 7 (sup(𝐵, 𝐴, 𝑅) = 𝑤 → (𝐶𝑅sup(𝐵, 𝐴, 𝑅) ↔ 𝐶𝑅𝑤))
87biimprd 247 . . . . . 6 (sup(𝐵, 𝐴, 𝑅) = 𝑤 → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
98a1i 11 . . . . 5 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (sup(𝐵, 𝐴, 𝑅) = 𝑤 → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅))))
101ad2antrr 722 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → 𝑅 Or 𝐴)
11 simplr 765 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → 𝐶𝐴)
12 suplub2.3 . . . . . . . . 9 (𝜑𝐵𝐴)
1312adantr 480 . . . . . . . 8 ((𝜑𝐶𝐴) → 𝐵𝐴)
1413sselda 3917 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → 𝑤𝐴)
151, 2supcl 9147 . . . . . . . 8 (𝜑 → sup(𝐵, 𝐴, 𝑅) ∈ 𝐴)
1615ad2antrr 722 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → sup(𝐵, 𝐴, 𝑅) ∈ 𝐴)
17 sotr 5518 . . . . . . 7 ((𝑅 Or 𝐴 ∧ (𝐶𝐴𝑤𝐴 ∧ sup(𝐵, 𝐴, 𝑅) ∈ 𝐴)) → ((𝐶𝑅𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)) → 𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
1810, 11, 14, 16, 17syl13anc 1370 . . . . . 6 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → ((𝐶𝑅𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)) → 𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
1918expcomd 416 . . . . 5 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅))))
201, 2supub 9148 . . . . . . . 8 (𝜑 → (𝑤𝐵 → ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤))
2120adantr 480 . . . . . . 7 ((𝜑𝐶𝐴) → (𝑤𝐵 → ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤))
2221imp 406 . . . . . 6 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤)
23 sotric 5522 . . . . . . . 8 ((𝑅 Or 𝐴 ∧ (sup(𝐵, 𝐴, 𝑅) ∈ 𝐴𝑤𝐴)) → (sup(𝐵, 𝐴, 𝑅)𝑅𝑤 ↔ ¬ (sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅))))
2410, 16, 14, 23syl12anc 833 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (sup(𝐵, 𝐴, 𝑅)𝑅𝑤 ↔ ¬ (sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅))))
2524con2bid 354 . . . . . 6 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → ((sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)) ↔ ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤))
2622, 25mpbird 256 . . . . 5 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)))
279, 19, 26mpjaod 856 . . . 4 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
2827rexlimdva 3212 . . 3 ((𝜑𝐶𝐴) → (∃𝑤𝐵 𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
296, 28syl5bi 241 . 2 ((𝜑𝐶𝐴) → (∃𝑧𝐵 𝐶𝑅𝑧𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
304, 29impbid 211 1 ((𝜑𝐶𝐴) → (𝐶𝑅sup(𝐵, 𝐴, 𝑅) ↔ ∃𝑧𝐵 𝐶𝑅𝑧))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wcel 2108  wral 3063  wrex 3064  wss 3883   class class class wbr 5070   Or wor 5493  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:  infglbb  9180  suprlub  11869  supxrlub  12988
  Copyright terms: Public domain W3C validator