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

Theorem dfsup2 9133
Description: Quantifier-free definition of supremum. (Contributed by Scott Fenton, 19-Feb-2013.)
Assertion
Ref Expression
dfsup2 sup(𝐵, 𝐴, 𝑅) = (𝐴 ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))

Proof of Theorem dfsup2
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-sup 9131 . 2 sup(𝐵, 𝐴, 𝑅) = {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))}
2 dfrab3 4240 . . . 4 {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} = (𝐴 ∩ {𝑥 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))})
3 abeq1 2872 . . . . . . 7 ({𝑥 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} = (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))) ↔ ∀𝑥((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ↔ 𝑥 ∈ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))))
4 vex 3426 . . . . . . . . 9 𝑥 ∈ V
5 eldif 3893 . . . . . . . . 9 (𝑥 ∈ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))) ↔ (𝑥 ∈ V ∧ ¬ 𝑥 ∈ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))))
64, 5mpbiran 705 . . . . . . . 8 (𝑥 ∈ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))) ↔ ¬ 𝑥 ∈ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
74elima 5963 . . . . . . . . . . . 12 (𝑥 ∈ (𝑅𝐵) ↔ ∃𝑦𝐵 𝑦𝑅𝑥)
8 dfrex2 3166 . . . . . . . . . . . 12 (∃𝑦𝐵 𝑦𝑅𝑥 ↔ ¬ ∀𝑦𝐵 ¬ 𝑦𝑅𝑥)
97, 8bitri 274 . . . . . . . . . . 11 (𝑥 ∈ (𝑅𝐵) ↔ ¬ ∀𝑦𝐵 ¬ 𝑦𝑅𝑥)
104elima 5963 . . . . . . . . . . . 12 (𝑥 ∈ (𝑅 “ (𝐴 ∖ (𝑅𝐵))) ↔ ∃𝑦 ∈ (𝐴 ∖ (𝑅𝐵))𝑦𝑅𝑥)
11 dfrex2 3166 . . . . . . . . . . . 12 (∃𝑦 ∈ (𝐴 ∖ (𝑅𝐵))𝑦𝑅𝑥 ↔ ¬ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥)
1210, 11bitri 274 . . . . . . . . . . 11 (𝑥 ∈ (𝑅 “ (𝐴 ∖ (𝑅𝐵))) ↔ ¬ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥)
139, 12orbi12i 911 . . . . . . . . . 10 ((𝑥 ∈ (𝑅𝐵) ∨ 𝑥 ∈ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))) ↔ (¬ ∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∨ ¬ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥))
14 elun 4079 . . . . . . . . . 10 (𝑥 ∈ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))) ↔ (𝑥 ∈ (𝑅𝐵) ∨ 𝑥 ∈ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
15 ianor 978 . . . . . . . . . 10 (¬ (∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∧ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥) ↔ (¬ ∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∨ ¬ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥))
1613, 14, 153bitr4i 302 . . . . . . . . 9 (𝑥 ∈ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))) ↔ ¬ (∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∧ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥))
1716con2bii 357 . . . . . . . 8 ((∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∧ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥) ↔ ¬ 𝑥 ∈ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
18 vex 3426 . . . . . . . . . . . 12 𝑦 ∈ V
1918, 4brcnv 5780 . . . . . . . . . . 11 (𝑦𝑅𝑥𝑥𝑅𝑦)
2019notbii 319 . . . . . . . . . 10 𝑦𝑅𝑥 ↔ ¬ 𝑥𝑅𝑦)
2120ralbii 3090 . . . . . . . . 9 (∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ↔ ∀𝑦𝐵 ¬ 𝑥𝑅𝑦)
22 impexp 450 . . . . . . . . . . 11 (((𝑦𝐴 ∧ ¬ 𝑦 ∈ (𝑅𝐵)) → ¬ 𝑦𝑅𝑥) ↔ (𝑦𝐴 → (¬ 𝑦 ∈ (𝑅𝐵) → ¬ 𝑦𝑅𝑥)))
23 eldif 3893 . . . . . . . . . . . 12 (𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ↔ (𝑦𝐴 ∧ ¬ 𝑦 ∈ (𝑅𝐵)))
2423imbi1i 349 . . . . . . . . . . 11 ((𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) → ¬ 𝑦𝑅𝑥) ↔ ((𝑦𝐴 ∧ ¬ 𝑦 ∈ (𝑅𝐵)) → ¬ 𝑦𝑅𝑥))
2518elima 5963 . . . . . . . . . . . . . . 15 (𝑦 ∈ (𝑅𝐵) ↔ ∃𝑧𝐵 𝑧𝑅𝑦)
26 vex 3426 . . . . . . . . . . . . . . . . 17 𝑧 ∈ V
2726, 18brcnv 5780 . . . . . . . . . . . . . . . 16 (𝑧𝑅𝑦𝑦𝑅𝑧)
2827rexbii 3177 . . . . . . . . . . . . . . 15 (∃𝑧𝐵 𝑧𝑅𝑦 ↔ ∃𝑧𝐵 𝑦𝑅𝑧)
2925, 28bitri 274 . . . . . . . . . . . . . 14 (𝑦 ∈ (𝑅𝐵) ↔ ∃𝑧𝐵 𝑦𝑅𝑧)
3029imbi2i 335 . . . . . . . . . . . . 13 ((𝑦𝑅𝑥𝑦 ∈ (𝑅𝐵)) ↔ (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))
31 con34b 315 . . . . . . . . . . . . 13 ((𝑦𝑅𝑥𝑦 ∈ (𝑅𝐵)) ↔ (¬ 𝑦 ∈ (𝑅𝐵) → ¬ 𝑦𝑅𝑥))
3230, 31bitr3i 276 . . . . . . . . . . . 12 ((𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ (¬ 𝑦 ∈ (𝑅𝐵) → ¬ 𝑦𝑅𝑥))
3332imbi2i 335 . . . . . . . . . . 11 ((𝑦𝐴 → (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ↔ (𝑦𝐴 → (¬ 𝑦 ∈ (𝑅𝐵) → ¬ 𝑦𝑅𝑥)))
3422, 24, 333bitr4i 302 . . . . . . . . . 10 ((𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) → ¬ 𝑦𝑅𝑥) ↔ (𝑦𝐴 → (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
3534ralbii2 3088 . . . . . . . . 9 (∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥 ↔ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))
3621, 35anbi12i 626 . . . . . . . 8 ((∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∧ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥) ↔ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
376, 17, 363bitr2ri 299 . . . . . . 7 ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ↔ 𝑥 ∈ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))))
383, 37mpgbir 1803 . . . . . 6 {𝑥 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} = (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
3938ineq2i 4140 . . . . 5 (𝐴 ∩ {𝑥 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))}) = (𝐴 ∩ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))))
40 invdif 4199 . . . . 5 (𝐴 ∩ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))) = (𝐴 ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
4139, 40eqtri 2766 . . . 4 (𝐴 ∩ {𝑥 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))}) = (𝐴 ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
422, 41eqtri 2766 . . 3 {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} = (𝐴 ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
4342unieqi 4849 . 2 {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} = (𝐴 ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
441, 43eqtri 2766 1 sup(𝐵, 𝐴, 𝑅) = (𝐴 ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wcel 2108  {cab 2715  wral 3063  wrex 3064  {crab 3067  Vcvv 3422  cdif 3880  cun 3881  cin 3882   cuni 4836   class class class wbr 5070  ccnv 5579  cima 5583  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  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  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-opab 5133  df-xp 5586  df-cnv 5588  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-sup 9131
This theorem is referenced by:  nfsup  9140
  Copyright terms: Public domain W3C validator