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

Theorem coafval 18232
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 6883 . . . . . 6 (𝑐 = 𝐶 → (Arrow‘𝑐) = (Arrow‘𝐶))
3 coafval.a . . . . . 6 𝐴 = (Arrow‘𝐶)
42, 3eqtr4di 2814 . . . . 5 (𝑐 = 𝐶 → (Arrow‘𝑐) = 𝐴)
54rabeqdv 3428 . . . . 5 (𝑐 = 𝐶 → {ℎ ∈ (Arrow‘𝑐) ∣ (coda‘ℎ) = (doma‘𝑔)} = {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})
6 fveq2 6883 . . . . . . . . 9 (𝑐 = 𝐶 → (comp‘𝑐) = (comp‘𝐶))
7 coafval.x . . . . . . . . 9 ∙ = (comp‘𝐶)
86, 7eqtr4di 2814 . . . . . . . 8 (𝑐 = 𝐶 → (comp‘𝑐) = ∙ )
98oveqd 7435 . . . . . . 7 (𝑐 = 𝐶 → (⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔)) = (⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔)))
109oveqd 7435 . . . . . 6 (𝑐 = 𝐶 → ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔))(2nd ‘𝑓)) = ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓)))
1110oteq3d 4847 . . . . 5 (𝑐 = 𝐶 → ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔))(2nd ‘𝑓))⟩ = ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
124, 5, 11mpoeq123dv 7493 . . . 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 18224 . . . 4 compa = (𝑐 ∈ Cat ↦ (𝑔 ∈ (Arrow‘𝑐), 𝑓 ∈ {ℎ ∈ (Arrow‘𝑐) ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝑐)(coda‘𝑔))(2nd ‘𝑓))⟩))
143fvexi 6897 . . . . 5 𝐴 ∈ V
1514rabex 5300 . . . . 5 {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ∈ V
1614, 15mpoex 8090 . . . 4 (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) ∈ V
1712, 13, 16fvmpt 6991 . . 3 (𝐶 ∈ Cat → (compa‘𝐶) = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩))
1813fvmptndm 7023 . . . 4 (¬ 𝐶 ∈ Cat → (compa‘𝐶) = ∅)
193arwrcl 18212 . . . . . . . 8 (𝑓 ∈ 𝐴 → 𝐶 ∈ Cat)
2019con3i 155 . . . . . . 7 (¬ 𝐶 ∈ Cat → ¬ 𝑓 ∈ 𝐴)
2120eq0rdv 4365 . . . . . 6 (¬ 𝐶 ∈ Cat → 𝐴 = ∅)
22 eqidd 2762 . . . . . 6 (¬ 𝐶 ∈ Cat → {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} = {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})
23 eqidd 2762 . . . . . 6 (¬ 𝐶 ∈ Cat → ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩ = ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
2421, 22, 23mpoeq123dv 7493 . . . . 5 (¬ 𝐶 ∈ Cat → (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) = (𝑔 ∈ ∅, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩))
25 mpo0 7503 . . . . 5 (𝑔 ∈ ∅, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) = ∅
2624, 25eqtrdi 2812 . . . 4 (¬ 𝐶 ∈ Cat → (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) = ∅)
2718, 26eqtr4d 2799 . . 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 2784 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 2145  {crab 3413  ∅c0 4279  ⟨cop 4590  ⟨cotp 4592  ‘cfv 6537  (class class class)co 7418   ∈ cmpo 7420  2nd c2nd 7998  compcco 17433  Catccat 17831  domacdoma 18188  codaccoda 18189  Arrowcarw 18190  compaccoa 18222
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7749
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-ot 4593  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fo 6543  df-f1o 6544  df-fv 6545  df-ov 7421  df-oprab 7422  df-mpo 7423  df-1st 7999  df-2nd 8000  df-arw 18195  df-coa 18224
This theorem is used by:  eldmcoa  18233  dmcoass  18234  coaval  18236  coapm  18239
  Copyright terms: Public domain W3C validator