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

Theorem swoer 8352
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 4022 . . . . 5 ((𝑋 × 𝑋) ∖ ( < < )) ⊆ (𝑋 × 𝑋)
31, 2eqsstri 3911 . . . 4 𝑅 ⊆ (𝑋 × 𝑋)
4 relxp 5543 . . . 4 Rel (𝑋 × 𝑋)
5 relss 5627 . . . 4 (𝑅 ⊆ (𝑋 × 𝑋) → (Rel (𝑋 × 𝑋) → Rel 𝑅))
63, 4, 5mp2 9 . . 3 Rel 𝑅
76a1i 11 . 2 (𝜑 → Rel 𝑅)
8 simpr 488 . . 3 ((𝜑𝑢𝑅𝑣) → 𝑢𝑅𝑣)
9 orcom 869 . . . . . 6 ((𝑢 < 𝑣𝑣 < 𝑢) ↔ (𝑣 < 𝑢𝑢 < 𝑣))
109a1i 11 . . . . 5 ((𝜑𝑢𝑅𝑣) → ((𝑢 < 𝑣𝑣 < 𝑢) ↔ (𝑣 < 𝑢𝑢 < 𝑣)))
1110notbid 321 . . . 4 ((𝜑𝑢𝑅𝑣) → (¬ (𝑢 < 𝑣𝑣 < 𝑢) ↔ ¬ (𝑣 < 𝑢𝑢 < 𝑣)))
123ssbri 5075 . . . . . . 7 (𝑢𝑅𝑣𝑢(𝑋 × 𝑋)𝑣)
1312adantl 485 . . . . . 6 ((𝜑𝑢𝑅𝑣) → 𝑢(𝑋 × 𝑋)𝑣)
14 brxp 5572 . . . . . 6 (𝑢(𝑋 × 𝑋)𝑣 ↔ (𝑢𝑋𝑣𝑋))
1513, 14sylib 221 . . . . 5 ((𝜑𝑢𝑅𝑣) → (𝑢𝑋𝑣𝑋))
161brdifun 8351 . . . . 5 ((𝑢𝑋𝑣𝑋) → (𝑢𝑅𝑣 ↔ ¬ (𝑢 < 𝑣𝑣 < 𝑢)))
1715, 16syl 17 . . . 4 ((𝜑𝑢𝑅𝑣) → (𝑢𝑅𝑣 ↔ ¬ (𝑢 < 𝑣𝑣 < 𝑢)))
1815simprd 499 . . . . 5 ((𝜑𝑢𝑅𝑣) → 𝑣𝑋)
1915simpld 498 . . . . 5 ((𝜑𝑢𝑅𝑣) → 𝑢𝑋)
201brdifun 8351 . . . . 5 ((𝑣𝑋𝑢𝑋) → (𝑣𝑅𝑢 ↔ ¬ (𝑣 < 𝑢𝑢 < 𝑣)))
2118, 19, 20syl2anc 587 . . . 4 ((𝜑𝑢𝑅𝑣) → (𝑣𝑅𝑢 ↔ ¬ (𝑣 < 𝑢𝑢 < 𝑣)))
2211, 17, 213bitr4d 314 . . 3 ((𝜑𝑢𝑅𝑣) → (𝑢𝑅𝑣𝑣𝑅𝑢))
238, 22mpbid 235 . 2 ((𝜑𝑢𝑅𝑣) → 𝑣𝑅𝑢)
24 simprl 771 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢𝑅𝑣)
2512ad2antrl 728 . . . . . . 7 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢(𝑋 × 𝑋)𝑣)
2614simplbi 501 . . . . . . 7 (𝑢(𝑋 × 𝑋)𝑣𝑢𝑋)
2725, 26syl 17 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢𝑋)
2814simprbi 500 . . . . . . 7 (𝑢(𝑋 × 𝑋)𝑣𝑣𝑋)
2925, 28syl 17 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑣𝑋)
3027, 29, 16syl2anc 587 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑢𝑅𝑣 ↔ ¬ (𝑢 < 𝑣𝑣 < 𝑢)))
3124, 30mpbid 235 . . . 4 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ¬ (𝑢 < 𝑣𝑣 < 𝑢))
32 simprr 773 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑣𝑅𝑤)
333brel 5588 . . . . . . . 8 (𝑣𝑅𝑤 → (𝑣𝑋𝑤𝑋))
3433simprd 499 . . . . . . 7 (𝑣𝑅𝑤𝑤𝑋)
3532, 34syl 17 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑤𝑋)
361brdifun 8351 . . . . . 6 ((𝑣𝑋𝑤𝑋) → (𝑣𝑅𝑤 ↔ ¬ (𝑣 < 𝑤𝑤 < 𝑣)))
3729, 35, 36syl2anc 587 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑣𝑅𝑤 ↔ ¬ (𝑣 < 𝑤𝑤 < 𝑣)))
3832, 37mpbid 235 . . . 4 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ¬ (𝑣 < 𝑤𝑤 < 𝑣))
39 simpl 486 . . . . . . 7 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝜑)
40 swoer.3 . . . . . . . 8 ((𝜑 ∧ (𝑥𝑋𝑦𝑋𝑧𝑋)) → (𝑥 < 𝑦 → (𝑥 < 𝑧𝑧 < 𝑦)))
4140swopolem 5452 . . . . . . 7 ((𝜑 ∧ (𝑢𝑋𝑤𝑋𝑣𝑋)) → (𝑢 < 𝑤 → (𝑢 < 𝑣𝑣 < 𝑤)))
4239, 27, 35, 29, 41syl13anc 1373 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑢 < 𝑤 → (𝑢 < 𝑣𝑣 < 𝑤)))
4340swopolem 5452 . . . . . . . 8 ((𝜑 ∧ (𝑤𝑋𝑢𝑋𝑣𝑋)) → (𝑤 < 𝑢 → (𝑤 < 𝑣𝑣 < 𝑢)))
4439, 35, 27, 29, 43syl13anc 1373 . . . . . . 7 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑤 < 𝑢 → (𝑤 < 𝑣𝑣 < 𝑢)))
45 orcom 869 . . . . . . 7 ((𝑣 < 𝑢𝑤 < 𝑣) ↔ (𝑤 < 𝑣𝑣 < 𝑢))
4644, 45syl6ibr 255 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑤 < 𝑢 → (𝑣 < 𝑢𝑤 < 𝑣)))
4742, 46orim12d 964 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ((𝑢 < 𝑤𝑤 < 𝑢) → ((𝑢 < 𝑣𝑣 < 𝑤) ∨ (𝑣 < 𝑢𝑤 < 𝑣))))
48 or4 926 . . . . 5 (((𝑢 < 𝑣𝑣 < 𝑤) ∨ (𝑣 < 𝑢𝑤 < 𝑣)) ↔ ((𝑢 < 𝑣𝑣 < 𝑢) ∨ (𝑣 < 𝑤𝑤 < 𝑣)))
4947, 48syl6ib 254 . . . 4 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ((𝑢 < 𝑤𝑤 < 𝑢) → ((𝑢 < 𝑣𝑣 < 𝑢) ∨ (𝑣 < 𝑤𝑤 < 𝑣))))
5031, 38, 49mtord 879 . . 3 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ¬ (𝑢 < 𝑤𝑤 < 𝑢))
511brdifun 8351 . . . 4 ((𝑢𝑋𝑤𝑋) → (𝑢𝑅𝑤 ↔ ¬ (𝑢 < 𝑤𝑤 < 𝑢)))
5227, 35, 51syl2anc 587 . . 3 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑢𝑅𝑤 ↔ ¬ (𝑢 < 𝑤𝑤 < 𝑢)))
5350, 52mpbird 260 . 2 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢𝑅𝑤)
54 swoer.2 . . . . . . 7 ((𝜑 ∧ (𝑦𝑋𝑧𝑋)) → (𝑦 < 𝑧 → ¬ 𝑧 < 𝑦))
5554, 40swopo 5453 . . . . . 6 (𝜑< Po 𝑋)
56 poirr 5454 . . . . . 6 (( < Po 𝑋𝑢𝑋) → ¬ 𝑢 < 𝑢)
5755, 56sylan 583 . . . . 5 ((𝜑𝑢𝑋) → ¬ 𝑢 < 𝑢)
58 pm1.2 903 . . . . 5 ((𝑢 < 𝑢𝑢 < 𝑢) → 𝑢 < 𝑢)
5957, 58nsyl 142 . . . 4 ((𝜑𝑢𝑋) → ¬ (𝑢 < 𝑢𝑢 < 𝑢))
60 simpr 488 . . . . 5 ((𝜑𝑢𝑋) → 𝑢𝑋)
611brdifun 8351 . . . . 5 ((𝑢𝑋𝑢𝑋) → (𝑢𝑅𝑢 ↔ ¬ (𝑢 < 𝑢𝑢 < 𝑢)))
6260, 60, 61syl2anc 587 . . . 4 ((𝜑𝑢𝑋) → (𝑢𝑅𝑢 ↔ ¬ (𝑢 < 𝑢𝑢 < 𝑢)))
6359, 62mpbird 260 . . 3 ((𝜑𝑢𝑋) → 𝑢𝑅𝑢)
643ssbri 5075 . . . . 5 (𝑢𝑅𝑢𝑢(𝑋 × 𝑋)𝑢)
65 brxp 5572 . . . . . 6 (𝑢(𝑋 × 𝑋)𝑢 ↔ (𝑢𝑋𝑢𝑋))
6665simplbi 501 . . . . 5 (𝑢(𝑋 × 𝑋)𝑢𝑢𝑋)
6764, 66syl 17 . . . 4 (𝑢𝑅𝑢𝑢𝑋)
6867adantl 485 . . 3 ((𝜑𝑢𝑅𝑢) → 𝑢𝑋)
6963, 68impbida 801 . 2 (𝜑 → (𝑢𝑋𝑢𝑅𝑢))
707, 23, 53, 69iserd 8348 1 (𝜑𝑅 Er 𝑋)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 846  w3a 1088   = wceq 1542  wcel 2114  cdif 3840  cun 3841  wss 3843   class class class wbr 5030   Po wpo 5440   × cxp 5523  ccnv 5524  Rel wrel 5530   Er wer 8319
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2020  ax-8 2116  ax-9 2124  ax-11 2162  ax-12 2179  ax-ext 2710  ax-sep 5167  ax-nul 5174  ax-pr 5296
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1787  df-sb 2075  df-clab 2717  df-cleq 2730  df-clel 2811  df-ral 3058  df-rex 3059  df-v 3400  df-dif 3846  df-un 3848  df-in 3850  df-ss 3860  df-nul 4212  df-if 4415  df-sn 4517  df-pr 4519  df-op 4523  df-br 5031  df-opab 5093  df-po 5442  df-xp 5531  df-rel 5532  df-cnv 5533  df-co 5534  df-dm 5535  df-er 8322
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator