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

Theorem swoer 8486
Description: Incomparability under a strict weak partial order is an equivalence relation. (Contributed by Mario Carneiro, 9-Jul-2014.) (Revised by Mario Carneiro, 12-Aug-2015.)
Hypotheses
Ref Expression
swoer.1 𝑅 = ((𝑋 × 𝑋) ∖ ( < < ))
swoer.2 ((𝜑 ∧ (𝑦𝑋𝑧𝑋)) → (𝑦 < 𝑧 → ¬ 𝑧 < 𝑦))
swoer.3 ((𝜑 ∧ (𝑥𝑋𝑦𝑋𝑧𝑋)) → (𝑥 < 𝑦 → (𝑥 < 𝑧𝑧 < 𝑦)))
Assertion
Ref Expression
swoer (𝜑𝑅 Er 𝑋)
Distinct variable groups:   𝑥,𝑦,𝑧, <   𝜑,𝑥,𝑦,𝑧   𝑥,𝑋,𝑦,𝑧
Allowed substitution hints:   𝑅(𝑥,𝑦,𝑧)

Proof of Theorem swoer
Dummy variables 𝑣 𝑢 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 swoer.1 . . . . 5 𝑅 = ((𝑋 × 𝑋) ∖ ( < < ))
2 difss 4062 . . . . 5 ((𝑋 × 𝑋) ∖ ( < < )) ⊆ (𝑋 × 𝑋)
31, 2eqsstri 3951 . . . 4 𝑅 ⊆ (𝑋 × 𝑋)
4 relxp 5598 . . . 4 Rel (𝑋 × 𝑋)
5 relss 5682 . . . 4 (𝑅 ⊆ (𝑋 × 𝑋) → (Rel (𝑋 × 𝑋) → Rel 𝑅))
63, 4, 5mp2 9 . . 3 Rel 𝑅
76a1i 11 . 2 (𝜑 → Rel 𝑅)
8 simpr 484 . . 3 ((𝜑𝑢𝑅𝑣) → 𝑢𝑅𝑣)
9 orcom 866 . . . . . 6 ((𝑢 < 𝑣𝑣 < 𝑢) ↔ (𝑣 < 𝑢𝑢 < 𝑣))
109a1i 11 . . . . 5 ((𝜑𝑢𝑅𝑣) → ((𝑢 < 𝑣𝑣 < 𝑢) ↔ (𝑣 < 𝑢𝑢 < 𝑣)))
1110notbid 317 . . . 4 ((𝜑𝑢𝑅𝑣) → (¬ (𝑢 < 𝑣𝑣 < 𝑢) ↔ ¬ (𝑣 < 𝑢𝑢 < 𝑣)))
123ssbri 5115 . . . . . . 7 (𝑢𝑅𝑣𝑢(𝑋 × 𝑋)𝑣)
1312adantl 481 . . . . . 6 ((𝜑𝑢𝑅𝑣) → 𝑢(𝑋 × 𝑋)𝑣)
14 brxp 5627 . . . . . 6 (𝑢(𝑋 × 𝑋)𝑣 ↔ (𝑢𝑋𝑣𝑋))
1513, 14sylib 217 . . . . 5 ((𝜑𝑢𝑅𝑣) → (𝑢𝑋𝑣𝑋))
161brdifun 8485 . . . . 5 ((𝑢𝑋𝑣𝑋) → (𝑢𝑅𝑣 ↔ ¬ (𝑢 < 𝑣𝑣 < 𝑢)))
1715, 16syl 17 . . . 4 ((𝜑𝑢𝑅𝑣) → (𝑢𝑅𝑣 ↔ ¬ (𝑢 < 𝑣𝑣 < 𝑢)))
1815simprd 495 . . . . 5 ((𝜑𝑢𝑅𝑣) → 𝑣𝑋)
1915simpld 494 . . . . 5 ((𝜑𝑢𝑅𝑣) → 𝑢𝑋)
201brdifun 8485 . . . . 5 ((𝑣𝑋𝑢𝑋) → (𝑣𝑅𝑢 ↔ ¬ (𝑣 < 𝑢𝑢 < 𝑣)))
2118, 19, 20syl2anc 583 . . . 4 ((𝜑𝑢𝑅𝑣) → (𝑣𝑅𝑢 ↔ ¬ (𝑣 < 𝑢𝑢 < 𝑣)))
2211, 17, 213bitr4d 310 . . 3 ((𝜑𝑢𝑅𝑣) → (𝑢𝑅𝑣𝑣𝑅𝑢))
238, 22mpbid 231 . 2 ((𝜑𝑢𝑅𝑣) → 𝑣𝑅𝑢)
24 simprl 767 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢𝑅𝑣)
2512ad2antrl 724 . . . . . . 7 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢(𝑋 × 𝑋)𝑣)
2614simplbi 497 . . . . . . 7 (𝑢(𝑋 × 𝑋)𝑣𝑢𝑋)
2725, 26syl 17 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢𝑋)
2814simprbi 496 . . . . . . 7 (𝑢(𝑋 × 𝑋)𝑣𝑣𝑋)
2925, 28syl 17 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑣𝑋)
3027, 29, 16syl2anc 583 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑢𝑅𝑣 ↔ ¬ (𝑢 < 𝑣𝑣 < 𝑢)))
3124, 30mpbid 231 . . . 4 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ¬ (𝑢 < 𝑣𝑣 < 𝑢))
32 simprr 769 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑣𝑅𝑤)
333brel 5643 . . . . . . . 8 (𝑣𝑅𝑤 → (𝑣𝑋𝑤𝑋))
3433simprd 495 . . . . . . 7 (𝑣𝑅𝑤𝑤𝑋)
3532, 34syl 17 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑤𝑋)
361brdifun 8485 . . . . . 6 ((𝑣𝑋𝑤𝑋) → (𝑣𝑅𝑤 ↔ ¬ (𝑣 < 𝑤𝑤 < 𝑣)))
3729, 35, 36syl2anc 583 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑣𝑅𝑤 ↔ ¬ (𝑣 < 𝑤𝑤 < 𝑣)))
3832, 37mpbid 231 . . . 4 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ¬ (𝑣 < 𝑤𝑤 < 𝑣))
39 simpl 482 . . . . . . 7 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝜑)
40 swoer.3 . . . . . . . 8 ((𝜑 ∧ (𝑥𝑋𝑦𝑋𝑧𝑋)) → (𝑥 < 𝑦 → (𝑥 < 𝑧𝑧 < 𝑦)))
4140swopolem 5504 . . . . . . 7 ((𝜑 ∧ (𝑢𝑋𝑤𝑋𝑣𝑋)) → (𝑢 < 𝑤 → (𝑢 < 𝑣𝑣 < 𝑤)))
4239, 27, 35, 29, 41syl13anc 1370 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑢 < 𝑤 → (𝑢 < 𝑣𝑣 < 𝑤)))
4340swopolem 5504 . . . . . . . 8 ((𝜑 ∧ (𝑤𝑋𝑢𝑋𝑣𝑋)) → (𝑤 < 𝑢 → (𝑤 < 𝑣𝑣 < 𝑢)))
4439, 35, 27, 29, 43syl13anc 1370 . . . . . . 7 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑤 < 𝑢 → (𝑤 < 𝑣𝑣 < 𝑢)))
45 orcom 866 . . . . . . 7 ((𝑣 < 𝑢𝑤 < 𝑣) ↔ (𝑤 < 𝑣𝑣 < 𝑢))
4644, 45syl6ibr 251 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑤 < 𝑢 → (𝑣 < 𝑢𝑤 < 𝑣)))
4742, 46orim12d 961 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ((𝑢 < 𝑤𝑤 < 𝑢) → ((𝑢 < 𝑣𝑣 < 𝑤) ∨ (𝑣 < 𝑢𝑤 < 𝑣))))
48 or4 923 . . . . 5 (((𝑢 < 𝑣𝑣 < 𝑤) ∨ (𝑣 < 𝑢𝑤 < 𝑣)) ↔ ((𝑢 < 𝑣𝑣 < 𝑢) ∨ (𝑣 < 𝑤𝑤 < 𝑣)))
4947, 48syl6ib 250 . . . 4 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ((𝑢 < 𝑤𝑤 < 𝑢) → ((𝑢 < 𝑣𝑣 < 𝑢) ∨ (𝑣 < 𝑤𝑤 < 𝑣))))
5031, 38, 49mtord 876 . . 3 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ¬ (𝑢 < 𝑤𝑤 < 𝑢))
511brdifun 8485 . . . 4 ((𝑢𝑋𝑤𝑋) → (𝑢𝑅𝑤 ↔ ¬ (𝑢 < 𝑤𝑤 < 𝑢)))
5227, 35, 51syl2anc 583 . . 3 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑢𝑅𝑤 ↔ ¬ (𝑢 < 𝑤𝑤 < 𝑢)))
5350, 52mpbird 256 . 2 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢𝑅𝑤)
54 swoer.2 . . . . . . 7 ((𝜑 ∧ (𝑦𝑋𝑧𝑋)) → (𝑦 < 𝑧 → ¬ 𝑧 < 𝑦))
5554, 40swopo 5505 . . . . . 6 (𝜑< Po 𝑋)
56 poirr 5506 . . . . . 6 (( < Po 𝑋𝑢𝑋) → ¬ 𝑢 < 𝑢)
5755, 56sylan 579 . . . . 5 ((𝜑𝑢𝑋) → ¬ 𝑢 < 𝑢)
58 pm1.2 900 . . . . 5 ((𝑢 < 𝑢𝑢 < 𝑢) → 𝑢 < 𝑢)
5957, 58nsyl 140 . . . 4 ((𝜑𝑢𝑋) → ¬ (𝑢 < 𝑢𝑢 < 𝑢))
60 simpr 484 . . . . 5 ((𝜑𝑢𝑋) → 𝑢𝑋)
611brdifun 8485 . . . . 5 ((𝑢𝑋𝑢𝑋) → (𝑢𝑅𝑢 ↔ ¬ (𝑢 < 𝑢𝑢 < 𝑢)))
6260, 60, 61syl2anc 583 . . . 4 ((𝜑𝑢𝑋) → (𝑢𝑅𝑢 ↔ ¬ (𝑢 < 𝑢𝑢 < 𝑢)))
6359, 62mpbird 256 . . 3 ((𝜑𝑢𝑋) → 𝑢𝑅𝑢)
643ssbri 5115 . . . . 5 (𝑢𝑅𝑢𝑢(𝑋 × 𝑋)𝑢)
65 brxp 5627 . . . . . 6 (𝑢(𝑋 × 𝑋)𝑢 ↔ (𝑢𝑋𝑢𝑋))
6665simplbi 497 . . . . 5 (𝑢(𝑋 × 𝑋)𝑢𝑢𝑋)
6764, 66syl 17 . . . 4 (𝑢𝑅𝑢𝑢𝑋)
6867adantl 481 . . 3 ((𝜑𝑢𝑅𝑢) → 𝑢𝑋)
6963, 68impbida 797 . 2 (𝜑 → (𝑢𝑋𝑢𝑅𝑢))
707, 23, 53, 69iserd 8482 1 (𝜑𝑅 Er 𝑋)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1539  wcel 2108  cdif 3880  cun 3881  wss 3883   class class class wbr 5070   Po wpo 5492   × cxp 5578  ccnv 5579  Rel wrel 5585   Er wer 8453
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-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-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-br 5071  df-opab 5133  df-po 5494  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-er 8456
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator