| 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 27706 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 27714 | . 2 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) | |
| 2 | 2sqreu.1 | . . . . . 6 ⊢ (𝜑 ↔ (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) | |
| 3 | 2 | bicomi 227 | . . . . 5 ⊢ ((𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ 𝜑) |
| 4 | 3 | reubii 3374 | . . . 4 ⊢ (∃!𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑏 ∈ ℕ0 𝜑) |
| 5 | 4 | reubii 3374 | . . 3 ⊢ (∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ ∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 𝜑) |
| 6 | 2 | 2sqreulem4 27722 | . . . 4 ⊢ ∀𝑎 ∈ ℕ0 ∃*𝑏 ∈ ℕ0 𝜑 |
| 7 | 2reu1 3845 | . . . 4 ⊢ (∀𝑎 ∈ ℕ0 ∃*𝑏 ∈ ℕ0 𝜑 → (∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 𝜑 ↔ (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 𝜑 ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 𝜑))) | |
| 8 | 6, 7 | mp1i 14 | . . 3 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → (∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 𝜑 ↔ (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 𝜑 ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 𝜑))) |
| 9 | 5, 8 | bitrid 286 | . 2 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → (∃!𝑎 ∈ ℕ0 ∃!𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 𝜑 ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 𝜑))) |
| 10 | 1, 9 | mpbid 235 | 1 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 𝜑 ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 𝜑)) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: → wi 4 ↔ wb 209 ∧ wa 401 = wceq 1570 ∈ wcel 2145 ∀wral 3076 ∃wrex 3086 ∃!wreu 3363 ∃*wrmo 3364 class class class wbr 5103 (class class class)co 7416 1c1 11150 + caddc 11152 ≤ cle 11293 2c2 12344 4c4 12346 ℕ0cn0 12553 mod cmo 13955 ↑cexp 14150 ℙcprime 16786 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1828 ax-4 1842 ax-5 1943 ax-6 2000 ax-7 2041 ax-8 2147 ax-9 2155 ax-10 2178 ax-11 2194 ax-12 2213 ax-ext 2732 ax-rep 5232 ax-sep 5251 ax-nul 5263 ax-pow 5330 ax-pr 5398 ax-un 7742 ax-cnex 11205 ax-resscn 11206 ax-1cn 11207 ax-icn 11208 ax-addcl 11209 ax-addrcl 11210 ax-mulcl 11211 ax-mulrcl 11212 ax-mulcom 11213 ax-addass 11214 ax-mulass 11215 ax-distr 11216 ax-i2m1 11217 ax-1ne0 11218 ax-1rid 11219 ax-rnegex 11220 ax-rrecex 11221 ax-cnre 11222 ax-pre-lttri 11223 ax-pre-lttrn 11224 ax-pre-ltadd 11225 ax-pre-mulgt0 11226 ax-pre-sup 11227 ax-addf 11228 ax-mulf 11229 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-3or 1104 df-3an 1105 df-tru 1573 df-fal 1583 df-ex 1813 df-nf 1817 df-sb 2100 df-mo 2564 df-eu 2594 df-clab 2739 df-cleq 2752 df-clel 2835 df-nfc 2909 df-ne 2956 df-nel 3062 df-ral 3077 df-rex 3087 df-rmo 3365 df-reu 3366 df-rab 3413 df-v 3452 df-sbc 3740 df-csb 3848 df-dif 3902 df-un 3904 df-in 3906 df-ss 3916 df-pss 3919 df-nul 4280 df-if 4483 df-pw 4559 df-sn 4585 df-pr 4587 df-tp 4589 df-op 4591 df-uni 4868 df-int 4908 df-iun 4953 df-iin 4954 df-br 5104 df-opab 5168 df-mpt 5187 df-tr 5213 df-id 5550 df-eprel 5555 df-po 5563 df-so 5564 df-fr 5608 df-se 5609 df-we 5610 df-xp 5661 df-rel 5662 df-cnv 5663 df-co 5664 df-dm 5665 df-rn 5666 df-res 5667 df-ima 5668 df-pred 6301 df-ord 6362 df-on 6363 df-lim 6364 df-suc 6365 df-iota 6491 df-fun 6537 df-fn 6538 df-f 6539 df-f1 6540 df-fo 6541 df-f1o 6542 df-fv 6543 df-isom 6544 df-riota 7373 df-ov 7419 df-oprab 7420 df-mpo 7421 df-of 7684 df-ofr 7685 df-om 7869 df-1st 7992 df-2nd 7993 df-supp 8164 df-tpos 8229 df-frecs 8285 df-wrecs 8316 df-recs 8365 df-rdg 8404 df-1o 8462 df-2o 8463 df-oadd 8466 df-er 8703 df-ec 8705 df-qs 8709 df-map 8835 df-pm 8836 df-ixp 8912 df-en 8960 df-dom 8961 df-sdom 8962 df-fin 8963 df-fsupp 9339 df-sup 9419 df-inf 9420 df-oi 9489 df-dju 9931 df-card 9969 df-pnf 11294 df-mnf 11295 df-xr 11296 df-ltxr 11297 df-le 11298 df-sub 11492 df-neg 11493 df-div 11921 df-nn 12283 df-2 12352 df-3 12353 df-4 12354 df-5 12355 df-6 12356 df-7 12357 df-8 12358 df-9 12359 df-n0 12554 df-xnn0 12627 df-z 12641 df-dec 12762 df-uz 12913 df-q 13023 df-rp 13068 df-fz 13587 df-fzo 13735 df-fl 13878 df-mod 13956 df-seq 14091 df-exp 14151 df-hash 14420 df-cj 15211 df-re 15212 df-im 15213 df-sqrt 15347 df-abs 15348 df-dvds 16368 df-gcd 16610 df-prm 16787 df-phi 16882 df-pc 16954 df-gz 17047 df-struct 17264 df-sets 17281 df-slot 17299 df-ndx 17311 df-base 17327 df-ress 17348 df-plusg 17380 df-mulr 17381 df-starv 17382 df-sca 17383 df-vsca 17384 df-ip 17385 df-tset 17386 df-ple 17387 df-ds 17389 df-unif 17390 df-hom 17391 df-cco 17392 df-0g 17551 df-gsum 17552 df-prds 17557 df-pws 17559 df-imas 17619 df-qus 17620 df-mre 17695 df-mrc 17696 df-acs 17698 df-mgm 18755 df-sgrp 18847 df-mnd 18863 df-mhm 18917 df-submnd 18918 df-grp 19086 df-minusg 19087 df-sbg 19088 df-mulg 19217 df-subg 19272 df-nsg 19273 df-eqg 19274 df-ghm 19367 df-cntz 19470 df-cmn 19935 df-abl 19936 df-mgp 20300 df-rng 20314 df-ur 20347 df-srg 20352 df-ring 20400 df-cring 20401 df-oppr 20506 df-dvdsr 20526 df-unit 20527 df-invr 20557 df-dvr 20570 df-rhm 20641 df-nzr 20702 df-subrng 20737 df-subrg 20761 df-rlreg 20885 df-domn 20886 df-idom 20887 df-drng 20921 df-field 20922 df-lmod 21076 df-lss 21146 df-lsp 21186 df-sra 21387 df-rgmod 21388 df-lidl 21425 df-rsp 21426 df-2idl 21482 df-cnfld 21618 df-zring 21692 df-zrh 21748 df-zn 21751 df-assa 22100 df-asp 22101 df-ascl 22102 df-psr 22156 df-mvr 22157 df-mpl 22158 df-opsr 22160 df-evls 22322 df-evl 22323 df-psr1 22437 df-vr1 22438 df-ply1 22439 df-coe1 22440 df-evl1 22573 df-mdeg 26312 df-deg1 26313 df-mon1 26388 df-uc1p 26389 df-q1p 26390 df-r1p 26391 df-lgs 27563 |
| This theorem is used by: 2sqreuop 27730 |
| Copyright terms: Public domain | W3C validator |