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

Theorem coafval 18289
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 6916 . . . . . 6 (𝑐 = 𝐶 → (Arrow‘𝑐) = (Arrow‘𝐶))
3 coafval.a . . . . . 6 𝐴 = (Arrow‘𝐶)
42, 3eqtr4di 2816 . . . . 5 (𝑐 = 𝐶 → (Arrow‘𝑐) = 𝐴)
54rabeqdv 3431 . . . . 5 (𝑐 = 𝐶 → {ℎ ∈ (Arrow‘𝑐) ∣ (coda‘ℎ) = (doma‘𝑔)} = {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})
6 fveq2 6916 . . . . . . . . 9 (𝑐 = 𝐶 → (comp‘𝑐) = (comp‘𝐶))
7 coafval.x . . . . . . . . 9 ∙ = (comp‘𝐶)
86, 7eqtr4di 2816 . . . . . . . 8 (𝑐 = 𝐶 → (comp‘𝑐) = ∙ )
98oveqd 7468 . . . . . . 7 (𝑐 = 𝐶 → (⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔)) = (⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔)))
109oveqd 7468 . . . . . 6 (𝑐 = 𝐶 → ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔))(2nd ‘𝑓)) = ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓)))
1110oteq3d 4870 . . . . 5 (𝑐 = 𝐶 → ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔))(2nd ‘𝑓))⟩ = ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
124, 5, 11mpoeq123dv 7526 . . . 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 18281 . . . 4 compa = (𝑐 ∈ Cat ↦ (𝑔 ∈ (Arrow‘𝑐), 𝑓 ∈ {ℎ ∈ (Arrow‘𝑐) ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔))(2nd ‘𝑓))⟩))
143fvexi 6930 . . . . 5 𝐴 ∈ V
1514rabex 5307 . . . . 5 {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ∈ V
1614, 15mpoex 8127 . . . 4 (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) ∈ V
1712, 13, 16fvmpt 7024 . . 3 (𝐶 ∈ Cat → (compa‘𝐶) = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩))
1813fvmptndm 7056 . . . 4 (¬ 𝐶 ∈ Cat → (compa‘𝐶) = ∅)
193arwrcl 18269 . . . . . . . 8 (𝑓 ∈ 𝐴 → 𝐶 ∈ Cat)
2019con3i 155 . . . . . . 7 (¬ 𝐶 ∈ Cat → ¬ 𝑓 ∈ 𝐴)
2120eq0rdv 4368 . . . . . 6 (¬ 𝐶 ∈ Cat → 𝐴 = ∅)
22 eqidd 2764 . . . . . 6 (¬ 𝐶 ∈ Cat → {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} = {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})
23 eqidd 2764 . . . . . 6 (¬ 𝐶 ∈ Cat → ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩ = ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
2421, 22, 23mpoeq123dv 7526 . . . . 5 (¬ 𝐶 ∈ Cat → (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) = (𝑔 ∈ ∅, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩))
25 mpo0 7536 . . . . 5 (𝑔 ∈ ∅, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) = ∅
2624, 25eqtrdi 2814 . . . 4 (¬ 𝐶 ∈ Cat → (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) = ∅)
2718, 26eqtr4d 2801 . . 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 2786 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 1570   ∈ wcel 2147  {crab 3416  ∅c0 4281  ⟨cop 4840  ⟨cotp 4863  ‘cfv 6566  (class class class)co 7451   ∈ cmpo 7453  2nd c2nd 8034  compcco 17484  Catccat 17888  domacdoma 18245  codaccoda 18246  Arrowcarw 18247  compaccoa 18279
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5238  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-ot 4864  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-ov 7454  df-oprab 7455  df-mpo 7456  df-1st 8035  df-2nd 8036  df-arw 18252  df-coa 18281
This theorem is used by:  eldmcoa  18290  dmcoass  18291  coaval  18293  coapm  18296
  Copyright terms: Public domain W3C validator