Step | Hyp | Ref
| Expression |
1 | | nn0re 12172 |
. . . . 5
⊢ (𝐴 ∈ ℕ0
→ 𝐴 ∈
ℝ) |
2 | 1 | 3ad2ant2 1132 |
. . . 4
⊢ ((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
→ 𝐴 ∈
ℝ) |
3 | | eldifi 4057 |
. . . . . . . . 9
⊢ (𝐷 ∈ (ℕ ∖
◻NN) → 𝐷 ∈ ℕ) |
4 | 3 | 3ad2ant1 1131 |
. . . . . . . 8
⊢ ((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
→ 𝐷 ∈
ℕ) |
5 | 4 | nnrpd 12699 |
. . . . . . 7
⊢ ((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
→ 𝐷 ∈
ℝ+) |
6 | 5 | rpsqrtcld 15051 |
. . . . . 6
⊢ ((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
→ (√‘𝐷)
∈ ℝ+) |
7 | 6 | rpred 12701 |
. . . . 5
⊢ ((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
→ (√‘𝐷)
∈ ℝ) |
8 | | nn0re 12172 |
. . . . . 6
⊢ (𝐵 ∈ ℕ0
→ 𝐵 ∈
ℝ) |
9 | 8 | 3ad2ant3 1133 |
. . . . 5
⊢ ((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
→ 𝐵 ∈
ℝ) |
10 | 7, 9 | remulcld 10936 |
. . . 4
⊢ ((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
→ ((√‘𝐷)
· 𝐵) ∈
ℝ) |
11 | 2, 10 | readdcld 10935 |
. . 3
⊢ ((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
→ (𝐴 +
((√‘𝐷) ·
𝐵)) ∈
ℝ) |
12 | 11 | adantr 480 |
. 2
⊢ (((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
∧ ((𝐴↑2) −
(𝐷 · (𝐵↑2))) = 1) → (𝐴 + ((√‘𝐷) · 𝐵)) ∈ ℝ) |
13 | | simpl2 1190 |
. . 3
⊢ (((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
∧ ((𝐴↑2) −
(𝐷 · (𝐵↑2))) = 1) → 𝐴 ∈
ℕ0) |
14 | | simpl3 1191 |
. . 3
⊢ (((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
∧ ((𝐴↑2) −
(𝐷 · (𝐵↑2))) = 1) → 𝐵 ∈
ℕ0) |
15 | | eqidd 2739 |
. . 3
⊢ (((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
∧ ((𝐴↑2) −
(𝐷 · (𝐵↑2))) = 1) → (𝐴 + ((√‘𝐷) · 𝐵)) = (𝐴 + ((√‘𝐷) · 𝐵))) |
16 | | simpr 484 |
. . 3
⊢ (((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
∧ ((𝐴↑2) −
(𝐷 · (𝐵↑2))) = 1) → ((𝐴↑2) − (𝐷 · (𝐵↑2))) = 1) |
17 | | oveq1 7262 |
. . . . . 6
⊢ (𝑎 = 𝐴 → (𝑎 + ((√‘𝐷) · 𝑏)) = (𝐴 + ((√‘𝐷) · 𝑏))) |
18 | 17 | eqeq2d 2749 |
. . . . 5
⊢ (𝑎 = 𝐴 → ((𝐴 + ((√‘𝐷) · 𝐵)) = (𝑎 + ((√‘𝐷) · 𝑏)) ↔ (𝐴 + ((√‘𝐷) · 𝐵)) = (𝐴 + ((√‘𝐷) · 𝑏)))) |
19 | | oveq1 7262 |
. . . . . . 7
⊢ (𝑎 = 𝐴 → (𝑎↑2) = (𝐴↑2)) |
20 | 19 | oveq1d 7270 |
. . . . . 6
⊢ (𝑎 = 𝐴 → ((𝑎↑2) − (𝐷 · (𝑏↑2))) = ((𝐴↑2) − (𝐷 · (𝑏↑2)))) |
21 | 20 | eqeq1d 2740 |
. . . . 5
⊢ (𝑎 = 𝐴 → (((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1 ↔ ((𝐴↑2) − (𝐷 · (𝑏↑2))) = 1)) |
22 | 18, 21 | anbi12d 630 |
. . . 4
⊢ (𝑎 = 𝐴 → (((𝐴 + ((√‘𝐷) · 𝐵)) = (𝑎 + ((√‘𝐷) · 𝑏)) ∧ ((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1) ↔ ((𝐴 + ((√‘𝐷) · 𝐵)) = (𝐴 + ((√‘𝐷) · 𝑏)) ∧ ((𝐴↑2) − (𝐷 · (𝑏↑2))) = 1))) |
23 | | oveq2 7263 |
. . . . . . 7
⊢ (𝑏 = 𝐵 → ((√‘𝐷) · 𝑏) = ((√‘𝐷) · 𝐵)) |
24 | 23 | oveq2d 7271 |
. . . . . 6
⊢ (𝑏 = 𝐵 → (𝐴 + ((√‘𝐷) · 𝑏)) = (𝐴 + ((√‘𝐷) · 𝐵))) |
25 | 24 | eqeq2d 2749 |
. . . . 5
⊢ (𝑏 = 𝐵 → ((𝐴 + ((√‘𝐷) · 𝐵)) = (𝐴 + ((√‘𝐷) · 𝑏)) ↔ (𝐴 + ((√‘𝐷) · 𝐵)) = (𝐴 + ((√‘𝐷) · 𝐵)))) |
26 | | oveq1 7262 |
. . . . . . . 8
⊢ (𝑏 = 𝐵 → (𝑏↑2) = (𝐵↑2)) |
27 | 26 | oveq2d 7271 |
. . . . . . 7
⊢ (𝑏 = 𝐵 → (𝐷 · (𝑏↑2)) = (𝐷 · (𝐵↑2))) |
28 | 27 | oveq2d 7271 |
. . . . . 6
⊢ (𝑏 = 𝐵 → ((𝐴↑2) − (𝐷 · (𝑏↑2))) = ((𝐴↑2) − (𝐷 · (𝐵↑2)))) |
29 | 28 | eqeq1d 2740 |
. . . . 5
⊢ (𝑏 = 𝐵 → (((𝐴↑2) − (𝐷 · (𝑏↑2))) = 1 ↔ ((𝐴↑2) − (𝐷 · (𝐵↑2))) = 1)) |
30 | 25, 29 | anbi12d 630 |
. . . 4
⊢ (𝑏 = 𝐵 → (((𝐴 + ((√‘𝐷) · 𝐵)) = (𝐴 + ((√‘𝐷) · 𝑏)) ∧ ((𝐴↑2) − (𝐷 · (𝑏↑2))) = 1) ↔ ((𝐴 + ((√‘𝐷) · 𝐵)) = (𝐴 + ((√‘𝐷) · 𝐵)) ∧ ((𝐴↑2) − (𝐷 · (𝐵↑2))) = 1))) |
31 | 22, 30 | rspc2ev 3564 |
. . 3
⊢ ((𝐴 ∈ ℕ0
∧ 𝐵 ∈
ℕ0 ∧ ((𝐴 + ((√‘𝐷) · 𝐵)) = (𝐴 + ((√‘𝐷) · 𝐵)) ∧ ((𝐴↑2) − (𝐷 · (𝐵↑2))) = 1)) → ∃𝑎 ∈ ℕ0
∃𝑏 ∈
ℕ0 ((𝐴 +
((√‘𝐷) ·
𝐵)) = (𝑎 + ((√‘𝐷) · 𝑏)) ∧ ((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1)) |
32 | 13, 14, 15, 16, 31 | syl112anc 1372 |
. 2
⊢ (((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
∧ ((𝐴↑2) −
(𝐷 · (𝐵↑2))) = 1) →
∃𝑎 ∈
ℕ0 ∃𝑏 ∈ ℕ0 ((𝐴 + ((√‘𝐷) · 𝐵)) = (𝑎 + ((√‘𝐷) · 𝑏)) ∧ ((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1)) |
33 | | elpell1qr 40585 |
. . . 4
⊢ (𝐷 ∈ (ℕ ∖
◻NN) → ((𝐴 + ((√‘𝐷) · 𝐵)) ∈ (Pell1QR‘𝐷) ↔ ((𝐴 + ((√‘𝐷) · 𝐵)) ∈ ℝ ∧ ∃𝑎 ∈ ℕ0
∃𝑏 ∈
ℕ0 ((𝐴 +
((√‘𝐷) ·
𝐵)) = (𝑎 + ((√‘𝐷) · 𝑏)) ∧ ((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1)))) |
34 | 33 | 3ad2ant1 1131 |
. . 3
⊢ ((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
→ ((𝐴 +
((√‘𝐷) ·
𝐵)) ∈
(Pell1QR‘𝐷) ↔
((𝐴 + ((√‘𝐷) · 𝐵)) ∈ ℝ ∧ ∃𝑎 ∈ ℕ0
∃𝑏 ∈
ℕ0 ((𝐴 +
((√‘𝐷) ·
𝐵)) = (𝑎 + ((√‘𝐷) · 𝑏)) ∧ ((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1)))) |
35 | 34 | adantr 480 |
. 2
⊢ (((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
∧ ((𝐴↑2) −
(𝐷 · (𝐵↑2))) = 1) → ((𝐴 + ((√‘𝐷) · 𝐵)) ∈ (Pell1QR‘𝐷) ↔ ((𝐴 + ((√‘𝐷) · 𝐵)) ∈ ℝ ∧ ∃𝑎 ∈ ℕ0
∃𝑏 ∈
ℕ0 ((𝐴 +
((√‘𝐷) ·
𝐵)) = (𝑎 + ((√‘𝐷) · 𝑏)) ∧ ((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1)))) |
36 | 12, 32, 35 | mpbir2and 709 |
1
⊢ (((𝐷 ∈ (ℕ ∖
◻NN) ∧ 𝐴 ∈ ℕ0 ∧ 𝐵 ∈ ℕ0)
∧ ((𝐴↑2) −
(𝐷 · (𝐵↑2))) = 1) → (𝐴 + ((√‘𝐷) · 𝐵)) ∈ (Pell1QR‘𝐷)) |