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

Theorem uvcfval 22162
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 3477 . . 3 (𝑅 ∈ 𝑉 → 𝑅 ∈ V)
3 elex 3477 . . 3 (𝐼 ∈ 𝑊 → 𝐼 ∈ V)
4 df-uvc 22161 . . . . 5 unitVec = (𝑟 ∈ V, 𝑖 ∈ V ↦ (𝑗 ∈ 𝑖 ↦ (𝑘 ∈ 𝑖 ↦ if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟)))))
54a1i 11 . . . 4 ((𝑅 ∈ V ∧ 𝐼 ∈ V) → unitVec = (𝑟 ∈ V, 𝑖 ∈ V ↦ (𝑗 ∈ 𝑖 ↦ (𝑘 ∈ 𝑖 ↦ if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟))))))
6 simpr 490 . . . . . 6 ((𝑟 = 𝑅 ∧ 𝑖 = 𝐼) → 𝑖 = 𝐼)
7 fveq2 6926 . . . . . . . . . 10 (𝑟 = 𝑅 → (1r‘𝑟) = (1r‘𝑅))
8 uvcfval.o . . . . . . . . . 10 1 = (1r‘𝑅)
97, 8eqtr4di 2822 . . . . . . . . 9 (𝑟 = 𝑅 → (1r‘𝑟) = 1 )
10 fveq2 6926 . . . . . . . . . 10 (𝑟 = 𝑅 → (0g‘𝑟) = (0g‘𝑅))
11 uvcfval.z . . . . . . . . . 10 0 = (0g‘𝑅)
1210, 11eqtr4di 2822 . . . . . . . . 9 (𝑟 = 𝑅 → (0g‘𝑟) = 0 )
139, 12ifeq12d 4509 . . . . . . . 8 (𝑟 = 𝑅 → if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟)) = if(𝑘 = 𝑗, 1 , 0 ))
1413adantr 486 . . . . . . 7 ((𝑟 = 𝑅 ∧ 𝑖 = 𝐼) → if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟)) = if(𝑘 = 𝑗, 1 , 0 ))
156, 14mpteq12dv 5201 . . . . . 6 ((𝑟 = 𝑅 ∧ 𝑖 = 𝐼) → (𝑘 ∈ 𝑖 ↦ if(𝑘 = 𝑗, (1r‘𝑟), (0g‘𝑟))) = (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 )))
166, 15mpteq12dv 5201 . . . . 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 7268 . . . . 5 (𝐼 ∈ V → (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))) ∈ V)
2120adantl 487 . . . 4 ((𝑅 ∈ V ∧ 𝐼 ∈ V) → (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))) ∈ V)
225, 17, 18, 19, 21ovmpod 7614 . . 3 ((𝑅 ∈ V ∧ 𝐼 ∈ V) → (𝑅 unitVec 𝐼) = (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))))
232, 3, 22syl2an 608 . 2 ((𝑅 ∈ 𝑉 ∧ 𝐼 ∈ 𝑊) → (𝑅 unitVec 𝐼) = (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))))
241, 23eqtrid 2816 1 ((𝑅 ∈ 𝑉 ∧ 𝐼 ∈ 𝑊) → 𝑈 = (𝑗 ∈ 𝐼 ↦ (𝑘 ∈ 𝐼 ↦ if(𝑘 = 𝑗, 1 , 0 ))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2151  Vcvv 3456  ifcif 4487   ↦ cmpt 5195  ‘cfv 6573  (class class class)co 7461   ∈ cmpo 7463  0gc0g 17677  1rcur 20475   unitVec cuvc 22160
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-rep 5241  ax-sep 5258  ax-nul 5269  ax-pr 5401
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-ral 3087  df-rex 3097  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-iun 4961  df-br 5112  df-opab 5177  df-mpt 5196  df-id 5556  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581  df-ov 7464  df-oprab 7465  df-mpo 7466  df-uvc 22161
This theorem is used by:  uvcval  22163  uvcff  22169  frlmdim  34371
  Copyright terms: Public domain W3C validator