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

Theorem dfsup2 9203
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 9201 . 2 sup(𝐵, 𝐴, 𝑅) = {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))}
2 dfrab3 4243 . . . 4 {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} = (𝐴 ∩ {𝑥 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))})
3 abeq1 2873 . . . . . . 7 ({𝑥 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} = (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))) ↔ ∀𝑥((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ↔ 𝑥 ∈ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))))
4 vex 3436 . . . . . . . . 9 𝑥 ∈ V
5 eldif 3897 . . . . . . . . 9 (𝑥 ∈ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))) ↔ (𝑥 ∈ V ∧ ¬ 𝑥 ∈ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))))
64, 5mpbiran 706 . . . . . . . 8 (𝑥 ∈ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))) ↔ ¬ 𝑥 ∈ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
74elima 5974 . . . . . . . . . . . 12 (𝑥 ∈ (𝑅𝐵) ↔ ∃𝑦𝐵 𝑦𝑅𝑥)
8 dfrex2 3170 . . . . . . . . . . . 12 (∃𝑦𝐵 𝑦𝑅𝑥 ↔ ¬ ∀𝑦𝐵 ¬ 𝑦𝑅𝑥)
97, 8bitri 274 . . . . . . . . . . 11 (𝑥 ∈ (𝑅𝐵) ↔ ¬ ∀𝑦𝐵 ¬ 𝑦𝑅𝑥)
104elima 5974 . . . . . . . . . . . 12 (𝑥 ∈ (𝑅 “ (𝐴 ∖ (𝑅𝐵))) ↔ ∃𝑦 ∈ (𝐴 ∖ (𝑅𝐵))𝑦𝑅𝑥)
11 dfrex2 3170 . . . . . . . . . . . 12 (∃𝑦 ∈ (𝐴 ∖ (𝑅𝐵))𝑦𝑅𝑥 ↔ ¬ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥)
1210, 11bitri 274 . . . . . . . . . . 11 (𝑥 ∈ (𝑅 “ (𝐴 ∖ (𝑅𝐵))) ↔ ¬ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥)
139, 12orbi12i 912 . . . . . . . . . 10 ((𝑥 ∈ (𝑅𝐵) ∨ 𝑥 ∈ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))) ↔ (¬ ∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∨ ¬ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥))
14 elun 4083 . . . . . . . . . 10 (𝑥 ∈ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))) ↔ (𝑥 ∈ (𝑅𝐵) ∨ 𝑥 ∈ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
15 ianor 979 . . . . . . . . . 10 (¬ (∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∧ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥) ↔ (¬ ∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∨ ¬ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥))
1613, 14, 153bitr4i 303 . . . . . . . . 9 (𝑥 ∈ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))) ↔ ¬ (∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∧ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥))
1716con2bii 358 . . . . . . . 8 ((∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∧ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥) ↔ ¬ 𝑥 ∈ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
18 vex 3436 . . . . . . . . . . . 12 𝑦 ∈ V
1918, 4brcnv 5791 . . . . . . . . . . 11 (𝑦𝑅𝑥𝑥𝑅𝑦)
2019notbii 320 . . . . . . . . . 10 𝑦𝑅𝑥 ↔ ¬ 𝑥𝑅𝑦)
2120ralbii 3092 . . . . . . . . 9 (∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ↔ ∀𝑦𝐵 ¬ 𝑥𝑅𝑦)
22 impexp 451 . . . . . . . . . . 11 (((𝑦𝐴 ∧ ¬ 𝑦 ∈ (𝑅𝐵)) → ¬ 𝑦𝑅𝑥) ↔ (𝑦𝐴 → (¬ 𝑦 ∈ (𝑅𝐵) → ¬ 𝑦𝑅𝑥)))
23 eldif 3897 . . . . . . . . . . . 12 (𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ↔ (𝑦𝐴 ∧ ¬ 𝑦 ∈ (𝑅𝐵)))
2423imbi1i 350 . . . . . . . . . . 11 ((𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) → ¬ 𝑦𝑅𝑥) ↔ ((𝑦𝐴 ∧ ¬ 𝑦 ∈ (𝑅𝐵)) → ¬ 𝑦𝑅𝑥))
2518elima 5974 . . . . . . . . . . . . . . 15 (𝑦 ∈ (𝑅𝐵) ↔ ∃𝑧𝐵 𝑧𝑅𝑦)
26 vex 3436 . . . . . . . . . . . . . . . . 17 𝑧 ∈ V
2726, 18brcnv 5791 . . . . . . . . . . . . . . . 16 (𝑧𝑅𝑦𝑦𝑅𝑧)
2827rexbii 3181 . . . . . . . . . . . . . . 15 (∃𝑧𝐵 𝑧𝑅𝑦 ↔ ∃𝑧𝐵 𝑦𝑅𝑧)
2925, 28bitri 274 . . . . . . . . . . . . . 14 (𝑦 ∈ (𝑅𝐵) ↔ ∃𝑧𝐵 𝑦𝑅𝑧)
3029imbi2i 336 . . . . . . . . . . . . 13 ((𝑦𝑅𝑥𝑦 ∈ (𝑅𝐵)) ↔ (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))
31 con34b 316 . . . . . . . . . . . . 13 ((𝑦𝑅𝑥𝑦 ∈ (𝑅𝐵)) ↔ (¬ 𝑦 ∈ (𝑅𝐵) → ¬ 𝑦𝑅𝑥))
3230, 31bitr3i 276 . . . . . . . . . . . 12 ((𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ (¬ 𝑦 ∈ (𝑅𝐵) → ¬ 𝑦𝑅𝑥))
3332imbi2i 336 . . . . . . . . . . 11 ((𝑦𝐴 → (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ↔ (𝑦𝐴 → (¬ 𝑦 ∈ (𝑅𝐵) → ¬ 𝑦𝑅𝑥)))
3422, 24, 333bitr4i 303 . . . . . . . . . 10 ((𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) → ¬ 𝑦𝑅𝑥) ↔ (𝑦𝐴 → (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
3534ralbii2 3090 . . . . . . . . 9 (∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥 ↔ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))
3621, 35anbi12i 627 . . . . . . . 8 ((∀𝑦𝐵 ¬ 𝑦𝑅𝑥 ∧ ∀𝑦 ∈ (𝐴 ∖ (𝑅𝐵)) ¬ 𝑦𝑅𝑥) ↔ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
376, 17, 363bitr2ri 300 . . . . . . 7 ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ↔ 𝑥 ∈ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))))
383, 37mpgbir 1802 . . . . . 6 {𝑥 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} = (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
3938ineq2i 4143 . . . . 5 (𝐴 ∩ {𝑥 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))}) = (𝐴 ∩ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵))))))
40 invdif 4202 . . . . 5 (𝐴 ∩ (V ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))) = (𝐴 ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
4139, 40eqtri 2766 . . . 4 (𝐴 ∩ {𝑥 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))}) = (𝐴 ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
422, 41eqtri 2766 . . 3 {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} = (𝐴 ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
4342unieqi 4852 . 2 {𝑥𝐴 ∣ (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))} = (𝐴 ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
441, 43eqtri 2766 1 sup(𝐵, 𝐴, 𝑅) = (𝐴 ∖ ((𝑅𝐵) ∪ (𝑅 “ (𝐴 ∖ (𝑅𝐵)))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844   = wceq 1539  wcel 2106  {cab 2715  wral 3064  wrex 3065  {crab 3068  Vcvv 3432  cdif 3884  cun 3885  cin 3886   cuni 4839   class class class wbr 5074  ccnv 5588  cima 5592  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  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-ral 3069  df-rex 3070  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-opab 5137  df-xp 5595  df-cnv 5597  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-sup 9201
This theorem is referenced by:  nfsup  9210
  Copyright terms: Public domain W3C validator