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 33466
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 2762 . . . . . . 7 (𝑘 = 𝑙 → (𝐵 = 1 ↔ 𝐶 = 1))
32cbvralvw 3240 . . . . . 6 (∀𝑘 ∈ 𝐴 𝐵 = 1 ↔ ∀𝑙 ∈ 𝐴 𝐶 = 1)
43bilanri 512 . . . . 5 ((𝜑 ∧ ∀𝑙 ∈ 𝐴 𝐶 = 1) → ∀𝑘 ∈ 𝐴 𝐵 = 1)
54prodeq2d 16098 . . . 4 ((𝜑 ∧ ∀𝑙 ∈ 𝐴 𝐶 = 1) → ∏𝑘 ∈ 𝐴 𝐵 = ∏𝑘 ∈ 𝐴 1)
6 fprodex01.a . . . . . 6 (𝜑 → 𝐴 ∈ Fin)
7 prod1 16120 . . . . . . 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 2796 . . 3 ((𝜑 ∧ ∀𝑙 ∈ 𝐴 𝐶 = 1) → 1 = ∏𝑘 ∈ 𝐴 𝐵)
12 nfv 1946 . . . . . 6 Ⅎ𝑙𝜑
13 nfra1 3286 . . . . . . 7 Ⅎ𝑙∀𝑙 ∈ 𝐴 𝐶 = 1
1413nfn 1889 . . . . . 6 Ⅎ𝑙 ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1
1512, 14nfan 1931 . . . . 5 Ⅎ𝑙(𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1)
16 nfv 1946 . . . . 5 Ⅎ𝑙∏𝑘 ∈ 𝐴 𝐵 = 0
176adantr 486 . . . . . . 7 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → 𝐴 ∈ Fin)
1817ad2antrr 739 . . . . . 6 ((((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) ∧ 𝑙 ∈ 𝐴) ∧ 𝐶 = 0) → 𝐴 ∈ Fin)
19 pr01ssre 11319 . . . . . . . . . . 11 {0, 1} ⊆ ℝ
20 ax-resscn 11264 . . . . . . . . . . 11 ℝ ⊆ ℂ
2119, 20sstri 3918 . . . . . . . . . 10 {0, 1} ⊆ ℂ
22 fprodex01.b . . . . . . . . . 10 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ∈ {0, 1})
2321, 22sselid 3907 . . . . . . . . 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 33465 . . . . 5 ((((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) ∧ 𝑙 ∈ 𝐴) ∧ 𝐶 = 0) → ∏𝑘 ∈ 𝐴 𝐵 = 0)
30 rexnal 3114 . . . . . . 7 (∃𝑙 ∈ 𝐴 ¬ 𝐶 = 1 ↔ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1)
3130bilanri 512 . . . . . 6 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → ∃𝑙 ∈ 𝐴 ¬ 𝐶 = 1)
3222ralrimiva 3154 . . . . . . . . . . . . 13 (𝜑 → ∀𝑘 ∈ 𝐴 𝐵 ∈ {0, 1})
331eleq1d 2845 . . . . . . . . . . . . . 14 (𝑘 = 𝑙 → (𝐵 ∈ {0, 1} ↔ 𝐶 ∈ {0, 1}))
3433cbvralvw 3240 . . . . . . . . . . . . 13 (∀𝑘 ∈ 𝐴 𝐵 ∈ {0, 1} ↔ ∀𝑙 ∈ 𝐴 𝐶 ∈ {0, 1})
3532, 34sylib 221 . . . . . . . . . . . 12 (𝜑 → ∀𝑙 ∈ 𝐴 𝐶 ∈ {0, 1})
3635r19.21bi 3254 . . . . . . . . . . 11 ((𝜑 ∧ 𝑙 ∈ 𝐴) → 𝐶 ∈ {0, 1})
37 c0ex 11307 . . . . . . . . . . . 12 0 ∈ V
38 1ex 11310 . . . . . . . . . . . 12 1 ∈ V
3937, 38elpr2 4607 . . . . . . . . . . 11 (𝐶 ∈ {0, 1} ↔ (𝐶 = 0 ∨ 𝐶 = 1))
4036, 39sylib 221 . . . . . . . . . 10 ((𝜑 ∧ 𝑙 ∈ 𝐴) → (𝐶 = 0 ∨ 𝐶 = 1))
4140orcomd 885 . . . . . . . . 9 ((𝜑 ∧ 𝑙 ∈ 𝐴) → (𝐶 = 1 ∨ 𝐶 = 0))
4241ord 878 . . . . . . . 8 ((𝜑 ∧ 𝑙 ∈ 𝐴) → (¬ 𝐶 = 1 → 𝐶 = 0))
4342reximdva 3175 . . . . . . 7 (𝜑 → (∃𝑙 ∈ 𝐴 ¬ 𝐶 = 1 → ∃𝑙 ∈ 𝐴 𝐶 = 0))
4443adantr 486 . . . . . 6 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → (∃𝑙 ∈ 𝐴 ¬ 𝐶 = 1 → ∃𝑙 ∈ 𝐴 𝐶 = 0))
4531, 44mpd 16 . . . . 5 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → ∃𝑙 ∈ 𝐴 𝐶 = 0)
4615, 16, 29, 45r19.29af2 3270 . . . 4 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → ∏𝑘 ∈ 𝐴 𝐵 = 0)
4746eqcomd 2766 . . 3 ((𝜑 ∧ ¬ ∀𝑙 ∈ 𝐴 𝐶 = 1) → 0 = ∏𝑘 ∈ 𝐴 𝐵)
4811, 47ifeqda 4518 . 2 (𝜑 → if(∀𝑙 ∈ 𝐴 𝐶 = 1, 1, 0) = ∏𝑘 ∈ 𝐴 𝐵)
4948eqcomd 2766 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 1569   ∈ wcel 2144  ∀wral 3076  ∃wrex 3086   ⊆ wss 3896  ifcif 4481  {cpr 4586  ‘cfv 6543  Fincfn 8980  ℂcc 11205  ℝcr 11206  0cc0 11207  1c1 11208  ℤ≥cuz 12972  ∏cprod 16081
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5327  ax-pr 5391  ax-un 7755  ax-inf2 9649  ax-cnex 11263  ax-resscn 11264  ax-1cn 11265  ax-icn 11266  ax-addcl 11267  ax-addrcl 11268  ax-mulcl 11269  ax-mulrcl 11270  ax-mulcom 11271  ax-addass 11272  ax-mulass 11273  ax-distr 11274  ax-i2m1 11275  ax-1ne0 11276  ax-1rid 11277  ax-rnegex 11278  ax-rrecex 11279  ax-cnre 11280  ax-pre-lttri 11281  ax-pre-lttrn 11282  ax-pre-ltadd 11283  ax-pre-mulgt0 11284  ax-pre-sup 11285
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-nel 3062  df-ral 3077  df-rex 3087  df-rmo 3365  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3848  df-ss 3897  df-pss 4013  df-dif 4046  df-in 4090  df-un 4150  df-nul 4278  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-int 4907  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  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 6307  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6497  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-isom 6552  df-riota 7381  df-ov 7427  df-oprab 7428  df-mpo 7429  df-om 7882  df-1st 8005  df-2nd 8006  df-frecs 8306  df-wrecs 8337  df-recs 8386  df-rdg 8425  df-1o 8483  df-er 8724  df-en 8981  df-dom 8982  df-sdom 8983  df-fin 8984  df-sup 9441  df-oi 9511  df-card 10027  df-pnf 11352  df-mnf 11353  df-xr 11354  df-ltxr 11355  df-le 11356  df-sub 11550  df-neg 11551  df-div 11981  df-nn 12343  df-2 12412  df-3 12413  df-n0 12614  df-z 12701  df-uz 12973  df-rp 13128  df-fz 13647  df-fzo 13796  df-seq 14152  df-exp 14212  df-hash 14482  df-cj 15275  df-re 15276  df-im 15277  df-sqrt 15411  df-abs 15412  df-clim 15664  df-prod 16082
This theorem is used by:  prodindf  33479
  Copyright terms: Public domain W3C validator