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

Theorem coaval 16541
 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 2610 . . 3 (Arrow‘𝐶) = (Arrow‘𝐶)
3 coaval.x . . 3 = (comp‘𝐶)
41, 2, 3coafval 16537 . 2 · = (𝑔 ∈ (Arrow‘𝐶), 𝑓 ∈ { ∈ (Arrow‘𝐶) ∣ (coda) = (doma𝑔)} ↦ ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓))⟩)
5 homdmcoa.h . . . . 5 𝐻 = (Homa𝐶)
62, 5homarw 16519 . . . 4 (𝑌𝐻𝑍) ⊆ (Arrow‘𝐶)
7 homdmcoa.g . . . 4 (𝜑𝐺 ∈ (𝑌𝐻𝑍))
86, 7sseldi 3566 . . 3 (𝜑𝐺 ∈ (Arrow‘𝐶))
92, 5homarw 16519 . . . . 5 (𝑋𝐻𝑌) ⊆ (Arrow‘𝐶)
10 homdmcoa.f . . . . . 6 (𝜑𝐹 ∈ (𝑋𝐻𝑌))
1110adantr 480 . . . . 5 ((𝜑𝑔 = 𝐺) → 𝐹 ∈ (𝑋𝐻𝑌))
129, 11sseldi 3566 . . . 4 ((𝜑𝑔 = 𝐺) → 𝐹 ∈ (Arrow‘𝐶))
135homacd 16514 . . . . . 6 (𝐹 ∈ (𝑋𝐻𝑌) → (coda𝐹) = 𝑌)
1411, 13syl 17 . . . . 5 ((𝜑𝑔 = 𝐺) → (coda𝐹) = 𝑌)
15 simpr 476 . . . . . . 7 ((𝜑𝑔 = 𝐺) → 𝑔 = 𝐺)
1615fveq2d 6107 . . . . . 6 ((𝜑𝑔 = 𝐺) → (doma𝑔) = (doma𝐺))
177adantr 480 . . . . . . 7 ((𝜑𝑔 = 𝐺) → 𝐺 ∈ (𝑌𝐻𝑍))
185homadm 16513 . . . . . . 7 (𝐺 ∈ (𝑌𝐻𝑍) → (doma𝐺) = 𝑌)
1917, 18syl 17 . . . . . 6 ((𝜑𝑔 = 𝐺) → (doma𝐺) = 𝑌)
2016, 19eqtrd 2644 . . . . 5 ((𝜑𝑔 = 𝐺) → (doma𝑔) = 𝑌)
2114, 20eqtr4d 2647 . . . 4 ((𝜑𝑔 = 𝐺) → (coda𝐹) = (doma𝑔))
22 fveq2 6103 . . . . . 6 ( = 𝐹 → (coda) = (coda𝐹))
2322eqeq1d 2612 . . . . 5 ( = 𝐹 → ((coda) = (doma𝑔) ↔ (coda𝐹) = (doma𝑔)))
2423elrab 3331 . . . 4 (𝐹 ∈ { ∈ (Arrow‘𝐶) ∣ (coda) = (doma𝑔)} ↔ (𝐹 ∈ (Arrow‘𝐶) ∧ (coda𝐹) = (doma𝑔)))
2512, 21, 24sylanbrc 695 . . 3 ((𝜑𝑔 = 𝐺) → 𝐹 ∈ { ∈ (Arrow‘𝐶) ∣ (coda) = (doma𝑔)})
26 otex 4860 . . . 4 ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓))⟩ ∈ V
2726a1i 11 . . 3 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓))⟩ ∈ V)
28 simprr 792 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → 𝑓 = 𝐹)
2928fveq2d 6107 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (doma𝑓) = (doma𝐹))
305homadm 16513 . . . . . . 7 (𝐹 ∈ (𝑋𝐻𝑌) → (doma𝐹) = 𝑋)
3111, 30syl 17 . . . . . 6 ((𝜑𝑔 = 𝐺) → (doma𝐹) = 𝑋)
3231adantrr 749 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (doma𝐹) = 𝑋)
3329, 32eqtrd 2644 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (doma𝑓) = 𝑋)
3415fveq2d 6107 . . . . . 6 ((𝜑𝑔 = 𝐺) → (coda𝑔) = (coda𝐺))
355homacd 16514 . . . . . . 7 (𝐺 ∈ (𝑌𝐻𝑍) → (coda𝐺) = 𝑍)
3617, 35syl 17 . . . . . 6 ((𝜑𝑔 = 𝐺) → (coda𝐺) = 𝑍)
3734, 36eqtrd 2644 . . . . 5 ((𝜑𝑔 = 𝐺) → (coda𝑔) = 𝑍)
3837adantrr 749 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (coda𝑔) = 𝑍)
3920adantrr 749 . . . . . . 7 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (doma𝑔) = 𝑌)
4033, 39opeq12d 4348 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → ⟨(doma𝑓), (doma𝑔)⟩ = ⟨𝑋, 𝑌⟩)
4140, 38oveq12d 6567 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔)) = (⟨𝑋, 𝑌 𝑍))
42 simprl 790 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → 𝑔 = 𝐺)
4342fveq2d 6107 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (2nd𝑔) = (2nd𝐺))
4428fveq2d 6107 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → (2nd𝑓) = (2nd𝐹))
4541, 43, 44oveq123d 6570 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓)) = ((2nd𝐺)(⟨𝑋, 𝑌 𝑍)(2nd𝐹)))
4633, 38, 45oteq123d 4355 . . 3 ((𝜑 ∧ (𝑔 = 𝐺𝑓 = 𝐹)) → ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓))⟩ = ⟨𝑋, 𝑍, ((2nd𝐺)(⟨𝑋, 𝑌 𝑍)(2nd𝐹))⟩)
478, 25, 27, 46ovmpt2dv2 6692 . 2 (𝜑 → ( · = (𝑔 ∈ (Arrow‘𝐶), 𝑓 ∈ { ∈ (Arrow‘𝐶) ∣ (coda) = (doma𝑔)} ↦ ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩ (coda𝑔))(2nd𝑓))⟩) → (𝐺 · 𝐹) = ⟨𝑋, 𝑍, ((2nd𝐺)(⟨𝑋, 𝑌 𝑍)(2nd𝐹))⟩))
484, 47mpi 20 1 (𝜑 → (𝐺 · 𝐹) = ⟨𝑋, 𝑍, ((2nd𝐺)(⟨𝑋, 𝑌 𝑍)(2nd𝐹))⟩)
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 383   = wceq 1475   ∈ wcel 1977  {crab 2900  Vcvv 3173  ⟨cop 4131  ⟨cotp 4133  ‘cfv 5804  (class class class)co 6549   ↦ cmpt2 6551  2nd c2nd 7058  compcco 15780  domacdoma 16493  codaccoda 16494  Arrowcarw 16495  Homachoma 16496  compaccoa 16527 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-rep 4699  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847 This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-reu 2903  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-pw 4110  df-sn 4126  df-pr 4128  df-op 4132  df-ot 4134  df-uni 4373  df-iun 4457  df-br 4584  df-opab 4644  df-mpt 4645  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811  df-fv 5812  df-ov 6552  df-oprab 6553  df-mpt2 6554  df-1st 7059  df-2nd 7060  df-doma 16497  df-coda 16498  df-homa 16499  df-arw 16500  df-coa 16529 This theorem is referenced by:  coa2  16542  coahom  16543  arwlid  16545  arwrid  16546  arwass  16547
 Copyright terms: Public domain W3C validator