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

Theorem ltexnq 11087
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 11038 . . . 4 <Q ⊆ (Q × Q)
21brel 5720 . . 3 (𝐴 <Q 𝐵 → (𝐴 ∈ Q ∧ 𝐵 ∈ Q))
3 ordpinq 11055 . . . 4 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (𝐴 <Q 𝐵 ↔ ((1st ‘𝐴) ·N (2nd ‘𝐵)) <N ((1st ‘𝐵) ·N (2nd ‘𝐴))))
4 elpqn 11037 . . . . . . . . 9 (𝐴 ∈ Q → 𝐴 ∈ (N × N))
54adantr 486 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → 𝐴 ∈ (N × N))
6 xp1st 8057 . . . . . . . 8 (𝐴 ∈ (N × N) → (1st ‘𝐴) ∈ N)
75, 6syl 18 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (1st ‘𝐴) ∈ N)
8 elpqn 11037 . . . . . . . . 9 (𝐵 ∈ Q → 𝐵 ∈ (N × N))
98adantl 487 . . . . . . . 8 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → 𝐵 ∈ (N × N))
10 xp2nd 8058 . . . . . . . 8 (𝐵 ∈ (N × N) → (2nd ‘𝐵) ∈ N)
119, 10syl 18 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (2nd ‘𝐵) ∈ N)
12 mulclpi 11005 . . . . . . 7 (((1st ‘𝐴) ∈ N ∧ (2nd ‘𝐵) ∈ N) → ((1st ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)
137, 11, 12syl2anc 596 . . . . . 6 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → ((1st ‘𝐴) ·N (2nd ‘𝐵)) ∈ N)
14 xp1st 8057 . . . . . . . 8 (𝐵 ∈ (N × N) → (1st ‘𝐵) ∈ N)
159, 14syl 18 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (1st ‘𝐵) ∈ N)
16 xp2nd 8058 . . . . . . . 8 (𝐴 ∈ (N × N) → (2nd ‘𝐴) ∈ N)
175, 16syl 18 . . . . . . 7 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → (2nd ‘𝐴) ∈ N)
18 mulclpi 11005 . . . . . . 7 (((1st ‘𝐵) ∈ N ∧ (2nd ‘𝐴) ∈ N) → ((1st ‘𝐵) ·N (2nd ‘𝐴)) ∈ N)
1915, 17, 18syl2anc 596 . . . . . 6 ((𝐴 ∈ Q ∧ 𝐵 ∈ Q) → ((1st ‘𝐵) ·N (2nd ‘𝐴)) ∈ N)
20 ltexpi 11014 . . . . . 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 5673 . . . . . . . . . . . 12 Rel (N × N)
234ad2antrr 739 . . . . . . . . . . . 12 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → 𝐴 ∈ (N × N))
24 1st2nd 8074 . . . . . . . . . . . 12 ((Rel (N × N) ∧ 𝐴 ∈ (N × N)) → 𝐴 = ⟨(1st ‘𝐴), (2nd ‘𝐴)⟩)
2522, 23, 24sylancr 599 . . . . . . . . . . 11 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → 𝐴 = ⟨(1st ‘𝐴), (2nd ‘𝐴)⟩)
2625oveq1d 7458 . . . . . . . . . 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 11005 . . . . . . . . . . . . 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 11049 . . . . . . . . . . 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 2798 . . . . . . . . 9 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) = ⟨(((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴))), ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵)))⟩)
36 oveq2 7451 . . . . . . . . . . . 12 ((((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → ((2nd ‘𝐴) ·N (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦)) = ((2nd ‘𝐴) ·N ((1st ‘𝐵) ·N (2nd ‘𝐴))))
37 distrpi 11010 . . . . . . . . . . . . 13 ((2nd ‘𝐴) ·N (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦)) = (((2nd ‘𝐴) ·N ((1st ‘𝐴) ·N (2nd ‘𝐵))) +N ((2nd ‘𝐴) ·N 𝑦))
38 fvex 6921 . . . . . . . . . . . . . . 15 (2nd ‘𝐴) ∈ V
39 fvex 6921 . . . . . . . . . . . . . . 15 (1st ‘𝐴) ∈ V
40 fvex 6921 . . . . . . . . . . . . . . 15 (2nd ‘𝐵) ∈ V
41 mulcompi 11008 . . . . . . . . . . . . . . 15 (𝑥 ·N 𝑦) = (𝑦 ·N 𝑥)
42 mulasspi 11009 . . . . . . . . . . . . . . 15 ((𝑥 ·N 𝑦) ·N 𝑧) = (𝑥 ·N (𝑦 ·N 𝑧))
4338, 39, 40, 41, 42caov12 7673 . . . . . . . . . . . . . 14 ((2nd ‘𝐴) ·N ((1st ‘𝐴) ·N (2nd ‘𝐵))) = ((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵)))
44 mulcompi 11008 . . . . . . . . . . . . . 14 ((2nd ‘𝐴) ·N 𝑦) = (𝑦 ·N (2nd ‘𝐴))
4543, 44oveq12i 7455 . . . . . . . . . . . . 13 (((2nd ‘𝐴) ·N ((1st ‘𝐴) ·N (2nd ‘𝐵))) +N ((2nd ‘𝐴) ·N 𝑦)) = (((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴)))
4637, 45eqtr2i 2787 . . . . . . . . . . . 12 (((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴))) = ((2nd ‘𝐴) ·N (((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦))
47 mulasspi 11009 . . . . . . . . . . . . 13 (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)) = ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (1st ‘𝐵)))
48 mulcompi 11008 . . . . . . . . . . . . . 14 ((2nd ‘𝐴) ·N (1st ‘𝐵)) = ((1st ‘𝐵) ·N (2nd ‘𝐴))
4948oveq2i 7454 . . . . . . . . . . . . 13 ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (1st ‘𝐵))) = ((2nd ‘𝐴) ·N ((1st ‘𝐵) ·N (2nd ‘𝐴)))
5047, 49eqtri 2786 . . . . . . . . . . . 12 (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)) = ((2nd ‘𝐴) ·N ((1st ‘𝐵) ·N (2nd ‘𝐴)))
5136, 46, 503eqtr4g 2823 . . . . . . . . . . 11 ((((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → (((1st ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵))) +N (𝑦 ·N (2nd ‘𝐴))) = (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)))
52 mulasspi 11009 . . . . . . . . . . . . 13 (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵)) = ((2nd ‘𝐴) ·N ((2nd ‘𝐴) ·N (2nd ‘𝐵)))
5352eqcomi 2772 . . . . . . . . . . . 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 4851 . . . . . . . . . 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 2774 . . . . . . . . 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 6908 . . . . . . . . 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 11068 . . . . . . . . . . 11 (([Q]‘𝐴) +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = ([Q]‘(𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩))
60 nqerid 11045 . . . . . . . . . . . . 13 (𝐴 ∈ Q → ([Q]‘𝐴) = 𝐴)
6160ad2antrr 739 . . . . . . . . . . . 12 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ([Q]‘𝐴) = 𝐴)
6261oveq1d 7458 . . . . . . . . . . 11 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → (([Q]‘𝐴) +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)))
6359, 62eqtr3id 2812 . . . . . . . . . 10 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ([Q]‘(𝐴 +pQ ⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)))
64 mulclpi 11005 . . . . . . . . . . . . . . . 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 11072 . . . . . . . . . . . . . 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 1399 . . . . . . . . . . . . 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 8074 . . . . . . . . . . . . . 14 ((Rel (N × N) ∧ 𝐵 ∈ (N × N)) → 𝐵 = ⟨(1st ‘𝐵), (2nd ‘𝐵)⟩)
7322, 71, 72sylancr 599 . . . . . . . . . . . . 13 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → 𝐵 = ⟨(1st ‘𝐵), (2nd ‘𝐵)⟩)
7470, 73breqtrrd 5136 . . . . . . . . . . . 12 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩ ~Q 𝐵)
75 mulclpi 11005 . . . . . . . . . . . . . . 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 11005 . . . . . . . . . . . . . . 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 5694 . . . . . . . . . . . . 13 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩ ∈ (N × N))
80 nqereq 11047 . . . . . . . . . . . . 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 11045 . . . . . . . . . . . 12 (𝐵 ∈ Q → ([Q]‘𝐵) = 𝐵)
8483ad2antlr 740 . . . . . . . . . . 11 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ([Q]‘𝐵) = 𝐵)
8582, 84eqtrd 2798 . . . . . . . . . 10 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ([Q]‘⟨(((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (1st ‘𝐵)), (((2nd ‘𝐴) ·N (2nd ‘𝐴)) ·N (2nd ‘𝐵))⟩) = 𝐵)
8663, 85eqeq12d 2779 . . . . . . . . 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 6921 . . . . . . . 8 ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) ∈ V
90 oveq2 7451 . . . . . . . . 9 (𝑥 = ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) → (𝐴 +Q 𝑥) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)))
9190eqeq1d 2765 . . . . . . . 8 (𝑥 = ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩) → ((𝐴 +Q 𝑥) = 𝐵 ↔ (𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = 𝐵))
9289, 91spcev 3564 . . . . . . 7 ((𝐴 +Q ([Q]‘⟨𝑦, ((2nd ‘𝐴) ·N (2nd ‘𝐵))⟩)) = 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵)
9388, 92syl6 36 . . . . . 6 (((𝐴 ∈ Q ∧ 𝐵 ∈ Q) ∧ 𝑦 ∈ N) → ((((1st ‘𝐴) ·N (2nd ‘𝐵)) +N 𝑦) = ((1st ‘𝐵) ·N (2nd ‘𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
9493rexlimdva 3167 . . . . 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 2852 . . . . . . 7 ((𝐴 +Q 𝑥) = 𝐵 → ((𝐴 +Q 𝑥) ∈ Q ↔ 𝐵 ∈ Q))
9998biimparc 485 . . . . . 6 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑥) = 𝐵) → (𝐴 +Q 𝑥) ∈ Q)
100 addnqf 11060 . . . . . . . 8 +Q :(Q × Q)⟶Q
101100fdmi 6743 . . . . . . 7 dom +Q = (Q × Q)
102 0nnq 11036 . . . . . . 7 ¬ ∅ ∈ Q
103101, 102ndmovrcl 7631 . . . . . 6 ((𝐴 +Q 𝑥) ∈ Q → (𝐴 ∈ Q ∧ 𝑥 ∈ Q))
104 ltaddnq 11086 . . . . . 6 ((𝐴 ∈ Q ∧ 𝑥 ∈ Q) → 𝐴 <Q (𝐴 +Q 𝑥))
10599, 103, 1043syl 19 . . . . 5 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑥) = 𝐵) → 𝐴 <Q (𝐴 +Q 𝑥))
106 simpr 490 . . . . 5 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑥) = 𝐵) → (𝐴 +Q 𝑥) = 𝐵)
107105, 106breqtrd 5134 . . . 4 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑥) = 𝐵) → 𝐴 <Q 𝐵)
108107ex 418 . . 3 (𝐵 ∈ Q → ((𝐴 +Q 𝑥) = 𝐵 → 𝐴 <Q 𝐵))
109108exlimdv 1968 . 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 2147  ∃wrex 3090  ⟨cop 4838   class class class wbr 5106   × cxp 5653  Rel wrel 5660  ‘cfv 6558  (class class class)co 7443  1st c1st 8023  2nd c2nd 8024  Ncnpi 10956   +N cpli 10957   ·N cmi 10958   <N clti 10959   +pQ cplpq 10960   ~Q ceq 10963  Qcnq 10964  [Q]cerq 10966   +Q cplq 10967   <Q cltq 10970
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-nul 5263  ax-pr 5395  ax-un 7775
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-int 4911  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6322  df-ord 6383  df-on 6384  df-lim 6385  df-suc 6386  df-iota 6512  df-fun 6560  df-fn 6561  df-f 6562  df-f1 6563  df-fo 6564  df-f1o 6565  df-fv 6566  df-ov 7446  df-oprab 7447  df-mpo 7448  df-om 7902  df-1st 8025  df-2nd 8026  df-frecs 8327  df-wrecs 8358  df-recs 8407  df-rdg 8446  df-1o 8504  df-oadd 8508  df-omul 8509  df-er 8745  df-ni 10984  df-pli 10985  df-mi 10986  df-lti 10987  df-plpq 11020  df-mpq 11021  df-ltpq 11022  df-enq 11023  df-nq 11024  df-erq 11025  df-plq 11026  df-mq 11027  df-1nq 11028  df-ltnq 11030
This theorem is used by:  ltbtwnnq  11090  prnmadd  11109  ltexprlem4  11151  ltexprlem7  11154  prlem936  11159
  Copyright terms: Public domain W3C validator