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

Theorem suplub2 8319
Description: Bidirectional form of suplub 8318. (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 8318 . . 3 (𝜑 → ((𝐶𝐴𝐶𝑅sup(𝐵, 𝐴, 𝑅)) → ∃𝑧𝐵 𝐶𝑅𝑧))
43expdimp 453 . 2 ((𝜑𝐶𝐴) → (𝐶𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝐶𝑅𝑧))
5 breq2 4622 . . . 4 (𝑧 = 𝑤 → (𝐶𝑅𝑧𝐶𝑅𝑤))
65cbvrexv 3163 . . 3 (∃𝑧𝐵 𝐶𝑅𝑧 ↔ ∃𝑤𝐵 𝐶𝑅𝑤)
7 breq2 4622 . . . . . . 7 (sup(𝐵, 𝐴, 𝑅) = 𝑤 → (𝐶𝑅sup(𝐵, 𝐴, 𝑅) ↔ 𝐶𝑅𝑤))
87biimprd 238 . . . . . 6 (sup(𝐵, 𝐴, 𝑅) = 𝑤 → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
98a1i 11 . . . . 5 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (sup(𝐵, 𝐴, 𝑅) = 𝑤 → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅))))
101ad2antrr 761 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → 𝑅 Or 𝐴)
11 simplr 791 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → 𝐶𝐴)
12 suplub2.3 . . . . . . . . 9 (𝜑𝐵𝐴)
1312adantr 481 . . . . . . . 8 ((𝜑𝐶𝐴) → 𝐵𝐴)
1413sselda 3587 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → 𝑤𝐴)
151, 2supcl 8316 . . . . . . . 8 (𝜑 → sup(𝐵, 𝐴, 𝑅) ∈ 𝐴)
1615ad2antrr 761 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → sup(𝐵, 𝐴, 𝑅) ∈ 𝐴)
17 sotr 5022 . . . . . . 7 ((𝑅 Or 𝐴 ∧ (𝐶𝐴𝑤𝐴 ∧ sup(𝐵, 𝐴, 𝑅) ∈ 𝐴)) → ((𝐶𝑅𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)) → 𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
1810, 11, 14, 16, 17syl13anc 1325 . . . . . 6 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → ((𝐶𝑅𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)) → 𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
1918expcomd 454 . . . . 5 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅))))
201, 2supub 8317 . . . . . . . 8 (𝜑 → (𝑤𝐵 → ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤))
2120adantr 481 . . . . . . 7 ((𝜑𝐶𝐴) → (𝑤𝐵 → ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤))
2221imp 445 . . . . . 6 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤)
23 sotric 5026 . . . . . . . 8 ((𝑅 Or 𝐴 ∧ (sup(𝐵, 𝐴, 𝑅) ∈ 𝐴𝑤𝐴)) → (sup(𝐵, 𝐴, 𝑅)𝑅𝑤 ↔ ¬ (sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅))))
2410, 16, 14, 23syl12anc 1321 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (sup(𝐵, 𝐴, 𝑅)𝑅𝑤 ↔ ¬ (sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅))))
2524con2bid 344 . . . . . 6 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → ((sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)) ↔ ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤))
2622, 25mpbird 247 . . . . 5 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)))
279, 19, 26mpjaod 396 . . . 4 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
2827rexlimdva 3025 . . 3 ((𝜑𝐶𝐴) → (∃𝑤𝐵 𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
296, 28syl5bi 232 . 2 ((𝜑𝐶𝐴) → (∃𝑧𝐵 𝐶𝑅𝑧𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
304, 29impbid 202 1 ((𝜑𝐶𝐴) → (𝐶𝑅sup(𝐵, 𝐴, 𝑅) ↔ ∃𝑧𝐵 𝐶𝑅𝑧))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wo 383  wa 384   = wceq 1480  wcel 1987  wral 2907  wrex 2908  wss 3559   class class class wbr 4618   Or wor 4999  supcsup 8298
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2912  df-rex 2913  df-reu 2914  df-rmo 2915  df-rab 2916  df-v 3191  df-sbc 3422  df-dif 3562  df-un 3564  df-in 3566  df-ss 3573  df-nul 3897  df-if 4064  df-sn 4154  df-pr 4156  df-op 4160  df-uni 4408  df-br 4619  df-po 5000  df-so 5001  df-iota 5815  df-riota 6571  df-sup 8300
This theorem is referenced by:  infglbb  8349  suprlub  10939  supxrlub  12106
  Copyright terms: Public domain W3C validator