Users' Mathboxes Mathbox for Stefan O'Rear < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  pell1qr1 Structured version   Visualization version   GIF version

Theorem pell1qr1 39560
Description: 1 is a Pell solution and in the first quadrant as one. (Contributed by Stefan O'Rear, 17-Sep-2014.)
Assertion
Ref Expression
pell1qr1 (𝐷 ∈ (ℕ ∖ ◻NN) → 1 ∈ (Pell1QR‘𝐷))

Proof of Theorem pell1qr1
Dummy variables 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 1red 10628 . 2 (𝐷 ∈ (ℕ ∖ ◻NN) → 1 ∈ ℝ)
2 1nn0 11900 . . . 4 1 ∈ ℕ0
32a1i 11 . . 3 (𝐷 ∈ (ℕ ∖ ◻NN) → 1 ∈ ℕ0)
4 0nn0 11899 . . . 4 0 ∈ ℕ0
54a1i 11 . . 3 (𝐷 ∈ (ℕ ∖ ◻NN) → 0 ∈ ℕ0)
6 eldifi 4091 . . . . . . . 8 (𝐷 ∈ (ℕ ∖ ◻NN) → 𝐷 ∈ ℕ)
76nncnd 11640 . . . . . . 7 (𝐷 ∈ (ℕ ∖ ◻NN) → 𝐷 ∈ ℂ)
87sqrtcld 14782 . . . . . 6 (𝐷 ∈ (ℕ ∖ ◻NN) → (√‘𝐷) ∈ ℂ)
98mul01d 10825 . . . . 5 (𝐷 ∈ (ℕ ∖ ◻NN) → ((√‘𝐷) · 0) = 0)
109oveq2d 7158 . . . 4 (𝐷 ∈ (ℕ ∖ ◻NN) → (1 + ((√‘𝐷) · 0)) = (1 + 0))
11 1p0e1 11748 . . . 4 (1 + 0) = 1
1210, 11syl6req 2873 . . 3 (𝐷 ∈ (ℕ ∖ ◻NN) → 1 = (1 + ((√‘𝐷) · 0)))
13 sq1 13548 . . . . . 6 (1↑2) = 1
1413a1i 11 . . . . 5 (𝐷 ∈ (ℕ ∖ ◻NN) → (1↑2) = 1)
15 sq0 13545 . . . . . . 7 (0↑2) = 0
1615oveq2i 7153 . . . . . 6 (𝐷 · (0↑2)) = (𝐷 · 0)
177mul01d 10825 . . . . . 6 (𝐷 ∈ (ℕ ∖ ◻NN) → (𝐷 · 0) = 0)
1816, 17syl5eq 2868 . . . . 5 (𝐷 ∈ (ℕ ∖ ◻NN) → (𝐷 · (0↑2)) = 0)
1914, 18oveq12d 7160 . . . 4 (𝐷 ∈ (ℕ ∖ ◻NN) → ((1↑2) − (𝐷 · (0↑2))) = (1 − 0))
20 1m0e1 11745 . . . 4 (1 − 0) = 1
2119, 20syl6eq 2872 . . 3 (𝐷 ∈ (ℕ ∖ ◻NN) → ((1↑2) − (𝐷 · (0↑2))) = 1)
22 oveq1 7149 . . . . . 6 (𝑎 = 1 → (𝑎 + ((√‘𝐷) · 𝑏)) = (1 + ((√‘𝐷) · 𝑏)))
2322eqeq2d 2832 . . . . 5 (𝑎 = 1 → (1 = (𝑎 + ((√‘𝐷) · 𝑏)) ↔ 1 = (1 + ((√‘𝐷) · 𝑏))))
24 oveq1 7149 . . . . . . 7 (𝑎 = 1 → (𝑎↑2) = (1↑2))
2524oveq1d 7157 . . . . . 6 (𝑎 = 1 → ((𝑎↑2) − (𝐷 · (𝑏↑2))) = ((1↑2) − (𝐷 · (𝑏↑2))))
2625eqeq1d 2823 . . . . 5 (𝑎 = 1 → (((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1 ↔ ((1↑2) − (𝐷 · (𝑏↑2))) = 1))
2723, 26anbi12d 632 . . . 4 (𝑎 = 1 → ((1 = (𝑎 + ((√‘𝐷) · 𝑏)) ∧ ((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1) ↔ (1 = (1 + ((√‘𝐷) · 𝑏)) ∧ ((1↑2) − (𝐷 · (𝑏↑2))) = 1)))
28 oveq2 7150 . . . . . . 7 (𝑏 = 0 → ((√‘𝐷) · 𝑏) = ((√‘𝐷) · 0))
2928oveq2d 7158 . . . . . 6 (𝑏 = 0 → (1 + ((√‘𝐷) · 𝑏)) = (1 + ((√‘𝐷) · 0)))
3029eqeq2d 2832 . . . . 5 (𝑏 = 0 → (1 = (1 + ((√‘𝐷) · 𝑏)) ↔ 1 = (1 + ((√‘𝐷) · 0))))
31 oveq1 7149 . . . . . . . 8 (𝑏 = 0 → (𝑏↑2) = (0↑2))
3231oveq2d 7158 . . . . . . 7 (𝑏 = 0 → (𝐷 · (𝑏↑2)) = (𝐷 · (0↑2)))
3332oveq2d 7158 . . . . . 6 (𝑏 = 0 → ((1↑2) − (𝐷 · (𝑏↑2))) = ((1↑2) − (𝐷 · (0↑2))))
3433eqeq1d 2823 . . . . 5 (𝑏 = 0 → (((1↑2) − (𝐷 · (𝑏↑2))) = 1 ↔ ((1↑2) − (𝐷 · (0↑2))) = 1))
3530, 34anbi12d 632 . . . 4 (𝑏 = 0 → ((1 = (1 + ((√‘𝐷) · 𝑏)) ∧ ((1↑2) − (𝐷 · (𝑏↑2))) = 1) ↔ (1 = (1 + ((√‘𝐷) · 0)) ∧ ((1↑2) − (𝐷 · (0↑2))) = 1)))
3627, 35rspc2ev 3627 . . 3 ((1 ∈ ℕ0 ∧ 0 ∈ ℕ0 ∧ (1 = (1 + ((√‘𝐷) · 0)) ∧ ((1↑2) − (𝐷 · (0↑2))) = 1)) → ∃𝑎 ∈ ℕ0𝑏 ∈ ℕ0 (1 = (𝑎 + ((√‘𝐷) · 𝑏)) ∧ ((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1))
373, 5, 12, 21, 36syl112anc 1370 . 2 (𝐷 ∈ (ℕ ∖ ◻NN) → ∃𝑎 ∈ ℕ0𝑏 ∈ ℕ0 (1 = (𝑎 + ((√‘𝐷) · 𝑏)) ∧ ((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1))
38 elpell1qr 39536 . 2 (𝐷 ∈ (ℕ ∖ ◻NN) → (1 ∈ (Pell1QR‘𝐷) ↔ (1 ∈ ℝ ∧ ∃𝑎 ∈ ℕ0𝑏 ∈ ℕ0 (1 = (𝑎 + ((√‘𝐷) · 𝑏)) ∧ ((𝑎↑2) − (𝐷 · (𝑏↑2))) = 1))))
391, 37, 38mpbir2and 711 1 (𝐷 ∈ (ℕ ∖ ◻NN) → 1 ∈ (Pell1QR‘𝐷))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1537  wcel 2114  wrex 3139  cdif 3921  cfv 6341  (class class class)co 7142  cr 10522  0cc0 10523  1c1 10524   + caddc 10526   · cmul 10528  cmin 10856  cn 11624  2c2 11679  0cn0 11884  cexp 13419  csqrt 14577  NNcsquarenn 39525  Pell1QRcpell1qr 39526
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5189  ax-nul 5196  ax-pow 5252  ax-pr 5316  ax-un 7447  ax-cnex 10579  ax-resscn 10580  ax-1cn 10581  ax-icn 10582  ax-addcl 10583  ax-addrcl 10584  ax-mulcl 10585  ax-mulrcl 10586  ax-mulcom 10587  ax-addass 10588  ax-mulass 10589  ax-distr 10590  ax-i2m1 10591  ax-1ne0 10592  ax-1rid 10593  ax-rnegex 10594  ax-rrecex 10595  ax-cnre 10596  ax-pre-lttri 10597  ax-pre-lttrn 10598  ax-pre-ltadd 10599  ax-pre-mulgt0 10600  ax-pre-sup 10601
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-nel 3124  df-ral 3143  df-rex 3144  df-reu 3145  df-rmo 3146  df-rab 3147  df-v 3488  df-sbc 3764  df-csb 3872  df-dif 3927  df-un 3929  df-in 3931  df-ss 3940  df-pss 3942  df-nul 4280  df-if 4454  df-pw 4527  df-sn 4554  df-pr 4556  df-tp 4558  df-op 4560  df-uni 4825  df-iun 4907  df-br 5053  df-opab 5115  df-mpt 5133  df-tr 5159  df-id 5446  df-eprel 5451  df-po 5460  df-so 5461  df-fr 5500  df-we 5502  df-xp 5547  df-rel 5548  df-cnv 5549  df-co 5550  df-dm 5551  df-rn 5552  df-res 5553  df-ima 5554  df-pred 6134  df-ord 6180  df-on 6181  df-lim 6182  df-suc 6183  df-iota 6300  df-fun 6343  df-fn 6344  df-f 6345  df-f1 6346  df-fo 6347  df-f1o 6348  df-fv 6349  df-riota 7100  df-ov 7145  df-oprab 7146  df-mpo 7147  df-om 7567  df-2nd 7676  df-wrecs 7933  df-recs 7994  df-rdg 8032  df-er 8275  df-en 8496  df-dom 8497  df-sdom 8498  df-sup 8892  df-pnf 10663  df-mnf 10664  df-xr 10665  df-ltxr 10666  df-le 10667  df-sub 10858  df-neg 10859  df-div 11284  df-nn 11625  df-2 11687  df-3 11688  df-n0 11885  df-z 11969  df-uz 12231  df-rp 12377  df-seq 13360  df-exp 13420  df-cj 14443  df-re 14444  df-im 14445  df-sqrt 14579  df-abs 14580  df-pell1qr 39531
This theorem is referenced by:  elpell1qr2  39561
  Copyright terms: Public domain W3C validator