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

Theorem ltexnq 11032
Description: Ordering on positive fractions in terms of existence of sum. Definition in Proposition 9-2.6 of [Gleason] p. 119. (Contributed by NM, 24-Apr-1996.) (Revised by Mario Carneiro, 10-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
ltexnq (𝐵 ∈ Q → (𝐴 <Q 𝐵 ↔ ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵

Proof of Theorem ltexnq
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ltrelnq 10983 . . . 4 <Q ⊆ (Q × Q)
21brel 5712 . . 3 (𝐴 <Q 𝐵 → (𝐴 ∈ Q ∧ 𝐵 ∈ Q))
3 ordpinq 11000 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (𝐴 <Q 𝐵 ↔ ((1st ‘𝐴) ·N (2nd ‘𝐵)) <N ((1st ‘𝐵) ·N (2nd ‘𝐴))))
4 elpqn 10982 . . . . . . . . 9 (𝐴 ∈ Q → 𝐴 ∈ (N × N))
54adantr 486 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → 𝐴 ∈ (N × N))
6 xp1st 8016 . . . . . . . 8 (𝐴 ∈ (N × N) → (1st ‘𝐴) ∈ N)
75, 6syl 18 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (1st ‘𝐴) ∈ N)
8 elpqn 10982 . . . . . . . . 9 (𝐵 ∈ Q → 𝐵 ∈ (N × N))
98adantl 487 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → 𝐵 ∈ (N × N))
10 xp2nd 8017 . . . . . . . 8 (𝐵 ∈ (N × N) → (2nd ‘𝐵) ∈ N)
119, 10syl 18 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (2nd ‘𝐵) ∈ N)
12 mulclpi 10950 . . . . . . 7 (((1st ‘𝐴) ∈ N ∧ (2nd ‘𝐵) ∈ N) → ((1st ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)
137, 11, 12syl2anc 596 . . . . . 6 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → ((1st ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)
14 xp1st 8016 . . . . . . . 8 (𝐵 ∈ (N × N) → (1st ‘𝐵) ∈ N)
159, 14syl 18 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (1st ‘𝐵) ∈ N)
16 xp2nd 8017 . . . . . . . 8 (𝐴 ∈ (N × N) → (2nd ‘𝐴) ∈ N)
175, 16syl 18 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (2nd ‘𝐴) ∈ N)
18 mulclpi 10950 . . . . . . 7 (((1st ‘𝐵) ∈ N ∧ (2nd ‘𝐴) ∈ N) → ((1st ‘𝐵) ·N (2nd ‘𝐴)) ∈ N)
1915, 17, 18syl2anc 596 . . . . . 6 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → ((1st ‘𝐵) ·N (2nd ‘𝐴)) ∈ N)
20 ltexpi 10959 . . . . . 6 ((((1st ‘𝐴) ·N (2nd ‘𝐵)) ∈ N ∧ ((1st ‘𝐵) ·N (2nd ‘𝐴)) ∈ N) → (((1st ‘𝐴) ·N (2nd ‘𝐵)) <N ((1st ‘𝐵) ·N (2nd ‘𝐴)) ↔ ∃𝑦 ∈ N (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴))))
2113, 19, 20syl2anc 596 . . . . 5 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (((1st ‘𝐴) ·N (2nd ‘𝐵)) <N ((1st ‘𝐵) ·N (2nd ‘𝐴)) ↔ ∃𝑦 ∈ N (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴))))
22 relxp 5665 . . . . . . . . . . . 12 Rel (N × N)
234ad2antrr 739 . . . . . . . . . . . 12 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → 𝐴 ∈ (N × N))
24 1st2nd 8033 . . . . . . . . . . . 12 ((Rel (N × N) ∧ 𝐴 ∈ (N × N)) → 𝐴 = ⟨(1st ‘𝐴), (2nd ‘𝐴)⟩)
2522, 23, 24sylancr 599 . . . . . . . . . . 11 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → 𝐴 = ⟨(1st ‘𝐴), (2nd ‘𝐴)⟩)
2625oveq1d 7423 . . . . . . . . . 10 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) = (⟨(1st ‘𝐴), (2nd ‘𝐴)⟩ +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩))
277adantr 486 . . . . . . . . . . 11 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (1st ‘𝐴) ∈ N)
2817adantr 486 . . . . . . . . . . 11 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (2nd ‘𝐴) ∈ N)
29 simpr 490 . . . . . . . . . . 11 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → 𝑦 ∈ N)
30 mulclpi 10950 . . . . . . . . . . . . 13 (((2nd ‘𝐴) ∈ N ∧ (2nd ‘𝐵) ∈ N) → ((2nd ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)
3117, 11, 30syl2anc 596 . . . . . . . . . . . 12 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → ((2nd ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)
3231adantr 486 . . . . . . . . . . 11 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ((2nd ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)
33 addpipq 10994 . . . . . . . . . . 11 ((((1st ‘𝐴) ∈ N ∧ (2nd ‘𝐴) ∈ N) ∧ (𝑦 ∈ N ∧ ((2nd ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)) → (⟨(1st ‘𝐴), (2nd ‘𝐴)⟩ +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) = ⟨(((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵)))⟩)
3427, 28, 29, 32, 33syl22anc 852 . . . . . . . . . 10 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (⟨(1st ‘𝐴), (2nd ‘𝐴)⟩ +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) = ⟨(((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵)))⟩)
3526, 34eqtrd 2795 . . . . . . . . 9 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) = ⟨(((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵)))⟩)
36 oveq2 7416 . . . . . . . . . . . 12 ((((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → ((2nd ‘𝐴) ·N (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦)) = ((2nd ‘𝐴) ·N ((1st ‘𝐵) ·N (2nd ‘𝐴))))
37 distrpi 10955 . . . . . . . . . . . . 13 ((2nd ‘𝐴) ·N (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦)) = (((2nd ‘𝐴) ·N ((1st ‘𝐴) ·N (2nd ‘𝐵))) +N ((2nd ‘𝐴) ·N 𝑦))
38 fvex 6886 . . . . . . . . . . . . . . 15 (2nd ‘𝐴) ∈ V
39 fvex 6886 . . . . . . . . . . . . . . 15 (1st ‘𝐴) ∈ V
40 fvex 6886 . . . . . . . . . . . . . . 15 (2nd ‘𝐵) ∈ V
41 mulcompi 10953 . . . . . . . . . . . . . . 15 (𝑥 ·N 𝑦) = (𝑦 ·N 𝑥)
42 mulasspi 10954 . . . . . . . . . . . . . . 15 ((𝑥 ·N 𝑦) ·N 𝑧) = (𝑥 ·N (𝑦 ·N 𝑧))
4338, 39, 40, 41, 42caov12 7637 . . . . . . . . . . . . . 14 ((2nd ‘𝐴) ·N ((1st ‘𝐴) ·N (2nd ‘𝐵))) = ((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵)))
44 mulcompi 10953 . . . . . . . . . . . . . 14 ((2nd ‘𝐴) ·N 𝑦) = (𝑦 ·N (2nd ‘𝐴))
4543, 44oveq12i 7420 . . . . . . . . . . . . 13 (((2nd ‘𝐴) ·N ((1st ‘𝐴) ·N (2nd ‘𝐵))) +N ((2nd ‘𝐴) ·N 𝑦)) = (((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴)))
4637, 45eqtr2i 2784 . . . . . . . . . . . 12 (((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴))) = ((2nd ‘𝐴) ·N (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦))
47 mulasspi 10954 . . . . . . . . . . . . 13 (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)) = ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (1st ‘𝐵)))
48 mulcompi 10953 . . . . . . . . . . . . . 14 ((2nd ‘𝐴) ·N (1st ‘𝐵)) = ((1st ‘𝐵) ·N (2nd ‘𝐴))
4948oveq2i 7419 . . . . . . . . . . . . 13 ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (1st ‘𝐵))) = ((2nd ‘𝐴) ·N ((1st ‘𝐵) ·N (2nd ‘𝐴)))
5047, 49eqtri 2783 . . . . . . . . . . . 12 (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)) = ((2nd ‘𝐴) ·N ((1st ‘𝐵) ·N (2nd ‘𝐴)))
5136, 46, 503eqtr4g 2820 . . . . . . . . . . 11 ((((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → (((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴))) = (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)))
52 mulasspi 10954 . . . . . . . . . . . . 13 (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵)) = ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵)))
5352eqcomi 2769 . . . . . . . . . . . 12 ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) = (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))
5453a1i 11 . . . . . . . . . . 11 ((((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) = (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵)))
5551, 54opeq12d 4840 . . . . . . . . . 10 ((((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → ⟨(((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵)))⟩ = ⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩)
5655eqeq2d 2771 . . . . . . . . 9 ((((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → ((𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) = ⟨(((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵)))⟩ ↔ (𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) = ⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩))
5735, 56syl5ibcom 248 . . . . . . . 8 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ((((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → (𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) = ⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩))
58 fveq2 6873 . . . . . . . . 9 ((𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) = ⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩ → ([Q]‘(𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = ([Q]‘⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩))
59 adderpq 11013 . . . . . . . . . . 11 (([Q]‘𝐴) +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = ([Q]‘(𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩))
60 nqerid 10990 . . . . . . . . . . . . 13 (𝐴 ∈ Q → ([Q]‘𝐴) = 𝐴)
6160ad2antrr 739 . . . . . . . . . . . 12 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ([Q]‘𝐴) = 𝐴)
6261oveq1d 7423 . . . . . . . . . . 11 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (([Q]‘𝐴) +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)))
6359, 62eqtr3id 2809 . . . . . . . . . 10 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ([Q]‘(𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)))
64 mulclpi 10950 . . . . . . . . . . . . . . . 16 (((2nd ‘𝐴) ∈ N ∧ (2nd ‘𝐴) ∈ N) → ((2nd ‘𝐴) ·N (2nd ‘𝐴)) ∈ N)
6517, 17, 64syl2anc 596 . . . . . . . . . . . . . . 15 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → ((2nd ‘𝐴) ·N (2nd ‘𝐴)) ∈ N)
6665adantr 486 . . . . . . . . . . . . . 14 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ((2nd ‘𝐴) ·N (2nd ‘𝐴)) ∈ N)
6715adantr 486 . . . . . . . . . . . . . 14 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (1st ‘𝐵) ∈ N)
6811adantr 486 . . . . . . . . . . . . . 14 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (2nd ‘𝐵) ∈ N)
69 mulcanenq 11017 . . . . . . . . . . . . . 14 ((((2nd ‘𝐴) ·N (2nd ‘𝐴)) ∈ N ∧ (1st ‘𝐵) ∈ N ∧ (2nd ‘𝐵) ∈ N) → ⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩ ~Q ⟨(1st ‘𝐵), (2nd ‘𝐵)⟩)
7066, 67, 68, 69syl3anc 1398 . . . . . . . . . . . . 13 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩ ~Q ⟨(1st ‘𝐵), (2nd ‘𝐵)⟩)
718ad2antlr 740 . . . . . . . . . . . . . 14 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → 𝐵 ∈ (N × N))
72 1st2nd 8033 . . . . . . . . . . . . . 14 ((Rel (N × N) ∧ 𝐵 ∈ (N × N)) → 𝐵 = ⟨(1st ‘𝐵), (2nd ‘𝐵)⟩)
7322, 71, 72sylancr 599 . . . . . . . . . . . . 13 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → 𝐵 = ⟨(1st ‘𝐵), (2nd ‘𝐵)⟩)
7470, 73breqtrrd 5132 . . . . . . . . . . . 12 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩ ~Q 𝐵)
75 mulclpi 10950 . . . . . . . . . . . . . . 15 ((((2nd ‘𝐴) ·N (2nd ‘𝐴)) ∈ N ∧ (1st ‘𝐵) ∈ N) → (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)) ∈ N)
7666, 67, 75syl2anc 596 . . . . . . . . . . . . . 14 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)) ∈ N)
77 mulclpi 10950 . . . . . . . . . . . . . . 15 ((((2nd ‘𝐴) ·N (2nd ‘𝐴)) ∈ N ∧ (2nd ‘𝐵) ∈ N) → (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵)) ∈ N)
7866, 68, 77syl2anc 596 . . . . . . . . . . . . . 14 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵)) ∈ N)
7976, 78opelxpd 5686 . . . . . . . . . . . . 13 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩ ∈ (N × N))
80 nqereq 10992 . . . . . . . . . . . . 13 ((⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩ ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩ ~Q 𝐵 ↔ ([Q]‘⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩) = ([Q]‘𝐵)))
8179, 71, 80syl2anc 596 . . . . . . . . . . . 12 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩ ~Q 𝐵 ↔ ([Q]‘⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩) = ([Q]‘𝐵)))
8274, 81mpbid 235 . . . . . . . . . . 11 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ([Q]‘⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩) = ([Q]‘𝐵))
83 nqerid 10990 . . . . . . . . . . . 12 (𝐵 ∈ Q → ([Q]‘𝐵) = 𝐵)
8483ad2antlr 740 . . . . . . . . . . 11 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ([Q]‘𝐵) = 𝐵)
8582, 84eqtrd 2795 . . . . . . . . . 10 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ([Q]‘⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩) = 𝐵)
8663, 85eqeq12d 2776 . . . . . . . . 9 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (([Q]‘(𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = ([Q]‘⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩) ↔ (𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = 𝐵))
8758, 86imbitrid 247 . . . . . . . 8 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ((𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) = ⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩ → (𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = 𝐵))
8857, 87syld 48 . . . . . . 7 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ((((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → (𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = 𝐵))
89 fvex 6886 . . . . . . . 8 ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) ∈ V
90 oveq2 7416 . . . . . . . . 9 (𝑥 = ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) → (𝐴 +Q 𝑥) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)))
9190eqeq1d 2762 . . . . . . . 8 (𝑥 = ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) → ((𝐴 +Q 𝑥) = 𝐵 ↔ (𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = 𝐵))
9289, 91spcev 3560 . . . . . . 7 ((𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵)
9388, 92syl6 36 . . . . . 6 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ((((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
9493rexlimdva 3163 . . . . 5 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (∃𝑦 ∈ N (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
9521, 94sylbid 243 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (((1st ‘𝐴) ·N (2nd ‘𝐵)) <N ((1st ‘𝐵) ·N (2nd ‘𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
963, 95sylbid 243 . . 3 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (𝐴 <Q 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
972, 96mpcom 39 . 2 (𝐴 <Q 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵)
98 eleq1 2848 . . . . . . 7 ((𝐴 +Q 𝑥) = 𝐵 → ((𝐴 +Q 𝑥) ∈ Q ↔ 𝐵 ∈ Q))
9998biimparc 485 . . . . . 6 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑥) = 𝐵) → (𝐴 +Q 𝑥) ∈ Q)
100 addnqf 11005 . . . . . . . 8 +Q :(Q × Q)⟶Q
101100fdmi 6709 . . . . . . 7 dom +Q = (Q × Q)
102 0nnq 10981 . . . . . . 7 ¬ ∅ ∈ Q
103101, 102ndmovrcl 7595 . . . . . 6 ((𝐴 +Q 𝑥) ∈ Q → (𝐴 ∈ Q ∧ 𝑥 ∈ Q))
104 ltaddnq 11031 . . . . . 6 ((𝐴 ∈ Q ∧ 𝑥 ∈ Q) → 𝐴 <Q (𝐴 +Q 𝑥))
10599, 103, 1043syl 19 . . . . 5 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑥) = 𝐵) → 𝐴 <Q (𝐴 +Q 𝑥))
106 simpr 490 . . . . 5 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑥) = 𝐵) → (𝐴 +Q 𝑥) = 𝐵)
107105, 106breqtrd 5130 . . . 4 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑥) = 𝐵) → 𝐴 <Q 𝐵)
108107ex 418 . . 3 (𝐵 ∈ Q → ((𝐴 +Q 𝑥) = 𝐵 → 𝐴 <Q 𝐵))
109108exlimdv 1966 . 2 (𝐵 ∈ Q → (∃𝑥(𝐴 +Q 𝑥) = 𝐵 → 𝐴 <Q 𝐵))
11097, 109impbid2 229 1 (𝐵 ∈ Q → (𝐴 <Q 𝐵 ↔ ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2145  ∃wrex 3086  ⟨cop 4589   class class class wbr 5102   × cxp 5645  Rel wrel 5652  ‘cfv 6527  (class class class)co 7408  1st c1st 7982  2nd c2nd 7983  Ncnpi 10901   +N cpli 10902   ·N cmi 10903   <N clti 10904   +pQ cplpq 10905   ~Q ceq 10908  Qcnq 10909  [Q]cerq 10911   +Q cplq 10912   <Q cltq 10915
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390  ax-un 7734
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rmo 3365  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-pss 3918  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-op 4590  df-uni 4867  df-int 4907  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5542  df-eprel 5547  df-po 5555  df-so 5556  df-fr 5600  df-we 5602  df-xp 5653  df-rel 5654  df-cnv 5655  df-co 5656  df-dm 5657  df-rn 5658  df-res 5659  df-ima 5660  df-pred 6293  df-ord 6354  df-on 6355  df-lim 6356  df-suc 6357  df-iota 6483  df-fun 6529  df-fn 6530  df-f 6531  df-f1 6532  df-fo 6533  df-f1o 6534  df-fv 6535  df-ov 7411  df-oprab 7412  df-mpo 7413  df-om 7861  df-1st 7984  df-2nd 7985  df-frecs 8277  df-wrecs 8308  df-recs 8357  df-rdg 8396  df-1o 8454  df-oadd 8458  df-omul 8459  df-er 8695  df-ni 10929  df-pli 10930  df-mi 10931  df-lti 10932  df-plpq 10965  df-mpq 10966  df-ltpq 10967  df-enq 10968  df-nq 10969  df-erq 10970  df-plq 10971  df-mq 10972  df-1nq 10973  df-ltnq 10975
This theorem is used by:  ltbtwnnq  11035  prnmadd  11054  ltexprlem4  11096  ltexprlem7  11099  prlem936  11104
  Copyright terms: Public domain W3C validator