ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  swoer GIF version

Theorem swoer 6529
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 3248 . . . . 5 ((𝑋 × 𝑋) ∖ ( < < )) ⊆ (𝑋 × 𝑋)
31, 2eqsstri 3174 . . . 4 𝑅 ⊆ (𝑋 × 𝑋)
4 relxp 4713 . . . 4 Rel (𝑋 × 𝑋)
5 relss 4691 . . . 4 (𝑅 ⊆ (𝑋 × 𝑋) → (Rel (𝑋 × 𝑋) → Rel 𝑅))
63, 4, 5mp2 16 . . 3 Rel 𝑅
76a1i 9 . 2 (𝜑 → Rel 𝑅)
8 simpr 109 . . 3 ((𝜑𝑢𝑅𝑣) → 𝑢𝑅𝑣)
9 orcom 718 . . . . . 6 ((𝑢 < 𝑣𝑣 < 𝑢) ↔ (𝑣 < 𝑢𝑢 < 𝑣))
109a1i 9 . . . . 5 ((𝜑𝑢𝑅𝑣) → ((𝑢 < 𝑣𝑣 < 𝑢) ↔ (𝑣 < 𝑢𝑢 < 𝑣)))
1110notbid 657 . . . 4 ((𝜑𝑢𝑅𝑣) → (¬ (𝑢 < 𝑣𝑣 < 𝑢) ↔ ¬ (𝑣 < 𝑢𝑢 < 𝑣)))
123ssbri 4026 . . . . . . 7 (𝑢𝑅𝑣𝑢(𝑋 × 𝑋)𝑣)
1312adantl 275 . . . . . 6 ((𝜑𝑢𝑅𝑣) → 𝑢(𝑋 × 𝑋)𝑣)
14 brxp 4635 . . . . . 6 (𝑢(𝑋 × 𝑋)𝑣 ↔ (𝑢𝑋𝑣𝑋))
1513, 14sylib 121 . . . . 5 ((𝜑𝑢𝑅𝑣) → (𝑢𝑋𝑣𝑋))
161brdifun 6528 . . . . 5 ((𝑢𝑋𝑣𝑋) → (𝑢𝑅𝑣 ↔ ¬ (𝑢 < 𝑣𝑣 < 𝑢)))
1715, 16syl 14 . . . 4 ((𝜑𝑢𝑅𝑣) → (𝑢𝑅𝑣 ↔ ¬ (𝑢 < 𝑣𝑣 < 𝑢)))
1815simprd 113 . . . . 5 ((𝜑𝑢𝑅𝑣) → 𝑣𝑋)
1915simpld 111 . . . . 5 ((𝜑𝑢𝑅𝑣) → 𝑢𝑋)
201brdifun 6528 . . . . 5 ((𝑣𝑋𝑢𝑋) → (𝑣𝑅𝑢 ↔ ¬ (𝑣 < 𝑢𝑢 < 𝑣)))
2118, 19, 20syl2anc 409 . . . 4 ((𝜑𝑢𝑅𝑣) → (𝑣𝑅𝑢 ↔ ¬ (𝑣 < 𝑢𝑢 < 𝑣)))
2211, 17, 213bitr4d 219 . . 3 ((𝜑𝑢𝑅𝑣) → (𝑢𝑅𝑣𝑣𝑅𝑢))
238, 22mpbid 146 . 2 ((𝜑𝑢𝑅𝑣) → 𝑣𝑅𝑢)
24 simprl 521 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢𝑅𝑣)
2512ad2antrl 482 . . . . . . 7 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢(𝑋 × 𝑋)𝑣)
2614simplbi 272 . . . . . . 7 (𝑢(𝑋 × 𝑋)𝑣𝑢𝑋)
2725, 26syl 14 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢𝑋)
2814simprbi 273 . . . . . . 7 (𝑢(𝑋 × 𝑋)𝑣𝑣𝑋)
2925, 28syl 14 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑣𝑋)
3027, 29, 16syl2anc 409 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑢𝑅𝑣 ↔ ¬ (𝑢 < 𝑣𝑣 < 𝑢)))
3124, 30mpbid 146 . . . 4 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ¬ (𝑢 < 𝑣𝑣 < 𝑢))
32 simprr 522 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑣𝑅𝑤)
333brel 4656 . . . . . . . 8 (𝑣𝑅𝑤 → (𝑣𝑋𝑤𝑋))
3433simprd 113 . . . . . . 7 (𝑣𝑅𝑤𝑤𝑋)
3532, 34syl 14 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑤𝑋)
361brdifun 6528 . . . . . 6 ((𝑣𝑋𝑤𝑋) → (𝑣𝑅𝑤 ↔ ¬ (𝑣 < 𝑤𝑤 < 𝑣)))
3729, 35, 36syl2anc 409 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑣𝑅𝑤 ↔ ¬ (𝑣 < 𝑤𝑤 < 𝑣)))
3832, 37mpbid 146 . . . 4 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ¬ (𝑣 < 𝑤𝑤 < 𝑣))
39 simpl 108 . . . . . . 7 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝜑)
40 swoer.3 . . . . . . . 8 ((𝜑 ∧ (𝑥𝑋𝑦𝑋𝑧𝑋)) → (𝑥 < 𝑦 → (𝑥 < 𝑧𝑧 < 𝑦)))
4140swopolem 4283 . . . . . . 7 ((𝜑 ∧ (𝑢𝑋𝑤𝑋𝑣𝑋)) → (𝑢 < 𝑤 → (𝑢 < 𝑣𝑣 < 𝑤)))
4239, 27, 35, 29, 41syl13anc 1230 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑢 < 𝑤 → (𝑢 < 𝑣𝑣 < 𝑤)))
4340swopolem 4283 . . . . . . . 8 ((𝜑 ∧ (𝑤𝑋𝑢𝑋𝑣𝑋)) → (𝑤 < 𝑢 → (𝑤 < 𝑣𝑣 < 𝑢)))
4439, 35, 27, 29, 43syl13anc 1230 . . . . . . 7 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑤 < 𝑢 → (𝑤 < 𝑣𝑣 < 𝑢)))
45 orcom 718 . . . . . . 7 ((𝑣 < 𝑢𝑤 < 𝑣) ↔ (𝑤 < 𝑣𝑣 < 𝑢))
4644, 45syl6ibr 161 . . . . . 6 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑤 < 𝑢 → (𝑣 < 𝑢𝑤 < 𝑣)))
4742, 46orim12d 776 . . . . 5 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ((𝑢 < 𝑤𝑤 < 𝑢) → ((𝑢 < 𝑣𝑣 < 𝑤) ∨ (𝑣 < 𝑢𝑤 < 𝑣))))
48 or4 761 . . . . 5 (((𝑢 < 𝑣𝑣 < 𝑤) ∨ (𝑣 < 𝑢𝑤 < 𝑣)) ↔ ((𝑢 < 𝑣𝑣 < 𝑢) ∨ (𝑣 < 𝑤𝑤 < 𝑣)))
4947, 48syl6ib 160 . . . 4 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ((𝑢 < 𝑤𝑤 < 𝑢) → ((𝑢 < 𝑣𝑣 < 𝑢) ∨ (𝑣 < 𝑤𝑤 < 𝑣))))
5031, 38, 49mtord 773 . . 3 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → ¬ (𝑢 < 𝑤𝑤 < 𝑢))
511brdifun 6528 . . . 4 ((𝑢𝑋𝑤𝑋) → (𝑢𝑅𝑤 ↔ ¬ (𝑢 < 𝑤𝑤 < 𝑢)))
5227, 35, 51syl2anc 409 . . 3 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → (𝑢𝑅𝑤 ↔ ¬ (𝑢 < 𝑤𝑤 < 𝑢)))
5350, 52mpbird 166 . 2 ((𝜑 ∧ (𝑢𝑅𝑣𝑣𝑅𝑤)) → 𝑢𝑅𝑤)
54 swoer.2 . . . . . . 7 ((𝜑 ∧ (𝑦𝑋𝑧𝑋)) → (𝑦 < 𝑧 → ¬ 𝑧 < 𝑦))
5554, 40swopo 4284 . . . . . 6 (𝜑< Po 𝑋)
56 poirr 4285 . . . . . 6 (( < Po 𝑋𝑢𝑋) → ¬ 𝑢 < 𝑢)
5755, 56sylan 281 . . . . 5 ((𝜑𝑢𝑋) → ¬ 𝑢 < 𝑢)
58 pm1.2 746 . . . . 5 ((𝑢 < 𝑢𝑢 < 𝑢) → 𝑢 < 𝑢)
5957, 58nsyl 618 . . . 4 ((𝜑𝑢𝑋) → ¬ (𝑢 < 𝑢𝑢 < 𝑢))
60 simpr 109 . . . . 5 ((𝜑𝑢𝑋) → 𝑢𝑋)
611brdifun 6528 . . . . 5 ((𝑢𝑋𝑢𝑋) → (𝑢𝑅𝑢 ↔ ¬ (𝑢 < 𝑢𝑢 < 𝑢)))
6260, 60, 61syl2anc 409 . . . 4 ((𝜑𝑢𝑋) → (𝑢𝑅𝑢 ↔ ¬ (𝑢 < 𝑢𝑢 < 𝑢)))
6359, 62mpbird 166 . . 3 ((𝜑𝑢𝑋) → 𝑢𝑅𝑢)
643ssbri 4026 . . . . 5 (𝑢𝑅𝑢𝑢(𝑋 × 𝑋)𝑢)
65 brxp 4635 . . . . . 6 (𝑢(𝑋 × 𝑋)𝑢 ↔ (𝑢𝑋𝑢𝑋))
6665simplbi 272 . . . . 5 (𝑢(𝑋 × 𝑋)𝑢𝑢𝑋)
6764, 66syl 14 . . . 4 (𝑢𝑅𝑢𝑢𝑋)
6867adantl 275 . . 3 ((𝜑𝑢𝑅𝑢) → 𝑢𝑋)
6963, 68impbida 586 . 2 (𝜑 → (𝑢𝑋𝑢𝑅𝑢))
707, 23, 53, 69iserd 6527 1 (𝜑𝑅 Er 𝑋)
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  wo 698  w3a 968   = wceq 1343  wcel 2136  cdif 3113  cun 3114  wss 3116   class class class wbr 3982   Po wpo 4272   × cxp 4602  ccnv 4603  Rel wrel 4609   Er wer 6498
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-14 2139  ax-ext 2147  ax-sep 4100  ax-pow 4153  ax-pr 4187
This theorem depends on definitions:  df-bi 116  df-3an 970  df-tru 1346  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ral 2449  df-rex 2450  df-v 2728  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-br 3983  df-opab 4044  df-po 4274  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-er 6501
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator