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

Theorem uvcfval 22095
Description: Value of the unit-vector generator for a free module. (Contributed by Stefan O'Rear, 1-Feb-2015.)
Hypotheses
Ref Expression
uvcfval.u 𝑈 = (𝑅 unitVec 𝐼)
uvcfval.o 1 = (1r‘𝑅)
uvcfval.z 0 = (0g‘𝑅)
Assertion
Ref Expression
uvcfval ((𝑅 ∈ 𝑉 ∧ 𝐼 ∈ 𝑊) → 𝑈 = (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))))
Distinct variable groups:   1 ,𝑗,𝑘   𝑅,𝑗,𝑘   𝑗,𝐼,𝑘   0 ,𝑗,𝑘
Allowed substitution hints:   𝑈(𝑗, 𝑘)   𝑉(𝑗, 𝑘)   𝑊(𝑗, 𝑘)

Proof of Theorem uvcfval
Dummy variables 𝑖 𝑟 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 uvcfval.u . 2 𝑈 = (𝑅 unitVec 𝐼)
2 elex 3471 . . 3 (𝑅 ∈ 𝑉 → 𝑅 ∈ V)
3 elex 3471 . . 3 (𝐼 ∈ 𝑊 → 𝐼 ∈ V)
4 df-uvc 22094 . . . . 5 unitVec = (𝑟 ∈ V, 𝑖 ∈ V ↦ (𝑗 ∈ 𝑖 ↦ (𝑘 ∈ 𝑖 ↦ if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟)))))
54a1i 11 . . . 4 ((𝑅 ∈ V ∧ 𝐼 ∈ V) → unitVec = (𝑟 ∈ V, 𝑖 ∈ V ↦ (𝑗 ∈ 𝑖 ↦ (𝑘 ∈ 𝑖 ↦ if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟))))))
6 simpr 490 . . . . . 6 ((𝑟 = 𝑅 ∧ 𝑖 = 𝐼) → 𝑖 = 𝐼)
7 fveq2 6885 . . . . . . . . . 10 (𝑟 = 𝑅 → (1r‘𝑟) = (1r‘𝑅))
8 uvcfval.o . . . . . . . . . 10 1 = (1r‘𝑅)
97, 8eqtr4di 2813 . . . . . . . . 9 (𝑟 = 𝑅 → (1r‘𝑟) = 1 )
10 fveq2 6885 . . . . . . . . . 10 (𝑟 = 𝑅 → (0g‘𝑟) = (0g‘𝑅))
11 uvcfval.z . . . . . . . . . 10 0 = (0g‘𝑅)
1210, 11eqtr4di 2813 . . . . . . . . 9 (𝑟 = 𝑅 → (0g‘𝑟) = 0 )
139, 12ifeq12d 4503 . . . . . . . 8 (𝑟 = 𝑅 → if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟)) = if(𝑘 = 𝑗, 1 , 0 ))
1413adantr 486 . . . . . . 7 ((𝑟 = 𝑅 ∧ 𝑖 = 𝐼) → if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟)) = if(𝑘 = 𝑗, 1 , 0 ))
156, 14mpteq12dv 5191 . . . . . 6 ((𝑟 = 𝑅 ∧ 𝑖 = 𝐼) → (𝑘 ∈ 𝑖 ↦ if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟))) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 )))
166, 15mpteq12dv 5191 . . . . 5 ((𝑟 = 𝑅 ∧ 𝑖 = 𝐼) → (𝑗 ∈ 𝑖 ↦ (𝑘 ∈ 𝑖 ↦ if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟)))) = (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))))
1716adantl 487 . . . 4 (((𝑅 ∈ V ∧ 𝐼 ∈ V) ∧ (𝑟 = 𝑅 ∧ 𝑖 = 𝐼)) → (𝑗 ∈ 𝑖 ↦ (𝑘 ∈ 𝑖 ↦ if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟)))) = (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))))
18 simpl 488 . . . 4 ((𝑅 ∈ V ∧ 𝐼 ∈ V) → 𝑅 ∈ V)
19 simpr 490 . . . 4 ((𝑅 ∈ V ∧ 𝐼 ∈ V) → 𝐼 ∈ V)
20 mptexg 7227 . . . . 5 (𝐼 ∈ V → (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))) ∈ V)
2120adantl 487 . . . 4 ((𝑅 ∈ V ∧ 𝐼 ∈ V) → (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))) ∈ V)
225, 17, 18, 19, 21ovmpod 7572 . . 3 ((𝑅 ∈ V ∧ 𝐼 ∈ V) → (𝑅 unitVec 𝐼) = (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))))
232, 3, 22syl2an 608 . 2 ((𝑅 ∈ 𝑉 ∧ 𝐼 ∈ 𝑊) → (𝑅 unitVec 𝐼) = (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))))
241, 23eqtrid 2807 1 ((𝑅 ∈ 𝑉 ∧ 𝐼 ∈ 𝑊) → 𝑈 = (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2144  Vcvv 3450  ifcif 4481   ↦ cmpt 5185  ‘cfv 6538  (class class class)co 7420   ∈ cmpo 7422  0gc0g 17615  1rcur 20412   unitVec cuvc 22093
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-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  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-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-uvc 22094
This theorem is used by:  uvcval  22096  uvcff  22102  frlmdim  34289
  Copyright terms: Public domain W3C validator