| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > 2sqreuop | 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. Ordered pair variant of 2sqreu 27374. (Contributed by AV, 2-Jul-2023.) |
| Ref | Expression |
|---|---|
| 2sqreuop | ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃!𝑝 ∈ (ℕ0 × ℕ0)((1st ‘𝑝) ≤ (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃)) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | biid 261 | . . 3 ⊢ ((𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) | |
| 2 | 1 | 2sqreu 27374 | . 2 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))) |
| 3 | fveq2 6861 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (1st ‘𝑝) = (1st ‘〈𝑎, 𝑏〉)) | |
| 4 | fveq2 6861 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (2nd ‘𝑝) = (2nd ‘〈𝑎, 𝑏〉)) | |
| 5 | 3, 4 | breq12d 5123 | . . . . 5 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((1st ‘𝑝) ≤ (2nd ‘𝑝) ↔ (1st ‘〈𝑎, 𝑏〉) ≤ (2nd ‘〈𝑎, 𝑏〉))) |
| 6 | vex 3454 | . . . . . . 7 ⊢ 𝑎 ∈ V | |
| 7 | vex 3454 | . . . . . . 7 ⊢ 𝑏 ∈ V | |
| 8 | 6, 7 | op1st 7979 | . . . . . 6 ⊢ (1st ‘〈𝑎, 𝑏〉) = 𝑎 |
| 9 | 6, 7 | op2nd 7980 | . . . . . 6 ⊢ (2nd ‘〈𝑎, 𝑏〉) = 𝑏 |
| 10 | 8, 9 | breq12i 5119 | . . . . 5 ⊢ ((1st ‘〈𝑎, 𝑏〉) ≤ (2nd ‘〈𝑎, 𝑏〉) ↔ 𝑎 ≤ 𝑏) |
| 11 | 5, 10 | bitrdi 287 | . . . 4 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((1st ‘𝑝) ≤ (2nd ‘𝑝) ↔ 𝑎 ≤ 𝑏)) |
| 12 | 6, 7 | op1std 7981 | . . . . . . 7 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (1st ‘𝑝) = 𝑎) |
| 13 | 12 | oveq1d 7405 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((1st ‘𝑝)↑2) = (𝑎↑2)) |
| 14 | 6, 7 | op2ndd 7982 | . . . . . . 7 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (2nd ‘𝑝) = 𝑏) |
| 15 | 14 | oveq1d 7405 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((2nd ‘𝑝)↑2) = (𝑏↑2)) |
| 16 | 13, 15 | oveq12d 7408 | . . . . 5 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = ((𝑎↑2) + (𝑏↑2))) |
| 17 | 16 | eqeq1d 2732 | . . . 4 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃 ↔ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) |
| 18 | 11, 17 | anbi12d 632 | . . 3 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (((1st ‘𝑝) ≤ (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃) ↔ (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))) |
| 19 | 18 | opreu2reurex 6270 | . 2 ⊢ (∃!𝑝 ∈ (ℕ0 × ℕ0)((1st ‘𝑝) ≤ (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃) ↔ (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 (𝑎 ≤ 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))) |
| 20 | 2, 19 | sylibr 234 | 1 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃!𝑝 ∈ (ℕ0 × ℕ0)((1st ‘𝑝) ≤ (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃)) |
| Colors of variables: wff setvar class |
| Syntax hints: → wi 4 ∧ wa 395 = wceq 1540 ∈ wcel 2109 ∃wrex 3054 ∃!wreu 3354 〈cop 4598 class class class wbr 5110 × cxp 5639 ‘cfv 6514 (class class class)co 7390 1st c1st 7969 2nd c2nd 7970 1c1 11076 + caddc 11078 ≤ cle 11216 2c2 12248 4c4 12250 ℕ0cn0 12449 mod cmo 13838 ↑cexp 14033 ℙcprime 16648 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1795 ax-4 1809 ax-5 1910 ax-6 1967 ax-7 2008 ax-8 2111 ax-9 2119 ax-10 2142 ax-11 2158 ax-12 2178 ax-ext 2702 ax-rep 5237 ax-sep 5254 ax-nul 5264 ax-pow 5323 ax-pr 5390 ax-un 7714 ax-cnex 11131 ax-resscn 11132 ax-1cn 11133 ax-icn 11134 ax-addcl 11135 ax-addrcl 11136 ax-mulcl 11137 ax-mulrcl 11138 ax-mulcom 11139 ax-addass 11140 ax-mulass 11141 ax-distr 11142 ax-i2m1 11143 ax-1ne0 11144 ax-1rid 11145 ax-rnegex 11146 ax-rrecex 11147 ax-cnre 11148 ax-pre-lttri 11149 ax-pre-lttrn 11150 ax-pre-ltadd 11151 ax-pre-mulgt0 11152 ax-pre-sup 11153 ax-addf 11154 ax-mulf 11155 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 848 df-3or 1087 df-3an 1088 df-tru 1543 df-fal 1553 df-ex 1780 df-nf 1784 df-sb 2066 df-mo 2534 df-eu 2563 df-clab 2709 df-cleq 2722 df-clel 2804 df-nfc 2879 df-ne 2927 df-nel 3031 df-ral 3046 df-rex 3055 df-rmo 3356 df-reu 3357 df-rab 3409 df-v 3452 df-sbc 3757 df-csb 3866 df-dif 3920 df-un 3922 df-in 3924 df-ss 3934 df-pss 3937 df-nul 4300 df-if 4492 df-pw 4568 df-sn 4593 df-pr 4595 df-tp 4597 df-op 4599 df-uni 4875 df-int 4914 df-iun 4960 df-iin 4961 df-br 5111 df-opab 5173 df-mpt 5192 df-tr 5218 df-id 5536 df-eprel 5541 df-po 5549 df-so 5550 df-fr 5594 df-se 5595 df-we 5596 df-xp 5647 df-rel 5648 df-cnv 5649 df-co 5650 df-dm 5651 df-rn 5652 df-res 5653 df-ima 5654 df-pred 6277 df-ord 6338 df-on 6339 df-lim 6340 df-suc 6341 df-iota 6467 df-fun 6516 df-fn 6517 df-f 6518 df-f1 6519 df-fo 6520 df-f1o 6521 df-fv 6522 df-isom 6523 df-riota 7347 df-ov 7393 df-oprab 7394 df-mpo 7395 df-of 7656 df-ofr 7657 df-om 7846 df-1st 7971 df-2nd 7972 df-supp 8143 df-tpos 8208 df-frecs 8263 df-wrecs 8294 df-recs 8343 df-rdg 8381 df-1o 8437 df-2o 8438 df-oadd 8441 df-er 8674 df-ec 8676 df-qs 8680 df-map 8804 df-pm 8805 df-ixp 8874 df-en 8922 df-dom 8923 df-sdom 8924 df-fin 8925 df-fsupp 9320 df-sup 9400 df-inf 9401 df-oi 9470 df-dju 9861 df-card 9899 df-pnf 11217 df-mnf 11218 df-xr 11219 df-ltxr 11220 df-le 11221 df-sub 11414 df-neg 11415 df-div 11843 df-nn 12194 df-2 12256 df-3 12257 df-4 12258 df-5 12259 df-6 12260 df-7 12261 df-8 12262 df-9 12263 df-n0 12450 df-xnn0 12523 df-z 12537 df-dec 12657 df-uz 12801 df-q 12915 df-rp 12959 df-fz 13476 df-fzo 13623 df-fl 13761 df-mod 13839 df-seq 13974 df-exp 14034 df-hash 14303 df-cj 15072 df-re 15073 df-im 15074 df-sqrt 15208 df-abs 15209 df-dvds 16230 df-gcd 16472 df-prm 16649 df-phi 16743 df-pc 16815 df-gz 16908 df-struct 17124 df-sets 17141 df-slot 17159 df-ndx 17171 df-base 17187 df-ress 17208 df-plusg 17240 df-mulr 17241 df-starv 17242 df-sca 17243 df-vsca 17244 df-ip 17245 df-tset 17246 df-ple 17247 df-ds 17249 df-unif 17250 df-hom 17251 df-cco 17252 df-0g 17411 df-gsum 17412 df-prds 17417 df-pws 17419 df-imas 17478 df-qus 17479 df-mre 17554 df-mrc 17555 df-acs 17557 df-mgm 18574 df-sgrp 18653 df-mnd 18669 df-mhm 18717 df-submnd 18718 df-grp 18875 df-minusg 18876 df-sbg 18877 df-mulg 19007 df-subg 19062 df-nsg 19063 df-eqg 19064 df-ghm 19152 df-cntz 19256 df-cmn 19719 df-abl 19720 df-mgp 20057 df-rng 20069 df-ur 20098 df-srg 20103 df-ring 20151 df-cring 20152 df-oppr 20253 df-dvdsr 20273 df-unit 20274 df-invr 20304 df-dvr 20317 df-rhm 20388 df-nzr 20429 df-subrng 20462 df-subrg 20486 df-rlreg 20610 df-domn 20611 df-idom 20612 df-drng 20647 df-field 20648 df-lmod 20775 df-lss 20845 df-lsp 20885 df-sra 21087 df-rgmod 21088 df-lidl 21125 df-rsp 21126 df-2idl 21167 df-cnfld 21272 df-zring 21364 df-zrh 21420 df-zn 21423 df-assa 21769 df-asp 21770 df-ascl 21771 df-psr 21825 df-mvr 21826 df-mpl 21827 df-opsr 21829 df-evls 21988 df-evl 21989 df-psr1 22071 df-vr1 22072 df-ply1 22073 df-coe1 22074 df-evl1 22210 df-mdeg 25967 df-deg1 25968 df-mon1 26043 df-uc1p 26044 df-q1p 26045 df-r1p 26046 df-lgs 27213 |
| This theorem is referenced by: (None) |
| Copyright terms: Public domain | W3C validator |