| 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 9398 | . . . 4 ⊢ 0 ∈ ℤ | |
| 2 | dvds0 12187 | . . . 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 4074 | . . . . . 6 ⊢ (((𝜑 ∧ 𝑁 = 0) ∧ 𝑘 ∈ 𝐴) → 0 ∥ 𝐵) |
| 9 | fsumdvds.3 | . . . . . . . 8 ⊢ ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℤ) | |
| 10 | 9 | adantlr 477 | . . . . . . 7 ⊢ (((𝜑 ∧ 𝑁 = 0) ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℤ) |
| 11 | 0dvds 12192 | . . . . . . 7 ⊢ (𝐵 ∈ ℤ → (0 ∥ 𝐵 ↔ 𝐵 = 0)) | |
| 12 | 10, 11 | syl 14 | . . . . . 6 ⊢ (((𝜑 ∧ 𝑁 = 0) ∧ 𝑘 ∈ 𝐴) → (0 ∥ 𝐵 ↔ 𝐵 = 0)) |
| 13 | 8, 12 | mpbid 147 | . . . . 5 ⊢ (((𝜑 ∧ 𝑁 = 0) ∧ 𝑘 ∈ 𝐴) → 𝐵 = 0) |
| 14 | 13 | sumeq2dv 11749 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 = 0) → Σ𝑘 ∈ 𝐴 𝐵 = Σ𝑘 ∈ 𝐴 0) |
| 15 | fsumdvds.1 | . . . . . . 7 ⊢ (𝜑 → 𝐴 ∈ Fin) | |
| 16 | 15 | adantr 276 | . . . . . 6 ⊢ ((𝜑 ∧ 𝑁 = 0) → 𝐴 ∈ Fin) |
| 17 | 16 | olcd 736 | . . . . 5 ⊢ ((𝜑 ∧ 𝑁 = 0) → ((0 ∈ ℤ ∧ 𝐴 ⊆ (ℤ≥‘0) ∧ ∀𝑗 ∈ (ℤ≥‘0)DECID 𝑗 ∈ 𝐴) ∨ 𝐴 ∈ Fin)) |
| 18 | isumz 11770 | . . . . 5 ⊢ (((0 ∈ ℤ ∧ 𝐴 ⊆ (ℤ≥‘0) ∧ ∀𝑗 ∈ (ℤ≥‘0)DECID 𝑗 ∈ 𝐴) ∨ 𝐴 ∈ Fin) → Σ𝑘 ∈ 𝐴 0 = 0) | |
| 19 | 17, 18 | syl 14 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 = 0) → Σ𝑘 ∈ 𝐴 0 = 0) |
| 20 | 14, 19 | eqtrd 2239 | . . 3 ⊢ ((𝜑 ∧ 𝑁 = 0) → Σ𝑘 ∈ 𝐴 𝐵 = 0) |
| 21 | 3, 4, 20 | 3brtr4d 4082 | . 2 ⊢ ((𝜑 ∧ 𝑁 = 0) → 𝑁 ∥ Σ𝑘 ∈ 𝐴 𝐵) |
| 22 | 15 | adantr 276 | . . . . 5 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → 𝐴 ∈ Fin) |
| 23 | fsumdvds.2 | . . . . . . 7 ⊢ (𝜑 → 𝑁 ∈ ℤ) | |
| 24 | 23 | adantr 276 | . . . . . 6 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → 𝑁 ∈ ℤ) |
| 25 | 24 | zcnd 9511 | . . . . 5 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → 𝑁 ∈ ℂ) |
| 26 | 9 | adantlr 477 | . . . . . 6 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℤ) |
| 27 | 26 | zcnd 9511 | . . . . 5 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ) |
| 28 | zapne 9462 | . . . . . . 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 11831 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → (Σ𝑘 ∈ 𝐴 𝐵 / 𝑁) = Σ𝑘 ∈ 𝐴 (𝐵 / 𝑁)) |
| 32 | 6 | adantlr 477 | . . . . . 6 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → 𝑁 ∥ 𝐵) |
| 33 | 24 | adantr 276 | . . . . . . 7 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → 𝑁 ∈ ℤ) |
| 34 | simplr 528 | . . . . . . 7 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → 𝑁 ≠ 0) | |
| 35 | dvdsval2 12171 | . . . . . . 7 ⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0 ∧ 𝐵 ∈ ℤ) → (𝑁 ∥ 𝐵 ↔ (𝐵 / 𝑁) ∈ ℤ)) | |
| 36 | 33, 34, 26, 35 | syl3anc 1250 | . . . . . 6 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → (𝑁 ∥ 𝐵 ↔ (𝐵 / 𝑁) ∈ ℤ)) |
| 37 | 32, 36 | mpbid 147 | . . . . 5 ⊢ (((𝜑 ∧ 𝑁 ≠ 0) ∧ 𝑘 ∈ 𝐴) → (𝐵 / 𝑁) ∈ ℤ) |
| 38 | 22, 37 | fsumzcl 11783 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → Σ𝑘 ∈ 𝐴 (𝐵 / 𝑁) ∈ ℤ) |
| 39 | 31, 38 | eqeltrd 2283 | . . 3 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → (Σ𝑘 ∈ 𝐴 𝐵 / 𝑁) ∈ ℤ) |
| 40 | simpr 110 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → 𝑁 ≠ 0) | |
| 41 | 15, 9 | fsumzcl 11783 | . . . . 5 ⊢ (𝜑 → Σ𝑘 ∈ 𝐴 𝐵 ∈ ℤ) |
| 42 | 41 | adantr 276 | . . . 4 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → Σ𝑘 ∈ 𝐴 𝐵 ∈ ℤ) |
| 43 | dvdsval2 12171 | . . . 4 ⊢ ((𝑁 ∈ ℤ ∧ 𝑁 ≠ 0 ∧ Σ𝑘 ∈ 𝐴 𝐵 ∈ ℤ) → (𝑁 ∥ Σ𝑘 ∈ 𝐴 𝐵 ↔ (Σ𝑘 ∈ 𝐴 𝐵 / 𝑁) ∈ ℤ)) | |
| 44 | 24, 40, 42, 43 | syl3anc 1250 | . . 3 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → (𝑁 ∥ Σ𝑘 ∈ 𝐴 𝐵 ↔ (Σ𝑘 ∈ 𝐴 𝐵 / 𝑁) ∈ ℤ)) |
| 45 | 39, 44 | mpbird 167 | . 2 ⊢ ((𝜑 ∧ 𝑁 ≠ 0) → 𝑁 ∥ Σ𝑘 ∈ 𝐴 𝐵) |
| 46 | zdceq 9463 | . . . 4 ⊢ ((𝑁 ∈ ℤ ∧ 0 ∈ ℤ) → DECID 𝑁 = 0) | |
| 47 | 23, 1, 46 | sylancl 413 | . . 3 ⊢ (𝜑 → DECID 𝑁 = 0) |
| 48 | dcne 2388 | . . 3 ⊢ (DECID 𝑁 = 0 ↔ (𝑁 = 0 ∨ 𝑁 ≠ 0)) | |
| 49 | 47, 48 | sylib 122 | . 2 ⊢ (𝜑 → (𝑁 = 0 ∨ 𝑁 ≠ 0)) |
| 50 | 21, 45, 49 | mpjaodan 800 | 1 ⊢ (𝜑 → 𝑁 ∥ Σ𝑘 ∈ 𝐴 𝐵) |
| Colors of variables: wff set class |
| Syntax hints: → wi 4 ∧ wa 104 ↔ wb 105 ∨ wo 710 DECID wdc 836 ∧ w3a 981 = wceq 1373 ∈ wcel 2177 ≠ wne 2377 ∀wral 2485 ⊆ wss 3170 class class class wbr 4050 ‘cfv 5279 (class class class)co 5956 Fincfn 6839 0cc0 7940 # cap 8669 / cdiv 8760 ℤcz 9387 ℤ≥cuz 9663 Σcsu 11734 ∥ cdvds 12168 |
| 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 615 ax-in2 616 ax-io 711 ax-5 1471 ax-7 1472 ax-gen 1473 ax-ie1 1517 ax-ie2 1518 ax-8 1528 ax-10 1529 ax-11 1530 ax-i12 1531 ax-bndl 1533 ax-4 1534 ax-17 1550 ax-i9 1554 ax-ial 1558 ax-i5r 1559 ax-13 2179 ax-14 2180 ax-ext 2188 ax-coll 4166 ax-sep 4169 ax-nul 4177 ax-pow 4225 ax-pr 4260 ax-un 4487 ax-setind 4592 ax-iinf 4643 ax-cnex 8031 ax-resscn 8032 ax-1cn 8033 ax-1re 8034 ax-icn 8035 ax-addcl 8036 ax-addrcl 8037 ax-mulcl 8038 ax-mulrcl 8039 ax-addcom 8040 ax-mulcom 8041 ax-addass 8042 ax-mulass 8043 ax-distr 8044 ax-i2m1 8045 ax-0lt1 8046 ax-1rid 8047 ax-0id 8048 ax-rnegex 8049 ax-precex 8050 ax-cnre 8051 ax-pre-ltirr 8052 ax-pre-ltwlin 8053 ax-pre-lttrn 8054 ax-pre-apti 8055 ax-pre-ltadd 8056 ax-pre-mulgt0 8057 ax-pre-mulext 8058 ax-arch 8059 ax-caucvg 8060 |
| This theorem depends on definitions: df-bi 117 df-dc 837 df-3or 982 df-3an 983 df-tru 1376 df-fal 1379 df-nf 1485 df-sb 1787 df-eu 2058 df-mo 2059 df-clab 2193 df-cleq 2199 df-clel 2202 df-nfc 2338 df-ne 2378 df-nel 2473 df-ral 2490 df-rex 2491 df-reu 2492 df-rmo 2493 df-rab 2494 df-v 2775 df-sbc 3003 df-csb 3098 df-dif 3172 df-un 3174 df-in 3176 df-ss 3183 df-nul 3465 df-if 3576 df-pw 3622 df-sn 3643 df-pr 3644 df-op 3646 df-uni 3856 df-int 3891 df-iun 3934 df-br 4051 df-opab 4113 df-mpt 4114 df-tr 4150 df-id 4347 df-po 4350 df-iso 4351 df-iord 4420 df-on 4422 df-ilim 4423 df-suc 4425 df-iom 4646 df-xp 4688 df-rel 4689 df-cnv 4690 df-co 4691 df-dm 4692 df-rn 4693 df-res 4694 df-ima 4695 df-iota 5240 df-fun 5281 df-fn 5282 df-f 5283 df-f1 5284 df-fo 5285 df-f1o 5286 df-fv 5287 df-isom 5288 df-riota 5911 df-ov 5959 df-oprab 5960 df-mpo 5961 df-1st 6238 df-2nd 6239 df-recs 6403 df-irdg 6468 df-frec 6489 df-1o 6514 df-oadd 6518 df-er 6632 df-en 6840 df-dom 6841 df-fin 6842 df-pnf 8124 df-mnf 8125 df-xr 8126 df-ltxr 8127 df-le 8128 df-sub 8260 df-neg 8261 df-reap 8663 df-ap 8670 df-div 8761 df-inn 9052 df-2 9110 df-3 9111 df-4 9112 df-n0 9311 df-z 9388 df-uz 9664 df-q 9756 df-rp 9791 df-fz 10146 df-fzo 10280 df-seqfrec 10610 df-exp 10701 df-ihash 10938 df-cj 11223 df-re 11224 df-im 11225 df-rsqrt 11379 df-abs 11380 df-clim 11660 df-sumdc 11735 df-dvds 12169 |
| This theorem is referenced by: 3dvds 12245 |
| Copyright terms: Public domain | W3C validator |