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

Theorem ltexnq 9676
 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 9627 . . . 4 <Q ⊆ (Q × Q)
21brel 5090 . . 3 (𝐴 <Q 𝐵 → (𝐴Q𝐵Q))
3 ordpinq 9644 . . . 4 ((𝐴Q𝐵Q) → (𝐴 <Q 𝐵 ↔ ((1st𝐴) ·N (2nd𝐵)) <N ((1st𝐵) ·N (2nd𝐴))))
4 elpqn 9626 . . . . . . . . 9 (𝐴Q𝐴 ∈ (N × N))
54adantr 480 . . . . . . . 8 ((𝐴Q𝐵Q) → 𝐴 ∈ (N × N))
6 xp1st 7089 . . . . . . . 8 (𝐴 ∈ (N × N) → (1st𝐴) ∈ N)
75, 6syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (1st𝐴) ∈ N)
8 elpqn 9626 . . . . . . . . 9 (𝐵Q𝐵 ∈ (N × N))
98adantl 481 . . . . . . . 8 ((𝐴Q𝐵Q) → 𝐵 ∈ (N × N))
10 xp2nd 7090 . . . . . . . 8 (𝐵 ∈ (N × N) → (2nd𝐵) ∈ N)
119, 10syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (2nd𝐵) ∈ N)
12 mulclpi 9594 . . . . . . 7 (((1st𝐴) ∈ N ∧ (2nd𝐵) ∈ N) → ((1st𝐴) ·N (2nd𝐵)) ∈ N)
137, 11, 12syl2anc 691 . . . . . 6 ((𝐴Q𝐵Q) → ((1st𝐴) ·N (2nd𝐵)) ∈ N)
14 xp1st 7089 . . . . . . . 8 (𝐵 ∈ (N × N) → (1st𝐵) ∈ N)
159, 14syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (1st𝐵) ∈ N)
16 xp2nd 7090 . . . . . . . 8 (𝐴 ∈ (N × N) → (2nd𝐴) ∈ N)
175, 16syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (2nd𝐴) ∈ N)
18 mulclpi 9594 . . . . . . 7 (((1st𝐵) ∈ N ∧ (2nd𝐴) ∈ N) → ((1st𝐵) ·N (2nd𝐴)) ∈ N)
1915, 17, 18syl2anc 691 . . . . . 6 ((𝐴Q𝐵Q) → ((1st𝐵) ·N (2nd𝐴)) ∈ N)
20 ltexpi 9603 . . . . . 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 691 . . . . 5 ((𝐴Q𝐵Q) → (((1st𝐴) ·N (2nd𝐵)) <N ((1st𝐵) ·N (2nd𝐴)) ↔ ∃𝑦N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴))))
22 relxp 5150 . . . . . . . . . . . 12 Rel (N × N)
234ad2antrr 758 . . . . . . . . . . . 12 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐴 ∈ (N × N))
24 1st2nd 7105 . . . . . . . . . . . 12 ((Rel (N × N) ∧ 𝐴 ∈ (N × N)) → 𝐴 = ⟨(1st𝐴), (2nd𝐴)⟩)
2522, 23, 24sylancr 694 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐴 = ⟨(1st𝐴), (2nd𝐴)⟩)
2625oveq1d 6564 . . . . . . . . . 10 (((𝐴Q𝐵Q) ∧ 𝑦N) → (𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) = (⟨(1st𝐴), (2nd𝐴)⟩ +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩))
277adantr 480 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → (1st𝐴) ∈ N)
2817adantr 480 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → (2nd𝐴) ∈ N)
29 simpr 476 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝑦N)
30 mulclpi 9594 . . . . . . . . . . . . 13 (((2nd𝐴) ∈ N ∧ (2nd𝐵) ∈ N) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
3117, 11, 30syl2anc 691 . . . . . . . . . . . 12 ((𝐴Q𝐵Q) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
3231adantr 480 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
33 addpipq 9638 . . . . . . . . . . 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 1319 . . . . . . . . . 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 2644 . . . . . . . . 9 (((𝐴Q𝐵Q) ∧ 𝑦N) → (𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) = ⟨(((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴))), ((2nd𝐴) ·N ((2nd𝐴) ·N (2nd𝐵)))⟩)
36 oveq2 6557 . . . . . . . . . . . 12 ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → ((2nd𝐴) ·N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦)) = ((2nd𝐴) ·N ((1st𝐵) ·N (2nd𝐴))))
37 distrpi 9599 . . . . . . . . . . . . 13 ((2nd𝐴) ·N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦)) = (((2nd𝐴) ·N ((1st𝐴) ·N (2nd𝐵))) +N ((2nd𝐴) ·N 𝑦))
38 fvex 6113 . . . . . . . . . . . . . . 15 (2nd𝐴) ∈ V
39 fvex 6113 . . . . . . . . . . . . . . 15 (1st𝐴) ∈ V
40 fvex 6113 . . . . . . . . . . . . . . 15 (2nd𝐵) ∈ V
41 mulcompi 9597 . . . . . . . . . . . . . . 15 (𝑥 ·N 𝑦) = (𝑦 ·N 𝑥)
42 mulasspi 9598 . . . . . . . . . . . . . . 15 ((𝑥 ·N 𝑦) ·N 𝑧) = (𝑥 ·N (𝑦 ·N 𝑧))
4338, 39, 40, 41, 42caov12 6760 . . . . . . . . . . . . . 14 ((2nd𝐴) ·N ((1st𝐴) ·N (2nd𝐵))) = ((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵)))
44 mulcompi 9597 . . . . . . . . . . . . . 14 ((2nd𝐴) ·N 𝑦) = (𝑦 ·N (2nd𝐴))
4543, 44oveq12i 6561 . . . . . . . . . . . . 13 (((2nd𝐴) ·N ((1st𝐴) ·N (2nd𝐵))) +N ((2nd𝐴) ·N 𝑦)) = (((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴)))
4637, 45eqtr2i 2633 . . . . . . . . . . . 12 (((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴))) = ((2nd𝐴) ·N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦))
47 mulasspi 9598 . . . . . . . . . . . . 13 (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) = ((2nd𝐴) ·N ((2nd𝐴) ·N (1st𝐵)))
48 mulcompi 9597 . . . . . . . . . . . . . 14 ((2nd𝐴) ·N (1st𝐵)) = ((1st𝐵) ·N (2nd𝐴))
4948oveq2i 6560 . . . . . . . . . . . . 13 ((2nd𝐴) ·N ((2nd𝐴) ·N (1st𝐵))) = ((2nd𝐴) ·N ((1st𝐵) ·N (2nd𝐴)))
5047, 49eqtri 2632 . . . . . . . . . . . 12 (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) = ((2nd𝐴) ·N ((1st𝐵) ·N (2nd𝐴)))
5136, 46, 503eqtr4g 2669 . . . . . . . . . . 11 ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → (((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴))) = (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)))
52 mulasspi 9598 . . . . . . . . . . . . 13 (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵)) = ((2nd𝐴) ·N ((2nd𝐴) ·N (2nd𝐵)))
5352eqcomi 2619 . . . . . . . . . . . 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 4348 . . . . . . . . . 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 2620 . . . . . . . . 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 234 . . . . . . . 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 6103 . . . . . . . . 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 9657 . . . . . . . . . . 11 (([Q]‘𝐴) +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = ([Q]‘(𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩))
60 nqerid 9634 . . . . . . . . . . . . 13 (𝐴Q → ([Q]‘𝐴) = 𝐴)
6160ad2antrr 758 . . . . . . . . . . . 12 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘𝐴) = 𝐴)
6261oveq1d 6564 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → (([Q]‘𝐴) +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)))
6359, 62syl5eqr 2658 . . . . . . . . . 10 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘(𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)))
64 mulclpi 9594 . . . . . . . . . . . . . . . 16 (((2nd𝐴) ∈ N ∧ (2nd𝐴) ∈ N) → ((2nd𝐴) ·N (2nd𝐴)) ∈ N)
6517, 17, 64syl2anc 691 . . . . . . . . . . . . . . 15 ((𝐴Q𝐵Q) → ((2nd𝐴) ·N (2nd𝐴)) ∈ N)
6665adantr 480 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((2nd𝐴) ·N (2nd𝐴)) ∈ N)
6715adantr 480 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (1st𝐵) ∈ N)
6811adantr 480 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (2nd𝐵) ∈ N)
69 mulcanenq 9661 . . . . . . . . . . . . . 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 1318 . . . . . . . . . . . . 13 (((𝐴Q𝐵Q) ∧ 𝑦N) → ⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩ ~Q ⟨(1st𝐵), (2nd𝐵)⟩)
718ad2antlr 759 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐵 ∈ (N × N))
72 1st2nd 7105 . . . . . . . . . . . . . 14 ((Rel (N × N) ∧ 𝐵 ∈ (N × N)) → 𝐵 = ⟨(1st𝐵), (2nd𝐵)⟩)
7322, 71, 72sylancr 694 . . . . . . . . . . . . 13 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐵 = ⟨(1st𝐵), (2nd𝐵)⟩)
7470, 73breqtrrd 4611 . . . . . . . . . . . 12 (((𝐴Q𝐵Q) ∧ 𝑦N) → ⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩ ~Q 𝐵)
75 mulclpi 9594 . . . . . . . . . . . . . . 15 ((((2nd𝐴) ·N (2nd𝐴)) ∈ N ∧ (1st𝐵) ∈ N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) ∈ N)
7666, 67, 75syl2anc 691 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) ∈ N)
77 mulclpi 9594 . . . . . . . . . . . . . . 15 ((((2nd𝐴) ·N (2nd𝐴)) ∈ N ∧ (2nd𝐵) ∈ N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵)) ∈ N)
7866, 68, 77syl2anc 691 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵)) ∈ N)
79 opelxpi 5072 . . . . . . . . . . . . . 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 691 . . . . . . . . . . . . 13 (((𝐴Q𝐵Q) ∧ 𝑦N) → ⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩ ∈ (N × N))
81 nqereq 9636 . . . . . . . . . . . . 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 691 . . . . . . . . . . . 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 221 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩) = ([Q]‘𝐵))
84 nqerid 9634 . . . . . . . . . . . 12 (𝐵Q → ([Q]‘𝐵) = 𝐵)
8584ad2antlr 759 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘𝐵) = 𝐵)
8683, 85eqtrd 2644 . . . . . . . . . 10 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩) = 𝐵)
8763, 86eqeq12d 2625 . . . . . . . . 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 233 . . . . . . . 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 46 . . . . . . 7 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = 𝐵))
90 fvex 6113 . . . . . . . 8 ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) ∈ V
91 oveq2 6557 . . . . . . . . 9 (𝑥 = ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) → (𝐴 +Q 𝑥) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)))
9291eqeq1d 2612 . . . . . . . 8 (𝑥 = ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) → ((𝐴 +Q 𝑥) = 𝐵 ↔ (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = 𝐵))
9390, 92spcev 3273 . . . . . . 7 ((𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵)
9489, 93syl6 34 . . . . . 6 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
9594rexlimdva 3013 . . . . 5 ((𝐴Q𝐵Q) → (∃𝑦N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
9621, 95sylbid 229 . . . 4 ((𝐴Q𝐵Q) → (((1st𝐴) ·N (2nd𝐵)) <N ((1st𝐵) ·N (2nd𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
973, 96sylbid 229 . . 3 ((𝐴Q𝐵Q) → (𝐴 <Q 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
982, 97mpcom 37 . 2 (𝐴 <Q 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵)
99 eleq1 2676 . . . . . . 7 ((𝐴 +Q 𝑥) = 𝐵 → ((𝐴 +Q 𝑥) ∈ Q𝐵Q))
10099biimparc 503 . . . . . 6 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → (𝐴 +Q 𝑥) ∈ Q)
101 addnqf 9649 . . . . . . . 8 +Q :(Q × Q)⟶Q
102101fdmi 5965 . . . . . . 7 dom +Q = (Q × Q)
103 0nnq 9625 . . . . . . 7 ¬ ∅ ∈ Q
104102, 103ndmovrcl 6718 . . . . . 6 ((𝐴 +Q 𝑥) ∈ Q → (𝐴Q𝑥Q))
105 ltaddnq 9675 . . . . . 6 ((𝐴Q𝑥Q) → 𝐴 <Q (𝐴 +Q 𝑥))
106100, 104, 1053syl 18 . . . . 5 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → 𝐴 <Q (𝐴 +Q 𝑥))
107 simpr 476 . . . . 5 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → (𝐴 +Q 𝑥) = 𝐵)
108106, 107breqtrd 4609 . . . 4 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → 𝐴 <Q 𝐵)
109108ex 449 . . 3 (𝐵Q → ((𝐴 +Q 𝑥) = 𝐵𝐴 <Q 𝐵))
110109exlimdv 1848 . 2 (𝐵Q → (∃𝑥(𝐴 +Q 𝑥) = 𝐵𝐴 <Q 𝐵))
11198, 110impbid2 215 1 (𝐵Q → (𝐴 <Q 𝐵 ↔ ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 195   ∧ wa 383   = wceq 1475  ∃wex 1695   ∈ wcel 1977  ∃wrex 2897  ⟨cop 4131   class class class wbr 4583   × cxp 5036  Rel wrel 5043  ‘cfv 5804  (class class class)co 6549  1st c1st 7057  2nd c2nd 7058  Ncnpi 9545   +N cpli 9546   ·N cmi 9547
 Copyright terms: Public domain W3C validator