Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > 2sqreuoplt | Structured version Visualization version GIF version |
Description: There exists a unique decomposition of a prime as a sum of squares of two different nonnegative integers. Ordered pair variant of 2sqreult 26339. (Contributed by AV, 2-Jul-2023.) |
Ref | Expression |
---|---|
2sqreuoplt | ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃!𝑝 ∈ (ℕ0 × ℕ0)((1st ‘𝑝) < (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃)) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | biid 264 | . . 3 ⊢ ((𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ↔ (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) | |
2 | 1 | 2sqreult 26339 | . 2 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))) |
3 | fveq2 6717 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (1st ‘𝑝) = (1st ‘〈𝑎, 𝑏〉)) | |
4 | fveq2 6717 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (2nd ‘𝑝) = (2nd ‘〈𝑎, 𝑏〉)) | |
5 | 3, 4 | breq12d 5066 | . . . . 5 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((1st ‘𝑝) < (2nd ‘𝑝) ↔ (1st ‘〈𝑎, 𝑏〉) < (2nd ‘〈𝑎, 𝑏〉))) |
6 | vex 3412 | . . . . . . 7 ⊢ 𝑎 ∈ V | |
7 | vex 3412 | . . . . . . 7 ⊢ 𝑏 ∈ V | |
8 | 6, 7 | op1st 7769 | . . . . . 6 ⊢ (1st ‘〈𝑎, 𝑏〉) = 𝑎 |
9 | 6, 7 | op2nd 7770 | . . . . . 6 ⊢ (2nd ‘〈𝑎, 𝑏〉) = 𝑏 |
10 | 8, 9 | breq12i 5062 | . . . . 5 ⊢ ((1st ‘〈𝑎, 𝑏〉) < (2nd ‘〈𝑎, 𝑏〉) ↔ 𝑎 < 𝑏) |
11 | 5, 10 | bitrdi 290 | . . . 4 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((1st ‘𝑝) < (2nd ‘𝑝) ↔ 𝑎 < 𝑏)) |
12 | 6, 7 | op1std 7771 | . . . . . . 7 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (1st ‘𝑝) = 𝑎) |
13 | 12 | oveq1d 7228 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((1st ‘𝑝)↑2) = (𝑎↑2)) |
14 | 6, 7 | op2ndd 7772 | . . . . . . 7 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (2nd ‘𝑝) = 𝑏) |
15 | 14 | oveq1d 7228 | . . . . . 6 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((2nd ‘𝑝)↑2) = (𝑏↑2)) |
16 | 13, 15 | oveq12d 7231 | . . . . 5 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = ((𝑎↑2) + (𝑏↑2))) |
17 | 16 | eqeq1d 2739 | . . . 4 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → ((((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃 ↔ ((𝑎↑2) + (𝑏↑2)) = 𝑃)) |
18 | 11, 17 | anbi12d 634 | . . 3 ⊢ (𝑝 = 〈𝑎, 𝑏〉 → (((1st ‘𝑝) < (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃) ↔ (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))) |
19 | 18 | opreu2reurex 6157 | . 2 ⊢ (∃!𝑝 ∈ (ℕ0 × ℕ0)((1st ‘𝑝) < (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃) ↔ (∃!𝑎 ∈ ℕ0 ∃𝑏 ∈ ℕ0 (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃) ∧ ∃!𝑏 ∈ ℕ0 ∃𝑎 ∈ ℕ0 (𝑎 < 𝑏 ∧ ((𝑎↑2) + (𝑏↑2)) = 𝑃))) |
20 | 2, 19 | sylibr 237 | 1 ⊢ ((𝑃 ∈ ℙ ∧ (𝑃 mod 4) = 1) → ∃!𝑝 ∈ (ℕ0 × ℕ0)((1st ‘𝑝) < (2nd ‘𝑝) ∧ (((1st ‘𝑝)↑2) + ((2nd ‘𝑝)↑2)) = 𝑃)) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ∧ wa 399 = wceq 1543 ∈ wcel 2110 ∃wrex 3062 ∃!wreu 3063 〈cop 4547 class class class wbr 5053 × cxp 5549 ‘cfv 6380 (class class class)co 7213 1st c1st 7759 2nd c2nd 7760 1c1 10730 + caddc 10732 < clt 10867 2c2 11885 4c4 11887 ℕ0cn0 12090 mod cmo 13442 ↑cexp 13635 ℙcprime 16228 |
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 2112 ax-9 2120 ax-10 2141 ax-11 2158 ax-12 2175 ax-ext 2708 ax-rep 5179 ax-sep 5192 ax-nul 5199 ax-pow 5258 ax-pr 5322 ax-un 7523 ax-cnex 10785 ax-resscn 10786 ax-1cn 10787 ax-icn 10788 ax-addcl 10789 ax-addrcl 10790 ax-mulcl 10791 ax-mulrcl 10792 ax-mulcom 10793 ax-addass 10794 ax-mulass 10795 ax-distr 10796 ax-i2m1 10797 ax-1ne0 10798 ax-1rid 10799 ax-rnegex 10800 ax-rrecex 10801 ax-cnre 10802 ax-pre-lttri 10803 ax-pre-lttrn 10804 ax-pre-ltadd 10805 ax-pre-mulgt0 10806 ax-pre-sup 10807 ax-addf 10808 ax-mulf 10809 |
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 2071 df-mo 2539 df-eu 2568 df-clab 2715 df-cleq 2729 df-clel 2816 df-nfc 2886 df-ne 2941 df-nel 3047 df-ral 3066 df-rex 3067 df-reu 3068 df-rmo 3069 df-rab 3070 df-v 3410 df-sbc 3695 df-csb 3812 df-dif 3869 df-un 3871 df-in 3873 df-ss 3883 df-pss 3885 df-nul 4238 df-if 4440 df-pw 4515 df-sn 4542 df-pr 4544 df-tp 4546 df-op 4548 df-uni 4820 df-int 4860 df-iun 4906 df-iin 4907 df-br 5054 df-opab 5116 df-mpt 5136 df-tr 5162 df-id 5455 df-eprel 5460 df-po 5468 df-so 5469 df-fr 5509 df-se 5510 df-we 5511 df-xp 5557 df-rel 5558 df-cnv 5559 df-co 5560 df-dm 5561 df-rn 5562 df-res 5563 df-ima 5564 df-pred 6160 df-ord 6216 df-on 6217 df-lim 6218 df-suc 6219 df-iota 6338 df-fun 6382 df-fn 6383 df-f 6384 df-f1 6385 df-fo 6386 df-f1o 6387 df-fv 6388 df-isom 6389 df-riota 7170 df-ov 7216 df-oprab 7217 df-mpo 7218 df-of 7469 df-ofr 7470 df-om 7645 df-1st 7761 df-2nd 7762 df-supp 7904 df-tpos 7968 df-wrecs 8047 df-recs 8108 df-rdg 8146 df-1o 8202 df-2o 8203 df-oadd 8206 df-er 8391 df-ec 8393 df-qs 8397 df-map 8510 df-pm 8511 df-ixp 8579 df-en 8627 df-dom 8628 df-sdom 8629 df-fin 8630 df-fsupp 8986 df-sup 9058 df-inf 9059 df-oi 9126 df-dju 9517 df-card 9555 df-pnf 10869 df-mnf 10870 df-xr 10871 df-ltxr 10872 df-le 10873 df-sub 11064 df-neg 11065 df-div 11490 df-nn 11831 df-2 11893 df-3 11894 df-4 11895 df-5 11896 df-6 11897 df-7 11898 df-8 11899 df-9 11900 df-n0 12091 df-xnn0 12163 df-z 12177 df-dec 12294 df-uz 12439 df-q 12545 df-rp 12587 df-fz 13096 df-fzo 13239 df-fl 13367 df-mod 13443 df-seq 13575 df-exp 13636 df-hash 13897 df-cj 14662 df-re 14663 df-im 14664 df-sqrt 14798 df-abs 14799 df-dvds 15816 df-gcd 16054 df-prm 16229 df-phi 16319 df-pc 16390 df-gz 16483 df-struct 16700 df-sets 16717 df-slot 16735 df-ndx 16745 df-base 16761 df-ress 16785 df-plusg 16815 df-mulr 16816 df-starv 16817 df-sca 16818 df-vsca 16819 df-ip 16820 df-tset 16821 df-ple 16822 df-ds 16824 df-unif 16825 df-hom 16826 df-cco 16827 df-0g 16946 df-gsum 16947 df-prds 16952 df-pws 16954 df-imas 17013 df-qus 17014 df-mre 17089 df-mrc 17090 df-acs 17092 df-mgm 18114 df-sgrp 18163 df-mnd 18174 df-mhm 18218 df-submnd 18219 df-grp 18368 df-minusg 18369 df-sbg 18370 df-mulg 18489 df-subg 18540 df-nsg 18541 df-eqg 18542 df-ghm 18620 df-cntz 18711 df-cmn 19172 df-abl 19173 df-mgp 19505 df-ur 19517 df-srg 19521 df-ring 19564 df-cring 19565 df-oppr 19641 df-dvdsr 19659 df-unit 19660 df-invr 19690 df-dvr 19701 df-rnghom 19735 df-drng 19769 df-field 19770 df-subrg 19798 df-lmod 19901 df-lss 19969 df-lsp 20009 df-sra 20209 df-rgmod 20210 df-lidl 20211 df-rsp 20212 df-2idl 20270 df-nzr 20296 df-rlreg 20321 df-domn 20322 df-idom 20323 df-cnfld 20364 df-zring 20436 df-zrh 20470 df-zn 20473 df-assa 20815 df-asp 20816 df-ascl 20817 df-psr 20868 df-mvr 20869 df-mpl 20870 df-opsr 20872 df-evls 21032 df-evl 21033 df-psr1 21101 df-vr1 21102 df-ply1 21103 df-coe1 21104 df-evl1 21232 df-mdeg 24950 df-deg1 24951 df-mon1 25028 df-uc1p 25029 df-q1p 25030 df-r1p 25031 df-lgs 26176 |
This theorem is referenced by: (None) |
Copyright terms: Public domain | W3C validator |