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

Theorem coafval 18314
Description: The value of the composition of arrows. (Contributed by Mario Carneiro, 11-Jan-2017.)
Hypotheses
Ref Expression
coafval.o · = (compa‘𝐶)
coafval.a 𝐴 = (Arrow‘𝐶)
coafval.x ∙ = (comp‘𝐶)
Assertion
Ref Expression
coafval · = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
Distinct variable groups:   𝑓,𝑔,ℎ,𝐴   𝐶,𝑓,𝑔,ℎ
Allowed substitution hints:   ∙ (𝑓, 𝑔, ℎ)   · (𝑓, 𝑔, ℎ)

Proof of Theorem coafval
Dummy variable 𝑐 is distinct from all other variables.
StepHypRef Expression
1 coafval.o . 2 · = (compa‘𝐶)
2 fveq2 6931 . . . . . 6 (𝑐 = 𝐶 → (Arrow‘𝑐) = (Arrow‘𝐶))
3 coafval.a . . . . . 6 𝐴 = (Arrow‘𝐶)
42, 3eqtr4di 2827 . . . . 5 (𝑐 = 𝐶 → (Arrow‘𝑐) = 𝐴)
54rabeqdv 3438 . . . . 5 (𝑐 = 𝐶 → {ℎ ∈ (Arrow‘𝑐) ∣ (coda‘ℎ) = (doma‘𝑔)} = {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})
6 fveq2 6931 . . . . . . . . 9 (𝑐 = 𝐶 → (comp‘𝑐) = (comp‘𝐶))
7 coafval.x . . . . . . . . 9 ∙ = (comp‘𝐶)
86, 7eqtr4di 2827 . . . . . . . 8 (𝑐 = 𝐶 → (comp‘𝑐) = ∙ )
98oveqd 7484 . . . . . . 7 (𝑐 = 𝐶 → (⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔)) = (⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔)))
109oveqd 7484 . . . . . 6 (𝑐 = 𝐶 → ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔))(2nd ‘𝑓)) = ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓)))
1110oteq3d 4878 . . . . 5 (𝑐 = 𝐶 → ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔))(2nd ‘𝑓))⟩ = ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
124, 5, 11mpoeq123dv 7542 . . . 4 (𝑐 = 𝐶 → (𝑔 ∈ (Arrow‘𝑐), 𝑓 ∈ {ℎ ∈ (Arrow‘𝑐) ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔))(2nd ‘𝑓))⟩) = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩))
13 df-coa 18306 . . . 4 compa = (𝑐 ∈ Cat ↦ (𝑔 ∈ (Arrow‘𝑐), 𝑓 ∈ {ℎ ∈ (Arrow‘𝑐) ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔))(2nd ‘𝑓))⟩))
143fvexi 6945 . . . . 5 𝐴 ∈ V
1514rabex 5315 . . . . 5 {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ∈ V
1614, 15mpoex 8143 . . . 4 (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) ∈ V
1712, 13, 16fvmpt 7039 . . 3 (𝐶 ∈ Cat → (compa‘𝐶) = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩))
1813fvmptndm 7071 . . . 4 (¬ 𝐶 ∈ Cat → (compa‘𝐶) = ∅)
193arwrcl 18294 . . . . . . . 8 (𝑓 ∈ 𝐴 → 𝐶 ∈ Cat)
2019con3i 155 . . . . . . 7 (¬ 𝐶 ∈ Cat → ¬ 𝑓 ∈ 𝐴)
2120eq0rdv 4375 . . . . . 6 (¬ 𝐶 ∈ Cat → 𝐴 = ∅)
22 eqidd 2775 . . . . . 6 (¬ 𝐶 ∈ Cat → {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} = {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})
23 eqidd 2775 . . . . . 6 (¬ 𝐶 ∈ Cat → ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩ = ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
2421, 22, 23mpoeq123dv 7542 . . . . 5 (¬ 𝐶 ∈ Cat → (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) = (𝑔 ∈ ∅, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩))
25 mpo0 7552 . . . . 5 (𝑔 ∈ ∅, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) = ∅
2624, 25eqtrdi 2825 . . . 4 (¬ 𝐶 ∈ Cat → (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) = ∅)
2718, 26eqtr4d 2812 . . 3 (¬ 𝐶 ∈ Cat → (compa‘𝐶) = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩))
2817, 27pm2.61i 184 . 2 (compa‘𝐶) = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
291, 28eqtri 2797 1 · = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   = wceq 1572   ∈ wcel 2156  {crab 3423  ∅c0 4288  ⟨cop 4848  ⟨cotp 4871  ‘cfv 6578  (class class class)co 7467   ∈ cmpo 7469  2nd c2nd 8050  compcco 17505  Catccat 17913  domacdoma 18270  codaccoda 18271  Arrowcarw 18272  compaccoa 18304
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 7799
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 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-ral 3092  df-rex 3102  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  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-ot 4872  df-uni 4881  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-id 5561  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-iota 6532  df-fun 6580  df-fn 6581  df-f 6582  df-f1 6583  df-fo 6584  df-f1o 6585  df-fv 6586  df-ov 7470  df-oprab 7471  df-mpo 7472  df-1st 8051  df-2nd 8052  df-arw 18277  df-coa 18306
This theorem is used by:  eldmcoa  18315  dmcoass  18316  coaval  18318  coapm  18321
  Copyright terms: Public domain W3C validator