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

Theorem supmo 9141
Description: Any class 𝐵 has at most one supremum in 𝐴 (where 𝑅 is interpreted as 'less than'). (Contributed by NM, 5-May-1999.) (Revised by Mario Carneiro, 24-Dec-2016.)
Hypothesis
Ref Expression
supmo.1 (𝜑𝑅 Or 𝐴)
Assertion
Ref Expression
supmo (𝜑 → ∃*𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
Distinct variable groups:   𝑥,𝑦,𝑧,𝐴   𝑥,𝑅,𝑦,𝑧   𝑥,𝐵,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧)

Proof of Theorem supmo
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 supmo.1 . . 3 (𝜑𝑅 Or 𝐴)
2 ancom 460 . . . . . . . 8 ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐵 ¬ 𝑤𝑅𝑦) ↔ (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ∧ ∀𝑦𝐵 ¬ 𝑥𝑅𝑦))
32anbi2ci 624 . . . . . . 7 (((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐵 ¬ 𝑤𝑅𝑦) ∧ (∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))) ↔ ((∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ∧ (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ∧ ∀𝑦𝐵 ¬ 𝑥𝑅𝑦)))
4 an42 653 . . . . . . 7 (((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ∧ (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧))) ↔ ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐵 ¬ 𝑤𝑅𝑦) ∧ (∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧))))
5 an42 653 . . . . . . 7 (((∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐵 ¬ 𝑥𝑅𝑦) ∧ (∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐵 ¬ 𝑤𝑅𝑦)) ↔ ((∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ∧ (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ∧ ∀𝑦𝐵 ¬ 𝑥𝑅𝑦)))
63, 4, 53bitr4i 302 . . . . . 6 (((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ∧ (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧))) ↔ ((∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐵 ¬ 𝑥𝑅𝑦) ∧ (∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐵 ¬ 𝑤𝑅𝑦)))
7 ralnex 3163 . . . . . . . . . 10 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ↔ ¬ ∃𝑦𝐵 𝑥𝑅𝑦)
8 breq1 5073 . . . . . . . . . . . . . 14 (𝑦 = 𝑥 → (𝑦𝑅𝑤𝑥𝑅𝑤))
9 breq1 5073 . . . . . . . . . . . . . . 15 (𝑦 = 𝑥 → (𝑦𝑅𝑧𝑥𝑅𝑧))
109rexbidv 3225 . . . . . . . . . . . . . 14 (𝑦 = 𝑥 → (∃𝑧𝐵 𝑦𝑅𝑧 ↔ ∃𝑧𝐵 𝑥𝑅𝑧))
118, 10imbi12d 344 . . . . . . . . . . . . 13 (𝑦 = 𝑥 → ((𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ (𝑥𝑅𝑤 → ∃𝑧𝐵 𝑥𝑅𝑧)))
1211rspcva 3550 . . . . . . . . . . . 12 ((𝑥𝐴 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧)) → (𝑥𝑅𝑤 → ∃𝑧𝐵 𝑥𝑅𝑧))
13 breq2 5074 . . . . . . . . . . . . 13 (𝑦 = 𝑧 → (𝑥𝑅𝑦𝑥𝑅𝑧))
1413cbvrexvw 3373 . . . . . . . . . . . 12 (∃𝑦𝐵 𝑥𝑅𝑦 ↔ ∃𝑧𝐵 𝑥𝑅𝑧)
1512, 14syl6ibr 251 . . . . . . . . . . 11 ((𝑥𝐴 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧)) → (𝑥𝑅𝑤 → ∃𝑦𝐵 𝑥𝑅𝑦))
1615con3d 152 . . . . . . . . . 10 ((𝑥𝐴 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧)) → (¬ ∃𝑦𝐵 𝑥𝑅𝑦 → ¬ 𝑥𝑅𝑤))
177, 16syl5bi 241 . . . . . . . . 9 ((𝑥𝐴 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧)) → (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 → ¬ 𝑥𝑅𝑤))
1817expimpd 453 . . . . . . . 8 (𝑥𝐴 → ((∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐵 ¬ 𝑥𝑅𝑦) → ¬ 𝑥𝑅𝑤))
1918ad2antrl 724 . . . . . . 7 ((𝑅 Or 𝐴 ∧ (𝑥𝐴𝑤𝐴)) → ((∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐵 ¬ 𝑥𝑅𝑦) → ¬ 𝑥𝑅𝑤))
20 ralnex 3163 . . . . . . . . . 10 (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ↔ ¬ ∃𝑦𝐵 𝑤𝑅𝑦)
21 breq1 5073 . . . . . . . . . . . . . 14 (𝑦 = 𝑤 → (𝑦𝑅𝑥𝑤𝑅𝑥))
22 breq1 5073 . . . . . . . . . . . . . . 15 (𝑦 = 𝑤 → (𝑦𝑅𝑧𝑤𝑅𝑧))
2322rexbidv 3225 . . . . . . . . . . . . . 14 (𝑦 = 𝑤 → (∃𝑧𝐵 𝑦𝑅𝑧 ↔ ∃𝑧𝐵 𝑤𝑅𝑧))
2421, 23imbi12d 344 . . . . . . . . . . . . 13 (𝑦 = 𝑤 → ((𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧)))
2524rspcva 3550 . . . . . . . . . . . 12 ((𝑤𝐴 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → (𝑤𝑅𝑥 → ∃𝑧𝐵 𝑤𝑅𝑧))
26 breq2 5074 . . . . . . . . . . . . 13 (𝑦 = 𝑧 → (𝑤𝑅𝑦𝑤𝑅𝑧))
2726cbvrexvw 3373 . . . . . . . . . . . 12 (∃𝑦𝐵 𝑤𝑅𝑦 ↔ ∃𝑧𝐵 𝑤𝑅𝑧)
2825, 27syl6ibr 251 . . . . . . . . . . 11 ((𝑤𝐴 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → (𝑤𝑅𝑥 → ∃𝑦𝐵 𝑤𝑅𝑦))
2928con3d 152 . . . . . . . . . 10 ((𝑤𝐴 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → (¬ ∃𝑦𝐵 𝑤𝑅𝑦 → ¬ 𝑤𝑅𝑥))
3020, 29syl5bi 241 . . . . . . . . 9 ((𝑤𝐴 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) → (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 → ¬ 𝑤𝑅𝑥))
3130expimpd 453 . . . . . . . 8 (𝑤𝐴 → ((∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐵 ¬ 𝑤𝑅𝑦) → ¬ 𝑤𝑅𝑥))
3231ad2antll 725 . . . . . . 7 ((𝑅 Or 𝐴 ∧ (𝑥𝐴𝑤𝐴)) → ((∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐵 ¬ 𝑤𝑅𝑦) → ¬ 𝑤𝑅𝑥))
3319, 32anim12d 608 . . . . . 6 ((𝑅 Or 𝐴 ∧ (𝑥𝐴𝑤𝐴)) → (((∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐵 ¬ 𝑥𝑅𝑦) ∧ (∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ∧ ∀𝑦𝐵 ¬ 𝑤𝑅𝑦)) → (¬ 𝑥𝑅𝑤 ∧ ¬ 𝑤𝑅𝑥)))
346, 33syl5bi 241 . . . . 5 ((𝑅 Or 𝐴 ∧ (𝑥𝐴𝑤𝐴)) → (((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ∧ (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧))) → (¬ 𝑥𝑅𝑤 ∧ ¬ 𝑤𝑅𝑥)))
35 sotrieq2 5524 . . . . 5 ((𝑅 Or 𝐴 ∧ (𝑥𝐴𝑤𝐴)) → (𝑥 = 𝑤 ↔ (¬ 𝑥𝑅𝑤 ∧ ¬ 𝑤𝑅𝑥)))
3634, 35sylibrd 258 . . . 4 ((𝑅 Or 𝐴 ∧ (𝑥𝐴𝑤𝐴)) → (((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ∧ (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧))) → 𝑥 = 𝑤))
3736ralrimivva 3114 . . 3 (𝑅 Or 𝐴 → ∀𝑥𝐴𝑤𝐴 (((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ∧ (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧))) → 𝑥 = 𝑤))
381, 37syl 17 . 2 (𝜑 → ∀𝑥𝐴𝑤𝐴 (((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ∧ (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧))) → 𝑥 = 𝑤))
39 breq1 5073 . . . . . 6 (𝑥 = 𝑤 → (𝑥𝑅𝑦𝑤𝑅𝑦))
4039notbid 317 . . . . 5 (𝑥 = 𝑤 → (¬ 𝑥𝑅𝑦 ↔ ¬ 𝑤𝑅𝑦))
4140ralbidv 3120 . . . 4 (𝑥 = 𝑤 → (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ↔ ∀𝑦𝐵 ¬ 𝑤𝑅𝑦))
42 breq2 5074 . . . . . 6 (𝑥 = 𝑤 → (𝑦𝑅𝑥𝑦𝑅𝑤))
4342imbi1d 341 . . . . 5 (𝑥 = 𝑤 → ((𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧)))
4443ralbidv 3120 . . . 4 (𝑥 = 𝑤 → (∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧) ↔ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧)))
4541, 44anbi12d 630 . . 3 (𝑥 = 𝑤 → ((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ↔ (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧))))
4645rmo4 3660 . 2 (∃*𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ↔ ∀𝑥𝐴𝑤𝐴 (((∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)) ∧ (∀𝑦𝐵 ¬ 𝑤𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑤 → ∃𝑧𝐵 𝑦𝑅𝑧))) → 𝑥 = 𝑤))
4738, 46sylibr 233 1 (𝜑 → ∃*𝑥𝐴 (∀𝑦𝐵 ¬ 𝑥𝑅𝑦 ∧ ∀𝑦𝐴 (𝑦𝑅𝑥 → ∃𝑧𝐵 𝑦𝑅𝑧)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395  wcel 2108  wral 3063  wrex 3064  ∃*wrmo 3066   class class class wbr 5070   Or wor 5493
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-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-mo 2540  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rex 3069  df-rmo 3071  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-br 5071  df-po 5494  df-so 5495
This theorem is referenced by:  supexd  9142  supeu  9143
  Copyright terms: Public domain W3C validator