Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > 2sqreuopnnltb | Structured version Visualization version GIF version |
Description: There exists a unique decomposition of a prime as a sum of squares of two different positive integers iff the prime is of the form 4𝑘 + 1. Ordered pair variant of 2sqreunnltb 26366. (Contributed by AV, 3-Jul-2023.) |
Ref | Expression |
---|---|
2sqreuopnnltb | ⊢ (𝑃 ∈ ℙ → ((𝑃 mod 4) = 1 ↔ ∃!𝑝 ∈ (ℕ × ℕ)((1st ‘𝑝) < (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃))) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | biid 264 | . . 3 ⊢ ((𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) | |
2 | 1 | 2sqreunnltb 26366 | . 2 ⊢ (𝑃 ∈ ℙ → ((𝑃 mod 4) = 1 ↔ (∃!𝑎 ∈ ℕ ∃𝑏 ∈ ℕ (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ∧ ∃!𝑏 ∈ ℕ ∃𝑎 ∈ ℕ (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)))) |
3 | fveq2 6735 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (1st ‘𝑝) = (1st ‘〈𝑎, 𝑏〉)) | |
4 | fveq2 6735 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (2nd ‘𝑝) = (2nd ‘〈𝑎, 𝑏〉)) | |
5 | 3, 4 | breq12d 5080 | . . . . 5 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((1st ‘𝑝) < (2nd ‘𝑝) ↔ (1st ‘〈𝑎, 𝑏〉) < (2nd ‘〈𝑎, 𝑏〉))) |
6 | vex 3424 | . . . . . . 7 ⊢ 𝑎 ∈ V | |
7 | vex 3424 | . . . . . . 7 ⊢ 𝑏 ∈ V | |
8 | 6, 7 | op1st 7787 | . . . . . 6 ⊢ (1st ‘〈𝑎, 𝑏〉) = 𝑎 |
9 | 6, 7 | op2nd 7788 | . . . . . 6 ⊢ (2nd ‘〈𝑎, 𝑏〉) = 𝑏 |
10 | 8, 9 | breq12i 5076 | . . . . 5 ⊢ ((1st ‘〈𝑎, 𝑏〉) < (2nd ‘〈𝑎, 𝑏〉) ↔ 𝑎 < 𝑏) |
11 | 5, 10 | bitrdi 290 | . . . 4 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((1st ‘𝑝) < (2nd ‘𝑝) ↔ 𝑎 < 𝑏)) |
12 | 6, 7 | op1std 7789 | . . . . . . 7 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (1st ‘𝑝) = 𝑎) |
13 | 12 | oveq1d 7246 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((1st ‘𝑝)↑2) = (𝑎↑2)) |
14 | 6, 7 | op2ndd 7790 | . . . . . . 7 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (2nd ‘𝑝) = 𝑏) |
15 | 14 | oveq1d 7246 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((2nd ‘𝑝)↑2) = (𝑏↑2)) |
16 | 13, 15 | oveq12d 7249 | . . . . 5 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = ((𝑎↑2) + (𝑏↑2))) |
17 | 16 | eqeq1d 2740 | . . . 4 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃 ↔ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) |
18 | 11, 17 | anbi12d 634 | . . 3 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (((1st ‘𝑝) < (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃) ↔ (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))) |
19 | 18 | opreu2reurex 6171 | . 2 ⊢ (∃!𝑝 ∈ (ℕ × ℕ)((1st ‘𝑝) < (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃) ↔ (∃!𝑎 ∈ ℕ ∃𝑏 ∈ ℕ (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ∧ ∃!𝑏 ∈ ℕ ∃𝑎 ∈ ℕ (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))) |
20 | 2, 19 | bitr4di 292 | 1 ⊢ (𝑃 ∈ ℙ → ((𝑃 mod 4) = 1 ↔ ∃!𝑝 ∈ (ℕ × ℕ)((1st ‘𝑝) < (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃))) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ↔ wb 209 ∧ wa 399 = wceq 1543 ∈ wcel 2111 ∃wrex 3063 ∃!wreu 3064 〈cop 4561 class class class wbr 5067 × cxp 5563 ‘cfv 6397 (class class class)co 7231 1st c1st 7777 2nd c2nd 7778 1c1 10754 + caddc 10756 < clt 10891 ℕcn 11854 2c2 11909 4c4 11911 mod cmo 13466 ↑cexp 13659 ℙcprime 16252 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1803 ax-4 1817 ax-5 1918 ax-6 1976 ax-7 2016 ax-8 2113 ax-9 2121 ax-10 2142 ax-11 2159 ax-12 2176 ax-ext 2709 ax-rep 5193 ax-sep 5206 ax-nul 5213 ax-pow 5272 ax-pr 5336 ax-un 7541 ax-cnex 10809 ax-resscn 10810 ax-1cn 10811 ax-icn 10812 ax-addcl 10813 ax-addrcl 10814 ax-mulcl 10815 ax-mulrcl 10816 ax-mulcom 10817 ax-addass 10818 ax-mulass 10819 ax-distr 10820 ax-i2m1 10821 ax-1ne0 10822 ax-1rid 10823 ax-rnegex 10824 ax-rrecex 10825 ax-cnre 10826 ax-pre-lttri 10827 ax-pre-lttrn 10828 ax-pre-ltadd 10829 ax-pre-mulgt0 10830 ax-pre-sup 10831 ax-addf 10832 ax-mulf 10833 |
This theorem depends on definitions: df-bi 210 df-an 400 df-or 848 df-3or 1090 df-3an 1091 df-tru 1546 df-fal 1556 df-ex 1788 df-nf 1792 df-sb 2072 df-mo 2540 df-eu 2569 df-clab 2716 df-cleq 2730 df-clel 2817 df-nfc 2887 df-ne 2942 df-nel 3048 df-ral 3067 df-rex 3068 df-reu 3069 df-rmo 3070 df-rab 3071 df-v 3422 df-sbc 3709 df-csb 3826 df-dif 3883 df-un 3885 df-in 3887 df-ss 3897 df-pss 3899 df-nul 4252 df-if 4454 df-pw 4529 df-sn 4556 df-pr 4558 df-tp 4560 df-op 4562 df-uni 4834 df-int 4874 df-iun 4920 df-iin 4921 df-br 5068 df-opab 5130 df-mpt 5150 df-tr 5176 df-id 5469 df-eprel 5474 df-po 5482 df-so 5483 df-fr 5523 df-se 5524 df-we 5525 df-xp 5571 df-rel 5572 df-cnv 5573 df-co 5574 df-dm 5575 df-rn 5576 df-res 5577 df-ima 5578 df-pred 6175 df-ord 6233 df-on 6234 df-lim 6235 df-suc 6236 df-iota 6355 df-fun 6399 df-fn 6400 df-f 6401 df-f1 6402 df-fo 6403 df-f1o 6404 df-fv 6405 df-isom 6406 df-riota 7188 df-ov 7234 df-oprab 7235 df-mpo 7236 df-of 7487 df-ofr 7488 df-om 7663 df-1st 7779 df-2nd 7780 df-supp 7924 df-tpos 7988 df-wrecs 8067 df-recs 8128 df-rdg 8166 df-1o 8222 df-2o 8223 df-oadd 8226 df-er 8411 df-ec 8413 df-qs 8417 df-map 8530 df-pm 8531 df-ixp 8599 df-en 8647 df-dom 8648 df-sdom 8649 df-fin 8650 df-fsupp 9010 df-sup 9082 df-inf 9083 df-oi 9150 df-dju 9541 df-card 9579 df-pnf 10893 df-mnf 10894 df-xr 10895 df-ltxr 10896 df-le 10897 df-sub 11088 df-neg 11089 df-div 11514 df-nn 11855 df-2 11917 df-3 11918 df-4 11919 df-5 11920 df-6 11921 df-7 11922 df-8 11923 df-9 11924 df-n0 12115 df-xnn0 12187 df-z 12201 df-dec 12318 df-uz 12463 df-q 12569 df-rp 12611 df-fz 13120 df-fzo 13263 df-fl 13391 df-mod 13467 df-seq 13599 df-exp 13660 df-hash 13921 df-cj 14686 df-re 14687 df-im 14688 df-sqrt 14822 df-abs 14823 df-dvds 15840 df-gcd 16078 df-prm 16253 df-phi 16343 df-pc 16414 df-gz 16507 df-struct 16724 df-sets 16741 df-slot 16759 df-ndx 16769 df-base 16785 df-ress 16809 df-plusg 16839 df-mulr 16840 df-starv 16841 df-sca 16842 df-vsca 16843 df-ip 16844 df-tset 16845 df-ple 16846 df-ds 16848 df-unif 16849 df-hom 16850 df-cco 16851 df-0g 16970 df-gsum 16971 df-prds 16976 df-pws 16978 df-imas 17037 df-qus 17038 df-mre 17113 df-mrc 17114 df-acs 17116 df-mgm 18138 df-sgrp 18187 df-mnd 18198 df-mhm 18242 df-submnd 18243 df-grp 18392 df-minusg 18393 df-sbg 18394 df-mulg 18513 df-subg 18564 df-nsg 18565 df-eqg 18566 df-ghm 18644 df-cntz 18735 df-cmn 19196 df-abl 19197 df-mgp 19529 df-ur 19541 df-srg 19545 df-ring 19588 df-cring 19589 df-oppr 19665 df-dvdsr 19683 df-unit 19684 df-invr 19714 df-dvr 19725 df-rnghom 19759 df-drng 19793 df-field 19794 df-subrg 19822 df-lmod 19925 df-lss 19993 df-lsp 20033 df-sra 20233 df-rgmod 20234 df-lidl 20235 df-rsp 20236 df-2idl 20294 df-nzr 20320 df-rlreg 20345 df-domn 20346 df-idom 20347 df-cnfld 20388 df-zring 20460 df-zrh 20494 df-zn 20497 df-assa 20839 df-asp 20840 df-ascl 20841 df-psr 20892 df-mvr 20893 df-mpl 20894 df-opsr 20896 df-evls 21056 df-evl 21057 df-psr1 21125 df-vr1 21126 df-ply1 21127 df-coe1 21128 df-evl1 21256 df-mdeg 24974 df-deg1 24975 df-mon1 25052 df-uc1p 25053 df-q1p 25054 df-r1p 25055 df-lgs 26200 |
This theorem is referenced by: 2sqreuopb 26373 |
Copyright terms: Public domain | W3C validator |