![]() |
Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
|
Mirrors > Home > MPE Home > Th. List > 2sqreu | Structured version Visualization version GIF version |
Description: There exists a unique decomposition of a prime of the form 4𝑘 + 1 as a sum of squares of two nonnegative integers. See 2sqnn0 27384 for the existence of such a decomposition. (Contributed by AV, 4-Jun-2023.) (Revised by AV, 25-Jun-2023.) |
Ref | Expression |
---|---|
2sqreu.1 | ⊢ (𝜑 ↔ (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) |
Ref | Expression |
---|---|
2sqreu | ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 𝜑 ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 𝜑)) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | 2sqreulem1 27392 | . 2 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) | |
2 | 2sqreu.1 | . . . . . 6 ⊢ (𝜑 ↔ (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) | |
3 | 2 | bicomi 223 | . . . . 5 ⊢ ((𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ 𝜑) |
4 | 3 | reubii 3382 | . . . 4 ⊢ (∃!𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ0 𝜑) |
5 | 4 | reubii 3382 | . . 3 ⊢ (∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 𝜑) |
6 | 2 | 2sqreulem4 27400 | . . . 4 ⊢ ∀𝑎 ∈ ℕ0 ∃*𝑏 ∈ ℕ0 𝜑 |
7 | 2reu1 3890 | . . . 4 ⊢ (∀𝑎 ∈ ℕ0 ∃*𝑏 ∈ ℕ0 𝜑 → (∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 𝜑 ↔ (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 𝜑 ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 𝜑))) | |
8 | 6, 7 | mp1i 13 | . . 3 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → (∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 𝜑 ↔ (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 𝜑 ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 𝜑))) |
9 | 5, 8 | bitrid 283 | . 2 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → (∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 𝜑 ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 𝜑))) |
10 | 1, 9 | mpbid 231 | 1 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 𝜑 ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 𝜑)) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ↔ wb 205 ∧ wa 395 = wceq 1534 ∈ wcel 2099 ∀wral 3058 ∃wrex 3067 ∃!wreu 3371 ∃*wrmo 3372 class class class wbr 5148 (class class class)co 7420 1c1 11140 + caddc 11142 ≤ cle 11280 2c2 12298 4c4 12300 ℕ0cn0 12503 mod cmo 13867 ↑cexp 14059 ℙcprime 16642 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1790 ax-4 1804 ax-5 1906 ax-6 1964 ax-7 2004 ax-8 2101 ax-9 2109 ax-10 2130 ax-11 2147 ax-12 2167 ax-ext 2699 ax-rep 5285 ax-sep 5299 ax-nul 5306 ax-pow 5365 ax-pr 5429 ax-un 7740 ax-cnex 11195 ax-resscn 11196 ax-1cn 11197 ax-icn 11198 ax-addcl 11199 ax-addrcl 11200 ax-mulcl 11201 ax-mulrcl 11202 ax-mulcom 11203 ax-addass 11204 ax-mulass 11205 ax-distr 11206 ax-i2m1 11207 ax-1ne0 11208 ax-1rid 11209 ax-rnegex 11210 ax-rrecex 11211 ax-cnre 11212 ax-pre-lttri 11213 ax-pre-lttrn 11214 ax-pre-ltadd 11215 ax-pre-mulgt0 11216 ax-pre-sup 11217 ax-addf 11218 ax-mulf 11219 |
This theorem depends on definitions: df-bi 206 df-an 396 df-or 847 df-3or 1086 df-3an 1087 df-tru 1537 df-fal 1547 df-ex 1775 df-nf 1779 df-sb 2061 df-mo 2530 df-eu 2559 df-clab 2706 df-cleq 2720 df-clel 2806 df-nfc 2881 df-ne 2938 df-nel 3044 df-ral 3059 df-rex 3068 df-rmo 3373 df-reu 3374 df-rab 3430 df-v 3473 df-sbc 3777 df-csb 3893 df-dif 3950 df-un 3952 df-in 3954 df-ss 3964 df-pss 3966 df-nul 4324 df-if 4530 df-pw 4605 df-sn 4630 df-pr 4632 df-tp 4634 df-op 4636 df-uni 4909 df-int 4950 df-iun 4998 df-iin 4999 df-br 5149 df-opab 5211 df-mpt 5232 df-tr 5266 df-id 5576 df-eprel 5582 df-po 5590 df-so 5591 df-fr 5633 df-se 5634 df-we 5635 df-xp 5684 df-rel 5685 df-cnv 5686 df-co 5687 df-dm 5688 df-rn 5689 df-res 5690 df-ima 5691 df-pred 6305 df-ord 6372 df-on 6373 df-lim 6374 df-suc 6375 df-iota 6500 df-fun 6550 df-fn 6551 df-f 6552 df-f1 6553 df-fo 6554 df-f1o 6555 df-fv 6556 df-isom 6557 df-riota 7376 df-ov 7423 df-oprab 7424 df-mpo 7425 df-of 7685 df-ofr 7686 df-om 7871 df-1st 7993 df-2nd 7994 df-supp 8166 df-tpos 8232 df-frecs 8287 df-wrecs 8318 df-recs 8392 df-rdg 8431 df-1o 8487 df-2o 8488 df-oadd 8491 df-er 8725 df-ec 8727 df-qs 8731 df-map 8847 df-pm 8848 df-ixp 8917 df-en 8965 df-dom 8966 df-sdom 8967 df-fin 8968 df-fsupp 9387 df-sup 9466 df-inf 9467 df-oi 9534 df-dju 9925 df-card 9963 df-pnf 11281 df-mnf 11282 df-xr 11283 df-ltxr 11284 df-le 11285 df-sub 11477 df-neg 11478 df-div 11903 df-nn 12244 df-2 12306 df-3 12307 df-4 12308 df-5 12309 df-6 12310 df-7 12311 df-8 12312 df-9 12313 df-n0 12504 df-xnn0 12576 df-z 12590 df-dec 12709 df-uz 12854 df-q 12964 df-rp 13008 df-fz 13518 df-fzo 13661 df-fl 13790 df-mod 13868 df-seq 14000 df-exp 14060 df-hash 14323 df-cj 15079 df-re 15080 df-im 15081 df-sqrt 15215 df-abs 15216 df-dvds 16232 df-gcd 16470 df-prm 16643 df-phi 16735 df-pc 16806 df-gz 16899 df-struct 17116 df-sets 17133 df-slot 17151 df-ndx 17163 df-base 17181 df-ress 17210 df-plusg 17246 df-mulr 17247 df-starv 17248 df-sca 17249 df-vsca 17250 df-ip 17251 df-tset 17252 df-ple 17253 df-ds 17255 df-unif 17256 df-hom 17257 df-cco 17258 df-0g 17423 df-gsum 17424 df-prds 17429 df-pws 17431 df-imas 17490 df-qus 17491 df-mre 17566 df-mrc 17567 df-acs 17569 df-mgm 18600 df-sgrp 18679 df-mnd 18695 df-mhm 18740 df-submnd 18741 df-grp 18893 df-minusg 18894 df-sbg 18895 df-mulg 19024 df-subg 19078 df-nsg 19079 df-eqg 19080 df-ghm 19168 df-cntz 19268 df-cmn 19737 df-abl 19738 df-mgp 20075 df-rng 20093 df-ur 20122 df-srg 20127 df-ring 20175 df-cring 20176 df-oppr 20273 df-dvdsr 20296 df-unit 20297 df-invr 20327 df-dvr 20340 df-rhm 20411 df-nzr 20452 df-subrng 20483 df-subrg 20508 df-drng 20626 df-field 20627 df-lmod 20745 df-lss 20816 df-lsp 20856 df-sra 21058 df-rgmod 21059 df-lidl 21104 df-rsp 21105 df-2idl 21144 df-rlreg 21230 df-domn 21231 df-idom 21232 df-cnfld 21280 df-zring 21373 df-zrh 21429 df-zn 21432 df-assa 21787 df-asp 21788 df-ascl 21789 df-psr 21842 df-mvr 21843 df-mpl 21844 df-opsr 21846 df-evls 22018 df-evl 22019 df-psr1 22099 df-vr1 22100 df-ply1 22101 df-coe1 22102 df-evl1 22235 df-mdeg 26001 df-deg1 26002 df-mon1 26079 df-uc1p 26080 df-q1p 26081 df-r1p 26082 df-lgs 27241 |
This theorem is referenced by: 2sqreuop 27408 |
Copyright terms: Public domain | W3C validator |