Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  rrx2plord Structured version   Visualization version   GIF version

Theorem rrx2plord 44727
Description: The lexicographical ordering for points in the two dimensional Euclidean plane: a point is less than another point iff its first coordinate is less than the first coordinate of the other point, or the first coordinates of both points are equal and the second coordinate of the first point is less than the second coordinate of the other point: 𝑎, 𝑏⟩ ≤ ⟨𝑥, 𝑦 iff (𝑎 < 𝑥 ∨ (𝑎 = 𝑥𝑏𝑦)). (Contributed by AV, 12-Mar-2023.)
Hypothesis
Ref Expression
rrx2plord.o 𝑂 = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝑅𝑦𝑅) ∧ ((𝑥‘1) < (𝑦‘1) ∨ ((𝑥‘1) = (𝑦‘1) ∧ (𝑥‘2) < (𝑦‘2))))}
Assertion
Ref Expression
rrx2plord ((𝑋𝑅𝑌𝑅) → (𝑋𝑂𝑌 ↔ ((𝑋‘1) < (𝑌‘1) ∨ ((𝑋‘1) = (𝑌‘1) ∧ (𝑋‘2) < (𝑌‘2)))))
Distinct variable groups:   𝑥,𝑅,𝑦   𝑥,𝑋,𝑦   𝑥,𝑌,𝑦
Allowed substitution hints:   𝑂(𝑥,𝑦)

Proof of Theorem rrx2plord
StepHypRef Expression
1 df-br 5067 . . 3 (𝑋𝑂𝑌 ↔ ⟨𝑋, 𝑌⟩ ∈ 𝑂)
2 rrx2plord.o . . . 4 𝑂 = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝑅𝑦𝑅) ∧ ((𝑥‘1) < (𝑦‘1) ∨ ((𝑥‘1) = (𝑦‘1) ∧ (𝑥‘2) < (𝑦‘2))))}
32eleq2i 2904 . . 3 (⟨𝑋, 𝑌⟩ ∈ 𝑂 ↔ ⟨𝑋, 𝑌⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝑅𝑦𝑅) ∧ ((𝑥‘1) < (𝑦‘1) ∨ ((𝑥‘1) = (𝑦‘1) ∧ (𝑥‘2) < (𝑦‘2))))})
41, 3bitri 277 . 2 (𝑋𝑂𝑌 ↔ ⟨𝑋, 𝑌⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝑅𝑦𝑅) ∧ ((𝑥‘1) < (𝑦‘1) ∨ ((𝑥‘1) = (𝑦‘1) ∧ (𝑥‘2) < (𝑦‘2))))})
5 fveq1 6669 . . . . 5 (𝑥 = 𝑋 → (𝑥‘1) = (𝑋‘1))
6 fveq1 6669 . . . . 5 (𝑦 = 𝑌 → (𝑦‘1) = (𝑌‘1))
75, 6breqan12d 5082 . . . 4 ((𝑥 = 𝑋𝑦 = 𝑌) → ((𝑥‘1) < (𝑦‘1) ↔ (𝑋‘1) < (𝑌‘1)))
85, 6eqeqan12d 2838 . . . . 5 ((𝑥 = 𝑋𝑦 = 𝑌) → ((𝑥‘1) = (𝑦‘1) ↔ (𝑋‘1) = (𝑌‘1)))
9 fveq1 6669 . . . . . 6 (𝑥 = 𝑋 → (𝑥‘2) = (𝑋‘2))
10 fveq1 6669 . . . . . 6 (𝑦 = 𝑌 → (𝑦‘2) = (𝑌‘2))
119, 10breqan12d 5082 . . . . 5 ((𝑥 = 𝑋𝑦 = 𝑌) → ((𝑥‘2) < (𝑦‘2) ↔ (𝑋‘2) < (𝑌‘2)))
128, 11anbi12d 632 . . . 4 ((𝑥 = 𝑋𝑦 = 𝑌) → (((𝑥‘1) = (𝑦‘1) ∧ (𝑥‘2) < (𝑦‘2)) ↔ ((𝑋‘1) = (𝑌‘1) ∧ (𝑋‘2) < (𝑌‘2))))
137, 12orbi12d 915 . . 3 ((𝑥 = 𝑋𝑦 = 𝑌) → (((𝑥‘1) < (𝑦‘1) ∨ ((𝑥‘1) = (𝑦‘1) ∧ (𝑥‘2) < (𝑦‘2))) ↔ ((𝑋‘1) < (𝑌‘1) ∨ ((𝑋‘1) = (𝑌‘1) ∧ (𝑋‘2) < (𝑌‘2)))))
1413opelopab2a 5422 . 2 ((𝑋𝑅𝑌𝑅) → (⟨𝑋, 𝑌⟩ ∈ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝑅𝑦𝑅) ∧ ((𝑥‘1) < (𝑦‘1) ∨ ((𝑥‘1) = (𝑦‘1) ∧ (𝑥‘2) < (𝑦‘2))))} ↔ ((𝑋‘1) < (𝑌‘1) ∨ ((𝑋‘1) = (𝑌‘1) ∧ (𝑋‘2) < (𝑌‘2)))))
154, 14syl5bb 285 1 ((𝑋𝑅𝑌𝑅) → (𝑋𝑂𝑌 ↔ ((𝑋‘1) < (𝑌‘1) ∨ ((𝑋‘1) = (𝑌‘1) ∧ (𝑋‘2) < (𝑌‘2)))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wo 843   = wceq 1537  wcel 2114  cop 4573   class class class wbr 5066  {copab 5128  cfv 6355  1c1 10538   < clt 10675  2c2 11693
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pr 5330
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-rab 3147  df-v 3496  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4839  df-br 5067  df-opab 5129  df-iota 6314  df-fv 6363
This theorem is referenced by:  rrx2plord1  44728  rrx2plord2  44729  rrx2plordisom  44730
  Copyright terms: Public domain W3C validator