Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  fprodex01 Structured version   Visualization version   GIF version

Theorem fprodex01 33409
Description: A product of factors equal to zero or one is zero exactly when one of the factors is zero. (Contributed by Thierry Arnoux, 11-Dec-2021.)
Hypotheses
Ref Expression
fprodex01.1 (𝑘 = 𝑙 → 𝐵 = 𝐶)
fprodex01.a (𝜑 → 𝐴 ∈ Fin)
fprodex01.b ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ {0, 1})
Assertion
Ref Expression
fprodex01 (𝜑 → ∏𝑘 ∈ 𝐴 𝐵 = if(∀𝑙 ∈ 𝐴 𝐶 = 1, 1, 0))
Distinct variable groups:   𝐴,𝑘,𝑙   𝐵,𝑙   𝐶,𝑘   𝜑,𝑘,𝑙
Allowed substitution hints:   𝐵(𝑘)   𝐶(𝑙)

Proof of Theorem fprodex01
StepHypRef Expression
1 fprodex01.1 . . . . . . . 8 (𝑘 = 𝑙 → 𝐵 = 𝐶)
21eqeq1d 2763 . . . . . . 7 (𝑘 = 𝑙 → (𝐵 = 1 ↔ 𝐶 = 1))
32cbvralvw 3241 . . . . . 6 (∀𝑘 ∈ 𝐴 𝐵 = 1 ↔ ∀𝑙 ∈ 𝐴 𝐶 = 1)
43bilanri 512 . . . . 5 ((𝜑 ∧ ∀𝑙 ∈ 𝐴 𝐶 = 1) → ∀𝑘 ∈ 𝐴 𝐵 = 1)
54prodeq2d 16082 . . . 4 ((𝜑 ∧ ∀𝑙 ∈ 𝐴 𝐶 = 1) → ∏𝑘 ∈ 𝐴 𝐵 = ∏𝑘 ∈ 𝐴 1)
6 fprodex01.a . . . . . 6 (𝜑 → 𝐴 ∈ Fin)
7 prod1 16104 . . . . . . 7 ((𝐴 ⊆ (ℤ≥‘0) ∨ 𝐴 ∈ Fin) → ∏𝑘 ∈ 𝐴 1 = 1)
87olcs 890 . . . . . 6 (𝐴 ∈ Fin → ∏𝑘 ∈ 𝐴 1 = 1)
96, 8syl 18 . . . . 5 (𝜑 → ∏𝑘 ∈ 𝐴 1 = 1)
109adantr 486 . . . 4 ((𝜑 ∧ ∀𝑙 ∈ 𝐴 𝐶 = 1) → ∏𝑘 ∈ 𝐴 1 = 1)
115, 10eqtr2d 2797 . . 3 ((𝜑 ∧ ∀𝑙 ∈ 𝐴 𝐶 = 1) → 1 = ∏𝑘 ∈ 𝐴 𝐵)
12 nfv 1947 . . . . . 6 Ⅎ𝑙𝜑
13 nfra1 3287 . . . . . . 7 Ⅎ𝑙∀𝑙 ∈ 𝐴 𝐶 = 1
1413nfn 1890 . . . . . 6 Ⅎ𝑙 ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1
1512, 14nfan 1932 . . . . 5 Ⅎ𝑙(𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1)
16 nfv 1947 . . . . 5 Ⅎ𝑙∏𝑘 ∈ 𝐴 𝐵 = 0
176adantr 486 . . . . . . 7 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → 𝐴 ∈ Fin)
1817ad2antrr 739 . . . . . 6 ((((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) ∧ 𝑙 ∈ 𝐴) ∧ 𝐶 = 0) → 𝐴 ∈ Fin)
19 pr01ssre 11305 . . . . . . . . . . 11 {0, 1} ⊆ ℝ
20 ax-resscn 11250 . . . . . . . . . . 11 ℝ ⊆ ℂ
2119, 20sstri 3940 . . . . . . . . . 10 {0, 1} ⊆ ℂ
22 fprodex01.b . . . . . . . . . 10 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ {0, 1})
2321, 22sselid 3929 . . . . . . . . 9 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ)
2423adantlr 728 . . . . . . . 8 (((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ)
2524adantlr 728 . . . . . . 7 ((((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) ∧ 𝑙 ∈ 𝐴) ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ)
2625adantlr 728 . . . . . 6 (((((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) ∧ 𝑙 ∈ 𝐴) ∧ 𝐶 = 0) ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ ℂ)
27 simplr 781 . . . . . 6 ((((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) ∧ 𝑙 ∈ 𝐴) ∧ 𝐶 = 0) → 𝑙 ∈ 𝐴)
28 simpr 490 . . . . . 6 ((((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) ∧ 𝑙 ∈ 𝐴) ∧ 𝐶 = 0) → 𝐶 = 0)
291, 18, 26, 27, 28fprodeq02 33408 . . . . 5 ((((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) ∧ 𝑙 ∈ 𝐴) ∧ 𝐶 = 0) → ∏𝑘 ∈ 𝐴 𝐵 = 0)
30 rexnal 3115 . . . . . . 7 (∃𝑙 ∈ 𝐴 ¬ 𝐶 = 1 ↔ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1)
3130bilanri 512 . . . . . 6 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → ∃𝑙 ∈ 𝐴 ¬ 𝐶 = 1)
3222ralrimiva 3155 . . . . . . . . . . . . 13 (𝜑 → ∀𝑘 ∈ 𝐴 𝐵 ∈ {0, 1})
331eleq1d 2846 . . . . . . . . . . . . . 14 (𝑘 = 𝑙 → (𝐵 ∈ {0, 1} ↔ 𝐶 ∈ {0, 1}))
3433cbvralvw 3241 . . . . . . . . . . . . 13 (∀𝑘 ∈ 𝐴 𝐵 ∈ {0, 1} ↔ ∀𝑙 ∈ 𝐴 𝐶 ∈ {0, 1})
3532, 34sylib 221 . . . . . . . . . . . 12 (𝜑 → ∀𝑙 ∈ 𝐴 𝐶 ∈ {0, 1})
3635r19.21bi 3255 . . . . . . . . . . 11 ((𝜑 ∧ 𝑙 ∈ 𝐴) → 𝐶 ∈ {0, 1})
37 c0ex 11293 . . . . . . . . . . . 12 0 ∈ V
38 1ex 11296 . . . . . . . . . . . 12 1 ∈ V
3937, 38elpr2 4611 . . . . . . . . . . 11 (𝐶 ∈ {0, 1} ↔ (𝐶 = 0 ∨ 𝐶 = 1))
4036, 39sylib 221 . . . . . . . . . 10 ((𝜑 ∧ 𝑙 ∈ 𝐴) → (𝐶 = 0 ∨ 𝐶 = 1))
4140orcomd 885 . . . . . . . . 9 ((𝜑 ∧ 𝑙 ∈ 𝐴) → (𝐶 = 1 ∨ 𝐶 = 0))
4241ord 878 . . . . . . . 8 ((𝜑 ∧ 𝑙 ∈ 𝐴) → (¬ 𝐶 = 1 → 𝐶 = 0))
4342reximdva 3176 . . . . . . 7 (𝜑 → (∃𝑙 ∈ 𝐴 ¬ 𝐶 = 1 → ∃𝑙 ∈ 𝐴 𝐶 = 0))
4443adantr 486 . . . . . 6 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → (∃𝑙 ∈ 𝐴 ¬ 𝐶 = 1 → ∃𝑙 ∈ 𝐴 𝐶 = 0))
4531, 44mpd 16 . . . . 5 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → ∃𝑙 ∈ 𝐴 𝐶 = 0)
4615, 16, 29, 45r19.29af2 3271 . . . 4 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → ∏𝑘 ∈ 𝐴 𝐵 = 0)
4746eqcomd 2767 . . 3 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → 0 = ∏𝑘 ∈ 𝐴 𝐵)
4811, 47ifeqda 4519 . 2 (𝜑 → if(∀𝑙 ∈ 𝐴 𝐶 = 1, 1, 0) = ∏𝑘 ∈ 𝐴 𝐵)
4948eqcomd 2767 1 (𝜑 → ∏𝑘 ∈ 𝐴 𝐵 = if(∀𝑙 ∈ 𝐴 𝐶 = 1, 1, 0))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   ∨ wo 861   = wceq 1570   ∈ wcel 2145  ∀wral 3077  ∃wrex 3087   ⊆ wss 3899  ifcif 4482  {cpr 4586  ‘cfv 6537  Fincfn 8966  ℂcc 11191  ℝcr 11192  0cc0 11193  1c1 11194  ℤ≥cuz 12958  ∏cprod 16065
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7749  ax-inf2 9635  ax-cnex 11249  ax-resscn 11250  ax-1cn 11251  ax-icn 11252  ax-addcl 11253  ax-addrcl 11254  ax-mulcl 11255  ax-mulrcl 11256  ax-mulcom 11257  ax-addass 11258  ax-mulass 11259  ax-distr 11260  ax-i2m1 11261  ax-1ne0 11262  ax-1rid 11263  ax-rnegex 11264  ax-rrecex 11265  ax-cnre 11266  ax-pre-lttri 11267  ax-pre-lttrn 11268  ax-pre-ltadd 11269  ax-pre-mulgt0 11270  ax-pre-sup 11271
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-int 4908  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-se 5605  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6303  df-ord 6364  df-on 6365  df-lim 6366  df-suc 6367  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fo 6543  df-f1o 6544  df-fv 6545  df-isom 6546  df-riota 7375  df-ov 7421  df-oprab 7422  df-mpo 7423  df-om 7876  df-1st 7999  df-2nd 8000  df-frecs 8292  df-wrecs 8323  df-recs 8372  df-rdg 8411  df-1o 8469  df-er 8710  df-en 8967  df-dom 8968  df-sdom 8969  df-fin 8970  df-sup 9427  df-oi 9497  df-card 10013  df-pnf 11338  df-mnf 11339  df-xr 11340  df-ltxr 11341  df-le 11342  df-sub 11536  df-neg 11537  df-div 11967  df-nn 12329  df-2 12398  df-3 12399  df-n0 12600  df-z 12687  df-uz 12959  df-rp 13114  df-fz 13633  df-fzo 13782  df-seq 14138  df-exp 14198  df-hash 14468  df-cj 15259  df-re 15260  df-im 15261  df-sqrt 15395  df-abs 15396  df-clim 15648  df-prod 16066
This theorem is used by:  prodindf  33422
  Copyright terms: Public domain W3C validator