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

Theorem eqsup 9215
Description: Sufficient condition for an element to be equal to the supremum. (Contributed by Mario Carneiro, 21-Apr-2015.)
Hypothesis
Ref Expression
supmo.1 (𝜑𝑅 Or 𝐴)
Assertion
Ref Expression
eqsup (𝜑 → ((𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧)) → sup(𝐵, 𝐴, 𝑅) = 𝐶))
Distinct variable groups:   𝑦,𝑧,𝐴   𝑦,𝑅,𝑧   𝑦,𝐵,𝑧   𝑦,𝐶
Allowed substitution hints:   𝜑(𝑦,𝑧)   𝐶(𝑧)

Proof of Theorem eqsup
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 supmo.1 . . . . 5 (𝜑𝑅 Or 𝐴)
21adantr 481 . . . 4 ((𝜑 ∧ (𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧))) → 𝑅 Or 𝐴)
32supval2 9214 . . 3 ((𝜑 ∧ (𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧))) → sup(𝐵, 𝐴, 𝑅) = (𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))))
4 3simpc 1149 . . . . 5 ((𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧)) → (∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧)))
54adantl 482 . . . 4 ((𝜑 ∧ (𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧))) → (∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧)))
6 simpr1 1193 . . . . 5 ((𝜑 ∧ (𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧))) → 𝐶𝐴)
7 breq1 5077 . . . . . . . . . . 11 (𝑥 = 𝐶 → (𝑥𝑅𝑦𝐶𝑅𝑦))
87notbid 318 . . . . . . . . . 10 (𝑥 = 𝐶 → (¬ 𝑥𝑅𝑦 ↔ ¬ 𝐶𝑅𝑦))
98ralbidv 3112 . . . . . . . . 9 (𝑥 = 𝐶 → (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ↔ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦))
10 breq2 5078 . . . . . . . . . . 11 (𝑥 = 𝐶 → (𝑦𝑅𝑥𝑦𝑅𝐶))
1110imbi1d 342 . . . . . . . . . 10 (𝑥 = 𝐶 → ((𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧)))
1211ralbidv 3112 . . . . . . . . 9 (𝑥 = 𝐶 → (∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧)))
139, 12anbi12d 631 . . . . . . . 8 (𝑥 = 𝐶 → ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ↔ (∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧))))
1413rspcev 3561 . . . . . . 7 ((𝐶𝐴 ∧ (∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧))) → ∃𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
156, 5, 14syl2anc 584 . . . . . 6 ((𝜑 ∧ (𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧))) → ∃𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
162, 15supeu 9213 . . . . 5 ((𝜑 ∧ (𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧))) → ∃!𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
1713riota2 7258 . . . . 5 ((𝐶𝐴 ∧ ∃!𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))) → ((∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧)) ↔ (𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))) = 𝐶))
186, 16, 17syl2anc 584 . . . 4 ((𝜑 ∧ (𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧))) → ((∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧)) ↔ (𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))) = 𝐶))
195, 18mpbid 231 . . 3 ((𝜑 ∧ (𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧))) → (𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))) = 𝐶)
203, 19eqtrd 2778 . 2 ((𝜑 ∧ (𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧))) → sup(𝐵, 𝐴, 𝑅) = 𝐶)
2120ex 413 1 (𝜑 → ((𝐶𝐴 ∧ ∀𝑦𝐵 ¬ 𝐶𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝐶 → ∃𝑧𝐵 𝑦𝑅𝑧)) → sup(𝐵, 𝐴, 𝑅) = 𝐶))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wcel 2106  wral 3064  wrex 3065  ∃!wreu 3066   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-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:  eqsupd  9216  eqinf  9243  suprzcl2  12678  supxr  13047
  Copyright terms: Public domain W3C validator