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

Theorem coaval 18236
Description: Value of composition for composable arrows. (Contributed by Mario Carneiro, 11-Jan-2017.)
Hypotheses
Ref Expression
homdmcoa.o · = (compa‘𝐶)
homdmcoa.h 𝐻 = (Homa‘𝐶)
homdmcoa.f (𝜑 → 𝐹 ∈ (𝑋𝐻𝑌))
homdmcoa.g (𝜑 → 𝐺 ∈ (𝑌𝐻𝑍))
coaval.x ∙ = (comp‘𝐶)
Assertion
Ref Expression
coaval (𝜑 → (𝐺 · 𝐹) = ⟨𝑋, 𝑍, ((2nd ‘𝐺)(⟨𝑋, 𝑌⟩ ∙ 𝑍)(2nd ‘𝐹))⟩)

Proof of Theorem coaval
Dummy variables 𝑓 𝑔 ℎ are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 homdmcoa.o . . 3 · = (compa‘𝐶)
2 eqid 2761 . . 3 (Arrow‘𝐶) = (Arrow‘𝐶)
3 coaval.x . . 3 ∙ = (comp‘𝐶)
41, 2, 3coafval 18232 . 2 · = (𝑔 ∈ (Arrow‘𝐶), 𝑓 ∈ {ℎ ∈ (Arrow‘𝐶) ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
5 homdmcoa.h . . . . 5 𝐻 = (Homa‘𝐶)
62, 5homarw 18214 . . . 4 (𝑌𝐻𝑍) ⊆ (Arrow‘𝐶)
7 homdmcoa.g . . . 4 (𝜑 → 𝐺 ∈ (𝑌𝐻𝑍))
86, 7sselid 3929 . . 3 (𝜑 → 𝐺 ∈ (Arrow‘𝐶))
9 fveqeq2 6892 . . . 4 (ℎ = 𝐹 → ((coda‘ℎ) = (doma‘𝑔) ↔ (coda‘𝐹) = (doma‘𝑔)))
102, 5homarw 18214 . . . . 5 (𝑋𝐻𝑌) ⊆ (Arrow‘𝐶)
11 homdmcoa.f . . . . . 6 (𝜑 → 𝐹 ∈ (𝑋𝐻𝑌))
1211adantr 486 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐹 ∈ (𝑋𝐻𝑌))
1310, 12sselid 3929 . . . 4 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐹 ∈ (Arrow‘𝐶))
145homacd 18209 . . . . . 6 (𝐹 ∈ (𝑋𝐻𝑌) → (coda‘𝐹) = 𝑌)
1512, 14syl 18 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝐹) = 𝑌)
16 simpr 490 . . . . . . 7 ((𝜑 ∧ 𝑔 = 𝐺) → 𝑔 = 𝐺)
1716fveq2d 6887 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝑔) = (doma‘𝐺))
187adantr 486 . . . . . . 7 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐺 ∈ (𝑌𝐻𝑍))
195homadm 18208 . . . . . . 7 (𝐺 ∈ (𝑌𝐻𝑍) → (doma‘𝐺) = 𝑌)
2018, 19syl 18 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝐺) = 𝑌)
2117, 20eqtrd 2796 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝑔) = 𝑌)
2215, 21eqtr4d 2799 . . . 4 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝐹) = (doma‘𝑔))
239, 13, 22elrabd 3647 . . 3 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐹 ∈ {ℎ ∈ (Arrow‘𝐶) ∣ (coda‘ℎ) = (doma‘𝑔)})
24 otex 5434 . . . 4 ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩ ∈ V
2524a1i 11 . . 3 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩ ∈ V)
26 simprr 785 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → 𝑓 = 𝐹)
2726fveq2d 6887 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝑓) = (doma‘𝐹))
285homadm 18208 . . . . . . 7 (𝐹 ∈ (𝑋𝐻𝑌) → (doma‘𝐹) = 𝑋)
2912, 28syl 18 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝐹) = 𝑋)
3029adantrr 730 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝐹) = 𝑋)
3127, 30eqtrd 2796 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝑓) = 𝑋)
3216fveq2d 6887 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝑔) = (coda‘𝐺))
335homacd 18209 . . . . . . 7 (𝐺 ∈ (𝑌𝐻𝑍) → (coda‘𝐺) = 𝑍)
3418, 33syl 18 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝐺) = 𝑍)
3532, 34eqtrd 2796 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝑔) = 𝑍)
3635adantrr 730 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (coda‘𝑔) = 𝑍)
3721adantrr 730 . . . . . . 7 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝑔) = 𝑌)
3831, 37opeq12d 4841 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → ⟨(doma‘𝑓), (doma‘𝑔)⟩ = ⟨𝑋, 𝑌⟩)
3938, 36oveq12d 7436 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔)) = (⟨𝑋, 𝑌⟩ ∙ 𝑍))
40 simprl 783 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → 𝑔 = 𝐺)
4140fveq2d 6887 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (2nd ‘𝑔) = (2nd ‘𝐺))
4226fveq2d 6887 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (2nd ‘𝑓) = (2nd ‘𝐹))
4339, 41, 42oveq123d 7439 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓)) = ((2nd ‘𝐺)(⟨𝑋, 𝑌⟩ ∙ 𝑍)(2nd ‘𝐹)))
4431, 36, 43oteq123d 4848 . . 3 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩ = ⟨𝑋, 𝑍, ((2nd ‘𝐺)(⟨𝑋, 𝑌⟩ ∙ 𝑍)(2nd ‘𝐹))⟩)
458, 23, 25, 44ovmpodv2 7576 . 2 (𝜑 → ( · = (𝑔 ∈ (Arrow‘𝐶), 𝑓 ∈ {ℎ ∈ (Arrow‘𝐶) ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩) → (𝐺 · 𝐹) = ⟨𝑋, 𝑍, ((2nd ‘𝐺)(⟨𝑋, 𝑌⟩ ∙ 𝑍)(2nd ‘𝐹))⟩))
464, 45mpi 21 1 (𝜑 → (𝐺 · 𝐹) = ⟨𝑋, 𝑍, ((2nd ‘𝐺)(⟨𝑋, 𝑌⟩ ∙ 𝑍)(2nd ‘𝐹))⟩)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2145  {crab 3413  Vcvv 3451  ⟨cop 4590  ⟨cotp 4592  ‘cfv 6537  (class class class)co 7418   ∈ cmpo 7420  2nd c2nd 7998  compcco 17433  domacdoma 18188  codaccoda 18189  Arrowcarw 18190  Homachoma 18191  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-doma 18192  df-coda 18193  df-homa 18194  df-arw 18195  df-coa 18224
This theorem is used by:  coa2  18237  coahom  18238  arwlid  18240  arwrid  18241  arwass  18242
  Copyright terms: Public domain W3C validator