Step |
Hyp |
Ref |
Expression |
1 |
|
fveq2 |
⊢ ( 𝑑 = 𝐷 → ( √ ‘ 𝑑 ) = ( √ ‘ 𝐷 ) ) |
2 |
1
|
oveq1d |
⊢ ( 𝑑 = 𝐷 → ( ( √ ‘ 𝑑 ) · 𝑤 ) = ( ( √ ‘ 𝐷 ) · 𝑤 ) ) |
3 |
2
|
oveq2d |
⊢ ( 𝑑 = 𝐷 → ( 𝑧 + ( ( √ ‘ 𝑑 ) · 𝑤 ) ) = ( 𝑧 + ( ( √ ‘ 𝐷 ) · 𝑤 ) ) ) |
4 |
3
|
eqeq2d |
⊢ ( 𝑑 = 𝐷 → ( 𝑦 = ( 𝑧 + ( ( √ ‘ 𝑑 ) · 𝑤 ) ) ↔ 𝑦 = ( 𝑧 + ( ( √ ‘ 𝐷 ) · 𝑤 ) ) ) ) |
5 |
|
oveq1 |
⊢ ( 𝑑 = 𝐷 → ( 𝑑 · ( 𝑤 ↑ 2 ) ) = ( 𝐷 · ( 𝑤 ↑ 2 ) ) ) |
6 |
5
|
oveq2d |
⊢ ( 𝑑 = 𝐷 → ( ( 𝑧 ↑ 2 ) − ( 𝑑 · ( 𝑤 ↑ 2 ) ) ) = ( ( 𝑧 ↑ 2 ) − ( 𝐷 · ( 𝑤 ↑ 2 ) ) ) ) |
7 |
6
|
eqeq1d |
⊢ ( 𝑑 = 𝐷 → ( ( ( 𝑧 ↑ 2 ) − ( 𝑑 · ( 𝑤 ↑ 2 ) ) ) = 1 ↔ ( ( 𝑧 ↑ 2 ) − ( 𝐷 · ( 𝑤 ↑ 2 ) ) ) = 1 ) ) |
8 |
4 7
|
anbi12d |
⊢ ( 𝑑 = 𝐷 → ( ( 𝑦 = ( 𝑧 + ( ( √ ‘ 𝑑 ) · 𝑤 ) ) ∧ ( ( 𝑧 ↑ 2 ) − ( 𝑑 · ( 𝑤 ↑ 2 ) ) ) = 1 ) ↔ ( 𝑦 = ( 𝑧 + ( ( √ ‘ 𝐷 ) · 𝑤 ) ) ∧ ( ( 𝑧 ↑ 2 ) − ( 𝐷 · ( 𝑤 ↑ 2 ) ) ) = 1 ) ) ) |
9 |
8
|
2rexbidv |
⊢ ( 𝑑 = 𝐷 → ( ∃ 𝑧 ∈ ℤ ∃ 𝑤 ∈ ℤ ( 𝑦 = ( 𝑧 + ( ( √ ‘ 𝑑 ) · 𝑤 ) ) ∧ ( ( 𝑧 ↑ 2 ) − ( 𝑑 · ( 𝑤 ↑ 2 ) ) ) = 1 ) ↔ ∃ 𝑧 ∈ ℤ ∃ 𝑤 ∈ ℤ ( 𝑦 = ( 𝑧 + ( ( √ ‘ 𝐷 ) · 𝑤 ) ) ∧ ( ( 𝑧 ↑ 2 ) − ( 𝐷 · ( 𝑤 ↑ 2 ) ) ) = 1 ) ) ) |
10 |
9
|
rabbidv |
⊢ ( 𝑑 = 𝐷 → { 𝑦 ∈ ℝ ∣ ∃ 𝑧 ∈ ℤ ∃ 𝑤 ∈ ℤ ( 𝑦 = ( 𝑧 + ( ( √ ‘ 𝑑 ) · 𝑤 ) ) ∧ ( ( 𝑧 ↑ 2 ) − ( 𝑑 · ( 𝑤 ↑ 2 ) ) ) = 1 ) } = { 𝑦 ∈ ℝ ∣ ∃ 𝑧 ∈ ℤ ∃ 𝑤 ∈ ℤ ( 𝑦 = ( 𝑧 + ( ( √ ‘ 𝐷 ) · 𝑤 ) ) ∧ ( ( 𝑧 ↑ 2 ) − ( 𝐷 · ( 𝑤 ↑ 2 ) ) ) = 1 ) } ) |
11 |
|
df-pell1234qr |
⊢ Pell1234QR = ( 𝑑 ∈ ( ℕ ∖ ◻NN ) ↦ { 𝑦 ∈ ℝ ∣ ∃ 𝑧 ∈ ℤ ∃ 𝑤 ∈ ℤ ( 𝑦 = ( 𝑧 + ( ( √ ‘ 𝑑 ) · 𝑤 ) ) ∧ ( ( 𝑧 ↑ 2 ) − ( 𝑑 · ( 𝑤 ↑ 2 ) ) ) = 1 ) } ) |
12 |
|
reex |
⊢ ℝ ∈ V |
13 |
12
|
rabex |
⊢ { 𝑦 ∈ ℝ ∣ ∃ 𝑧 ∈ ℤ ∃ 𝑤 ∈ ℤ ( 𝑦 = ( 𝑧 + ( ( √ ‘ 𝐷 ) · 𝑤 ) ) ∧ ( ( 𝑧 ↑ 2 ) − ( 𝐷 · ( 𝑤 ↑ 2 ) ) ) = 1 ) } ∈ V |
14 |
10 11 13
|
fvmpt |
⊢ ( 𝐷 ∈ ( ℕ ∖ ◻NN ) → ( Pell1234QR ‘ 𝐷 ) = { 𝑦 ∈ ℝ ∣ ∃ 𝑧 ∈ ℤ ∃ 𝑤 ∈ ℤ ( 𝑦 = ( 𝑧 + ( ( √ ‘ 𝐷 ) · 𝑤 ) ) ∧ ( ( 𝑧 ↑ 2 ) − ( 𝐷 · ( 𝑤 ↑ 2 ) ) ) = 1 ) } ) |