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

Theorem nntri3 6098
Description: A trichotomy law for natural numbers. (Contributed by Jim Kingdon, 15-May-2020.)
Assertion
Ref Expression
nntri3 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 = 𝐵 ↔ (¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴)))

Proof of Theorem nntri3
StepHypRef Expression
1 elirr 4284 . . . . . 6 ¬ 𝐴𝐴
2 eleq2 2142 . . . . . 6 (𝐴 = 𝐵 → (𝐴𝐴𝐴𝐵))
31, 2mtbii 631 . . . . 5 (𝐴 = 𝐵 → ¬ 𝐴𝐵)
43con2i 589 . . . 4 (𝐴𝐵 → ¬ 𝐴 = 𝐵)
54adantl 271 . . 3 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) → ¬ 𝐴 = 𝐵)
6 simpl 107 . . . . 5 ((¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴) → ¬ 𝐴𝐵)
76con2i 589 . . . 4 (𝐴𝐵 → ¬ (¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴))
87adantl 271 . . 3 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) → ¬ (¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴))
95, 82falsed 650 . 2 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴𝐵) → (𝐴 = 𝐵 ↔ (¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴)))
10 simpr 108 . . 3 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 = 𝐵) → 𝐴 = 𝐵)
11 eleq1 2141 . . . . . 6 (𝐴 = 𝐵 → (𝐴𝐴𝐵𝐴))
121, 11mtbii 631 . . . . 5 (𝐴 = 𝐵 → ¬ 𝐵𝐴)
133, 12jca 300 . . . 4 (𝐴 = 𝐵 → (¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴))
1413adantl 271 . . 3 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 = 𝐵) → (¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴))
1510, 142thd 173 . 2 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐴 = 𝐵) → (𝐴 = 𝐵 ↔ (¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴)))
1612con2i 589 . . . 4 (𝐵𝐴 → ¬ 𝐴 = 𝐵)
1716adantl 271 . . 3 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐵𝐴) → ¬ 𝐴 = 𝐵)
18 simpr 108 . . . . 5 ((¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴) → ¬ 𝐵𝐴)
1918con2i 589 . . . 4 (𝐵𝐴 → ¬ (¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴))
2019adantl 271 . . 3 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐵𝐴) → ¬ (¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴))
2117, 202falsed 650 . 2 (((𝐴 ∈ ω ∧ 𝐵 ∈ ω) ∧ 𝐵𝐴) → (𝐴 = 𝐵 ↔ (¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴)))
22 nntri3or 6095 . 2 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴𝐵𝐴 = 𝐵𝐵𝐴))
239, 15, 21, 22mpjao3dan 1238 1 ((𝐴 ∈ ω ∧ 𝐵 ∈ ω) → (𝐴 = 𝐵 ↔ (¬ 𝐴𝐵 ∧ ¬ 𝐵𝐴)))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 102  wb 103   = wceq 1284  wcel 1433  ωcom 4331
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 576  ax-in2 577  ax-io 662  ax-5 1376  ax-7 1377  ax-gen 1378  ax-ie1 1422  ax-ie2 1423  ax-8 1435  ax-10 1436  ax-11 1437  ax-i12 1438  ax-bndl 1439  ax-4 1440  ax-13 1444  ax-14 1445  ax-17 1459  ax-i9 1463  ax-ial 1467  ax-i5r 1468  ax-ext 2063  ax-sep 3896  ax-nul 3904  ax-pow 3948  ax-pr 3964  ax-un 4188  ax-setind 4280  ax-iinf 4329
This theorem depends on definitions:  df-bi 115  df-3or 920  df-3an 921  df-tru 1287  df-nf 1390  df-sb 1686  df-clab 2068  df-cleq 2074  df-clel 2077  df-nfc 2208  df-ne 2246  df-ral 2353  df-rex 2354  df-v 2603  df-dif 2975  df-un 2977  df-in 2979  df-ss 2986  df-nul 3252  df-pw 3384  df-sn 3404  df-pr 3405  df-uni 3602  df-int 3637  df-tr 3876  df-iord 4121  df-on 4123  df-suc 4126  df-iom 4332
This theorem is referenced by:  frec2uzf1od  9408
  Copyright terms: Public domain W3C validator