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

Theorem tridc 6786
Description: A trichotomous order is decidable. (Contributed by Jim Kingdon, 5-Sep-2022.)
Hypotheses
Ref Expression
tridc.po (𝜑𝑅 Po 𝐴)
tridc.tri (𝜑 → ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦𝑥 = 𝑦𝑦𝑅𝑥))
tridc.b (𝜑𝐵𝐴)
tridc.c (𝜑𝐶𝐴)
Assertion
Ref Expression
tridc (𝜑DECID 𝐵𝑅𝐶)
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑦,𝐶   𝑥,𝑅,𝑦
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐶(𝑥)

Proof of Theorem tridc
StepHypRef Expression
1 simpr 109 . . . 4 ((𝜑𝐵𝑅𝐶) → 𝐵𝑅𝐶)
21orcd 722 . . 3 ((𝜑𝐵𝑅𝐶) → (𝐵𝑅𝐶 ∨ ¬ 𝐵𝑅𝐶))
3 df-dc 820 . . 3 (DECID 𝐵𝑅𝐶 ↔ (𝐵𝑅𝐶 ∨ ¬ 𝐵𝑅𝐶))
42, 3sylibr 133 . 2 ((𝜑𝐵𝑅𝐶) → DECID 𝐵𝑅𝐶)
5 tridc.po . . . . . . 7 (𝜑𝑅 Po 𝐴)
6 tridc.c . . . . . . 7 (𝜑𝐶𝐴)
7 poirr 4224 . . . . . . 7 ((𝑅 Po 𝐴𝐶𝐴) → ¬ 𝐶𝑅𝐶)
85, 6, 7syl2anc 408 . . . . . 6 (𝜑 → ¬ 𝐶𝑅𝐶)
98adantr 274 . . . . 5 ((𝜑𝐵 = 𝐶) → ¬ 𝐶𝑅𝐶)
10 simpr 109 . . . . . 6 ((𝜑𝐵 = 𝐶) → 𝐵 = 𝐶)
1110breq1d 3934 . . . . 5 ((𝜑𝐵 = 𝐶) → (𝐵𝑅𝐶𝐶𝑅𝐶))
129, 11mtbird 662 . . . 4 ((𝜑𝐵 = 𝐶) → ¬ 𝐵𝑅𝐶)
1312olcd 723 . . 3 ((𝜑𝐵 = 𝐶) → (𝐵𝑅𝐶 ∨ ¬ 𝐵𝑅𝐶))
1413, 3sylibr 133 . 2 ((𝜑𝐵 = 𝐶) → DECID 𝐵𝑅𝐶)
15 tridc.b . . . . . . 7 (𝜑𝐵𝐴)
16 po2nr 4226 . . . . . . 7 ((𝑅 Po 𝐴 ∧ (𝐶𝐴𝐵𝐴)) → ¬ (𝐶𝑅𝐵𝐵𝑅𝐶))
175, 6, 15, 16syl12anc 1214 . . . . . 6 (𝜑 → ¬ (𝐶𝑅𝐵𝐵𝑅𝐶))
1817adantr 274 . . . . 5 ((𝜑𝐶𝑅𝐵) → ¬ (𝐶𝑅𝐵𝐵𝑅𝐶))
19 simplr 519 . . . . . 6 (((𝜑𝐶𝑅𝐵) ∧ 𝐵𝑅𝐶) → 𝐶𝑅𝐵)
20 simpr 109 . . . . . 6 (((𝜑𝐶𝑅𝐵) ∧ 𝐵𝑅𝐶) → 𝐵𝑅𝐶)
2119, 20jca 304 . . . . 5 (((𝜑𝐶𝑅𝐵) ∧ 𝐵𝑅𝐶) → (𝐶𝑅𝐵𝐵𝑅𝐶))
2218, 21mtand 654 . . . 4 ((𝜑𝐶𝑅𝐵) → ¬ 𝐵𝑅𝐶)
2322olcd 723 . . 3 ((𝜑𝐶𝑅𝐵) → (𝐵𝑅𝐶 ∨ ¬ 𝐵𝑅𝐶))
2423, 3sylibr 133 . 2 ((𝜑𝐶𝑅𝐵) → DECID 𝐵𝑅𝐶)
25 tridc.tri . . 3 (𝜑 → ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦𝑥 = 𝑦𝑦𝑅𝑥))
26 breq1 3927 . . . . 5 (𝑥 = 𝐵 → (𝑥𝑅𝑦𝐵𝑅𝑦))
27 eqeq1 2144 . . . . 5 (𝑥 = 𝐵 → (𝑥 = 𝑦𝐵 = 𝑦))
28 breq2 3928 . . . . 5 (𝑥 = 𝐵 → (𝑦𝑅𝑥𝑦𝑅𝐵))
2926, 27, 283orbi123d 1289 . . . 4 (𝑥 = 𝐵 → ((𝑥𝑅𝑦𝑥 = 𝑦𝑦𝑅𝑥) ↔ (𝐵𝑅𝑦𝐵 = 𝑦𝑦𝑅𝐵)))
30 breq2 3928 . . . . 5 (𝑦 = 𝐶 → (𝐵𝑅𝑦𝐵𝑅𝐶))
31 eqeq2 2147 . . . . 5 (𝑦 = 𝐶 → (𝐵 = 𝑦𝐵 = 𝐶))
32 breq1 3927 . . . . 5 (𝑦 = 𝐶 → (𝑦𝑅𝐵𝐶𝑅𝐵))
3330, 31, 323orbi123d 1289 . . . 4 (𝑦 = 𝐶 → ((𝐵𝑅𝑦𝐵 = 𝑦𝑦𝑅𝐵) ↔ (𝐵𝑅𝐶𝐵 = 𝐶𝐶𝑅𝐵)))
3429, 33rspc2va 2798 . . 3 (((𝐵𝐴𝐶𝐴) ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦𝑥 = 𝑦𝑦𝑅𝑥)) → (𝐵𝑅𝐶𝐵 = 𝐶𝐶𝑅𝐵))
3515, 6, 25, 34syl21anc 1215 . 2 (𝜑 → (𝐵𝑅𝐶𝐵 = 𝐶𝐶𝑅𝐵))
364, 14, 24, 35mpjao3dan 1285 1 (𝜑DECID 𝐵𝑅𝐶)
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wo 697  DECID wdc 819  w3o 961   = wceq 1331  wcel 1480  wral 2414   class class class wbr 3924   Po wpo 4211
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 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2119
This theorem depends on definitions:  df-bi 116  df-dc 820  df-3or 963  df-3an 964  df-tru 1334  df-nf 1437  df-sb 1736  df-clab 2124  df-cleq 2130  df-clel 2133  df-nfc 2268  df-ral 2419  df-v 2683  df-un 3070  df-sn 3528  df-pr 3529  df-op 3531  df-br 3925  df-po 4213
This theorem is referenced by:  fimax2gtrilemstep  6787
  Copyright terms: Public domain W3C validator