MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  nqereu Structured version   Visualization version   GIF version

Theorem nqereu 10674
Description: There is a unique element of Q equivalent to each element of N × N. (Contributed by Mario Carneiro, 28-Apr-2013.) (New usage is discouraged.)
Assertion
Ref Expression
nqereu (𝐴 ∈ (N × N) → ∃!𝑥Q 𝑥 ~Q 𝐴)
Distinct variable group:   𝑥,𝐴

Proof of Theorem nqereu
Dummy variables 𝑎 𝑏 𝑦 𝑐 𝑑 𝑚 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elxp2 5610 . . 3 (𝐴 ∈ (N × N) ↔ ∃𝑎N𝑏N 𝐴 = ⟨𝑎, 𝑏⟩)
2 pion 10624 . . . . . . . . 9 (𝑏N𝑏 ∈ On)
3 suceloni 7651 . . . . . . . . 9 (𝑏 ∈ On → suc 𝑏 ∈ On)
42, 3syl 17 . . . . . . . 8 (𝑏N → suc 𝑏 ∈ On)
5 vex 3435 . . . . . . . . 9 𝑏 ∈ V
65sucid 6340 . . . . . . . 8 𝑏 ∈ suc 𝑏
7 eleq2 2827 . . . . . . . . 9 (𝑦 = suc 𝑏 → (𝑏𝑦𝑏 ∈ suc 𝑏))
87rspcev 3561 . . . . . . . 8 ((suc 𝑏 ∈ On ∧ 𝑏 ∈ suc 𝑏) → ∃𝑦 ∈ On 𝑏𝑦)
94, 6, 8sylancl 586 . . . . . . 7 (𝑏N → ∃𝑦 ∈ On 𝑏𝑦)
109adantl 482 . . . . . 6 ((𝑎N𝑏N) → ∃𝑦 ∈ On 𝑏𝑦)
11 elequ2 2121 . . . . . . . . . . . . . 14 (𝑦 = 𝑚 → (𝑏𝑦𝑏𝑚))
1211imbi1d 342 . . . . . . . . . . . . 13 (𝑦 = 𝑚 → ((𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) ↔ (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
13122ralbidv 3120 . . . . . . . . . . . 12 (𝑦 = 𝑚 → (∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) ↔ ∀𝑎N𝑏N (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
14 opeq1 4806 . . . . . . . . . . . . . . . . . . 19 (𝑐 = 𝑎 → ⟨𝑐, 𝑑⟩ = ⟨𝑎, 𝑑⟩)
1514breq2d 5087 . . . . . . . . . . . . . . . . . 18 (𝑐 = 𝑎 → (𝑥 ~Q𝑐, 𝑑⟩ ↔ 𝑥 ~Q𝑎, 𝑑⟩))
1615rexbidv 3225 . . . . . . . . . . . . . . . . 17 (𝑐 = 𝑎 → (∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩ ↔ ∃𝑥Q 𝑥 ~Q𝑎, 𝑑⟩))
1716imbi2d 341 . . . . . . . . . . . . . . . 16 (𝑐 = 𝑎 → ((𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑑⟩)))
18 elequ1 2113 . . . . . . . . . . . . . . . . 17 (𝑑 = 𝑏 → (𝑑𝑚𝑏𝑚))
19 opeq2 4807 . . . . . . . . . . . . . . . . . . 19 (𝑑 = 𝑏 → ⟨𝑎, 𝑑⟩ = ⟨𝑎, 𝑏⟩)
2019breq2d 5087 . . . . . . . . . . . . . . . . . 18 (𝑑 = 𝑏 → (𝑥 ~Q𝑎, 𝑑⟩ ↔ 𝑥 ~Q𝑎, 𝑏⟩))
2120rexbidv 3225 . . . . . . . . . . . . . . . . 17 (𝑑 = 𝑏 → (∃𝑥Q 𝑥 ~Q𝑎, 𝑑⟩ ↔ ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
2218, 21imbi12d 345 . . . . . . . . . . . . . . . 16 (𝑑 = 𝑏 → ((𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑑⟩) ↔ (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
2317, 22cbvral2vw 3395 . . . . . . . . . . . . . . 15 (∀𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ ∀𝑎N𝑏N (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
2423ralbii 3092 . . . . . . . . . . . . . 14 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ ∀𝑚𝑦𝑎N𝑏N (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
25 rexnal 3168 . . . . . . . . . . . . . . . . . . 19 (∃𝑧 ∈ (N × N) ¬ (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) ↔ ¬ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏))
26 pm4.63 398 . . . . . . . . . . . . . . . . . . . . 21 (¬ (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) ↔ (⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) <N 𝑏))
27 xp2nd 7855 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑧 ∈ (N × N) → (2nd𝑧) ∈ N)
28 ltpiord 10632 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((2nd𝑧) ∈ N𝑏N) → ((2nd𝑧) <N 𝑏 ↔ (2nd𝑧) ∈ 𝑏))
2928ancoms 459 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑏N ∧ (2nd𝑧) ∈ N) → ((2nd𝑧) <N 𝑏 ↔ (2nd𝑧) ∈ 𝑏))
3027, 29sylan2 593 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏N𝑧 ∈ (N × N)) → ((2nd𝑧) <N 𝑏 ↔ (2nd𝑧) ∈ 𝑏))
3130adantll 711 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑎N𝑏N) ∧ 𝑧 ∈ (N × N)) → ((2nd𝑧) <N 𝑏 ↔ (2nd𝑧) ∈ 𝑏))
3231anbi2d 629 . . . . . . . . . . . . . . . . . . . . 21 (((𝑎N𝑏N) ∧ 𝑧 ∈ (N × N)) → ((⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) <N 𝑏) ↔ (⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏)))
3326, 32bitrid 282 . . . . . . . . . . . . . . . . . . . 20 (((𝑎N𝑏N) ∧ 𝑧 ∈ (N × N)) → (¬ (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) ↔ (⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏)))
3433rexbidva 3224 . . . . . . . . . . . . . . . . . . 19 ((𝑎N𝑏N) → (∃𝑧 ∈ (N × N) ¬ (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) ↔ ∃𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏)))
3525, 34bitr3id 285 . . . . . . . . . . . . . . . . . 18 ((𝑎N𝑏N) → (¬ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) ↔ ∃𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏)))
36 xp1st 7854 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑧 ∈ (N × N) → (1st𝑧) ∈ N)
37 elequ2 2121 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑚 = 𝑏 → (𝑑𝑚𝑑𝑏))
3837imbi1d 342 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑚 = 𝑏 → ((𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩)))
39382ralbidv 3120 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (𝑚 = 𝑏 → (∀𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ ∀𝑐N𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩)))
4039rspccv 3558 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (𝑏𝑦 → ∀𝑐N𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩)))
41 opeq1 4806 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (𝑐 = (1st𝑧) → ⟨𝑐, 𝑑⟩ = ⟨(1st𝑧), 𝑑⟩)
4241breq2d 5087 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (𝑐 = (1st𝑧) → (𝑥 ~Q𝑐, 𝑑⟩ ↔ 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩))
4342rexbidv 3225 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑐 = (1st𝑧) → (∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩ ↔ ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩))
4443imbi2d 341 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑐 = (1st𝑧) → ((𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩)))
4544ralbidv 3119 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑐 = (1st𝑧) → (∀𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ ∀𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩)))
4645rspccv 3558 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (∀𝑐N𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → ((1st𝑧) ∈ N → ∀𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩)))
47 eleq1 2826 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑑 = (2nd𝑧) → (𝑑𝑏 ↔ (2nd𝑧) ∈ 𝑏))
48 opeq2 4807 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (𝑑 = (2nd𝑧) → ⟨(1st𝑧), 𝑑⟩ = ⟨(1st𝑧), (2nd𝑧)⟩)
4948breq2d 5087 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑑 = (2nd𝑧) → (𝑥 ~Q ⟨(1st𝑧), 𝑑⟩ ↔ 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))
5049rexbidv 3225 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑑 = (2nd𝑧) → (∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩ ↔ ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))
5147, 50imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑑 = (2nd𝑧) → ((𝑑𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩) ↔ ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩)))
5251rspccv 3558 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (∀𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩) → ((2nd𝑧) ∈ N → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩)))
5346, 52syl6 35 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (∀𝑐N𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → ((1st𝑧) ∈ N → ((2nd𝑧) ∈ N → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))))
5440, 53syl6 35 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (𝑏𝑦 → ((1st𝑧) ∈ N → ((2nd𝑧) ∈ N → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩)))))
5554imp 407 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) → ((1st𝑧) ∈ N → ((2nd𝑧) ∈ N → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))))
5636, 55syl5 34 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) → (𝑧 ∈ (N × N) → ((2nd𝑧) ∈ N → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))))
5727, 56mpdi 45 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) → (𝑧 ∈ (N × N) → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩)))
58573imp 1110 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N) ∧ (2nd𝑧) ∈ 𝑏) → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩)
59 1st2nd2 7861 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑧 ∈ (N × N) → 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
6059breq2d 5087 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑧 ∈ (N × N) → (𝑥 ~Q 𝑧𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))
6160rexbidv 3225 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑧 ∈ (N × N) → (∃𝑥Q 𝑥 ~Q 𝑧 ↔ ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))
62613ad2ant2 1133 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N) ∧ (2nd𝑧) ∈ 𝑏) → (∃𝑥Q 𝑥 ~Q 𝑧 ↔ ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))
6358, 62mpbird 256 . . . . . . . . . . . . . . . . . . . . . . . 24 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N) ∧ (2nd𝑧) ∈ 𝑏) → ∃𝑥Q 𝑥 ~Q 𝑧)
64 enqer 10666 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ~Q Er (N × N)
6564a1i 11 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((⟨𝑎, 𝑏⟩ ~Q 𝑧𝑥 ~Q 𝑧) → ~Q Er (N × N))
66 simpr 485 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((⟨𝑎, 𝑏⟩ ~Q 𝑧𝑥 ~Q 𝑧) → 𝑥 ~Q 𝑧)
67 simpl 483 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((⟨𝑎, 𝑏⟩ ~Q 𝑧𝑥 ~Q 𝑧) → ⟨𝑎, 𝑏⟩ ~Q 𝑧)
6865, 66, 67ertr4d 8506 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((⟨𝑎, 𝑏⟩ ~Q 𝑧𝑥 ~Q 𝑧) → 𝑥 ~Q𝑎, 𝑏⟩)
6968ex 413 . . . . . . . . . . . . . . . . . . . . . . . . 25 (⟨𝑎, 𝑏⟩ ~Q 𝑧 → (𝑥 ~Q 𝑧𝑥 ~Q𝑎, 𝑏⟩))
7069reximdv 3201 . . . . . . . . . . . . . . . . . . . . . . . 24 (⟨𝑎, 𝑏⟩ ~Q 𝑧 → (∃𝑥Q 𝑥 ~Q 𝑧 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
7163, 70syl5com 31 . . . . . . . . . . . . . . . . . . . . . . 23 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N) ∧ (2nd𝑧) ∈ 𝑏) → (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
72713expia 1120 . . . . . . . . . . . . . . . . . . . . . 22 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N)) → ((2nd𝑧) ∈ 𝑏 → (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
7372impcomd 412 . . . . . . . . . . . . . . . . . . . . 21 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N)) → ((⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
7473rexlimdva 3212 . . . . . . . . . . . . . . . . . . . 20 ((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) → (∃𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
7574ex 413 . . . . . . . . . . . . . . . . . . 19 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (𝑏𝑦 → (∃𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
7675com3r 87 . . . . . . . . . . . . . . . . . 18 (∃𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏) → (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
7735, 76syl6bi 252 . . . . . . . . . . . . . . . . 17 ((𝑎N𝑏N) → (¬ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))))
7877com13 88 . . . . . . . . . . . . . . . 16 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (¬ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ((𝑎N𝑏N) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))))
79 mulcompi 10641 . . . . . . . . . . . . . . . . . . . 20 (𝑎 ·N 𝑏) = (𝑏 ·N 𝑎)
80 enqbreq 10664 . . . . . . . . . . . . . . . . . . . . 21 (((𝑎N𝑏N) ∧ (𝑎N𝑏N)) → (⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩ ↔ (𝑎 ·N 𝑏) = (𝑏 ·N 𝑎)))
8180anidms 567 . . . . . . . . . . . . . . . . . . . 20 ((𝑎N𝑏N) → (⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩ ↔ (𝑎 ·N 𝑏) = (𝑏 ·N 𝑎)))
8279, 81mpbiri 257 . . . . . . . . . . . . . . . . . . 19 ((𝑎N𝑏N) → ⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩)
83 opelxpi 5623 . . . . . . . . . . . . . . . . . . . 20 ((𝑎N𝑏N) → ⟨𝑎, 𝑏⟩ ∈ (N × N))
84 breq1 5078 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 = ⟨𝑎, 𝑏⟩ → (𝑦 ~Q 𝑧 ↔ ⟨𝑎, 𝑏⟩ ~Q 𝑧))
85 vex 3435 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 𝑎 ∈ V
8685, 5op2ndd 7833 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑦 = ⟨𝑎, 𝑏⟩ → (2nd𝑦) = 𝑏)
8786breq2d 5087 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 = ⟨𝑎, 𝑏⟩ → ((2nd𝑧) <N (2nd𝑦) ↔ (2nd𝑧) <N 𝑏))
8887notbid 318 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 = ⟨𝑎, 𝑏⟩ → (¬ (2nd𝑧) <N (2nd𝑦) ↔ ¬ (2nd𝑧) <N 𝑏))
8984, 88imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 = ⟨𝑎, 𝑏⟩ → ((𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)) ↔ (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏)))
9089ralbidv 3119 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 = ⟨𝑎, 𝑏⟩ → (∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)) ↔ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏)))
91 df-nq 10657 . . . . . . . . . . . . . . . . . . . . . 22 Q = {𝑦 ∈ (N × N) ∣ ∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦))}
9290, 91elrab2 3628 . . . . . . . . . . . . . . . . . . . . 21 (⟨𝑎, 𝑏⟩ ∈ Q ↔ (⟨𝑎, 𝑏⟩ ∈ (N × N) ∧ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏)))
9392simplbi2 501 . . . . . . . . . . . . . . . . . . . 20 (⟨𝑎, 𝑏⟩ ∈ (N × N) → (∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ⟨𝑎, 𝑏⟩ ∈ Q))
9483, 93syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑎N𝑏N) → (∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ⟨𝑎, 𝑏⟩ ∈ Q))
95 breq1 5078 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 = ⟨𝑎, 𝑏⟩ → (𝑥 ~Q𝑎, 𝑏⟩ ↔ ⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩))
9695rspcev 3561 . . . . . . . . . . . . . . . . . . . 20 ((⟨𝑎, 𝑏⟩ ∈ Q ∧ ⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)
9796expcom 414 . . . . . . . . . . . . . . . . . . 19 (⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩ → (⟨𝑎, 𝑏⟩ ∈ Q → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
9882, 94, 97sylsyld 61 . . . . . . . . . . . . . . . . . 18 ((𝑎N𝑏N) → (∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
9998com12 32 . . . . . . . . . . . . . . . . 17 (∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ((𝑎N𝑏N) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
10099a1dd 50 . . . . . . . . . . . . . . . 16 (∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ((𝑎N𝑏N) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
10178, 100pm2.61d2 181 . . . . . . . . . . . . . . 15 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → ((𝑎N𝑏N) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
102101ralrimivv 3110 . . . . . . . . . . . . . 14 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → ∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
10324, 102sylbir 234 . . . . . . . . . . . . 13 (∀𝑚𝑦𝑎N𝑏N (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) → ∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
104103a1i 11 . . . . . . . . . . . 12 (𝑦 ∈ On → (∀𝑚𝑦𝑎N𝑏N (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) → ∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
10513, 104tfis2 7695 . . . . . . . . . . 11 (𝑦 ∈ On → ∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
106 rsp 3131 . . . . . . . . . . 11 (∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) → (𝑎N → ∀𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
107105, 106syl 17 . . . . . . . . . 10 (𝑦 ∈ On → (𝑎N → ∀𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
108 rsp 3131 . . . . . . . . . 10 (∀𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) → (𝑏N → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
109107, 108syl6 35 . . . . . . . . 9 (𝑦 ∈ On → (𝑎N → (𝑏N → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))))
110109impd 411 . . . . . . . 8 (𝑦 ∈ On → ((𝑎N𝑏N) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
111110com12 32 . . . . . . 7 ((𝑎N𝑏N) → (𝑦 ∈ On → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
112111rexlimdv 3211 . . . . . 6 ((𝑎N𝑏N) → (∃𝑦 ∈ On 𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
11310, 112mpd 15 . . . . 5 ((𝑎N𝑏N) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)
114 breq2 5079 . . . . . 6 (𝐴 = ⟨𝑎, 𝑏⟩ → (𝑥 ~Q 𝐴𝑥 ~Q𝑎, 𝑏⟩))
115114rexbidv 3225 . . . . 5 (𝐴 = ⟨𝑎, 𝑏⟩ → (∃𝑥Q 𝑥 ~Q 𝐴 ↔ ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
116113, 115syl5ibrcom 246 . . . 4 ((𝑎N𝑏N) → (𝐴 = ⟨𝑎, 𝑏⟩ → ∃𝑥Q 𝑥 ~Q 𝐴))
117116rexlimivv 3220 . . 3 (∃𝑎N𝑏N 𝐴 = ⟨𝑎, 𝑏⟩ → ∃𝑥Q 𝑥 ~Q 𝐴)
1181, 117sylbi 216 . 2 (𝐴 ∈ (N × N) → ∃𝑥Q 𝑥 ~Q 𝐴)
119 breq2 5079 . . . . . 6 (𝑎 = 𝐴 → (𝑥 ~Q 𝑎𝑥 ~Q 𝐴))
120 breq2 5079 . . . . . 6 (𝑎 = 𝐴 → (𝑦 ~Q 𝑎𝑦 ~Q 𝐴))
121119, 120anbi12d 631 . . . . 5 (𝑎 = 𝐴 → ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) ↔ (𝑥 ~Q 𝐴𝑦 ~Q 𝐴)))
122121imbi1d 342 . . . 4 (𝑎 = 𝐴 → (((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 = 𝑦) ↔ ((𝑥 ~Q 𝐴𝑦 ~Q 𝐴) → 𝑥 = 𝑦)))
1231222ralbidv 3120 . . 3 (𝑎 = 𝐴 → (∀𝑥Q𝑦Q ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 = 𝑦) ↔ ∀𝑥Q𝑦Q ((𝑥 ~Q 𝐴𝑦 ~Q 𝐴) → 𝑥 = 𝑦)))
12464a1i 11 . . . . . 6 ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → ~Q Er (N × N))
125 simpl 483 . . . . . 6 ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 ~Q 𝑎)
126 simpr 485 . . . . . 6 ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑦 ~Q 𝑎)
127124, 125, 126ertr4d 8506 . . . . 5 ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 ~Q 𝑦)
128 mulcompi 10641 . . . . . . . . . . 11 ((2nd𝑥) ·N (1st𝑥)) = ((1st𝑥) ·N (2nd𝑥))
129 elpqn 10670 . . . . . . . . . . . . . . 15 (𝑦Q𝑦 ∈ (N × N))
130 breq1 5078 . . . . . . . . . . . . . . . . . . 19 (𝑦 = 𝑥 → (𝑦 ~Q 𝑧𝑥 ~Q 𝑧))
131 fveq2 6768 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 = 𝑥 → (2nd𝑦) = (2nd𝑥))
132131breq2d 5087 . . . . . . . . . . . . . . . . . . . 20 (𝑦 = 𝑥 → ((2nd𝑧) <N (2nd𝑦) ↔ (2nd𝑧) <N (2nd𝑥)))
133132notbid 318 . . . . . . . . . . . . . . . . . . 19 (𝑦 = 𝑥 → (¬ (2nd𝑧) <N (2nd𝑦) ↔ ¬ (2nd𝑧) <N (2nd𝑥)))
134130, 133imbi12d 345 . . . . . . . . . . . . . . . . . 18 (𝑦 = 𝑥 → ((𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)) ↔ (𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥))))
135134ralbidv 3119 . . . . . . . . . . . . . . . . 17 (𝑦 = 𝑥 → (∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)) ↔ ∀𝑧 ∈ (N × N)(𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥))))
136135, 91elrab2 3628 . . . . . . . . . . . . . . . 16 (𝑥Q ↔ (𝑥 ∈ (N × N) ∧ ∀𝑧 ∈ (N × N)(𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥))))
137136simprbi 497 . . . . . . . . . . . . . . 15 (𝑥Q → ∀𝑧 ∈ (N × N)(𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥)))
138 breq2 5079 . . . . . . . . . . . . . . . . 17 (𝑧 = 𝑦 → (𝑥 ~Q 𝑧𝑥 ~Q 𝑦))
139 fveq2 6768 . . . . . . . . . . . . . . . . . . 19 (𝑧 = 𝑦 → (2nd𝑧) = (2nd𝑦))
140139breq1d 5085 . . . . . . . . . . . . . . . . . 18 (𝑧 = 𝑦 → ((2nd𝑧) <N (2nd𝑥) ↔ (2nd𝑦) <N (2nd𝑥)))
141140notbid 318 . . . . . . . . . . . . . . . . 17 (𝑧 = 𝑦 → (¬ (2nd𝑧) <N (2nd𝑥) ↔ ¬ (2nd𝑦) <N (2nd𝑥)))
142138, 141imbi12d 345 . . . . . . . . . . . . . . . 16 (𝑧 = 𝑦 → ((𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥)) ↔ (𝑥 ~Q 𝑦 → ¬ (2nd𝑦) <N (2nd𝑥))))
143142rspcva 3559 . . . . . . . . . . . . . . 15 ((𝑦 ∈ (N × N) ∧ ∀𝑧 ∈ (N × N)(𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥))) → (𝑥 ~Q 𝑦 → ¬ (2nd𝑦) <N (2nd𝑥)))
144129, 137, 143syl2anr 597 . . . . . . . . . . . . . 14 ((𝑥Q𝑦Q) → (𝑥 ~Q 𝑦 → ¬ (2nd𝑦) <N (2nd𝑥)))
145144imp 407 . . . . . . . . . . . . 13 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ¬ (2nd𝑦) <N (2nd𝑥))
146 elpqn 10670 . . . . . . . . . . . . . . . . 17 (𝑥Q𝑥 ∈ (N × N))
14791rabeq2i 3421 . . . . . . . . . . . . . . . . . 18 (𝑦Q ↔ (𝑦 ∈ (N × N) ∧ ∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦))))
148147simprbi 497 . . . . . . . . . . . . . . . . 17 (𝑦Q → ∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)))
149 breq2 5079 . . . . . . . . . . . . . . . . . . 19 (𝑧 = 𝑥 → (𝑦 ~Q 𝑧𝑦 ~Q 𝑥))
150 fveq2 6768 . . . . . . . . . . . . . . . . . . . . 21 (𝑧 = 𝑥 → (2nd𝑧) = (2nd𝑥))
151150breq1d 5085 . . . . . . . . . . . . . . . . . . . 20 (𝑧 = 𝑥 → ((2nd𝑧) <N (2nd𝑦) ↔ (2nd𝑥) <N (2nd𝑦)))
152151notbid 318 . . . . . . . . . . . . . . . . . . 19 (𝑧 = 𝑥 → (¬ (2nd𝑧) <N (2nd𝑦) ↔ ¬ (2nd𝑥) <N (2nd𝑦)))
153149, 152imbi12d 345 . . . . . . . . . . . . . . . . . 18 (𝑧 = 𝑥 → ((𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)) ↔ (𝑦 ~Q 𝑥 → ¬ (2nd𝑥) <N (2nd𝑦))))
154153rspcva 3559 . . . . . . . . . . . . . . . . 17 ((𝑥 ∈ (N × N) ∧ ∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦))) → (𝑦 ~Q 𝑥 → ¬ (2nd𝑥) <N (2nd𝑦)))
155146, 148, 154syl2an 596 . . . . . . . . . . . . . . . 16 ((𝑥Q𝑦Q) → (𝑦 ~Q 𝑥 → ¬ (2nd𝑥) <N (2nd𝑦)))
15664a1i 11 . . . . . . . . . . . . . . . . 17 (𝑥 ~Q 𝑦 → ~Q Er (N × N))
157 id 22 . . . . . . . . . . . . . . . . 17 (𝑥 ~Q 𝑦𝑥 ~Q 𝑦)
158156, 157ersym 8499 . . . . . . . . . . . . . . . 16 (𝑥 ~Q 𝑦𝑦 ~Q 𝑥)
159155, 158impel 506 . . . . . . . . . . . . . . 15 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ¬ (2nd𝑥) <N (2nd𝑦))
160 xp2nd 7855 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ (N × N) → (2nd𝑥) ∈ N)
161146, 160syl 17 . . . . . . . . . . . . . . . . 17 (𝑥Q → (2nd𝑥) ∈ N)
162161ad2antrr 723 . . . . . . . . . . . . . . . 16 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (2nd𝑥) ∈ N)
163 xp2nd 7855 . . . . . . . . . . . . . . . . . 18 (𝑦 ∈ (N × N) → (2nd𝑦) ∈ N)
164129, 163syl 17 . . . . . . . . . . . . . . . . 17 (𝑦Q → (2nd𝑦) ∈ N)
165164ad2antlr 724 . . . . . . . . . . . . . . . 16 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (2nd𝑦) ∈ N)
166 ltsopi 10633 . . . . . . . . . . . . . . . . . . 19 <N Or N
167 sotric 5528 . . . . . . . . . . . . . . . . . . 19 (( <N Or N ∧ ((2nd𝑥) ∈ N ∧ (2nd𝑦) ∈ N)) → ((2nd𝑥) <N (2nd𝑦) ↔ ¬ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥))))
168166, 167mpan 687 . . . . . . . . . . . . . . . . . 18 (((2nd𝑥) ∈ N ∧ (2nd𝑦) ∈ N) → ((2nd𝑥) <N (2nd𝑦) ↔ ¬ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥))))
169168notbid 318 . . . . . . . . . . . . . . . . 17 (((2nd𝑥) ∈ N ∧ (2nd𝑦) ∈ N) → (¬ (2nd𝑥) <N (2nd𝑦) ↔ ¬ ¬ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥))))
170 notnotb 315 . . . . . . . . . . . . . . . . 17 (((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥)) ↔ ¬ ¬ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥)))
171169, 170bitr4di 289 . . . . . . . . . . . . . . . 16 (((2nd𝑥) ∈ N ∧ (2nd𝑦) ∈ N) → (¬ (2nd𝑥) <N (2nd𝑦) ↔ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥))))
172162, 165, 171syl2anc 584 . . . . . . . . . . . . . . 15 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (¬ (2nd𝑥) <N (2nd𝑦) ↔ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥))))
173159, 172mpbid 231 . . . . . . . . . . . . . 14 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥)))
174173ord 861 . . . . . . . . . . . . 13 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (¬ (2nd𝑥) = (2nd𝑦) → (2nd𝑦) <N (2nd𝑥)))
175145, 174mt3d 148 . . . . . . . . . . . 12 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (2nd𝑥) = (2nd𝑦))
176175oveq2d 7285 . . . . . . . . . . 11 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ((1st𝑥) ·N (2nd𝑥)) = ((1st𝑥) ·N (2nd𝑦)))
177128, 176eqtrid 2790 . . . . . . . . . 10 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ((2nd𝑥) ·N (1st𝑥)) = ((1st𝑥) ·N (2nd𝑦)))
178 1st2nd2 7861 . . . . . . . . . . . . . 14 (𝑥 ∈ (N × N) → 𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩)
179 1st2nd2 7861 . . . . . . . . . . . . . 14 (𝑦 ∈ (N × N) → 𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩)
180178, 179breqan12d 5091 . . . . . . . . . . . . 13 ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (𝑥 ~Q 𝑦 ↔ ⟨(1st𝑥), (2nd𝑥)⟩ ~Q ⟨(1st𝑦), (2nd𝑦)⟩))
181 xp1st 7854 . . . . . . . . . . . . . . 15 (𝑥 ∈ (N × N) → (1st𝑥) ∈ N)
182181, 160jca 512 . . . . . . . . . . . . . 14 (𝑥 ∈ (N × N) → ((1st𝑥) ∈ N ∧ (2nd𝑥) ∈ N))
183 xp1st 7854 . . . . . . . . . . . . . . 15 (𝑦 ∈ (N × N) → (1st𝑦) ∈ N)
184183, 163jca 512 . . . . . . . . . . . . . 14 (𝑦 ∈ (N × N) → ((1st𝑦) ∈ N ∧ (2nd𝑦) ∈ N))
185 enqbreq 10664 . . . . . . . . . . . . . 14 ((((1st𝑥) ∈ N ∧ (2nd𝑥) ∈ N) ∧ ((1st𝑦) ∈ N ∧ (2nd𝑦) ∈ N)) → (⟨(1st𝑥), (2nd𝑥)⟩ ~Q ⟨(1st𝑦), (2nd𝑦)⟩ ↔ ((1st𝑥) ·N (2nd𝑦)) = ((2nd𝑥) ·N (1st𝑦))))
186182, 184, 185syl2an 596 . . . . . . . . . . . . 13 ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (⟨(1st𝑥), (2nd𝑥)⟩ ~Q ⟨(1st𝑦), (2nd𝑦)⟩ ↔ ((1st𝑥) ·N (2nd𝑦)) = ((2nd𝑥) ·N (1st𝑦))))
187180, 186bitrd 278 . . . . . . . . . . . 12 ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (𝑥 ~Q 𝑦 ↔ ((1st𝑥) ·N (2nd𝑦)) = ((2nd𝑥) ·N (1st𝑦))))
188146, 129, 187syl2an 596 . . . . . . . . . . 11 ((𝑥Q𝑦Q) → (𝑥 ~Q 𝑦 ↔ ((1st𝑥) ·N (2nd𝑦)) = ((2nd𝑥) ·N (1st𝑦))))
189188biimpa 477 . . . . . . . . . 10 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ((1st𝑥) ·N (2nd𝑦)) = ((2nd𝑥) ·N (1st𝑦)))
190177, 189eqtrd 2778 . . . . . . . . 9 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ((2nd𝑥) ·N (1st𝑥)) = ((2nd𝑥) ·N (1st𝑦)))
191146ad2antrr 723 . . . . . . . . . 10 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → 𝑥 ∈ (N × N))
192 mulcanpi 10645 . . . . . . . . . . 11 (((2nd𝑥) ∈ N ∧ (1st𝑥) ∈ N) → (((2nd𝑥) ·N (1st𝑥)) = ((2nd𝑥) ·N (1st𝑦)) ↔ (1st𝑥) = (1st𝑦)))
193160, 181, 192syl2anc 584 . . . . . . . . . 10 (𝑥 ∈ (N × N) → (((2nd𝑥) ·N (1st𝑥)) = ((2nd𝑥) ·N (1st𝑦)) ↔ (1st𝑥) = (1st𝑦)))
194191, 193syl 17 . . . . . . . . 9 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (((2nd𝑥) ·N (1st𝑥)) = ((2nd𝑥) ·N (1st𝑦)) ↔ (1st𝑥) = (1st𝑦)))
195190, 194mpbid 231 . . . . . . . 8 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (1st𝑥) = (1st𝑦))
196195, 175opeq12d 4814 . . . . . . 7 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ⟨(1st𝑥), (2nd𝑥)⟩ = ⟨(1st𝑦), (2nd𝑦)⟩)
197191, 178syl 17 . . . . . . 7 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → 𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩)
198129ad2antlr 724 . . . . . . . 8 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → 𝑦 ∈ (N × N))
199198, 179syl 17 . . . . . . 7 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → 𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩)
200196, 197, 1993eqtr4d 2788 . . . . . 6 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → 𝑥 = 𝑦)
201200ex 413 . . . . 5 ((𝑥Q𝑦Q) → (𝑥 ~Q 𝑦𝑥 = 𝑦))
202127, 201syl5 34 . . . 4 ((𝑥Q𝑦Q) → ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 = 𝑦))
203202rgen2 3128 . . 3 𝑥Q𝑦Q ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 = 𝑦)
204123, 203vtoclg 3504 . 2 (𝐴 ∈ (N × N) → ∀𝑥Q𝑦Q ((𝑥 ~Q 𝐴𝑦 ~Q 𝐴) → 𝑥 = 𝑦))
205 breq1 5078 . . 3 (𝑥 = 𝑦 → (𝑥 ~Q 𝐴𝑦 ~Q 𝐴))
206205reu4 3667 . 2 (∃!𝑥Q 𝑥 ~Q 𝐴 ↔ (∃𝑥Q 𝑥 ~Q 𝐴 ∧ ∀𝑥Q𝑦Q ((𝑥 ~Q 𝐴𝑦 ~Q 𝐴) → 𝑥 = 𝑦)))
207118, 204, 206sylanbrc 583 1 (𝐴 ∈ (N × N) → ∃!𝑥Q 𝑥 ~Q 𝐴)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844  w3a 1086   = wceq 1539  wcel 2106  wral 3064  wrex 3065  ∃!wreu 3066  cop 4569   class class class wbr 5075   Or wor 5499   × cxp 5584  Oncon0 6261  suc csuc 6263  cfv 6428  (class class class)co 7269  1st c1st 7820  2nd c2nd 7821   Er wer 8484  Ncnpi 10589   ·N cmi 10591   <N clti 10592   ~Q ceq 10596  Qcnq 10597
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7580
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3433  df-sbc 3718  df-csb 3834  df-dif 3891  df-un 3893  df-in 3895  df-ss 3905  df-pss 3907  df-nul 4259  df-if 4462  df-pw 4537  df-sn 4564  df-pr 4566  df-op 4570  df-uni 4842  df-iun 4928  df-br 5076  df-opab 5138  df-mpt 5159  df-tr 5193  df-id 5486  df-eprel 5492  df-po 5500  df-so 5501  df-fr 5541  df-we 5543  df-xp 5592  df-rel 5593  df-cnv 5594  df-co 5595  df-dm 5596  df-rn 5597  df-res 5598  df-ima 5599  df-pred 6197  df-ord 6264  df-on 6265  df-lim 6266  df-suc 6267  df-iota 6386  df-fun 6430  df-fn 6431  df-f 6432  df-f1 6433  df-fo 6434  df-f1o 6435  df-fv 6436  df-ov 7272  df-oprab 7273  df-mpo 7274  df-om 7705  df-1st 7822  df-2nd 7823  df-frecs 8086  df-wrecs 8117  df-recs 8191  df-rdg 8230  df-oadd 8290  df-omul 8291  df-er 8487  df-ni 10617  df-mi 10619  df-lti 10620  df-enq 10656  df-nq 10657
This theorem is referenced by:  nqerf  10675  enqeq  10679
  Copyright terms: Public domain W3C validator