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

Theorem nqereu 9607
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 5046 . . 3 (𝐴 ∈ (N × N) ↔ ∃𝑎N𝑏N 𝐴 = ⟨𝑎, 𝑏⟩)
2 pion 9557 . . . . . . . . 9 (𝑏N𝑏 ∈ On)
3 suceloni 6882 . . . . . . . . 9 (𝑏 ∈ On → suc 𝑏 ∈ On)
42, 3syl 17 . . . . . . . 8 (𝑏N → suc 𝑏 ∈ On)
5 vex 3175 . . . . . . . . 9 𝑏 ∈ V
65sucid 5707 . . . . . . . 8 𝑏 ∈ suc 𝑏
7 eleq2 2676 . . . . . . . . 9 (𝑦 = suc 𝑏 → (𝑏𝑦𝑏 ∈ suc 𝑏))
87rspcev 3281 . . . . . . . 8 ((suc 𝑏 ∈ On ∧ 𝑏 ∈ suc 𝑏) → ∃𝑦 ∈ On 𝑏𝑦)
94, 6, 8sylancl 692 . . . . . . 7 (𝑏N → ∃𝑦 ∈ On 𝑏𝑦)
109adantl 480 . . . . . 6 ((𝑎N𝑏N) → ∃𝑦 ∈ On 𝑏𝑦)
11 elequ2 1990 . . . . . . . . . . . . . 14 (𝑦 = 𝑚 → (𝑏𝑦𝑏𝑚))
1211imbi1d 329 . . . . . . . . . . . . 13 (𝑦 = 𝑚 → ((𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) ↔ (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
13122ralbidv 2971 . . . . . . . . . . . 12 (𝑦 = 𝑚 → (∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) ↔ ∀𝑎N𝑏N (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
14 opeq1 4334 . . . . . . . . . . . . . . . . . . 19 (𝑐 = 𝑎 → ⟨𝑐, 𝑑⟩ = ⟨𝑎, 𝑑⟩)
1514breq2d 4589 . . . . . . . . . . . . . . . . . 18 (𝑐 = 𝑎 → (𝑥 ~Q𝑐, 𝑑⟩ ↔ 𝑥 ~Q𝑎, 𝑑⟩))
1615rexbidv 3033 . . . . . . . . . . . . . . . . 17 (𝑐 = 𝑎 → (∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩ ↔ ∃𝑥Q 𝑥 ~Q𝑎, 𝑑⟩))
1716imbi2d 328 . . . . . . . . . . . . . . . 16 (𝑐 = 𝑎 → ((𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑑⟩)))
18 elequ1 1983 . . . . . . . . . . . . . . . . 17 (𝑑 = 𝑏 → (𝑑𝑚𝑏𝑚))
19 opeq2 4335 . . . . . . . . . . . . . . . . . . 19 (𝑑 = 𝑏 → ⟨𝑎, 𝑑⟩ = ⟨𝑎, 𝑏⟩)
2019breq2d 4589 . . . . . . . . . . . . . . . . . 18 (𝑑 = 𝑏 → (𝑥 ~Q𝑎, 𝑑⟩ ↔ 𝑥 ~Q𝑎, 𝑏⟩))
2120rexbidv 3033 . . . . . . . . . . . . . . . . 17 (𝑑 = 𝑏 → (∃𝑥Q 𝑥 ~Q𝑎, 𝑑⟩ ↔ ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
2218, 21imbi12d 332 . . . . . . . . . . . . . . . 16 (𝑑 = 𝑏 → ((𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑑⟩) ↔ (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
2317, 22cbvral2v 3154 . . . . . . . . . . . . . . 15 (∀𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ ∀𝑎N𝑏N (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
2423ralbii 2962 . . . . . . . . . . . . . 14 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ ∀𝑚𝑦𝑎N𝑏N (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
25 rexnal 2977 . . . . . . . . . . . . . . . . . . 19 (∃𝑧 ∈ (N × N) ¬ (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) ↔ ¬ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏))
26 pm4.63 435 . . . . . . . . . . . . . . . . . . . . 21 (¬ (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) ↔ (⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) <N 𝑏))
27 xp2nd 7067 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑧 ∈ (N × N) → (2nd𝑧) ∈ N)
28 ltpiord 9565 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((2nd𝑧) ∈ N𝑏N) → ((2nd𝑧) <N 𝑏 ↔ (2nd𝑧) ∈ 𝑏))
2928ancoms 467 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝑏N ∧ (2nd𝑧) ∈ N) → ((2nd𝑧) <N 𝑏 ↔ (2nd𝑧) ∈ 𝑏))
3027, 29sylan2 489 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑏N𝑧 ∈ (N × N)) → ((2nd𝑧) <N 𝑏 ↔ (2nd𝑧) ∈ 𝑏))
3130adantll 745 . . . . . . . . . . . . . . . . . . . . . 22 (((𝑎N𝑏N) ∧ 𝑧 ∈ (N × N)) → ((2nd𝑧) <N 𝑏 ↔ (2nd𝑧) ∈ 𝑏))
3231anbi2d 735 . . . . . . . . . . . . . . . . . . . . 21 (((𝑎N𝑏N) ∧ 𝑧 ∈ (N × N)) → ((⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) <N 𝑏) ↔ (⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏)))
3326, 32syl5bb 270 . . . . . . . . . . . . . . . . . . . 20 (((𝑎N𝑏N) ∧ 𝑧 ∈ (N × N)) → (¬ (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) ↔ (⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏)))
3433rexbidva 3030 . . . . . . . . . . . . . . . . . . 19 ((𝑎N𝑏N) → (∃𝑧 ∈ (N × N) ¬ (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) ↔ ∃𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏)))
3525, 34syl5bbr 272 . . . . . . . . . . . . . . . . . 18 ((𝑎N𝑏N) → (¬ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) ↔ ∃𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏)))
36 xp1st 7066 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑧 ∈ (N × N) → (1st𝑧) ∈ N)
37 elequ2 1990 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑚 = 𝑏 → (𝑑𝑚𝑑𝑏))
3837imbi1d 329 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑚 = 𝑏 → ((𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩)))
39382ralbidv 2971 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (𝑚 = 𝑏 → (∀𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ ∀𝑐N𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩)))
4039rspccv 3278 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (𝑏𝑦 → ∀𝑐N𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩)))
41 opeq1 4334 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 (𝑐 = (1st𝑧) → ⟨𝑐, 𝑑⟩ = ⟨(1st𝑧), 𝑑⟩)
4241breq2d 4589 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (𝑐 = (1st𝑧) → (𝑥 ~Q𝑐, 𝑑⟩ ↔ 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩))
4342rexbidv 3033 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (𝑐 = (1st𝑧) → (∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩ ↔ ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩))
4443imbi2d 328 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑐 = (1st𝑧) → ((𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩)))
4544ralbidv 2968 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑐 = (1st𝑧) → (∀𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ↔ ∀𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩)))
4645rspccv 3278 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (∀𝑐N𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → ((1st𝑧) ∈ N → ∀𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩)))
47 eleq1 2675 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑑 = (2nd𝑧) → (𝑑𝑏 ↔ (2nd𝑧) ∈ 𝑏))
48 opeq2 4335 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 (𝑑 = (2nd𝑧) → ⟨(1st𝑧), 𝑑⟩ = ⟨(1st𝑧), (2nd𝑧)⟩)
4948breq2d 4589 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (𝑑 = (2nd𝑧) → (𝑥 ~Q ⟨(1st𝑧), 𝑑⟩ ↔ 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))
5049rexbidv 3033 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 (𝑑 = (2nd𝑧) → (∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩ ↔ ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))
5147, 50imbi12d 332 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 (𝑑 = (2nd𝑧) → ((𝑑𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩) ↔ ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩)))
5251rspccv 3278 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 (∀𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), 𝑑⟩) → ((2nd𝑧) ∈ N → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩)))
5346, 52syl6 34 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (∀𝑐N𝑑N (𝑑𝑏 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → ((1st𝑧) ∈ N → ((2nd𝑧) ∈ N → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))))
5440, 53syl6 34 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (𝑏𝑦 → ((1st𝑧) ∈ N → ((2nd𝑧) ∈ N → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩)))))
5554imp 443 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) → ((1st𝑧) ∈ N → ((2nd𝑧) ∈ N → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))))
5636, 55syl5 33 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) → (𝑧 ∈ (N × N) → ((2nd𝑧) ∈ N → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))))
5727, 56mpdi 43 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) → (𝑧 ∈ (N × N) → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩)))
58573imp 1248 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N) ∧ (2nd𝑧) ∈ 𝑏) → ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩)
59 1st2nd2 7073 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (𝑧 ∈ (N × N) → 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
6059breq2d 4589 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝑧 ∈ (N × N) → (𝑥 ~Q 𝑧𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))
6160rexbidv 3033 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑧 ∈ (N × N) → (∃𝑥Q 𝑥 ~Q 𝑧 ↔ ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))
62613ad2ant2 1075 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N) ∧ (2nd𝑧) ∈ 𝑏) → (∃𝑥Q 𝑥 ~Q 𝑧 ↔ ∃𝑥Q 𝑥 ~Q ⟨(1st𝑧), (2nd𝑧)⟩))
6358, 62mpbird 245 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N) ∧ (2nd𝑧) ∈ 𝑏) → ∃𝑥Q 𝑥 ~Q 𝑧)
64 enqer 9599 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ~Q Er (N × N)
6564a1i 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((⟨𝑎, 𝑏⟩ ~Q 𝑧𝑥 ~Q 𝑧) → ~Q Er (N × N))
66 simpr 475 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((⟨𝑎, 𝑏⟩ ~Q 𝑧𝑥 ~Q 𝑧) → 𝑥 ~Q 𝑧)
67 simpl 471 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((⟨𝑎, 𝑏⟩ ~Q 𝑧𝑥 ~Q 𝑧) → ⟨𝑎, 𝑏⟩ ~Q 𝑧)
6865, 66, 67ertr4d 7625 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((⟨𝑎, 𝑏⟩ ~Q 𝑧𝑥 ~Q 𝑧) → 𝑥 ~Q𝑎, 𝑏⟩)
6968ex 448 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (⟨𝑎, 𝑏⟩ ~Q 𝑧 → (𝑥 ~Q 𝑧𝑥 ~Q𝑎, 𝑏⟩))
7069reximdv 2998 . . . . . . . . . . . . . . . . . . . . . . . . 25 (⟨𝑎, 𝑏⟩ ~Q 𝑧 → (∃𝑥Q 𝑥 ~Q 𝑧 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
7163, 70syl5com 31 . . . . . . . . . . . . . . . . . . . . . . . 24 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N) ∧ (2nd𝑧) ∈ 𝑏) → (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
72713expia 1258 . . . . . . . . . . . . . . . . . . . . . . 23 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N)) → ((2nd𝑧) ∈ 𝑏 → (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
7372com23 83 . . . . . . . . . . . . . . . . . . . . . 22 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N)) → (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ((2nd𝑧) ∈ 𝑏 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
7473impd 445 . . . . . . . . . . . . . . . . . . . . 21 (((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) ∧ 𝑧 ∈ (N × N)) → ((⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
7574rexlimdva 3012 . . . . . . . . . . . . . . . . . . . 20 ((∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) ∧ 𝑏𝑦) → (∃𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
7675ex 448 . . . . . . . . . . . . . . . . . . 19 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (𝑏𝑦 → (∃𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
7776com3r 84 . . . . . . . . . . . . . . . . . 18 (∃𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 ∧ (2nd𝑧) ∈ 𝑏) → (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
7835, 77syl6bi 241 . . . . . . . . . . . . . . . . 17 ((𝑎N𝑏N) → (¬ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))))
7978com13 85 . . . . . . . . . . . . . . . 16 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → (¬ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ((𝑎N𝑏N) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))))
80 mulcompi 9574 . . . . . . . . . . . . . . . . . . . 20 (𝑎 ·N 𝑏) = (𝑏 ·N 𝑎)
81 enqbreq 9597 . . . . . . . . . . . . . . . . . . . . 21 (((𝑎N𝑏N) ∧ (𝑎N𝑏N)) → (⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩ ↔ (𝑎 ·N 𝑏) = (𝑏 ·N 𝑎)))
8281anidms 674 . . . . . . . . . . . . . . . . . . . 20 ((𝑎N𝑏N) → (⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩ ↔ (𝑎 ·N 𝑏) = (𝑏 ·N 𝑎)))
8380, 82mpbiri 246 . . . . . . . . . . . . . . . . . . 19 ((𝑎N𝑏N) → ⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩)
84 opelxpi 5062 . . . . . . . . . . . . . . . . . . . 20 ((𝑎N𝑏N) → ⟨𝑎, 𝑏⟩ ∈ (N × N))
85 breq1 4580 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 = ⟨𝑎, 𝑏⟩ → (𝑦 ~Q 𝑧 ↔ ⟨𝑎, 𝑏⟩ ~Q 𝑧))
86 vex 3175 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 𝑎 ∈ V
8786, 5op2ndd 7047 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑦 = ⟨𝑎, 𝑏⟩ → (2nd𝑦) = 𝑏)
8887breq2d 4589 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 = ⟨𝑎, 𝑏⟩ → ((2nd𝑧) <N (2nd𝑦) ↔ (2nd𝑧) <N 𝑏))
8988notbid 306 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 = ⟨𝑎, 𝑏⟩ → (¬ (2nd𝑧) <N (2nd𝑦) ↔ ¬ (2nd𝑧) <N 𝑏))
9085, 89imbi12d 332 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 = ⟨𝑎, 𝑏⟩ → ((𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)) ↔ (⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏)))
9190ralbidv 2968 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 = ⟨𝑎, 𝑏⟩ → (∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)) ↔ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏)))
92 df-nq 9590 . . . . . . . . . . . . . . . . . . . . . 22 Q = {𝑦 ∈ (N × N) ∣ ∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦))}
9391, 92elrab2 3332 . . . . . . . . . . . . . . . . . . . . 21 (⟨𝑎, 𝑏⟩ ∈ Q ↔ (⟨𝑎, 𝑏⟩ ∈ (N × N) ∧ ∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏)))
9493simplbi2 652 . . . . . . . . . . . . . . . . . . . 20 (⟨𝑎, 𝑏⟩ ∈ (N × N) → (∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ⟨𝑎, 𝑏⟩ ∈ Q))
9584, 94syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝑎N𝑏N) → (∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ⟨𝑎, 𝑏⟩ ∈ Q))
96 breq1 4580 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 = ⟨𝑎, 𝑏⟩ → (𝑥 ~Q𝑎, 𝑏⟩ ↔ ⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩))
9796rspcev 3281 . . . . . . . . . . . . . . . . . . . 20 ((⟨𝑎, 𝑏⟩ ∈ Q ∧ ⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)
9897expcom 449 . . . . . . . . . . . . . . . . . . 19 (⟨𝑎, 𝑏⟩ ~Q𝑎, 𝑏⟩ → (⟨𝑎, 𝑏⟩ ∈ Q → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
9983, 95, 98sylsyld 58 . . . . . . . . . . . . . . . . . 18 ((𝑎N𝑏N) → (∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
10099com12 32 . . . . . . . . . . . . . . . . 17 (∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ((𝑎N𝑏N) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
101100a1dd 47 . . . . . . . . . . . . . . . 16 (∀𝑧 ∈ (N × N)(⟨𝑎, 𝑏⟩ ~Q 𝑧 → ¬ (2nd𝑧) <N 𝑏) → ((𝑎N𝑏N) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
10279, 101pm2.61d2 170 . . . . . . . . . . . . . . 15 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → ((𝑎N𝑏N) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
103102ralrimivv 2952 . . . . . . . . . . . . . 14 (∀𝑚𝑦𝑐N𝑑N (𝑑𝑚 → ∃𝑥Q 𝑥 ~Q𝑐, 𝑑⟩) → ∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
10424, 103sylbir 223 . . . . . . . . . . . . 13 (∀𝑚𝑦𝑎N𝑏N (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) → ∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
105104a1i 11 . . . . . . . . . . . 12 (𝑦 ∈ On → (∀𝑚𝑦𝑎N𝑏N (𝑏𝑚 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) → ∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
10613, 105tfis2 6925 . . . . . . . . . . 11 (𝑦 ∈ On → ∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
107 rsp 2912 . . . . . . . . . . 11 (∀𝑎N𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) → (𝑎N → ∀𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
108106, 107syl 17 . . . . . . . . . 10 (𝑦 ∈ On → (𝑎N → ∀𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
109 rsp 2912 . . . . . . . . . 10 (∀𝑏N (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩) → (𝑏N → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
110108, 109syl6 34 . . . . . . . . 9 (𝑦 ∈ On → (𝑎N → (𝑏N → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))))
111110impd 445 . . . . . . . 8 (𝑦 ∈ On → ((𝑎N𝑏N) → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
112111com12 32 . . . . . . 7 ((𝑎N𝑏N) → (𝑦 ∈ On → (𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)))
113112rexlimdv 3011 . . . . . 6 ((𝑎N𝑏N) → (∃𝑦 ∈ On 𝑏𝑦 → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
11410, 113mpd 15 . . . . 5 ((𝑎N𝑏N) → ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩)
115 breq2 4581 . . . . . 6 (𝐴 = ⟨𝑎, 𝑏⟩ → (𝑥 ~Q 𝐴𝑥 ~Q𝑎, 𝑏⟩))
116115rexbidv 3033 . . . . 5 (𝐴 = ⟨𝑎, 𝑏⟩ → (∃𝑥Q 𝑥 ~Q 𝐴 ↔ ∃𝑥Q 𝑥 ~Q𝑎, 𝑏⟩))
117114, 116syl5ibrcom 235 . . . 4 ((𝑎N𝑏N) → (𝐴 = ⟨𝑎, 𝑏⟩ → ∃𝑥Q 𝑥 ~Q 𝐴))
118117rexlimivv 3017 . . 3 (∃𝑎N𝑏N 𝐴 = ⟨𝑎, 𝑏⟩ → ∃𝑥Q 𝑥 ~Q 𝐴)
1191, 118sylbi 205 . 2 (𝐴 ∈ (N × N) → ∃𝑥Q 𝑥 ~Q 𝐴)
120 breq2 4581 . . . . . 6 (𝑎 = 𝐴 → (𝑥 ~Q 𝑎𝑥 ~Q 𝐴))
121 breq2 4581 . . . . . 6 (𝑎 = 𝐴 → (𝑦 ~Q 𝑎𝑦 ~Q 𝐴))
122120, 121anbi12d 742 . . . . 5 (𝑎 = 𝐴 → ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) ↔ (𝑥 ~Q 𝐴𝑦 ~Q 𝐴)))
123122imbi1d 329 . . . 4 (𝑎 = 𝐴 → (((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 = 𝑦) ↔ ((𝑥 ~Q 𝐴𝑦 ~Q 𝐴) → 𝑥 = 𝑦)))
1241232ralbidv 2971 . . 3 (𝑎 = 𝐴 → (∀𝑥Q𝑦Q ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 = 𝑦) ↔ ∀𝑥Q𝑦Q ((𝑥 ~Q 𝐴𝑦 ~Q 𝐴) → 𝑥 = 𝑦)))
12564a1i 11 . . . . . 6 ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → ~Q Er (N × N))
126 simpl 471 . . . . . 6 ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 ~Q 𝑎)
127 simpr 475 . . . . . 6 ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑦 ~Q 𝑎)
128125, 126, 127ertr4d 7625 . . . . 5 ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 ~Q 𝑦)
129 mulcompi 9574 . . . . . . . . . . 11 ((2nd𝑥) ·N (1st𝑥)) = ((1st𝑥) ·N (2nd𝑥))
130 elpqn 9603 . . . . . . . . . . . . . . 15 (𝑦Q𝑦 ∈ (N × N))
131 breq1 4580 . . . . . . . . . . . . . . . . . . 19 (𝑦 = 𝑥 → (𝑦 ~Q 𝑧𝑥 ~Q 𝑧))
132 fveq2 6088 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 = 𝑥 → (2nd𝑦) = (2nd𝑥))
133132breq2d 4589 . . . . . . . . . . . . . . . . . . . 20 (𝑦 = 𝑥 → ((2nd𝑧) <N (2nd𝑦) ↔ (2nd𝑧) <N (2nd𝑥)))
134133notbid 306 . . . . . . . . . . . . . . . . . . 19 (𝑦 = 𝑥 → (¬ (2nd𝑧) <N (2nd𝑦) ↔ ¬ (2nd𝑧) <N (2nd𝑥)))
135131, 134imbi12d 332 . . . . . . . . . . . . . . . . . 18 (𝑦 = 𝑥 → ((𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)) ↔ (𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥))))
136135ralbidv 2968 . . . . . . . . . . . . . . . . 17 (𝑦 = 𝑥 → (∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)) ↔ ∀𝑧 ∈ (N × N)(𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥))))
137136, 92elrab2 3332 . . . . . . . . . . . . . . . 16 (𝑥Q ↔ (𝑥 ∈ (N × N) ∧ ∀𝑧 ∈ (N × N)(𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥))))
138137simprbi 478 . . . . . . . . . . . . . . 15 (𝑥Q → ∀𝑧 ∈ (N × N)(𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥)))
139 breq2 4581 . . . . . . . . . . . . . . . . 17 (𝑧 = 𝑦 → (𝑥 ~Q 𝑧𝑥 ~Q 𝑦))
140 fveq2 6088 . . . . . . . . . . . . . . . . . . 19 (𝑧 = 𝑦 → (2nd𝑧) = (2nd𝑦))
141140breq1d 4587 . . . . . . . . . . . . . . . . . 18 (𝑧 = 𝑦 → ((2nd𝑧) <N (2nd𝑥) ↔ (2nd𝑦) <N (2nd𝑥)))
142141notbid 306 . . . . . . . . . . . . . . . . 17 (𝑧 = 𝑦 → (¬ (2nd𝑧) <N (2nd𝑥) ↔ ¬ (2nd𝑦) <N (2nd𝑥)))
143139, 142imbi12d 332 . . . . . . . . . . . . . . . 16 (𝑧 = 𝑦 → ((𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥)) ↔ (𝑥 ~Q 𝑦 → ¬ (2nd𝑦) <N (2nd𝑥))))
144143rspcva 3279 . . . . . . . . . . . . . . 15 ((𝑦 ∈ (N × N) ∧ ∀𝑧 ∈ (N × N)(𝑥 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑥))) → (𝑥 ~Q 𝑦 → ¬ (2nd𝑦) <N (2nd𝑥)))
145130, 138, 144syl2anr 493 . . . . . . . . . . . . . 14 ((𝑥Q𝑦Q) → (𝑥 ~Q 𝑦 → ¬ (2nd𝑦) <N (2nd𝑥)))
146145imp 443 . . . . . . . . . . . . 13 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ¬ (2nd𝑦) <N (2nd𝑥))
14764a1i 11 . . . . . . . . . . . . . . . . . 18 (𝑥 ~Q 𝑦 → ~Q Er (N × N))
148 id 22 . . . . . . . . . . . . . . . . . 18 (𝑥 ~Q 𝑦𝑥 ~Q 𝑦)
149147, 148ersym 7618 . . . . . . . . . . . . . . . . 17 (𝑥 ~Q 𝑦𝑦 ~Q 𝑥)
150 elpqn 9603 . . . . . . . . . . . . . . . . . 18 (𝑥Q𝑥 ∈ (N × N))
15192rabeq2i 3169 . . . . . . . . . . . . . . . . . . 19 (𝑦Q ↔ (𝑦 ∈ (N × N) ∧ ∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦))))
152151simprbi 478 . . . . . . . . . . . . . . . . . 18 (𝑦Q → ∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)))
153 breq2 4581 . . . . . . . . . . . . . . . . . . . 20 (𝑧 = 𝑥 → (𝑦 ~Q 𝑧𝑦 ~Q 𝑥))
154 fveq2 6088 . . . . . . . . . . . . . . . . . . . . . 22 (𝑧 = 𝑥 → (2nd𝑧) = (2nd𝑥))
155154breq1d 4587 . . . . . . . . . . . . . . . . . . . . 21 (𝑧 = 𝑥 → ((2nd𝑧) <N (2nd𝑦) ↔ (2nd𝑥) <N (2nd𝑦)))
156155notbid 306 . . . . . . . . . . . . . . . . . . . 20 (𝑧 = 𝑥 → (¬ (2nd𝑧) <N (2nd𝑦) ↔ ¬ (2nd𝑥) <N (2nd𝑦)))
157153, 156imbi12d 332 . . . . . . . . . . . . . . . . . . 19 (𝑧 = 𝑥 → ((𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦)) ↔ (𝑦 ~Q 𝑥 → ¬ (2nd𝑥) <N (2nd𝑦))))
158157rspcva 3279 . . . . . . . . . . . . . . . . . 18 ((𝑥 ∈ (N × N) ∧ ∀𝑧 ∈ (N × N)(𝑦 ~Q 𝑧 → ¬ (2nd𝑧) <N (2nd𝑦))) → (𝑦 ~Q 𝑥 → ¬ (2nd𝑥) <N (2nd𝑦)))
159150, 152, 158syl2an 492 . . . . . . . . . . . . . . . . 17 ((𝑥Q𝑦Q) → (𝑦 ~Q 𝑥 → ¬ (2nd𝑥) <N (2nd𝑦)))
160149, 159syl5 33 . . . . . . . . . . . . . . . 16 ((𝑥Q𝑦Q) → (𝑥 ~Q 𝑦 → ¬ (2nd𝑥) <N (2nd𝑦)))
161160imp 443 . . . . . . . . . . . . . . 15 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ¬ (2nd𝑥) <N (2nd𝑦))
162 xp2nd 7067 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ (N × N) → (2nd𝑥) ∈ N)
163150, 162syl 17 . . . . . . . . . . . . . . . . 17 (𝑥Q → (2nd𝑥) ∈ N)
164163ad2antrr 757 . . . . . . . . . . . . . . . 16 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (2nd𝑥) ∈ N)
165 xp2nd 7067 . . . . . . . . . . . . . . . . . 18 (𝑦 ∈ (N × N) → (2nd𝑦) ∈ N)
166130, 165syl 17 . . . . . . . . . . . . . . . . 17 (𝑦Q → (2nd𝑦) ∈ N)
167166ad2antlr 758 . . . . . . . . . . . . . . . 16 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (2nd𝑦) ∈ N)
168 ltsopi 9566 . . . . . . . . . . . . . . . . . . 19 <N Or N
169 sotric 4975 . . . . . . . . . . . . . . . . . . 19 (( <N Or N ∧ ((2nd𝑥) ∈ N ∧ (2nd𝑦) ∈ N)) → ((2nd𝑥) <N (2nd𝑦) ↔ ¬ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥))))
170168, 169mpan 701 . . . . . . . . . . . . . . . . . 18 (((2nd𝑥) ∈ N ∧ (2nd𝑦) ∈ N) → ((2nd𝑥) <N (2nd𝑦) ↔ ¬ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥))))
171170notbid 306 . . . . . . . . . . . . . . . . 17 (((2nd𝑥) ∈ N ∧ (2nd𝑦) ∈ N) → (¬ (2nd𝑥) <N (2nd𝑦) ↔ ¬ ¬ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥))))
172 notnotb 302 . . . . . . . . . . . . . . . . 17 (((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥)) ↔ ¬ ¬ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥)))
173171, 172syl6bbr 276 . . . . . . . . . . . . . . . 16 (((2nd𝑥) ∈ N ∧ (2nd𝑦) ∈ N) → (¬ (2nd𝑥) <N (2nd𝑦) ↔ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥))))
174164, 167, 173syl2anc 690 . . . . . . . . . . . . . . 15 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (¬ (2nd𝑥) <N (2nd𝑦) ↔ ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥))))
175161, 174mpbid 220 . . . . . . . . . . . . . 14 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ((2nd𝑥) = (2nd𝑦) ∨ (2nd𝑦) <N (2nd𝑥)))
176175ord 390 . . . . . . . . . . . . 13 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (¬ (2nd𝑥) = (2nd𝑦) → (2nd𝑦) <N (2nd𝑥)))
177146, 176mt3d 138 . . . . . . . . . . . 12 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (2nd𝑥) = (2nd𝑦))
178177oveq2d 6543 . . . . . . . . . . 11 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ((1st𝑥) ·N (2nd𝑥)) = ((1st𝑥) ·N (2nd𝑦)))
179129, 178syl5eq 2655 . . . . . . . . . 10 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ((2nd𝑥) ·N (1st𝑥)) = ((1st𝑥) ·N (2nd𝑦)))
180 1st2nd2 7073 . . . . . . . . . . . . . 14 (𝑥 ∈ (N × N) → 𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩)
181 1st2nd2 7073 . . . . . . . . . . . . . 14 (𝑦 ∈ (N × N) → 𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩)
182180, 181breqan12d 4593 . . . . . . . . . . . . 13 ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (𝑥 ~Q 𝑦 ↔ ⟨(1st𝑥), (2nd𝑥)⟩ ~Q ⟨(1st𝑦), (2nd𝑦)⟩))
183 xp1st 7066 . . . . . . . . . . . . . . 15 (𝑥 ∈ (N × N) → (1st𝑥) ∈ N)
184183, 162jca 552 . . . . . . . . . . . . . 14 (𝑥 ∈ (N × N) → ((1st𝑥) ∈ N ∧ (2nd𝑥) ∈ N))
185 xp1st 7066 . . . . . . . . . . . . . . 15 (𝑦 ∈ (N × N) → (1st𝑦) ∈ N)
186185, 165jca 552 . . . . . . . . . . . . . 14 (𝑦 ∈ (N × N) → ((1st𝑦) ∈ N ∧ (2nd𝑦) ∈ N))
187 enqbreq 9597 . . . . . . . . . . . . . 14 ((((1st𝑥) ∈ N ∧ (2nd𝑥) ∈ N) ∧ ((1st𝑦) ∈ N ∧ (2nd𝑦) ∈ N)) → (⟨(1st𝑥), (2nd𝑥)⟩ ~Q ⟨(1st𝑦), (2nd𝑦)⟩ ↔ ((1st𝑥) ·N (2nd𝑦)) = ((2nd𝑥) ·N (1st𝑦))))
188184, 186, 187syl2an 492 . . . . . . . . . . . . 13 ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (⟨(1st𝑥), (2nd𝑥)⟩ ~Q ⟨(1st𝑦), (2nd𝑦)⟩ ↔ ((1st𝑥) ·N (2nd𝑦)) = ((2nd𝑥) ·N (1st𝑦))))
189182, 188bitrd 266 . . . . . . . . . . . 12 ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (𝑥 ~Q 𝑦 ↔ ((1st𝑥) ·N (2nd𝑦)) = ((2nd𝑥) ·N (1st𝑦))))
190150, 130, 189syl2an 492 . . . . . . . . . . 11 ((𝑥Q𝑦Q) → (𝑥 ~Q 𝑦 ↔ ((1st𝑥) ·N (2nd𝑦)) = ((2nd𝑥) ·N (1st𝑦))))
191190biimpa 499 . . . . . . . . . 10 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ((1st𝑥) ·N (2nd𝑦)) = ((2nd𝑥) ·N (1st𝑦)))
192179, 191eqtrd 2643 . . . . . . . . 9 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ((2nd𝑥) ·N (1st𝑥)) = ((2nd𝑥) ·N (1st𝑦)))
193150ad2antrr 757 . . . . . . . . . 10 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → 𝑥 ∈ (N × N))
194 mulcanpi 9578 . . . . . . . . . . 11 (((2nd𝑥) ∈ N ∧ (1st𝑥) ∈ N) → (((2nd𝑥) ·N (1st𝑥)) = ((2nd𝑥) ·N (1st𝑦)) ↔ (1st𝑥) = (1st𝑦)))
195162, 183, 194syl2anc 690 . . . . . . . . . 10 (𝑥 ∈ (N × N) → (((2nd𝑥) ·N (1st𝑥)) = ((2nd𝑥) ·N (1st𝑦)) ↔ (1st𝑥) = (1st𝑦)))
196193, 195syl 17 . . . . . . . . 9 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (((2nd𝑥) ·N (1st𝑥)) = ((2nd𝑥) ·N (1st𝑦)) ↔ (1st𝑥) = (1st𝑦)))
197192, 196mpbid 220 . . . . . . . 8 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → (1st𝑥) = (1st𝑦))
198197, 177opeq12d 4342 . . . . . . 7 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → ⟨(1st𝑥), (2nd𝑥)⟩ = ⟨(1st𝑦), (2nd𝑦)⟩)
199193, 180syl 17 . . . . . . 7 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → 𝑥 = ⟨(1st𝑥), (2nd𝑥)⟩)
200130ad2antlr 758 . . . . . . . 8 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → 𝑦 ∈ (N × N))
201200, 181syl 17 . . . . . . 7 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → 𝑦 = ⟨(1st𝑦), (2nd𝑦)⟩)
202198, 199, 2013eqtr4d 2653 . . . . . 6 (((𝑥Q𝑦Q) ∧ 𝑥 ~Q 𝑦) → 𝑥 = 𝑦)
203202ex 448 . . . . 5 ((𝑥Q𝑦Q) → (𝑥 ~Q 𝑦𝑥 = 𝑦))
204128, 203syl5 33 . . . 4 ((𝑥Q𝑦Q) → ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 = 𝑦))
205204rgen2a 2959 . . 3 𝑥Q𝑦Q ((𝑥 ~Q 𝑎𝑦 ~Q 𝑎) → 𝑥 = 𝑦)
206124, 205vtoclg 3238 . 2 (𝐴 ∈ (N × N) → ∀𝑥Q𝑦Q ((𝑥 ~Q 𝐴𝑦 ~Q 𝐴) → 𝑥 = 𝑦))
207 breq1 4580 . . 3 (𝑥 = 𝑦 → (𝑥 ~Q 𝐴𝑦 ~Q 𝐴))
208207reu4 3366 . 2 (∃!𝑥Q 𝑥 ~Q 𝐴 ↔ (∃𝑥Q 𝑥 ~Q 𝐴 ∧ ∀𝑥Q𝑦Q ((𝑥 ~Q 𝐴𝑦 ~Q 𝐴) → 𝑥 = 𝑦)))
209119, 206, 208sylanbrc 694 1 (𝐴 ∈ (N × N) → ∃!𝑥Q 𝑥 ~Q 𝐴)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 194  wo 381  wa 382  w3a 1030   = wceq 1474  wcel 1976  wral 2895  wrex 2896  ∃!wreu 2897  cop 4130   class class class wbr 4577   Or wor 4948   × cxp 5026  Oncon0 5626  suc csuc 5628  cfv 5790  (class class class)co 6527  1st c1st 7034  2nd c2nd 7035   Er wer 7603  Ncnpi 9522   ·N cmi 9524   <N clti 9525   ~Q ceq 9529  Qcnq 9530
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1712  ax-4 1727  ax-5 1826  ax-6 1874  ax-7 1921  ax-8 1978  ax-9 1985  ax-10 2005  ax-11 2020  ax-12 2032  ax-13 2232  ax-ext 2589  ax-sep 4703  ax-nul 4712  ax-pow 4764  ax-pr 4828  ax-un 6824
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-ex 1695  df-nf 1700  df-sb 1867  df-eu 2461  df-mo 2462  df-clab 2596  df-cleq 2602  df-clel 2605  df-nfc 2739  df-ne 2781  df-ral 2900  df-rex 2901  df-reu 2902  df-rmo 2903  df-rab 2904  df-v 3174  df-sbc 3402  df-csb 3499  df-dif 3542  df-un 3544  df-in 3546  df-ss 3553  df-pss 3555  df-nul 3874  df-if 4036  df-pw 4109  df-sn 4125  df-pr 4127  df-tp 4129  df-op 4131  df-uni 4367  df-iun 4451  df-br 4578  df-opab 4638  df-mpt 4639  df-tr 4675  df-eprel 4939  df-id 4943  df-po 4949  df-so 4950  df-fr 4987  df-we 4989  df-xp 5034  df-rel 5035  df-cnv 5036  df-co 5037  df-dm 5038  df-rn 5039  df-res 5040  df-ima 5041  df-pred 5583  df-ord 5629  df-on 5630  df-lim 5631  df-suc 5632  df-iota 5754  df-fun 5792  df-fn 5793  df-f 5794  df-f1 5795  df-fo 5796  df-f1o 5797  df-fv 5798  df-ov 6530  df-oprab 6531  df-mpt2 6532  df-om 6935  df-1st 7036  df-2nd 7037  df-wrecs 7271  df-recs 7332  df-rdg 7370  df-oadd 7428  df-omul 7429  df-er 7606  df-ni 9550  df-mi 9552  df-lti 9553  df-enq 9589  df-nq 9590
This theorem is referenced by:  nqerf  9608  enqeq  9612
  Copyright terms: Public domain W3C validator