Metamath Proof Explorer


Theorem letri3

Description: Trichotomy law. (Contributed by NM, 14-May-1999)

Ref Expression
Assertion letri3 ( ( 𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ ) → ( 𝐴 = 𝐵 ↔ ( 𝐴𝐵𝐵𝐴 ) ) )

Proof

Step Hyp Ref Expression
1 lttri3 ( ( 𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ ) → ( 𝐴 = 𝐵 ↔ ( ¬ 𝐴 < 𝐵 ∧ ¬ 𝐵 < 𝐴 ) ) )
2 1 biancomd ( ( 𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ ) → ( 𝐴 = 𝐵 ↔ ( ¬ 𝐵 < 𝐴 ∧ ¬ 𝐴 < 𝐵 ) ) )
3 lenlt ( ( 𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ ) → ( 𝐴𝐵 ↔ ¬ 𝐵 < 𝐴 ) )
4 lenlt ( ( 𝐵 ∈ ℝ ∧ 𝐴 ∈ ℝ ) → ( 𝐵𝐴 ↔ ¬ 𝐴 < 𝐵 ) )
5 4 ancoms ( ( 𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ ) → ( 𝐵𝐴 ↔ ¬ 𝐴 < 𝐵 ) )
6 3 5 anbi12d ( ( 𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ ) → ( ( 𝐴𝐵𝐵𝐴 ) ↔ ( ¬ 𝐵 < 𝐴 ∧ ¬ 𝐴 < 𝐵 ) ) )
7 2 6 bitr4d ( ( 𝐴 ∈ ℝ ∧ 𝐵 ∈ ℝ ) → ( 𝐴 = 𝐵 ↔ ( 𝐴𝐵𝐵𝐴 ) ) )