| Intuitionistic Logic Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > ILE Home > Th. List > fsumdvds | GIF version | ||
| Description: If every term in a sum is divisible by 𝑁, then so is the sum. (Contributed by Mario Carneiro, 17-Jan-2015.) |
| Ref | Expression |
|---|---|
| fsumdvds.1 | ⊢ (𝜑 → 𝐴 ∈ Fin) |
| fsumdvds.2 | ⊢ (𝜑 → 𝑁 ∈ ℤ) |
| fsumdvds.3 | ⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℤ) |
| fsumdvds.4 | ⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝑁 ∥ 𝐵) |
| Ref | Expression |
|---|---|
| fsumdvds | ⊢ (𝜑 → 𝑁 ∥ Σ𝑘 ∈ 𝐴 𝐵) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | 0z 9425 | . . . 4 ⊢ 0 ∈ ℤ | |
| 2 | dvds0 12283 | . . . 4 ⊢ (0 ∈ ℤ → 0 ∥ 0) | |
| 3 | 1, 2 | mp1i 10 | . . 3 ⊢ ((𝜑 ∧ 𝑁 = 0) → 0 ∥ 0) |
| 4 | simpr 110 | . . 3 ⊢ ((𝜑 ∧ 𝑁 = 0) → 𝑁 = 0) | |
| 5 | simplr 528 | . . . . . . 7 ⊢ (((𝜑 ∧ 𝑁 = 0) ∧ 𝑘 ∈ 𝐴) → 𝑁 = 0) | |
| 6 | fsumdvds.4 | . . . . . . . 8 ⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝑁 ∥ 𝐵) | |
| 7 | 6 | adantlr 477 | . . . . . . 7 ⊢ (((𝜑 ∧ 𝑁 = 0) ∧ 𝑘 ∈ 𝐴) → 𝑁 ∥ 𝐵) |
| 8 | 5, 7 | eqbrtrrd 4086 | . . . . . 6 ⊢ (((𝜑 ∧ 𝑁 = 0) ∧ 𝑘 ∈ 𝐴) → 0 ∥ 𝐵) |
| 9 | fsumdvds.3 | . . . . . . . 8 ⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℤ) | |
| 10 | 9 | adantlr 477 | . . . . . . 7 ⊢ (((𝜑 ∧ 𝑁 = 0) ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℤ) |
| 11 | 0dvds 12288 | . . . . . . 7 ⊢ (𝐵 ∈ ℤ → (0 ∥ 𝐵 ↔ 𝐵 = 0)) | |
| 12 | 10, 11 | syl 14 | . . . . . 6 ⊢ (((𝜑 ∧ 𝑁 = 0) ∧ 𝑘 ∈ 𝐴) → (0 ∥ 𝐵 ↔ 𝐵 = 0)) |
| 13 | 8, 12 | mpbid 147 | . . . . 5 ⊢ (((𝜑 ∧ 𝑁 = 0) ∧ 𝑘 ∈ 𝐴) → 𝐵 = 0) |
| 14 | 13 | sumeq2dv 11845 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 = 0) → Σ𝑘 ∈ 𝐴 𝐵 = Σ𝑘 ∈ 𝐴 0) |
| 15 | fsumdvds.1 | . . . . . . 7 ⊢ (𝜑 → 𝐴 ∈ Fin) | |
| 16 | 15 | adantr 276 | . . . . . 6 ⊢ ((𝜑 ∧ 𝑁 = 0) → 𝐴 ∈ Fin) |
| 17 | 16 | olcd 738 | . . . . 5 ⊢ ((𝜑 ∧ 𝑁 = 0) → ((0 ∈ ℤ ∧ 𝐴 ⊆ (ℤ≥‘0) ∧ ∀𝑗 ∈ (ℤ≥‘0)DECID 𝑗 ∈ 𝐴) ∨ 𝐴 ∈ Fin)) |
| 18 | isumz 11866 | . . . . 5 ⊢ (((0 ∈ ℤ ∧ 𝐴 ⊆ (ℤ≥‘0) ∧ ∀𝑗 ∈ (ℤ≥‘0)DECID 𝑗 ∈ 𝐴) ∨ 𝐴 ∈ Fin) → Σ𝑘 ∈ 𝐴 0 = 0) | |
| 19 | 17, 18 | syl 14 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 = 0) → Σ𝑘 ∈ 𝐴 0 = 0) |
| 20 | 14, 19 | eqtrd 2242 | . . 3 ⊢ ((𝜑 ∧ 𝑁 = 0) → Σ𝑘 ∈ 𝐴 𝐵 = 0) |
| 21 | 3, 4, 20 | 3brtr4d 4094 | . 2 ⊢ ((𝜑 ∧ 𝑁 = 0) → 𝑁 ∥ Σ𝑘 ∈ 𝐴 𝐵) |
| 22 | 15 | adantr 276 | . . . . 5 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → 𝐴 ∈ Fin) |
| 23 | fsumdvds.2 | . . . . . . 7 ⊢ (𝜑 → 𝑁 ∈ ℤ) | |
| 24 | 23 | adantr 276 | . . . . . 6 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → 𝑁 ∈ ℤ) |
| 25 | 24 | zcnd 9538 | . . . . 5 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → 𝑁 ∈ ℂ) |
| 26 | 9 | adantlr 477 | . . . . . 6 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℤ) |
| 27 | 26 | zcnd 9538 | . . . . 5 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ) |
| 28 | zapne 9489 | . . . . . . 7 ⊢ ((𝑁 ∈ ℤ ∧ 0 ∈ ℤ) → (𝑁 # 0 ↔ 𝑁 ≠ 0)) | |
| 29 | 23, 1, 28 | sylancl 413 | . . . . . 6 ⊢ (𝜑 → (𝑁 # 0 ↔ 𝑁 ≠ 0)) |
| 30 | 29 | biimpar 297 | . . . . 5 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → 𝑁 # 0) |
| 31 | 22, 25, 27, 30 | fsumdivapc 11927 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → (Σ𝑘 ∈ 𝐴 𝐵 / 𝑁) = Σ𝑘 ∈ 𝐴 (𝐵 / 𝑁)) |
| 32 | 6 | adantlr 477 | . . . . . 6 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → 𝑁 ∥ 𝐵) |
| 33 | 24 | adantr 276 | . . . . . . 7 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → 𝑁 ∈ ℤ) |
| 34 | simplr 528 | . . . . . . 7 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → 𝑁 ≠ 0) | |
| 35 | dvdsval2 12267 | . . . . . . 7 ⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0 ∧ 𝐵 ∈ ℤ) → (𝑁 ∥ 𝐵 ↔ (𝐵 / 𝑁) ∈ ℤ)) | |
| 36 | 33, 34, 26, 35 | syl3anc 1252 | . . . . . 6 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → (𝑁 ∥ 𝐵 ↔ (𝐵 / 𝑁) ∈ ℤ)) |
| 37 | 32, 36 | mpbid 147 | . . . . 5 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → (𝐵 / 𝑁) ∈ ℤ) |
| 38 | 22, 37 | fsumzcl 11879 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → Σ𝑘 ∈ 𝐴 (𝐵 / 𝑁) ∈ ℤ) |
| 39 | 31, 38 | eqeltrd 2286 | . . 3 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → (Σ𝑘 ∈ 𝐴 𝐵 / 𝑁) ∈ ℤ) |
| 40 | simpr 110 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → 𝑁 ≠ 0) | |
| 41 | 15, 9 | fsumzcl 11879 | . . . . 5 ⊢ (𝜑 → Σ𝑘 ∈ 𝐴 𝐵 ∈ ℤ) |
| 42 | 41 | adantr 276 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → Σ𝑘 ∈ 𝐴 𝐵 ∈ ℤ) |
| 43 | dvdsval2 12267 | . . . 4 ⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0 ∧ Σ𝑘 ∈ 𝐴 𝐵 ∈ ℤ) → (𝑁 ∥ Σ𝑘 ∈ 𝐴 𝐵 ↔ (Σ𝑘 ∈ 𝐴 𝐵 / 𝑁) ∈ ℤ)) | |
| 44 | 24, 40, 42, 43 | syl3anc 1252 | . . 3 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → (𝑁 ∥ Σ𝑘 ∈ 𝐴 𝐵 ↔ (Σ𝑘 ∈ 𝐴 𝐵 / 𝑁) ∈ ℤ)) |
| 45 | 39, 44 | mpbird 167 | . 2 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → 𝑁 ∥ Σ𝑘 ∈ 𝐴 𝐵) |
| 46 | zdceq 9490 | . . . 4 ⊢ ((𝑁 ∈ ℤ ∧ 0 ∈ ℤ) → DECID 𝑁 = 0) | |
| 47 | 23, 1, 46 | sylancl 413 | . . 3 ⊢ (𝜑 → DECID 𝑁 = 0) |
| 48 | dcne 2391 | . . 3 ⊢ (DECID 𝑁 = 0 ↔ (𝑁 = 0 ∨ 𝑁 ≠ 0)) | |
| 49 | 47, 48 | sylib 122 | . 2 ⊢ (𝜑 → (𝑁 = 0 ∨ 𝑁 ≠ 0)) |
| 50 | 21, 45, 49 | mpjaodan 802 | 1 ⊢ (𝜑 → 𝑁 ∥ Σ𝑘 ∈ 𝐴 𝐵) |
| Colors of variables: wff set class |
| Syntax hints: → wi 4 ∧ wa 104 ↔ wb 105 ∨ wo 712 DECID wdc 838 ∧ w3a 983 = wceq 1375 ∈ wcel 2180 ≠ wne 2380 ∀wral 2488 ⊆ wss 3177 class class class wbr 4062 ‘cfv 5294 (class class class)co 5974 Fincfn 6857 0cc0 7967 # cap 8696 / cdiv 8787 ℤcz 9414 ℤ≥cuz 9690 Σcsu 11830 ∥ cdvds 12264 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-ia1 106 ax-ia2 107 ax-ia3 108 ax-in1 617 ax-in2 618 ax-io 713 ax-5 1473 ax-7 1474 ax-gen 1475 ax-ie1 1519 ax-ie2 1520 ax-8 1530 ax-10 1531 ax-11 1532 ax-i12 1533 ax-bndl 1535 ax-4 1536 ax-17 1552 ax-i9 1556 ax-ial 1560 ax-i5r 1561 ax-13 2182 ax-14 2183 ax-ext 2191 ax-coll 4178 ax-sep 4181 ax-nul 4189 ax-pow 4237 ax-pr 4272 ax-un 4501 ax-setind 4606 ax-iinf 4657 ax-cnex 8058 ax-resscn 8059 ax-1cn 8060 ax-1re 8061 ax-icn 8062 ax-addcl 8063 ax-addrcl 8064 ax-mulcl 8065 ax-mulrcl 8066 ax-addcom 8067 ax-mulcom 8068 ax-addass 8069 ax-mulass 8070 ax-distr 8071 ax-i2m1 8072 ax-0lt1 8073 ax-1rid 8074 ax-0id 8075 ax-rnegex 8076 ax-precex 8077 ax-cnre 8078 ax-pre-ltirr 8079 ax-pre-ltwlin 8080 ax-pre-lttrn 8081 ax-pre-apti 8082 ax-pre-ltadd 8083 ax-pre-mulgt0 8084 ax-pre-mulext 8085 ax-arch 8086 ax-caucvg 8087 |
| This theorem depends on definitions: df-bi 117 df-dc 839 df-3or 984 df-3an 985 df-tru 1378 df-fal 1381 df-nf 1487 df-sb 1789 df-eu 2060 df-mo 2061 df-clab 2196 df-cleq 2202 df-clel 2205 df-nfc 2341 df-ne 2381 df-nel 2476 df-ral 2493 df-rex 2494 df-reu 2495 df-rmo 2496 df-rab 2497 df-v 2781 df-sbc 3009 df-csb 3105 df-dif 3179 df-un 3181 df-in 3183 df-ss 3190 df-nul 3472 df-if 3583 df-pw 3631 df-sn 3652 df-pr 3653 df-op 3655 df-uni 3868 df-int 3903 df-iun 3946 df-br 4063 df-opab 4125 df-mpt 4126 df-tr 4162 df-id 4361 df-po 4364 df-iso 4365 df-iord 4434 df-on 4436 df-ilim 4437 df-suc 4439 df-iom 4660 df-xp 4702 df-rel 4703 df-cnv 4704 df-co 4705 df-dm 4706 df-rn 4707 df-res 4708 df-ima 4709 df-iota 5254 df-fun 5296 df-fn 5297 df-f 5298 df-f1 5299 df-fo 5300 df-f1o 5301 df-fv 5302 df-isom 5303 df-riota 5927 df-ov 5977 df-oprab 5978 df-mpo 5979 df-1st 6256 df-2nd 6257 df-recs 6421 df-irdg 6486 df-frec 6507 df-1o 6532 df-oadd 6536 df-er 6650 df-en 6858 df-dom 6859 df-fin 6860 df-pnf 8151 df-mnf 8152 df-xr 8153 df-ltxr 8154 df-le 8155 df-sub 8287 df-neg 8288 df-reap 8690 df-ap 8697 df-div 8788 df-inn 9079 df-2 9137 df-3 9138 df-4 9139 df-n0 9338 df-z 9415 df-uz 9691 df-q 9783 df-rp 9818 df-fz 10173 df-fzo 10307 df-seqfrec 10637 df-exp 10728 df-ihash 10965 df-cj 11319 df-re 11320 df-im 11321 df-rsqrt 11475 df-abs 11476 df-clim 11756 df-sumdc 11831 df-dvds 12265 |
| This theorem is referenced by: 3dvds 12341 |
| Copyright terms: Public domain | W3C validator |