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

Theorem ltexnq 9649
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 9600 . . . 4 <Q ⊆ (Q × Q)
21brel 5076 . . 3 (𝐴 <Q 𝐵 → (𝐴Q𝐵Q))
3 ordpinq 9617 . . . 4 ((𝐴Q𝐵Q) → (𝐴 <Q 𝐵 ↔ ((1st𝐴) ·N (2nd𝐵)) <N ((1st𝐵) ·N (2nd𝐴))))
4 elpqn 9599 . . . . . . . . 9 (𝐴Q𝐴 ∈ (N × N))
54adantr 479 . . . . . . . 8 ((𝐴Q𝐵Q) → 𝐴 ∈ (N × N))
6 xp1st 7062 . . . . . . . 8 (𝐴 ∈ (N × N) → (1st𝐴) ∈ N)
75, 6syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (1st𝐴) ∈ N)
8 elpqn 9599 . . . . . . . . 9 (𝐵Q𝐵 ∈ (N × N))
98adantl 480 . . . . . . . 8 ((𝐴Q𝐵Q) → 𝐵 ∈ (N × N))
10 xp2nd 7063 . . . . . . . 8 (𝐵 ∈ (N × N) → (2nd𝐵) ∈ N)
119, 10syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (2nd𝐵) ∈ N)
12 mulclpi 9567 . . . . . . 7 (((1st𝐴) ∈ N ∧ (2nd𝐵) ∈ N) → ((1st𝐴) ·N (2nd𝐵)) ∈ N)
137, 11, 12syl2anc 690 . . . . . 6 ((𝐴Q𝐵Q) → ((1st𝐴) ·N (2nd𝐵)) ∈ N)
14 xp1st 7062 . . . . . . . 8 (𝐵 ∈ (N × N) → (1st𝐵) ∈ N)
159, 14syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (1st𝐵) ∈ N)
16 xp2nd 7063 . . . . . . . 8 (𝐴 ∈ (N × N) → (2nd𝐴) ∈ N)
175, 16syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (2nd𝐴) ∈ N)
18 mulclpi 9567 . . . . . . 7 (((1st𝐵) ∈ N ∧ (2nd𝐴) ∈ N) → ((1st𝐵) ·N (2nd𝐴)) ∈ N)
1915, 17, 18syl2anc 690 . . . . . 6 ((𝐴Q𝐵Q) → ((1st𝐵) ·N (2nd𝐴)) ∈ N)
20 ltexpi 9576 . . . . . 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 690 . . . . 5 ((𝐴Q𝐵Q) → (((1st𝐴) ·N (2nd𝐵)) <N ((1st𝐵) ·N (2nd𝐴)) ↔ ∃𝑦N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴))))
22 relxp 5135 . . . . . . . . . . . 12 Rel (N × N)
234ad2antrr 757 . . . . . . . . . . . 12 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐴 ∈ (N × N))
24 1st2nd 7078 . . . . . . . . . . . 12 ((Rel (N × N) ∧ 𝐴 ∈ (N × N)) → 𝐴 = ⟨(1st𝐴), (2nd𝐴)⟩)
2522, 23, 24sylancr 693 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐴 = ⟨(1st𝐴), (2nd𝐴)⟩)
2625oveq1d 6538 . . . . . . . . . 10 (((𝐴Q𝐵Q) ∧ 𝑦N) → (𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) = (⟨(1st𝐴), (2nd𝐴)⟩ +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩))
277adantr 479 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → (1st𝐴) ∈ N)
2817adantr 479 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → (2nd𝐴) ∈ N)
29 simpr 475 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝑦N)
30 mulclpi 9567 . . . . . . . . . . . . 13 (((2nd𝐴) ∈ N ∧ (2nd𝐵) ∈ N) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
3117, 11, 30syl2anc 690 . . . . . . . . . . . 12 ((𝐴Q𝐵Q) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
3231adantr 479 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
33 addpipq 9611 . . . . . . . . . . 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 1318 . . . . . . . . . 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 2639 . . . . . . . . 9 (((𝐴Q𝐵Q) ∧ 𝑦N) → (𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) = ⟨(((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴))), ((2nd𝐴) ·N ((2nd𝐴) ·N (2nd𝐵)))⟩)
36 oveq2 6531 . . . . . . . . . . . 12 ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → ((2nd𝐴) ·N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦)) = ((2nd𝐴) ·N ((1st𝐵) ·N (2nd𝐴))))
37 distrpi 9572 . . . . . . . . . . . . 13 ((2nd𝐴) ·N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦)) = (((2nd𝐴) ·N ((1st𝐴) ·N (2nd𝐵))) +N ((2nd𝐴) ·N 𝑦))
38 fvex 6094 . . . . . . . . . . . . . . 15 (2nd𝐴) ∈ V
39 fvex 6094 . . . . . . . . . . . . . . 15 (1st𝐴) ∈ V
40 fvex 6094 . . . . . . . . . . . . . . 15 (2nd𝐵) ∈ V
41 mulcompi 9570 . . . . . . . . . . . . . . 15 (𝑥 ·N 𝑦) = (𝑦 ·N 𝑥)
42 mulasspi 9571 . . . . . . . . . . . . . . 15 ((𝑥 ·N 𝑦) ·N 𝑧) = (𝑥 ·N (𝑦 ·N 𝑧))
4338, 39, 40, 41, 42caov12 6733 . . . . . . . . . . . . . 14 ((2nd𝐴) ·N ((1st𝐴) ·N (2nd𝐵))) = ((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵)))
44 mulcompi 9570 . . . . . . . . . . . . . 14 ((2nd𝐴) ·N 𝑦) = (𝑦 ·N (2nd𝐴))
4543, 44oveq12i 6535 . . . . . . . . . . . . 13 (((2nd𝐴) ·N ((1st𝐴) ·N (2nd𝐵))) +N ((2nd𝐴) ·N 𝑦)) = (((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴)))
4637, 45eqtr2i 2628 . . . . . . . . . . . 12 (((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴))) = ((2nd𝐴) ·N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦))
47 mulasspi 9571 . . . . . . . . . . . . 13 (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) = ((2nd𝐴) ·N ((2nd𝐴) ·N (1st𝐵)))
48 mulcompi 9570 . . . . . . . . . . . . . 14 ((2nd𝐴) ·N (1st𝐵)) = ((1st𝐵) ·N (2nd𝐴))
4948oveq2i 6534 . . . . . . . . . . . . 13 ((2nd𝐴) ·N ((2nd𝐴) ·N (1st𝐵))) = ((2nd𝐴) ·N ((1st𝐵) ·N (2nd𝐴)))
5047, 49eqtri 2627 . . . . . . . . . . . 12 (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) = ((2nd𝐴) ·N ((1st𝐵) ·N (2nd𝐴)))
5136, 46, 503eqtr4g 2664 . . . . . . . . . . 11 ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → (((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴))) = (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)))
52 mulasspi 9571 . . . . . . . . . . . . 13 (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵)) = ((2nd𝐴) ·N ((2nd𝐴) ·N (2nd𝐵)))
5352eqcomi 2614 . . . . . . . . . . . 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 4338 . . . . . . . . . 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 2615 . . . . . . . . 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 233 . . . . . . . 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 6084 . . . . . . . . 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 9630 . . . . . . . . . . 11 (([Q]‘𝐴) +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = ([Q]‘(𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩))
60 nqerid 9607 . . . . . . . . . . . . 13 (𝐴Q → ([Q]‘𝐴) = 𝐴)
6160ad2antrr 757 . . . . . . . . . . . 12 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘𝐴) = 𝐴)
6261oveq1d 6538 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → (([Q]‘𝐴) +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)))
6359, 62syl5eqr 2653 . . . . . . . . . 10 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘(𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)))
64 mulclpi 9567 . . . . . . . . . . . . . . . 16 (((2nd𝐴) ∈ N ∧ (2nd𝐴) ∈ N) → ((2nd𝐴) ·N (2nd𝐴)) ∈ N)
6517, 17, 64syl2anc 690 . . . . . . . . . . . . . . 15 ((𝐴Q𝐵Q) → ((2nd𝐴) ·N (2nd𝐴)) ∈ N)
6665adantr 479 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((2nd𝐴) ·N (2nd𝐴)) ∈ N)
6715adantr 479 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (1st𝐵) ∈ N)
6811adantr 479 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (2nd𝐵) ∈ N)
69 mulcanenq 9634 . . . . . . . . . . . . . 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 1317 . . . . . . . . . . . . 13 (((𝐴Q𝐵Q) ∧ 𝑦N) → ⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩ ~Q ⟨(1st𝐵), (2nd𝐵)⟩)
718ad2antlr 758 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐵 ∈ (N × N))
72 1st2nd 7078 . . . . . . . . . . . . . 14 ((Rel (N × N) ∧ 𝐵 ∈ (N × N)) → 𝐵 = ⟨(1st𝐵), (2nd𝐵)⟩)
7322, 71, 72sylancr 693 . . . . . . . . . . . . 13 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐵 = ⟨(1st𝐵), (2nd𝐵)⟩)
7470, 73breqtrrd 4601 . . . . . . . . . . . 12 (((𝐴Q𝐵Q) ∧ 𝑦N) → ⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩ ~Q 𝐵)
75 mulclpi 9567 . . . . . . . . . . . . . . 15 ((((2nd𝐴) ·N (2nd𝐴)) ∈ N ∧ (1st𝐵) ∈ N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) ∈ N)
7666, 67, 75syl2anc 690 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) ∈ N)
77 mulclpi 9567 . . . . . . . . . . . . . . 15 ((((2nd𝐴) ·N (2nd𝐴)) ∈ N ∧ (2nd𝐵) ∈ N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵)) ∈ N)
7866, 68, 77syl2anc 690 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵)) ∈ N)
79 opelxpi 5058 . . . . . . . . . . . . . 14 (((((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) ∈ N ∧ (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵)) ∈ N) → ⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩ ∈ (N × N))
8076, 78, 79syl2anc 690 . . . . . . . . . . . . 13 (((𝐴Q𝐵Q) ∧ 𝑦N) → ⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩ ∈ (N × N))
81 nqereq 9609 . . . . . . . . . . . . 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]‘𝐵)))
8280, 71, 81syl2anc 690 . . . . . . . . . . . 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]‘𝐵)))
8374, 82mpbid 220 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩) = ([Q]‘𝐵))
84 nqerid 9607 . . . . . . . . . . . 12 (𝐵Q → ([Q]‘𝐵) = 𝐵)
8584ad2antlr 758 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘𝐵) = 𝐵)
8683, 85eqtrd 2639 . . . . . . . . . 10 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩) = 𝐵)
8763, 86eqeq12d 2620 . . . . . . . . 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𝐵))⟩)) = 𝐵))
8858, 87syl5ib 232 . . . . . . . 8 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) = ⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩ → (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = 𝐵))
8957, 88syld 45 . . . . . . 7 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = 𝐵))
90 fvex 6094 . . . . . . . 8 ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) ∈ V
91 oveq2 6531 . . . . . . . . 9 (𝑥 = ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) → (𝐴 +Q 𝑥) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)))
9291eqeq1d 2607 . . . . . . . 8 (𝑥 = ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) → ((𝐴 +Q 𝑥) = 𝐵 ↔ (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = 𝐵))
9390, 92spcev 3268 . . . . . . 7 ((𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵)
9489, 93syl6 34 . . . . . 6 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
9594rexlimdva 3008 . . . . 5 ((𝐴Q𝐵Q) → (∃𝑦N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
9621, 95sylbid 228 . . . 4 ((𝐴Q𝐵Q) → (((1st𝐴) ·N (2nd𝐵)) <N ((1st𝐵) ·N (2nd𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
973, 96sylbid 228 . . 3 ((𝐴Q𝐵Q) → (𝐴 <Q 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
982, 97mpcom 37 . 2 (𝐴 <Q 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵)
99 eleq1 2671 . . . . . . 7 ((𝐴 +Q 𝑥) = 𝐵 → ((𝐴 +Q 𝑥) ∈ Q𝐵Q))
10099biimparc 502 . . . . . 6 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → (𝐴 +Q 𝑥) ∈ Q)
101 addnqf 9622 . . . . . . . 8 +Q :(Q × Q)⟶Q
102101fdmi 5947 . . . . . . 7 dom +Q = (Q × Q)
103 0nnq 9598 . . . . . . 7 ¬ ∅ ∈ Q
104102, 103ndmovrcl 6691 . . . . . 6 ((𝐴 +Q 𝑥) ∈ Q → (𝐴Q𝑥Q))
105 ltaddnq 9648 . . . . . 6 ((𝐴Q𝑥Q) → 𝐴 <Q (𝐴 +Q 𝑥))
106100, 104, 1053syl 18 . . . . 5 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → 𝐴 <Q (𝐴 +Q 𝑥))
107 simpr 475 . . . . 5 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → (𝐴 +Q 𝑥) = 𝐵)
108106, 107breqtrd 4599 . . . 4 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → 𝐴 <Q 𝐵)
109108ex 448 . . 3 (𝐵Q → ((𝐴 +Q 𝑥) = 𝐵𝐴 <Q 𝐵))
110109exlimdv 1846 . 2 (𝐵Q → (∃𝑥(𝐴 +Q 𝑥) = 𝐵𝐴 <Q 𝐵))
11198, 110impbid2 214 1 (𝐵Q → (𝐴 <Q 𝐵 ↔ ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 194  wa 382   = wceq 1474  wex 1694  wcel 1975  wrex 2892  cop 4126   class class class wbr 4573   × cxp 5022  Rel wrel 5029  cfv 5786  (class class class)co 6523  1st c1st 7030  2nd c2nd 7031  Ncnpi 9518   +N cpli 9519   ·N cmi 9520   <N clti 9521   +pQ cplpq 9522   ~Q ceq 9525  Qcnq 9526  [Q]cerq 9528   +Q cplq 9529   <Q cltq 9532
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1711  ax-4 1726  ax-5 1825  ax-6 1873  ax-7 1920  ax-8 1977  ax-9 1984  ax-10 2004  ax-11 2019  ax-12 2031  ax-13 2228  ax-ext 2585  ax-sep 4699  ax-nul 4708  ax-pow 4760  ax-pr 4824  ax-un 6820
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 1866  df-eu 2457  df-mo 2458  df-clab 2592  df-cleq 2598  df-clel 2601  df-nfc 2735  df-ne 2777  df-ral 2896  df-rex 2897  df-reu 2898  df-rmo 2899  df-rab 2900  df-v 3170  df-sbc 3398  df-csb 3495  df-dif 3538  df-un 3540  df-in 3542  df-ss 3549  df-pss 3551  df-nul 3870  df-if 4032  df-pw 4105  df-sn 4121  df-pr 4123  df-tp 4125  df-op 4127  df-uni 4363  df-int 4401  df-iun 4447  df-br 4574  df-opab 4634  df-mpt 4635  df-tr 4671  df-eprel 4935  df-id 4939  df-po 4945  df-so 4946  df-fr 4983  df-we 4985  df-xp 5030  df-rel 5031  df-cnv 5032  df-co 5033  df-dm 5034  df-rn 5035  df-res 5036  df-ima 5037  df-pred 5579  df-ord 5625  df-on 5626  df-lim 5627  df-suc 5628  df-iota 5750  df-fun 5788  df-fn 5789  df-f 5790  df-f1 5791  df-fo 5792  df-f1o 5793  df-fv 5794  df-ov 6526  df-oprab 6527  df-mpt2 6528  df-om 6931  df-1st 7032  df-2nd 7033  df-wrecs 7267  df-recs 7328  df-rdg 7366  df-1o 7420  df-oadd 7424  df-omul 7425  df-er 7602  df-ni 9546  df-pli 9547  df-mi 9548  df-lti 9549  df-plpq 9582  df-mpq 9583  df-ltpq 9584  df-enq 9585  df-nq 9586  df-erq 9587  df-plq 9588  df-mq 9589  df-1nq 9590  df-ltnq 9592
This theorem is referenced by:  ltbtwnnq  9652  prnmadd  9671  ltexprlem4  9713  ltexprlem7  9716  prlem936  9721
  Copyright terms: Public domain W3C validator