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

Theorem rrx2plord2 50256
Description: The lexicographical ordering for points in the two dimensional Euclidean plane: if the first coordinates of two points are equal, a point is less than another point iff the second coordinate of the point is less than the second coordinate of the other point. (Contributed by AV, 12-Mar-2023.)
Hypotheses
Ref Expression
rrx2plord.o 𝑂 = {⟨𝑥, 𝑦⟩ ∣ ((𝑥 ∈ 𝑅 ∧ 𝑦 ∈ 𝑅) ∧ ((𝑥‘0) < (𝑦‘0) ∨ ((𝑥‘0) = (𝑦‘0) ∧ (𝑥‘1) < (𝑦‘1))))}
rrx2plord2.r 𝑅 = (ℝ ↑m (0..^2))
Assertion
Ref Expression
rrx2plord2 ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅 ∧ (𝑋‘0) = (𝑌‘0)) → (𝑋𝑂𝑌 ↔ (𝑋‘1) < (𝑌‘1)))
Distinct variable groups:   𝑥,𝑅,𝑦   𝑥,𝑋,𝑦   𝑥,𝑌,𝑦
Allowed substitution hints:   𝑂(𝑥, 𝑦)

Proof of Theorem rrx2plord2
StepHypRef Expression
1 rrx2plord.o . . . 4 𝑂 = {⟨𝑥, 𝑦⟩ ∣ ((𝑥 ∈ 𝑅 ∧ 𝑦 ∈ 𝑅) ∧ ((𝑥‘0) < (𝑦‘0) ∨ ((𝑥‘0) = (𝑦‘0) ∧ (𝑥‘1) < (𝑦‘1))))}
21rrx2plord 50254 . . 3 ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅) → (𝑋𝑂𝑌 ↔ ((𝑋‘0) < (𝑌‘0) ∨ ((𝑋‘0) = (𝑌‘0) ∧ (𝑋‘1) < (𝑌‘1)))))
323adant3 1151 . 2 ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅 ∧ (𝑋‘0) = (𝑌‘0)) → (𝑋𝑂𝑌 ↔ ((𝑋‘0) < (𝑌‘0) ∨ ((𝑋‘0) = (𝑌‘0) ∧ (𝑋‘1) < (𝑌‘1)))))
4 eqid 2766 . . . . . . . . . . . 12 (0..^2) = (0..^2)
5 rrx2plord2.r . . . . . . . . . . . 12 𝑅 = (ℝ ↑m (0..^2))
64, 5rrx2pxel 50244 . . . . . . . . . . 11 (𝑋 ∈ 𝑅 → (𝑋‘0) ∈ ℝ)
76adantr 486 . . . . . . . . . 10 ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅) → (𝑋‘0) ∈ ℝ)
8 ltne 11445 . . . . . . . . . . 11 (((𝑋‘0) ∈ ℝ ∧ (𝑋‘0) < (𝑌‘0)) → (𝑌‘0) ≠ (𝑋‘0))
98necomd 3017 . . . . . . . . . 10 (((𝑋‘0) ∈ ℝ ∧ (𝑋‘0) < (𝑌‘0)) → (𝑋‘0) ≠ (𝑌‘0))
107, 9sylan 592 . . . . . . . . 9 (((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅) ∧ (𝑋‘0) < (𝑌‘0)) → (𝑋‘0) ≠ (𝑌‘0))
1110ex 418 . . . . . . . 8 ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅) → ((𝑋‘0) < (𝑌‘0) → (𝑋‘0) ≠ (𝑌‘0)))
12 eqneqall 2973 . . . . . . . 8 ((𝑋‘0) = (𝑌‘0) → ((𝑋‘0) ≠ (𝑌‘0) → (𝑋‘1) < (𝑌‘1)))
1311, 12syl9 78 . . . . . . 7 ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅) → ((𝑋‘0) = (𝑌‘0) → ((𝑋‘0) < (𝑌‘0) → (𝑋‘1) < (𝑌‘1))))
14133impia 1136 . . . . . 6 ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅 ∧ (𝑋‘0) = (𝑌‘0)) → ((𝑋‘0) < (𝑌‘0) → (𝑋‘1) < (𝑌‘1)))
1514com12 33 . . . . 5 ((𝑋‘0) < (𝑌‘0) → ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅 ∧ (𝑋‘0) = (𝑌‘0)) → (𝑋‘1) < (𝑌‘1)))
16 simpr 490 . . . . . 6 (((𝑋‘0) = (𝑌‘0) ∧ (𝑋‘1) < (𝑌‘1)) → (𝑋‘1) < (𝑌‘1))
1716a1d 26 . . . . 5 (((𝑋‘0) = (𝑌‘0) ∧ (𝑋‘1) < (𝑌‘1)) → ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅 ∧ (𝑋‘0) = (𝑌‘0)) → (𝑋‘1) < (𝑌‘1)))
1815, 17jaoi 871 . . . 4 (((𝑋‘0) < (𝑌‘0) ∨ ((𝑋‘0) = (𝑌‘0) ∧ (𝑋‘1) < (𝑌‘1))) → ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅 ∧ (𝑋‘0) = (𝑌‘0)) → (𝑋‘1) < (𝑌‘1)))
1918com12 33 . . 3 ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅 ∧ (𝑋‘0) = (𝑌‘0)) → (((𝑋‘0) < (𝑌‘0) ∨ ((𝑋‘0) = (𝑌‘0) ∧ (𝑋‘1) < (𝑌‘1))) → (𝑋‘1) < (𝑌‘1)))
20 olc 882 . . . . 5 (((𝑋‘0) = (𝑌‘0) ∧ (𝑋‘1) < (𝑌‘1)) → ((𝑋‘0) < (𝑌‘0) ∨ ((𝑋‘0) = (𝑌‘0) ∧ (𝑋‘1) < (𝑌‘1))))
2120ex 418 . . . 4 ((𝑋‘0) = (𝑌‘0) → ((𝑋‘1) < (𝑌‘1) → ((𝑋‘0) < (𝑌‘0) ∨ ((𝑋‘0) = (𝑌‘0) ∧ (𝑋‘1) < (𝑌‘1)))))
22213ad2ant3 1154 . . 3 ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅 ∧ (𝑋‘0) = (𝑌‘0)) → ((𝑋‘1) < (𝑌‘1) → ((𝑋‘0) < (𝑌‘0) ∨ ((𝑋‘0) = (𝑌‘0) ∧ (𝑋‘1) < (𝑌‘1)))))
2319, 22impbid 215 . 2 ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅 ∧ (𝑋‘0) = (𝑌‘0)) → (((𝑋‘0) < (𝑌‘0) ∨ ((𝑋‘0) = (𝑌‘0) ∧ (𝑋‘1) < (𝑌‘1))) ↔ (𝑋‘1) < (𝑌‘1)))
243, 23bitrd 282 1 ((𝑋 ∈ 𝑅 ∧ 𝑌 ∈ 𝑅 ∧ (𝑋‘0) = (𝑌‘0)) → (𝑋𝑂𝑌 ↔ (𝑋‘1) < (𝑌‘1)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   ∧ w3a 1104   = wceq 1572   ∈ wcel 2150   ≠ wne 2962   class class class wbr 5107  {copab 5172  ‘cfv 6565  (class class class)co 7450   ↑m cmap 8884  ℝcr 11237  0cc0 11238  1c1 11239   < clt 11381  2c2 12436  ..^cfzo 13827
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7782  ax-cnex 11294  ax-resscn 11295  ax-1cn 11296  ax-icn 11297  ax-addcl 11298  ax-addrcl 11299  ax-mulcl 11300  ax-mulrcl 11301  ax-mulcom 11302  ax-addass 11303  ax-mulass 11304  ax-distr 11305  ax-i2m1 11306  ax-1ne0 11307  ax-1rid 11308  ax-rnegex 11309  ax-rrecex 11310  ax-cnre 11311  ax-pre-lttri 11312  ax-pre-lttrn 11313  ax-pre-ltadd 11314  ax-pre-mulgt0 11315
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-nel 3069  df-ral 3084  df-rex 3094  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5552  df-eprel 5557  df-po 5565  df-so 5566  df-fr 5610  df-we 5612  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-pred 6329  df-ord 6390  df-on 6391  df-lim 6392  df-suc 6393  df-iota 6519  df-fun 6567  df-fn 6568  df-f 6569  df-f1 6570  df-fo 6571  df-f1o 6572  df-fv 6573  df-riota 7407  df-ov 7453  df-oprab 7454  df-mpo 7455  df-om 7911  df-1st 8034  df-2nd 8035  df-frecs 8336  df-wrecs 8367  df-recs 8416  df-rdg 8455  df-er 8754  df-map 8886  df-en 9011  df-dom 9012  df-sdom 9013  df-pnf 11383  df-mnf 11384  df-xr 11385  df-ltxr 11386  df-le 11387  df-sub 11581  df-neg 11582  df-nn 12375  df-2 12444  df-n0 12646  df-z 12733  df-uz 13005  df-fz 13679  df-fzo 13828
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator