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

Theorem ltexnq 10731
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 10682 . . . 4 <Q ⊆ (Q × Q)
21brel 5652 . . 3 (𝐴 <Q 𝐵 → (𝐴Q𝐵Q))
3 ordpinq 10699 . . . 4 ((𝐴Q𝐵Q) → (𝐴 <Q 𝐵 ↔ ((1st𝐴) ·N (2nd𝐵)) <N ((1st𝐵) ·N (2nd𝐴))))
4 elpqn 10681 . . . . . . . . 9 (𝐴Q𝐴 ∈ (N × N))
54adantr 481 . . . . . . . 8 ((𝐴Q𝐵Q) → 𝐴 ∈ (N × N))
6 xp1st 7863 . . . . . . . 8 (𝐴 ∈ (N × N) → (1st𝐴) ∈ N)
75, 6syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (1st𝐴) ∈ N)
8 elpqn 10681 . . . . . . . . 9 (𝐵Q𝐵 ∈ (N × N))
98adantl 482 . . . . . . . 8 ((𝐴Q𝐵Q) → 𝐵 ∈ (N × N))
10 xp2nd 7864 . . . . . . . 8 (𝐵 ∈ (N × N) → (2nd𝐵) ∈ N)
119, 10syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (2nd𝐵) ∈ N)
12 mulclpi 10649 . . . . . . 7 (((1st𝐴) ∈ N ∧ (2nd𝐵) ∈ N) → ((1st𝐴) ·N (2nd𝐵)) ∈ N)
137, 11, 12syl2anc 584 . . . . . 6 ((𝐴Q𝐵Q) → ((1st𝐴) ·N (2nd𝐵)) ∈ N)
14 xp1st 7863 . . . . . . . 8 (𝐵 ∈ (N × N) → (1st𝐵) ∈ N)
159, 14syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (1st𝐵) ∈ N)
16 xp2nd 7864 . . . . . . . 8 (𝐴 ∈ (N × N) → (2nd𝐴) ∈ N)
175, 16syl 17 . . . . . . 7 ((𝐴Q𝐵Q) → (2nd𝐴) ∈ N)
18 mulclpi 10649 . . . . . . 7 (((1st𝐵) ∈ N ∧ (2nd𝐴) ∈ N) → ((1st𝐵) ·N (2nd𝐴)) ∈ N)
1915, 17, 18syl2anc 584 . . . . . 6 ((𝐴Q𝐵Q) → ((1st𝐵) ·N (2nd𝐴)) ∈ N)
20 ltexpi 10658 . . . . . 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 584 . . . . 5 ((𝐴Q𝐵Q) → (((1st𝐴) ·N (2nd𝐵)) <N ((1st𝐵) ·N (2nd𝐴)) ↔ ∃𝑦N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴))))
22 relxp 5607 . . . . . . . . . . . 12 Rel (N × N)
234ad2antrr 723 . . . . . . . . . . . 12 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐴 ∈ (N × N))
24 1st2nd 7880 . . . . . . . . . . . 12 ((Rel (N × N) ∧ 𝐴 ∈ (N × N)) → 𝐴 = ⟨(1st𝐴), (2nd𝐴)⟩)
2522, 23, 24sylancr 587 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐴 = ⟨(1st𝐴), (2nd𝐴)⟩)
2625oveq1d 7290 . . . . . . . . . 10 (((𝐴Q𝐵Q) ∧ 𝑦N) → (𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) = (⟨(1st𝐴), (2nd𝐴)⟩ +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩))
277adantr 481 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → (1st𝐴) ∈ N)
2817adantr 481 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → (2nd𝐴) ∈ N)
29 simpr 485 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝑦N)
30 mulclpi 10649 . . . . . . . . . . . . 13 (((2nd𝐴) ∈ N ∧ (2nd𝐵) ∈ N) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
3117, 11, 30syl2anc 584 . . . . . . . . . . . 12 ((𝐴Q𝐵Q) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
3231adantr 481 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((2nd𝐴) ·N (2nd𝐵)) ∈ N)
33 addpipq 10693 . . . . . . . . . . 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 836 . . . . . . . . . 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 2778 . . . . . . . . 9 (((𝐴Q𝐵Q) ∧ 𝑦N) → (𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) = ⟨(((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴))), ((2nd𝐴) ·N ((2nd𝐴) ·N (2nd𝐵)))⟩)
36 oveq2 7283 . . . . . . . . . . . 12 ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → ((2nd𝐴) ·N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦)) = ((2nd𝐴) ·N ((1st𝐵) ·N (2nd𝐴))))
37 distrpi 10654 . . . . . . . . . . . . 13 ((2nd𝐴) ·N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦)) = (((2nd𝐴) ·N ((1st𝐴) ·N (2nd𝐵))) +N ((2nd𝐴) ·N 𝑦))
38 fvex 6787 . . . . . . . . . . . . . . 15 (2nd𝐴) ∈ V
39 fvex 6787 . . . . . . . . . . . . . . 15 (1st𝐴) ∈ V
40 fvex 6787 . . . . . . . . . . . . . . 15 (2nd𝐵) ∈ V
41 mulcompi 10652 . . . . . . . . . . . . . . 15 (𝑥 ·N 𝑦) = (𝑦 ·N 𝑥)
42 mulasspi 10653 . . . . . . . . . . . . . . 15 ((𝑥 ·N 𝑦) ·N 𝑧) = (𝑥 ·N (𝑦 ·N 𝑧))
4338, 39, 40, 41, 42caov12 7500 . . . . . . . . . . . . . 14 ((2nd𝐴) ·N ((1st𝐴) ·N (2nd𝐵))) = ((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵)))
44 mulcompi 10652 . . . . . . . . . . . . . 14 ((2nd𝐴) ·N 𝑦) = (𝑦 ·N (2nd𝐴))
4543, 44oveq12i 7287 . . . . . . . . . . . . 13 (((2nd𝐴) ·N ((1st𝐴) ·N (2nd𝐵))) +N ((2nd𝐴) ·N 𝑦)) = (((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴)))
4637, 45eqtr2i 2767 . . . . . . . . . . . 12 (((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴))) = ((2nd𝐴) ·N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦))
47 mulasspi 10653 . . . . . . . . . . . . 13 (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) = ((2nd𝐴) ·N ((2nd𝐴) ·N (1st𝐵)))
48 mulcompi 10652 . . . . . . . . . . . . . 14 ((2nd𝐴) ·N (1st𝐵)) = ((1st𝐵) ·N (2nd𝐴))
4948oveq2i 7286 . . . . . . . . . . . . 13 ((2nd𝐴) ·N ((2nd𝐴) ·N (1st𝐵))) = ((2nd𝐴) ·N ((1st𝐵) ·N (2nd𝐴)))
5047, 49eqtri 2766 . . . . . . . . . . . 12 (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) = ((2nd𝐴) ·N ((1st𝐵) ·N (2nd𝐴)))
5136, 46, 503eqtr4g 2803 . . . . . . . . . . 11 ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → (((1st𝐴) ·N ((2nd𝐴) ·N (2nd𝐵))) +N (𝑦 ·N (2nd𝐴))) = (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)))
52 mulasspi 10653 . . . . . . . . . . . . 13 (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵)) = ((2nd𝐴) ·N ((2nd𝐴) ·N (2nd𝐵)))
5352eqcomi 2747 . . . . . . . . . . . 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 4812 . . . . . . . . . 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 2749 . . . . . . . . 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 244 . . . . . . . 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 6774 . . . . . . . . 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 10712 . . . . . . . . . . 11 (([Q]‘𝐴) +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = ([Q]‘(𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩))
60 nqerid 10689 . . . . . . . . . . . . 13 (𝐴Q → ([Q]‘𝐴) = 𝐴)
6160ad2antrr 723 . . . . . . . . . . . 12 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘𝐴) = 𝐴)
6261oveq1d 7290 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → (([Q]‘𝐴) +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)))
6359, 62eqtr3id 2792 . . . . . . . . . 10 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘(𝐴 +pQ𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)))
64 mulclpi 10649 . . . . . . . . . . . . . . . 16 (((2nd𝐴) ∈ N ∧ (2nd𝐴) ∈ N) → ((2nd𝐴) ·N (2nd𝐴)) ∈ N)
6517, 17, 64syl2anc 584 . . . . . . . . . . . . . . 15 ((𝐴Q𝐵Q) → ((2nd𝐴) ·N (2nd𝐴)) ∈ N)
6665adantr 481 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((2nd𝐴) ·N (2nd𝐴)) ∈ N)
6715adantr 481 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (1st𝐵) ∈ N)
6811adantr 481 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (2nd𝐵) ∈ N)
69 mulcanenq 10716 . . . . . . . . . . . . . 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 1370 . . . . . . . . . . . . 13 (((𝐴Q𝐵Q) ∧ 𝑦N) → ⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩ ~Q ⟨(1st𝐵), (2nd𝐵)⟩)
718ad2antlr 724 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐵 ∈ (N × N))
72 1st2nd 7880 . . . . . . . . . . . . . 14 ((Rel (N × N) ∧ 𝐵 ∈ (N × N)) → 𝐵 = ⟨(1st𝐵), (2nd𝐵)⟩)
7322, 71, 72sylancr 587 . . . . . . . . . . . . 13 (((𝐴Q𝐵Q) ∧ 𝑦N) → 𝐵 = ⟨(1st𝐵), (2nd𝐵)⟩)
7470, 73breqtrrd 5102 . . . . . . . . . . . 12 (((𝐴Q𝐵Q) ∧ 𝑦N) → ⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩ ~Q 𝐵)
75 mulclpi 10649 . . . . . . . . . . . . . . 15 ((((2nd𝐴) ·N (2nd𝐴)) ∈ N ∧ (1st𝐵) ∈ N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) ∈ N)
7666, 67, 75syl2anc 584 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)) ∈ N)
77 mulclpi 10649 . . . . . . . . . . . . . . 15 ((((2nd𝐴) ·N (2nd𝐴)) ∈ N ∧ (2nd𝐵) ∈ N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵)) ∈ N)
7866, 68, 77syl2anc 584 . . . . . . . . . . . . . 14 (((𝐴Q𝐵Q) ∧ 𝑦N) → (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵)) ∈ N)
7976, 78opelxpd 5627 . . . . . . . . . . . . 13 (((𝐴Q𝐵Q) ∧ 𝑦N) → ⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩ ∈ (N × N))
80 nqereq 10691 . . . . . . . . . . . . 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 584 . . . . . . . . . . . 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 231 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩) = ([Q]‘𝐵))
83 nqerid 10689 . . . . . . . . . . . 12 (𝐵Q → ([Q]‘𝐵) = 𝐵)
8483ad2antlr 724 . . . . . . . . . . 11 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘𝐵) = 𝐵)
8582, 84eqtrd 2778 . . . . . . . . . 10 (((𝐴Q𝐵Q) ∧ 𝑦N) → ([Q]‘⟨(((2nd𝐴) ·N (2nd𝐴)) ·N (1st𝐵)), (((2nd𝐴) ·N (2nd𝐴)) ·N (2nd𝐵))⟩) = 𝐵)
8663, 85eqeq12d 2754 . . . . . . . . 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, 86syl5ib 243 . . . . . . . 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 47 . . . . . . 7 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = 𝐵))
89 fvex 6787 . . . . . . . 8 ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) ∈ V
90 oveq2 7283 . . . . . . . . 9 (𝑥 = ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) → (𝐴 +Q 𝑥) = (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)))
9190eqeq1d 2740 . . . . . . . 8 (𝑥 = ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩) → ((𝐴 +Q 𝑥) = 𝐵 ↔ (𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = 𝐵))
9289, 91spcev 3545 . . . . . . 7 ((𝐴 +Q ([Q]‘⟨𝑦, ((2nd𝐴) ·N (2nd𝐵))⟩)) = 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵)
9388, 92syl6 35 . . . . . 6 (((𝐴Q𝐵Q) ∧ 𝑦N) → ((((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
9493rexlimdva 3213 . . . . 5 ((𝐴Q𝐵Q) → (∃𝑦N (((1st𝐴) ·N (2nd𝐵)) +N 𝑦) = ((1st𝐵) ·N (2nd𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
9521, 94sylbid 239 . . . 4 ((𝐴Q𝐵Q) → (((1st𝐴) ·N (2nd𝐵)) <N ((1st𝐵) ·N (2nd𝐴)) → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
963, 95sylbid 239 . . 3 ((𝐴Q𝐵Q) → (𝐴 <Q 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
972, 96mpcom 38 . 2 (𝐴 <Q 𝐵 → ∃𝑥(𝐴 +Q 𝑥) = 𝐵)
98 eleq1 2826 . . . . . . 7 ((𝐴 +Q 𝑥) = 𝐵 → ((𝐴 +Q 𝑥) ∈ Q𝐵Q))
9998biimparc 480 . . . . . 6 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → (𝐴 +Q 𝑥) ∈ Q)
100 addnqf 10704 . . . . . . . 8 +Q :(Q × Q)⟶Q
101100fdmi 6612 . . . . . . 7 dom +Q = (Q × Q)
102 0nnq 10680 . . . . . . 7 ¬ ∅ ∈ Q
103101, 102ndmovrcl 7458 . . . . . 6 ((𝐴 +Q 𝑥) ∈ Q → (𝐴Q𝑥Q))
104 ltaddnq 10730 . . . . . 6 ((𝐴Q𝑥Q) → 𝐴 <Q (𝐴 +Q 𝑥))
10599, 103, 1043syl 18 . . . . 5 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → 𝐴 <Q (𝐴 +Q 𝑥))
106 simpr 485 . . . . 5 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → (𝐴 +Q 𝑥) = 𝐵)
107105, 106breqtrd 5100 . . . 4 ((𝐵Q ∧ (𝐴 +Q 𝑥) = 𝐵) → 𝐴 <Q 𝐵)
108107ex 413 . . 3 (𝐵Q → ((𝐴 +Q 𝑥) = 𝐵𝐴 <Q 𝐵))
109108exlimdv 1936 . 2 (𝐵Q → (∃𝑥(𝐴 +Q 𝑥) = 𝐵𝐴 <Q 𝐵))
11097, 109impbid2 225 1 (𝐵Q → (𝐴 <Q 𝐵 ↔ ∃𝑥(𝐴 +Q 𝑥) = 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wex 1782  wcel 2106  wrex 3065  cop 4567   class class class wbr 5074   × cxp 5587  Rel wrel 5594  cfv 6433  (class class class)co 7275  1st c1st 7829  2nd c2nd 7830  Ncnpi 10600   +N cpli 10601   ·N cmi 10602   <N clti 10603   +pQ cplpq 10604   ~Q ceq 10607  Qcnq 10608  [Q]cerq 10610   +Q cplq 10611   <Q cltq 10614
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-int 4880  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-oadd 8301  df-omul 8302  df-er 8498  df-ni 10628  df-pli 10629  df-mi 10630  df-lti 10631  df-plpq 10664  df-mpq 10665  df-ltpq 10666  df-enq 10667  df-nq 10668  df-erq 10669  df-plq 10670  df-mq 10671  df-1nq 10672  df-ltnq 10674
This theorem is referenced by:  ltbtwnnq  10734  prnmadd  10753  ltexprlem4  10795  ltexprlem7  10798  prlem936  10803
  Copyright terms: Public domain W3C validator