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

Theorem coaval 18318
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 2774 . . 3 (Arrow‘𝐶) = (Arrow‘𝐶)
3 coaval.x . . 3 ∙ = (comp‘𝐶)
41, 2, 3coafval 18314 . 2 · = (𝑔 ∈ (Arrow‘𝐶), 𝑓 ∈ {ℎ ∈ (Arrow‘𝐶) ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
5 homdmcoa.h . . . . 5 𝐻 = (Homa‘𝐶)
62, 5homarw 18296 . . . 4 (𝑌𝐻𝑍) ⊆ (Arrow‘𝐶)
7 homdmcoa.g . . . 4 (𝜑 → 𝐺 ∈ (𝑌𝐻𝑍))
86, 7sselid 3918 . . 3 (𝜑 → 𝐺 ∈ (Arrow‘𝐶))
9 fveqeq2 6940 . . . 4 (ℎ = 𝐹 → ((coda‘ℎ) = (doma‘𝑔) ↔ (coda‘𝐹) = (doma‘𝑔)))
102, 5homarw 18296 . . . . 5 (𝑋𝐻𝑌) ⊆ (Arrow‘𝐶)
11 homdmcoa.f . . . . . 6 (𝜑 → 𝐹 ∈ (𝑋𝐻𝑌))
1211adantr 486 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐹 ∈ (𝑋𝐻𝑌))
1310, 12sselid 3918 . . . 4 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐹 ∈ (Arrow‘𝐶))
145homacd 18291 . . . . . 6 (𝐹 ∈ (𝑋𝐻𝑌) → (coda‘𝐹) = 𝑌)
1512, 14syl 18 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝐹) = 𝑌)
16 simpr 490 . . . . . . 7 ((𝜑 ∧ 𝑔 = 𝐺) → 𝑔 = 𝐺)
1716fveq2d 6935 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝑔) = (doma‘𝐺))
187adantr 486 . . . . . . 7 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐺 ∈ (𝑌𝐻𝑍))
195homadm 18290 . . . . . . 7 (𝐺 ∈ (𝑌𝐻𝑍) → (doma‘𝐺) = 𝑌)
2018, 19syl 18 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝐺) = 𝑌)
2117, 20eqtrd 2809 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝑔) = 𝑌)
2215, 21eqtr4d 2812 . . . 4 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝐹) = (doma‘𝑔))
239, 13, 22elrabd 3657 . . 3 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐹 ∈ {ℎ ∈ (Arrow‘𝐶) ∣ (coda‘ℎ) = (doma‘𝑔)})
24 otex 5449 . . . 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 6935 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝑓) = (doma‘𝐹))
285homadm 18290 . . . . . . 7 (𝐹 ∈ (𝑋𝐻𝑌) → (doma‘𝐹) = 𝑋)
2912, 28syl 18 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝐹) = 𝑋)
3029adantrr 730 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝐹) = 𝑋)
3127, 30eqtrd 2809 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝑓) = 𝑋)
3216fveq2d 6935 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝑔) = (coda‘𝐺))
335homacd 18291 . . . . . . 7 (𝐺 ∈ (𝑌𝐻𝑍) → (coda‘𝐺) = 𝑍)
3418, 33syl 18 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝐺) = 𝑍)
3532, 34eqtrd 2809 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝑔) = 𝑍)
3635adantrr 730 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (coda‘𝑔) = 𝑍)
3721adantrr 730 . . . . . . 7 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝑔) = 𝑌)
3831, 37opeq12d 4861 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → ⟨(doma‘𝑓), (doma‘𝑔)⟩ = ⟨𝑋, 𝑌⟩)
3938, 36oveq12d 7485 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔)) = (⟨𝑋, 𝑌⟩ ∙ 𝑍))
40 simprl 783 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → 𝑔 = 𝐺)
4140fveq2d 6935 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (2nd ‘𝑔) = (2nd ‘𝐺))
4226fveq2d 6935 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (2nd ‘𝑓) = (2nd ‘𝐹))
4339, 41, 42oveq123d 7488 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓)) = ((2nd ‘𝐺)(⟨𝑋, 𝑌⟩ ∙ 𝑍)(2nd ‘𝐹)))
4431, 36, 43oteq123d 4879 . . 3 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩ = ⟨𝑋, 𝑍, ((2nd ‘𝐺)(⟨𝑋, 𝑌⟩ ∙ 𝑍)(2nd ‘𝐹))⟩)
458, 23, 25, 44ovmpodv2 7626 . 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 1572   ∈ wcel 2156  {crab 3423  Vcvv 3461  ⟨cop 4848  ⟨cotp 4871  ‘cfv 6578  (class class class)co 7467   ∈ cmpo 7469  2nd c2nd 8050  compcco 17505  domacdoma 18270  codaccoda 18271  Arrowcarw 18272  Homachoma 18273  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-doma 18274  df-coda 18275  df-homa 18276  df-arw 18277  df-coa 18306
This theorem is used by:  coa2  18319  coahom  18320  arwlid  18322  arwrid  18323  arwass  18324
  Copyright terms: Public domain W3C validator