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

Theorem coaval 17699
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 2738 . . 3 (Arrow‘𝐶) = (Arrow‘𝐶)
3 coaval.x . . 3 = (comp‘𝐶)
41, 2, 3coafval 17695 . 2 · = (𝑔 ∈ (Arrow‘𝐶), 𝑓 ∈ { ∈ (Arrow‘𝐶) ∣ (coda) = (doma𝑔)} ↦ ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓))⟩)
5 homdmcoa.h . . . . 5 𝐻 = (Homa𝐶)
62, 5homarw 17677 . . . 4 (𝑌𝐻𝑍) ⊆ (Arrow‘𝐶)
7 homdmcoa.g . . . 4 (𝜑𝐺 ∈ (𝑌𝐻𝑍))
86, 7sselid 3915 . . 3 (𝜑𝐺 ∈ (Arrow‘𝐶))
9 fveqeq2 6765 . . . 4 ( = 𝐹 → ((coda) = (doma𝑔) ↔ (coda𝐹) = (doma𝑔)))
102, 5homarw 17677 . . . . 5 (𝑋𝐻𝑌) ⊆ (Arrow‘𝐶)
11 homdmcoa.f . . . . . 6 (𝜑𝐹 ∈ (𝑋𝐻𝑌))
1211adantr 480 . . . . 5 ((𝜑𝑔 = 𝐺) → 𝐹 ∈ (𝑋𝐻𝑌))
1310, 12sselid 3915 . . . 4 ((𝜑𝑔 = 𝐺) → 𝐹 ∈ (Arrow‘𝐶))
145homacd 17672 . . . . . 6 (𝐹 ∈ (𝑋𝐻𝑌) → (coda𝐹) = 𝑌)
1512, 14syl 17 . . . . 5 ((𝜑𝑔 = 𝐺) → (coda𝐹) = 𝑌)
16 simpr 484 . . . . . . 7 ((𝜑𝑔 = 𝐺) → 𝑔 = 𝐺)
1716fveq2d 6760 . . . . . 6 ((𝜑𝑔 = 𝐺) → (doma𝑔) = (doma𝐺))
187adantr 480 . . . . . . 7 ((𝜑𝑔 = 𝐺) → 𝐺 ∈ (𝑌𝐻𝑍))
195homadm 17671 . . . . . . 7 (𝐺 ∈ (𝑌𝐻𝑍) → (doma𝐺) = 𝑌)
2018, 19syl 17 . . . . . 6 ((𝜑𝑔 = 𝐺) → (doma𝐺) = 𝑌)
2117, 20eqtrd 2778 . . . . 5 ((𝜑𝑔 = 𝐺) → (doma𝑔) = 𝑌)
2215, 21eqtr4d 2781 . . . 4 ((𝜑𝑔 = 𝐺) → (coda𝐹) = (doma𝑔))
239, 13, 22elrabd 3619 . . 3 ((𝜑𝑔 = 𝐺) → 𝐹 ∈ { ∈ (Arrow‘𝐶) ∣ (coda) = (doma𝑔)})
24 otex 5374 . . . 4 ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓))⟩ ∈ V
2524a1i 11 . . 3 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓))⟩ ∈ V)
26 simprr 769 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → 𝑓 = 𝐹)
2726fveq2d 6760 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (doma𝑓) = (doma𝐹))
285homadm 17671 . . . . . . 7 (𝐹 ∈ (𝑋𝐻𝑌) → (doma𝐹) = 𝑋)
2912, 28syl 17 . . . . . 6 ((𝜑𝑔 = 𝐺) → (doma𝐹) = 𝑋)
3029adantrr 713 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (doma𝐹) = 𝑋)
3127, 30eqtrd 2778 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (doma𝑓) = 𝑋)
3216fveq2d 6760 . . . . . 6 ((𝜑𝑔 = 𝐺) → (coda𝑔) = (coda𝐺))
335homacd 17672 . . . . . . 7 (𝐺 ∈ (𝑌𝐻𝑍) → (coda𝐺) = 𝑍)
3418, 33syl 17 . . . . . 6 ((𝜑𝑔 = 𝐺) → (coda𝐺) = 𝑍)
3532, 34eqtrd 2778 . . . . 5 ((𝜑𝑔 = 𝐺) → (coda𝑔) = 𝑍)
3635adantrr 713 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (coda𝑔) = 𝑍)
3721adantrr 713 . . . . . . 7 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (doma𝑔) = 𝑌)
3831, 37opeq12d 4809 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → ⟨(doma𝑓), (doma𝑔)⟩ = ⟨𝑋, 𝑌⟩)
3938, 36oveq12d 7273 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔)) = (⟨𝑋, 𝑌 𝑍))
40 simprl 767 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → 𝑔 = 𝐺)
4140fveq2d 6760 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (2nd𝑔) = (2nd𝐺))
4226fveq2d 6760 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (2nd𝑓) = (2nd𝐹))
4339, 41, 42oveq123d 7276 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓)) = ((2nd𝐺)(⟨𝑋, 𝑌 𝑍)(2nd𝐹)))
4431, 36, 43oteq123d 4816 . . 3 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓))⟩ = ⟨𝑋, 𝑍, ((2nd𝐺)(⟨𝑋, 𝑌 𝑍)(2nd𝐹))⟩)
458, 23, 25, 44ovmpodv2 7409 . 2 (𝜑 → ( · = (𝑔 ∈ (Arrow‘𝐶), 𝑓 ∈ { ∈ (Arrow‘𝐶) ∣ (coda) = (doma𝑔)} ↦ ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓))⟩) → (𝐺 · 𝐹) = ⟨𝑋, 𝑍, ((2nd𝐺)(⟨𝑋, 𝑌 𝑍)(2nd𝐹))⟩))
464, 45mpi 20 1 (𝜑 → (𝐺 · 𝐹) = ⟨𝑋, 𝑍, ((2nd𝐺)(⟨𝑋, 𝑌 𝑍)(2nd𝐹))⟩)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  {crab 3067  Vcvv 3422  cop 4564  cotp 4566  cfv 6418  (class class class)co 7255  cmpo 7257  2nd c2nd 7803  compcco 16900  domacdoma 17651  codaccoda 17652  Arrowcarw 17653  Homachoma 17654  compaccoa 17685
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-ot 4567  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-1st 7804  df-2nd 7805  df-doma 17655  df-coda 17656  df-homa 17657  df-arw 17658  df-coa 17687
This theorem is referenced by:  coa2  17700  coahom  17701  arwlid  17703  arwrid  17704  arwass  17705
  Copyright terms: Public domain W3C validator