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

Theorem suplub2 9220
Description: Bidirectional form of suplub 9219. (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 9219 . . 3 (𝜑 → ((𝐶𝐴𝐶𝑅sup(𝐵, 𝐴, 𝑅)) → ∃𝑧𝐵 𝐶𝑅𝑧))
43expdimp 453 . 2 ((𝜑𝐶𝐴) → (𝐶𝑅sup(𝐵, 𝐴, 𝑅) → ∃𝑧𝐵 𝐶𝑅𝑧))
5 breq2 5078 . . . 4 (𝑧 = 𝑤 → (𝐶𝑅𝑧𝐶𝑅𝑤))
65cbvrexvw 3384 . . 3 (∃𝑧𝐵 𝐶𝑅𝑧 ↔ ∃𝑤𝐵 𝐶𝑅𝑤)
7 breq2 5078 . . . . . . 7 (sup(𝐵, 𝐴, 𝑅) = 𝑤 → (𝐶𝑅sup(𝐵, 𝐴, 𝑅) ↔ 𝐶𝑅𝑤))
87biimprd 247 . . . . . 6 (sup(𝐵, 𝐴, 𝑅) = 𝑤 → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
98a1i 11 . . . . 5 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (sup(𝐵, 𝐴, 𝑅) = 𝑤 → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅))))
101ad2antrr 723 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → 𝑅 Or 𝐴)
11 simplr 766 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → 𝐶𝐴)
12 suplub2.3 . . . . . . . . 9 (𝜑𝐵𝐴)
1312adantr 481 . . . . . . . 8 ((𝜑𝐶𝐴) → 𝐵𝐴)
1413sselda 3921 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → 𝑤𝐴)
151, 2supcl 9217 . . . . . . . 8 (𝜑 → sup(𝐵, 𝐴, 𝑅) ∈ 𝐴)
1615ad2antrr 723 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → sup(𝐵, 𝐴, 𝑅) ∈ 𝐴)
17 sotr 5527 . . . . . . 7 ((𝑅 Or 𝐴 ∧ (𝐶𝐴𝑤𝐴 ∧ sup(𝐵, 𝐴, 𝑅) ∈ 𝐴)) → ((𝐶𝑅𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)) → 𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
1810, 11, 14, 16, 17syl13anc 1371 . . . . . 6 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → ((𝐶𝑅𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)) → 𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
1918expcomd 417 . . . . 5 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (𝑤𝑅sup(𝐵, 𝐴, 𝑅) → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅))))
201, 2supub 9218 . . . . . . . 8 (𝜑 → (𝑤𝐵 → ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤))
2120adantr 481 . . . . . . 7 ((𝜑𝐶𝐴) → (𝑤𝐵 → ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤))
2221imp 407 . . . . . 6 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤)
23 sotric 5531 . . . . . . . 8 ((𝑅 Or 𝐴 ∧ (sup(𝐵, 𝐴, 𝑅) ∈ 𝐴𝑤𝐴)) → (sup(𝐵, 𝐴, 𝑅)𝑅𝑤 ↔ ¬ (sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅))))
2410, 16, 14, 23syl12anc 834 . . . . . . 7 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (sup(𝐵, 𝐴, 𝑅)𝑅𝑤 ↔ ¬ (sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅))))
2524con2bid 355 . . . . . 6 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → ((sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)) ↔ ¬ sup(𝐵, 𝐴, 𝑅)𝑅𝑤))
2622, 25mpbird 256 . . . . 5 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (sup(𝐵, 𝐴, 𝑅) = 𝑤𝑤𝑅sup(𝐵, 𝐴, 𝑅)))
279, 19, 26mpjaod 857 . . . 4 (((𝜑𝐶𝐴) ∧ 𝑤𝐵) → (𝐶𝑅𝑤𝐶𝑅sup(𝐵, 𝐴, 𝑅)))
2827rexlimdva 3213 . . 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 396  wo 844   = wceq 1539  wcel 2106  wral 3064  wrex 3065  wss 3887   class class class wbr 5074   Or wor 5502  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:  infglbb  9250  suprlub  11939  supxrlub  13059
  Copyright terms: Public domain W3C validator