MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  selvffval Structured version   Visualization version   GIF version

Theorem selvffval 21307
Description: Value of the "variable selection" function. (Contributed by SN, 4-Nov-2023.)
Hypotheses
Ref Expression
selvffval.i (𝜑𝐼𝑉)
selvffval.r (𝜑𝑅𝑊)
Assertion
Ref Expression
selvffval (𝜑 → (𝐼 selectVars 𝑅) = (𝑗 ∈ 𝒫 𝐼 ↦ (𝑓 ∈ (Base‘(𝐼 mPoly 𝑅)) ↦ ((𝐼𝑗) mPoly 𝑅) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥))))))))
Distinct variable groups:   𝑗,𝐼,𝑓,𝑢,𝑡,𝑐,𝑑,𝑥   𝑅,𝑗,𝑓,𝑢,𝑡,𝑐,𝑑,𝑥
Allowed substitution hints:   𝜑(𝑥,𝑢,𝑡,𝑓,𝑗,𝑐,𝑑)   𝑉(𝑥,𝑢,𝑡,𝑓,𝑗,𝑐,𝑑)   𝑊(𝑥,𝑢,𝑡,𝑓,𝑗,𝑐,𝑑)

Proof of Theorem selvffval
Dummy variables 𝑖 𝑟 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-selv 21303 . . 3 selectVars = (𝑖 ∈ V, 𝑟 ∈ V ↦ (𝑗 ∈ 𝒫 𝑖 ↦ (𝑓 ∈ (Base‘(𝑖 mPoly 𝑟)) ↦ ((𝑖𝑗) mPoly 𝑟) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝑖 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝑖 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥))))))))
21a1i 11 . 2 (𝜑 → selectVars = (𝑖 ∈ V, 𝑟 ∈ V ↦ (𝑗 ∈ 𝒫 𝑖 ↦ (𝑓 ∈ (Base‘(𝑖 mPoly 𝑟)) ↦ ((𝑖𝑗) mPoly 𝑟) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝑖 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝑖 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥)))))))))
3 pweq 4554 . . . . 5 (𝑖 = 𝐼 → 𝒫 𝑖 = 𝒫 𝐼)
43adantr 480 . . . 4 ((𝑖 = 𝐼𝑟 = 𝑅) → 𝒫 𝑖 = 𝒫 𝐼)
5 oveq12 7277 . . . . . 6 ((𝑖 = 𝐼𝑟 = 𝑅) → (𝑖 mPoly 𝑟) = (𝐼 mPoly 𝑅))
65fveq2d 6772 . . . . 5 ((𝑖 = 𝐼𝑟 = 𝑅) → (Base‘(𝑖 mPoly 𝑟)) = (Base‘(𝐼 mPoly 𝑅)))
7 difeq1 4054 . . . . . . . 8 (𝑖 = 𝐼 → (𝑖𝑗) = (𝐼𝑗))
87adantr 480 . . . . . . 7 ((𝑖 = 𝐼𝑟 = 𝑅) → (𝑖𝑗) = (𝐼𝑗))
9 simpr 484 . . . . . . 7 ((𝑖 = 𝐼𝑟 = 𝑅) → 𝑟 = 𝑅)
108, 9oveq12d 7286 . . . . . 6 ((𝑖 = 𝐼𝑟 = 𝑅) → ((𝑖𝑗) mPoly 𝑟) = ((𝐼𝑗) mPoly 𝑅))
11 oveq1 7275 . . . . . . . . . . . . 13 (𝑖 = 𝐼 → (𝑖 evalSub 𝑡) = (𝐼 evalSub 𝑡))
1211adantr 480 . . . . . . . . . . . 12 ((𝑖 = 𝐼𝑟 = 𝑅) → (𝑖 evalSub 𝑡) = (𝐼 evalSub 𝑡))
1312fveq1d 6770 . . . . . . . . . . 11 ((𝑖 = 𝐼𝑟 = 𝑅) → ((𝑖 evalSub 𝑡)‘ran 𝑑) = ((𝐼 evalSub 𝑡)‘ran 𝑑))
1413fveq1d 6770 . . . . . . . . . 10 ((𝑖 = 𝐼𝑟 = 𝑅) → (((𝑖 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓)) = (((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓)))
15 simpl 482 . . . . . . . . . . 11 ((𝑖 = 𝐼𝑟 = 𝑅) → 𝑖 = 𝐼)
168, 9oveq12d 7286 . . . . . . . . . . . . . 14 ((𝑖 = 𝐼𝑟 = 𝑅) → ((𝑖𝑗) mVar 𝑟) = ((𝐼𝑗) mVar 𝑅))
1716fveq1d 6770 . . . . . . . . . . . . 13 ((𝑖 = 𝐼𝑟 = 𝑅) → (((𝑖𝑗) mVar 𝑟)‘𝑥) = (((𝐼𝑗) mVar 𝑅)‘𝑥))
1817fveq2d 6772 . . . . . . . . . . . 12 ((𝑖 = 𝐼𝑟 = 𝑅) → (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥)) = (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥)))
1918ifeq2d 4484 . . . . . . . . . . 11 ((𝑖 = 𝐼𝑟 = 𝑅) → if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥))) = if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥))))
2015, 19mpteq12dv 5169 . . . . . . . . . 10 ((𝑖 = 𝐼𝑟 = 𝑅) → (𝑥𝑖 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥)))) = (𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥)))))
2114, 20fveq12d 6775 . . . . . . . . 9 ((𝑖 = 𝐼𝑟 = 𝑅) → ((((𝑖 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝑖 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥))))) = ((((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥))))))
2221csbeq2dv 3843 . . . . . . . 8 ((𝑖 = 𝐼𝑟 = 𝑅) → (𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝑖 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝑖 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥))))) = (𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥))))))
2322csbeq2dv 3843 . . . . . . 7 ((𝑖 = 𝐼𝑟 = 𝑅) → (algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝑖 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝑖 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥))))) = (algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥))))))
2423csbeq2dv 3843 . . . . . 6 ((𝑖 = 𝐼𝑟 = 𝑅) → (𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝑖 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝑖 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥))))) = (𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥))))))
2510, 24csbeq12dv 3845 . . . . 5 ((𝑖 = 𝐼𝑟 = 𝑅) → ((𝑖𝑗) mPoly 𝑟) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝑖 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝑖 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥))))) = ((𝐼𝑗) mPoly 𝑅) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥))))))
266, 25mpteq12dv 5169 . . . 4 ((𝑖 = 𝐼𝑟 = 𝑅) → (𝑓 ∈ (Base‘(𝑖 mPoly 𝑟)) ↦ ((𝑖𝑗) mPoly 𝑟) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝑖 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝑖 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥)))))) = (𝑓 ∈ (Base‘(𝐼 mPoly 𝑅)) ↦ ((𝐼𝑗) mPoly 𝑅) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥)))))))
274, 26mpteq12dv 5169 . . 3 ((𝑖 = 𝐼𝑟 = 𝑅) → (𝑗 ∈ 𝒫 𝑖 ↦ (𝑓 ∈ (Base‘(𝑖 mPoly 𝑟)) ↦ ((𝑖𝑗) mPoly 𝑟) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝑖 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝑖 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥))))))) = (𝑗 ∈ 𝒫 𝐼 ↦ (𝑓 ∈ (Base‘(𝐼 mPoly 𝑅)) ↦ ((𝐼𝑗) mPoly 𝑅) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥))))))))
2827adantl 481 . 2 ((𝜑 ∧ (𝑖 = 𝐼𝑟 = 𝑅)) → (𝑗 ∈ 𝒫 𝑖 ↦ (𝑓 ∈ (Base‘(𝑖 mPoly 𝑟)) ↦ ((𝑖𝑗) mPoly 𝑟) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝑖 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝑖 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝑖𝑗) mVar 𝑟)‘𝑥))))))) = (𝑗 ∈ 𝒫 𝐼 ↦ (𝑓 ∈ (Base‘(𝐼 mPoly 𝑅)) ↦ ((𝐼𝑗) mPoly 𝑅) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥))))))))
29 selvffval.i . . 3 (𝜑𝐼𝑉)
3029elexd 3450 . 2 (𝜑𝐼 ∈ V)
31 selvffval.r . . 3 (𝜑𝑅𝑊)
3231elexd 3450 . 2 (𝜑𝑅 ∈ V)
3329pwexd 5305 . . 3 (𝜑 → 𝒫 𝐼 ∈ V)
3433mptexd 7094 . 2 (𝜑 → (𝑗 ∈ 𝒫 𝐼 ↦ (𝑓 ∈ (Base‘(𝐼 mPoly 𝑅)) ↦ ((𝐼𝑗) mPoly 𝑅) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥))))))) ∈ V)
352, 28, 30, 32, 34ovmpod 7416 1 (𝜑 → (𝐼 selectVars 𝑅) = (𝑗 ∈ 𝒫 𝐼 ↦ (𝑓 ∈ (Base‘(𝐼 mPoly 𝑅)) ↦ ((𝐼𝑗) mPoly 𝑅) / 𝑢(𝑗 mPoly 𝑢) / 𝑡(algSc‘𝑡) / 𝑐(𝑐 ∘ (algSc‘𝑢)) / 𝑑((((𝐼 evalSub 𝑡)‘ran 𝑑)‘(𝑑𝑓))‘(𝑥𝐼 ↦ if(𝑥𝑗, ((𝑗 mVar 𝑢)‘𝑥), (𝑐‘(((𝐼𝑗) mVar 𝑅)‘𝑥))))))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1541  wcel 2109  Vcvv 3430  csb 3836  cdif 3888  ifcif 4464  𝒫 cpw 4538  cmpt 5161  ran crn 5589  ccom 5592  cfv 6430  (class class class)co 7268  cmpo 7270  Basecbs 16893  algSccascl 21040   mVar cmvr 21089   mPoly cmpl 21090   evalSub ces 21261   selectVars cslv 21299
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-rep 5213  ax-sep 5226  ax-nul 5233  ax-pow 5291  ax-pr 5355
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-ral 3070  df-rex 3071  df-reu 3072  df-rab 3074  df-v 3432  df-sbc 3720  df-csb 3837  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-pw 4540  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4845  df-iun 4931  df-br 5079  df-opab 5141  df-mpt 5162  df-id 5488  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-res 5600  df-ima 5601  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-f1 6435  df-fo 6436  df-f1o 6437  df-fv 6438  df-ov 7271  df-oprab 7272  df-mpo 7273  df-selv 21303
This theorem is referenced by:  selvfval  21308
  Copyright terms: Public domain W3C validator