| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > lgsneg1 | Structured version Visualization version GIF version | ||
| Description: The Legendre symbol for nonnegative first parameter is unchanged by negation of the second. (Contributed by Mario Carneiro, 4-Feb-2015.) |
| Ref | Expression |
|---|---|
| lgsneg1 | ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ) → (𝐴 /L -𝑁) = (𝐴 /L 𝑁)) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | neg0 11478 | . . . 4 ⊢ -0 = 0 | |
| 2 | simpr 488 | . . . . 5 ⊢ (((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ) ∧ 𝑁 = 0) → 𝑁 = 0) | |
| 3 | 2 | negeqd 11425 | . . . 4 ⊢ (((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ) ∧ 𝑁 = 0) → -𝑁 = -0) |
| 4 | 1, 3, 2 | 3eqtr4a 2824 | . . 3 ⊢ (((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ) ∧ 𝑁 = 0) → -𝑁 = 𝑁) |
| 5 | 4 | oveq2d 7413 | . 2 ⊢ (((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ) ∧ 𝑁 = 0) → (𝐴 /L -𝑁) = (𝐴 /L 𝑁)) |
| 6 | nn0z 12593 | . . . . 5 ⊢ (𝐴 ∈ ℕ0 → 𝐴 ∈ ℤ) | |
| 7 | lgsneg 27386 | . . . . 5 ⊢ ((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (𝐴 /L -𝑁) = (if(𝐴 < 0, -1, 1) · (𝐴 /L 𝑁))) | |
| 8 | 6, 7 | syl3an1 1177 | . . . 4 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (𝐴 /L -𝑁) = (if(𝐴 < 0, -1, 1) · (𝐴 /L 𝑁))) |
| 9 | nn0nlt0 12508 | . . . . . . 7 ⊢ (𝐴 ∈ ℕ0 → ¬ 𝐴 < 0) | |
| 10 | 9 | 3ad2ant1 1147 | . . . . . 6 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → ¬ 𝐴 < 0) |
| 11 | 10 | iffalsed 4492 | . . . . 5 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → if(𝐴 < 0, -1, 1) = 1) |
| 12 | 11 | oveq1d 7412 | . . . 4 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (if(𝐴 < 0, -1, 1) · (𝐴 /L 𝑁)) = (1 · (𝐴 /L 𝑁))) |
| 13 | 6 | 3ad2ant1 1147 | . . . . . . 7 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → 𝐴 ∈ ℤ) |
| 14 | simp2 1151 | . . . . . . 7 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → 𝑁 ∈ ℤ) | |
| 15 | lgscl 27376 | . . . . . . 7 ⊢ ((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝐴 /L 𝑁) ∈ ℤ) | |
| 16 | 13, 14, 15 | syl2anc 593 | . . . . . 6 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (𝐴 /L 𝑁) ∈ ℤ) |
| 17 | 16 | zcnd 12679 | . . . . 5 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (𝐴 /L 𝑁) ∈ ℂ) |
| 18 | 17 | mullidd 11201 | . . . 4 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (1 · (𝐴 /L 𝑁)) = (𝐴 /L 𝑁)) |
| 19 | 8, 12, 18 | 3eqtrd 2802 | . . 3 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → (𝐴 /L -𝑁) = (𝐴 /L 𝑁)) |
| 20 | 19 | 3expa 1132 | . 2 ⊢ (((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ) ∧ 𝑁 ≠ 0) → (𝐴 /L -𝑁) = (𝐴 /L 𝑁)) |
| 21 | 5, 20 | pm2.61dane 3045 | 1 ⊢ ((𝐴 ∈ ℕ0 ∧ 𝑁 ∈ ℤ) → (𝐴 /L -𝑁) = (𝐴 /L 𝑁)) |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 → wi 4 ∧ wa 399 ∧ w3a 1099 = wceq 1561 ∈ wcel 2143 ≠ wne 2958 ifcif 4481 class class class wbr 5101 (class class class)co 7397 0cc0 11074 1c1 11075 · cmul 11079 < clt 11217 -cneg 11416 ℕ0cn0 12482 ℤcz 12569 /L clgs 27359 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1816 ax-4 1830 ax-5 1931 ax-6 1988 ax-7 2029 ax-8 2145 ax-9 2153 ax-10 2176 ax-11 2192 ax-12 2213 ax-ext 2735 ax-rep 5228 ax-sep 5247 ax-nul 5257 ax-pow 5323 ax-pr 5391 ax-un 7719 ax-cnex 11130 ax-resscn 11131 ax-1cn 11132 ax-icn 11133 ax-addcl 11134 ax-addrcl 11135 ax-mulcl 11136 ax-mulrcl 11137 ax-mulcom 11138 ax-addass 11139 ax-mulass 11140 ax-distr 11141 ax-i2m1 11142 ax-1ne0 11143 ax-1rid 11144 ax-rnegex 11145 ax-rrecex 11146 ax-cnre 11147 ax-pre-lttri 11148 ax-pre-lttrn 11149 ax-pre-ltadd 11150 ax-pre-mulgt0 11151 ax-pre-sup 11152 |
| This theorem depends on definitions: df-bi 209 df-an 400 df-or 859 df-3or 1100 df-3an 1101 df-tru 1564 df-fal 1574 df-ex 1801 df-nf 1805 df-sb 2092 df-mo 2567 df-eu 2597 df-clab 2742 df-cleq 2755 df-clel 2838 df-nfc 2912 df-ne 2959 df-nel 3063 df-ral 3078 df-rex 3088 df-rmo 3368 df-reu 3369 df-rab 3416 df-v 3457 df-sbc 3746 df-csb 3854 df-dif 3908 df-un 3910 df-in 3912 df-ss 3922 df-pss 3925 df-nul 4287 df-if 4482 df-pw 4558 df-sn 4584 df-pr 4586 df-op 4590 df-uni 4867 df-int 4907 df-iun 4952 df-br 5102 df-opab 5164 df-mpt 5183 df-tr 5209 df-id 5543 df-eprel 5548 df-po 5556 df-so 5557 df-fr 5601 df-we 5603 df-xp 5654 df-rel 5655 df-cnv 5656 df-co 5657 df-dm 5658 df-rn 5659 df-res 5660 df-ima 5661 df-pred 6289 df-ord 6350 df-on 6351 df-lim 6352 df-suc 6353 df-iota 6478 df-fun 6524 df-fn 6525 df-f 6526 df-f1 6527 df-fo 6528 df-f1o 6529 df-fv 6530 df-riota 7354 df-ov 7400 df-oprab 7401 df-mpo 7402 df-om 7848 df-1st 7971 df-2nd 7972 df-frecs 8263 df-wrecs 8294 df-recs 8343 df-rdg 8382 df-1o 8438 df-2o 8439 df-oadd 8442 df-er 8679 df-en 8929 df-dom 8930 df-sdom 8931 df-fin 8932 df-sup 9389 df-inf 9390 df-dju 9860 df-card 9898 df-pnf 11219 df-mnf 11220 df-xr 11221 df-ltxr 11222 df-le 11223 df-sub 11417 df-neg 11418 df-div 11846 df-nn 12212 df-2 12281 df-3 12282 df-n0 12483 df-xnn0 12556 df-z 12570 df-uz 12841 df-q 12951 df-rp 12995 df-fz 13514 df-fzo 13661 df-fl 13803 df-mod 13881 df-seq 14016 df-exp 14076 df-hash 14345 df-cj 15127 df-re 15128 df-im 15129 df-sqrt 15263 df-abs 15264 df-dvds 16288 df-gcd 16530 df-prm 16707 df-phi 16802 df-pc 16874 df-lgs 27360 |
| This theorem is referenced by: (None) |
| Copyright terms: Public domain | W3C validator |