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

Theorem prodindf 33664
Description: The product of indicators is one if and only if all values are in the set. (Contributed by Thierry Arnoux, 11-Dec-2021.)
Hypotheses
Ref Expression
prodindf.1 (𝜑 → 𝑂 ∈ 𝑉)
prodindf.2 (𝜑 → 𝐴 ∈ Fin)
prodindf.3 (𝜑 → 𝐵 ⊆ 𝑂)
prodindf.4 (𝜑 → 𝐹:𝐴⟶𝑂)
Assertion
Ref Expression
prodindf (𝜑 → ∏𝑘 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = if(ran 𝐹 ⊆ 𝐵, 1, 0))
Distinct variable groups:   𝐴,𝑘   𝐵,𝑘   𝑘,𝐹   𝑘,𝑂   𝜑,𝑘
Allowed substitution hint:   𝑉(𝑘)

Proof of Theorem prodindf
Dummy variable 𝑙 is distinct from all other variables.
StepHypRef Expression
1 2fveq3 6939 . . 3 (𝑘 = 𝑙 → (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑙)))
2 prodindf.2 . . 3 (𝜑 → 𝐴 ∈ Fin)
3 prodindf.1 . . . . . 6 (𝜑 → 𝑂 ∈ 𝑉)
4 prodindf.3 . . . . . 6 (𝜑 → 𝐵 ⊆ 𝑂)
5 indf 12386 . . . . . 6 ((𝑂 ∈ 𝑉 ∧ 𝐵 ⊆ 𝑂) → ((𝟭‘𝑂)‘𝐵):𝑂⟶{0, 1})
63, 4, 5syl2anc 596 . . . . 5 (𝜑 → ((𝟭‘𝑂)‘𝐵):𝑂⟶{0, 1})
76adantr 486 . . . 4 ((𝜑 ∧ 𝑘 ∈ 𝐴) → ((𝟭‘𝑂)‘𝐵):𝑂⟶{0, 1})
8 prodindf.4 . . . . 5 (𝜑 → 𝐹:𝐴⟶𝑂)
98ffvelcdmda 7134 . . . 4 ((𝜑 ∧ 𝑘 ∈ 𝐴) → (𝐹‘𝑘) ∈ 𝑂)
107, 9ffvelcdmd 7135 . . 3 ((𝜑 ∧ 𝑘 ∈ 𝐴) → (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) ∈ {0, 1})
111, 2, 10fprodex01 33651 . 2 (𝜑 → ∏𝑘 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = if(∀𝑙 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑙)) = 1, 1, 0))
12 2fveq3 6939 . . . . . 6 (𝑙 = 𝑘 → (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑙)) = (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)))
1312eqeq1d 2776 . . . . 5 (𝑙 = 𝑘 → ((((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑙)) = 1 ↔ (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = 1))
1413cbvralvw 3252 . . . 4 (∀𝑙 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑙)) = 1 ↔ ∀𝑘 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = 1)
1514a1i 11 . . 3 (𝜑 → (∀𝑙 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑙)) = 1 ↔ ∀𝑘 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = 1))
1615ifbid 4516 . 2 (𝜑 → if(∀𝑙 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑙)) = 1, 1, 0) = if(∀𝑘 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = 1, 1, 0))
17 eqid 2774 . . . . . 6 (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) = (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘))
1817rnmptss 7173 . . . . 5 (∀𝑘 ∈ 𝐴 (𝐹‘𝑘) ∈ 𝐵 → ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵)
19 nfv 1956 . . . . . . . 8 Ⅎ𝑘𝜑
20 nfmpt1 5218 . . . . . . . . . 10 Ⅎ𝑘(𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘))
2120nfrn 5954 . . . . . . . . 9 Ⅎ𝑘ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘))
22 nfcv 2937 . . . . . . . . 9 Ⅎ𝑘𝐵
2321, 22nfss 3913 . . . . . . . 8 Ⅎ𝑘ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵
2419, 23nfan 1940 . . . . . . 7 Ⅎ𝑘(𝜑 ∧ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵)
25 simplr 781 . . . . . . . . 9 (((𝜑 ∧ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵) ∧ 𝑘 ∈ 𝐴) → ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵)
268feqmptd 7002 . . . . . . . . . . . . . 14 (𝜑 → 𝐹 = (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)))
27 eqidd 2775 . . . . . . . . . . . . . 14 (𝜑 → 𝑘 = 𝑘)
2826, 27fveq12d 6941 . . . . . . . . . . . . 13 (𝜑 → (𝐹‘𝑘) = ((𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘))‘𝑘))
2928ralrimivw 3173 . . . . . . . . . . . 12 (𝜑 → ∀𝑘 ∈ 𝐴 (𝐹‘𝑘) = ((𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘))‘𝑘))
3029r19.21bi 3266 . . . . . . . . . . 11 ((𝜑 ∧ 𝑘 ∈ 𝐴) → (𝐹‘𝑘) = ((𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘))‘𝑘))
318ffnd 6758 . . . . . . . . . . . . . 14 (𝜑 → 𝐹 Fn 𝐴)
3226fneq1d 6678 . . . . . . . . . . . . . 14 (𝜑 → (𝐹 Fn 𝐴 ↔ (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) Fn 𝐴))
3331, 32mpbid 235 . . . . . . . . . . . . 13 (𝜑 → (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) Fn 𝐴)
3433adantr 486 . . . . . . . . . . . 12 ((𝜑 ∧ 𝑘 ∈ 𝐴) → (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) Fn 𝐴)
35 simpr 490 . . . . . . . . . . . 12 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝑘 ∈ 𝐴)
36 fnfvelrn 7130 . . . . . . . . . . . 12 (((𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) Fn 𝐴 ∧ 𝑘 ∈ 𝐴) → ((𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘))‘𝑘) ∈ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)))
3734, 35, 36syl2anc 596 . . . . . . . . . . 11 ((𝜑 ∧ 𝑘 ∈ 𝐴) → ((𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘))‘𝑘) ∈ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)))
3830, 37eqeltrd 2875 . . . . . . . . . 10 ((𝜑 ∧ 𝑘 ∈ 𝐴) → (𝐹‘𝑘) ∈ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)))
3938adantlr 728 . . . . . . . . 9 (((𝜑 ∧ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵) ∧ 𝑘 ∈ 𝐴) → (𝐹‘𝑘) ∈ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)))
4025, 39sseldd 3921 . . . . . . . 8 (((𝜑 ∧ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵) ∧ 𝑘 ∈ 𝐴) → (𝐹‘𝑘) ∈ 𝐵)
4140ex 418 . . . . . . 7 ((𝜑 ∧ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵) → (𝑘 ∈ 𝐴 → (𝐹‘𝑘) ∈ 𝐵))
4224, 41ralrimi 3272 . . . . . 6 ((𝜑 ∧ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵) → ∀𝑘 ∈ 𝐴 (𝐹‘𝑘) ∈ 𝐵)
4342ex 418 . . . . 5 (𝜑 → (ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵 → ∀𝑘 ∈ 𝐴 (𝐹‘𝑘) ∈ 𝐵))
4418, 43impbid2 229 . . . 4 (𝜑 → (∀𝑘 ∈ 𝐴 (𝐹‘𝑘) ∈ 𝐵 ↔ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵))
453adantr 486 . . . . . 6 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝑂 ∈ 𝑉)
464adantr 486 . . . . . 6 ((𝜑 ∧ 𝑘 ∈ 𝐴) → 𝐵 ⊆ 𝑂)
47 ind1a 12391 . . . . . 6 ((𝑂 ∈ 𝑉 ∧ 𝐵 ⊆ 𝑂 ∧ (𝐹‘𝑘) ∈ 𝑂) → ((((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = 1 ↔ (𝐹‘𝑘) ∈ 𝐵))
4845, 46, 9, 47syl3anc 1401 . . . . 5 ((𝜑 ∧ 𝑘 ∈ 𝐴) → ((((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = 1 ↔ (𝐹‘𝑘) ∈ 𝐵))
4948ralbidva 3198 . . . 4 (𝜑 → (∀𝑘 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = 1 ↔ ∀𝑘 ∈ 𝐴 (𝐹‘𝑘) ∈ 𝐵))
5026rneqd 5940 . . . . 5 (𝜑 → ran 𝐹 = ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)))
5150sseq1d 3951 . . . 4 (𝜑 → (ran 𝐹 ⊆ 𝐵 ↔ ran (𝑘 ∈ 𝐴 ↦ (𝐹‘𝑘)) ⊆ 𝐵))
5244, 49, 513bitr4d 314 . . 3 (𝜑 → (∀𝑘 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = 1 ↔ ran 𝐹 ⊆ 𝐵))
5352ifbid 4516 . 2 (𝜑 → if(∀𝑘 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = 1, 1, 0) = if(ran 𝐹 ⊆ 𝐵, 1, 0))
5411, 16, 533eqtrd 2813 1 (𝜑 → ∏𝑘 ∈ 𝐴 (((𝟭‘𝑂)‘𝐵)‘(𝐹‘𝑘)) = if(ran 𝐹 ⊆ 𝐵, 1, 0))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1572   ∈ wcel 2156  ∀wral 3091   ⊆ wss 3907  ifcif 4492  {cpr 4597   ↦ cmpt 5200  ran crn 5667   Fn wfn 6574  ⟶wf 6575  ‘cfv 6579  Fincfn 9030  0cc0 11258  1c1 11259  𝟭cind 12380  ∏cprod 16138
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-rep 5246  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7802  ax-inf2 9698  ax-cnex 11314  ax-resscn 11315  ax-1cn 11316  ax-icn 11317  ax-addcl 11318  ax-addrcl 11319  ax-mulcl 11320  ax-mulrcl 11321  ax-mulcom 11322  ax-addass 11323  ax-mulass 11324  ax-distr 11325  ax-i2m1 11326  ax-1ne0 11327  ax-1rid 11328  ax-rnegex 11329  ax-rrecex 11330  ax-cnre 11331  ax-pre-lttri 11332  ax-pre-lttrn 11333  ax-pre-ltadd 11334  ax-pre-mulgt0 11335  ax-pre-sup 11336
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-nel 3077  df-ral 3092  df-rex 3102  df-rmo 3376  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-pss 4024  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-int 4921  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-tr 5227  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-se 5620  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6343  df-ord 6404  df-on 6405  df-lim 6406  df-suc 6407  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-fv 6587  df-isom 6588  df-riota 7426  df-ov 7473  df-oprab 7474  df-mpo 7475  df-om 7931  df-1st 8054  df-2nd 8055  df-frecs 8356  df-wrecs 8387  df-recs 8436  df-rdg 8475  df-1o 8533  df-er 8774  df-en 9031  df-dom 9032  df-sdom 9033  df-fin 9034  df-sup 9490  df-oi 9560  df-card 10076  df-pnf 11403  df-mnf 11404  df-xr 11405  df-ltxr 11406  df-le 11407  df-sub 11602  df-neg 11603  df-div 12034  df-ind 12381  df-nn 12396  df-2 12465  df-3 12466  df-n0 12667  df-z 12754  df-uz 13026  df-rp 13181  df-fz 13700  df-fzo 13849  df-seq 14207  df-exp 14267  df-hash 14538  df-cj 15331  df-re 15332  df-im 15333  df-sqrt 15467  df-abs 15468  df-clim 15721  df-prod 16139
This theorem is used by:  hashreprin  35454
  Copyright terms: Public domain W3C validator