![]() |
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 27322 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 27330 | . 2 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) | |
2 | 2sqreu.1 | . . . . . 6 ⊢ (𝜑 ↔ (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) | |
3 | 2 | bicomi 223 | . . . . 5 ⊢ ((𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ 𝜑) |
4 | 3 | reubii 3379 | . . . 4 ⊢ (∃!𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ0 𝜑) |
5 | 4 | reubii 3379 | . . 3 ⊢ (∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 𝜑) |
6 | 2 | 2sqreulem4 27338 | . . . 4 ⊢ ∀𝑎 ∈ ℕ0 ∃*𝑏 ∈ ℕ0 𝜑 |
7 | 2reu1 3886 | . . . 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 1533 ∈ wcel 2098 ∀wral 3055 ∃wrex 3064 ∃!wreu 3368 ∃*wrmo 3369 class class class wbr 5141 (class class class)co 7404 1c1 11110 + caddc 11112 ≤ cle 11250 2c2 12268 4c4 12270 ℕ0cn0 12473 mod cmo 13837 ↑cexp 14030 ℙcprime 16613 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1789 ax-4 1803 ax-5 1905 ax-6 1963 ax-7 2003 ax-8 2100 ax-9 2108 ax-10 2129 ax-11 2146 ax-12 2163 ax-ext 2697 ax-rep 5278 ax-sep 5292 ax-nul 5299 ax-pow 5356 ax-pr 5420 ax-un 7721 ax-cnex 11165 ax-resscn 11166 ax-1cn 11167 ax-icn 11168 ax-addcl 11169 ax-addrcl 11170 ax-mulcl 11171 ax-mulrcl 11172 ax-mulcom 11173 ax-addass 11174 ax-mulass 11175 ax-distr 11176 ax-i2m1 11177 ax-1ne0 11178 ax-1rid 11179 ax-rnegex 11180 ax-rrecex 11181 ax-cnre 11182 ax-pre-lttri 11183 ax-pre-lttrn 11184 ax-pre-ltadd 11185 ax-pre-mulgt0 11186 ax-pre-sup 11187 ax-addf 11188 ax-mulf 11189 |
This theorem depends on definitions: df-bi 206 df-an 396 df-or 845 df-3or 1085 df-3an 1086 df-tru 1536 df-fal 1546 df-ex 1774 df-nf 1778 df-sb 2060 df-mo 2528 df-eu 2557 df-clab 2704 df-cleq 2718 df-clel 2804 df-nfc 2879 df-ne 2935 df-nel 3041 df-ral 3056 df-rex 3065 df-rmo 3370 df-reu 3371 df-rab 3427 df-v 3470 df-sbc 3773 df-csb 3889 df-dif 3946 df-un 3948 df-in 3950 df-ss 3960 df-pss 3962 df-nul 4318 df-if 4524 df-pw 4599 df-sn 4624 df-pr 4626 df-tp 4628 df-op 4630 df-uni 4903 df-int 4944 df-iun 4992 df-iin 4993 df-br 5142 df-opab 5204 df-mpt 5225 df-tr 5259 df-id 5567 df-eprel 5573 df-po 5581 df-so 5582 df-fr 5624 df-se 5625 df-we 5626 df-xp 5675 df-rel 5676 df-cnv 5677 df-co 5678 df-dm 5679 df-rn 5680 df-res 5681 df-ima 5682 df-pred 6293 df-ord 6360 df-on 6361 df-lim 6362 df-suc 6363 df-iota 6488 df-fun 6538 df-fn 6539 df-f 6540 df-f1 6541 df-fo 6542 df-f1o 6543 df-fv 6544 df-isom 6545 df-riota 7360 df-ov 7407 df-oprab 7408 df-mpo 7409 df-of 7666 df-ofr 7667 df-om 7852 df-1st 7971 df-2nd 7972 df-supp 8144 df-tpos 8209 df-frecs 8264 df-wrecs 8295 df-recs 8369 df-rdg 8408 df-1o 8464 df-2o 8465 df-oadd 8468 df-er 8702 df-ec 8704 df-qs 8708 df-map 8821 df-pm 8822 df-ixp 8891 df-en 8939 df-dom 8940 df-sdom 8941 df-fin 8942 df-fsupp 9361 df-sup 9436 df-inf 9437 df-oi 9504 df-dju 9895 df-card 9933 df-pnf 11251 df-mnf 11252 df-xr 11253 df-ltxr 11254 df-le 11255 df-sub 11447 df-neg 11448 df-div 11873 df-nn 12214 df-2 12276 df-3 12277 df-4 12278 df-5 12279 df-6 12280 df-7 12281 df-8 12282 df-9 12283 df-n0 12474 df-xnn0 12546 df-z 12560 df-dec 12679 df-uz 12824 df-q 12934 df-rp 12978 df-fz 13488 df-fzo 13631 df-fl 13760 df-mod 13838 df-seq 13970 df-exp 14031 df-hash 14294 df-cj 15050 df-re 15051 df-im 15052 df-sqrt 15186 df-abs 15187 df-dvds 16203 df-gcd 16441 df-prm 16614 df-phi 16706 df-pc 16777 df-gz 16870 df-struct 17087 df-sets 17104 df-slot 17122 df-ndx 17134 df-base 17152 df-ress 17181 df-plusg 17217 df-mulr 17218 df-starv 17219 df-sca 17220 df-vsca 17221 df-ip 17222 df-tset 17223 df-ple 17224 df-ds 17226 df-unif 17227 df-hom 17228 df-cco 17229 df-0g 17394 df-gsum 17395 df-prds 17400 df-pws 17402 df-imas 17461 df-qus 17462 df-mre 17537 df-mrc 17538 df-acs 17540 df-mgm 18571 df-sgrp 18650 df-mnd 18666 df-mhm 18711 df-submnd 18712 df-grp 18864 df-minusg 18865 df-sbg 18866 df-mulg 18994 df-subg 19048 df-nsg 19049 df-eqg 19050 df-ghm 19137 df-cntz 19231 df-cmn 19700 df-abl 19701 df-mgp 20038 df-rng 20056 df-ur 20085 df-srg 20090 df-ring 20138 df-cring 20139 df-oppr 20234 df-dvdsr 20257 df-unit 20258 df-invr 20288 df-dvr 20301 df-rhm 20372 df-nzr 20413 df-subrng 20444 df-subrg 20469 df-drng 20587 df-field 20588 df-lmod 20706 df-lss 20777 df-lsp 20817 df-sra 21019 df-rgmod 21020 df-lidl 21065 df-rsp 21066 df-2idl 21105 df-rlreg 21191 df-domn 21192 df-idom 21193 df-cnfld 21237 df-zring 21330 df-zrh 21386 df-zn 21389 df-assa 21744 df-asp 21745 df-ascl 21746 df-psr 21799 df-mvr 21800 df-mpl 21801 df-opsr 21803 df-evls 21973 df-evl 21974 df-psr1 22050 df-vr1 22051 df-ply1 22052 df-coe1 22053 df-evl1 22186 df-mdeg 25939 df-deg1 25940 df-mon1 26017 df-uc1p 26018 df-q1p 26019 df-r1p 26020 df-lgs 27179 |
This theorem is referenced by: 2sqreuop 27346 |
Copyright terms: Public domain | W3C validator |