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

Theorem coaval 18293
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 2763 . . 3 (Arrow‘𝐶) = (Arrow‘𝐶)
3 coaval.x . . 3 ∙ = (comp‘𝐶)
41, 2, 3coafval 18289 . 2 · = (𝑔 ∈ (Arrow‘𝐶), 𝑓 ∈ {ℎ ∈ (Arrow‘𝐶) ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩)
5 homdmcoa.h . . . . 5 𝐻 = (Homa‘𝐶)
62, 5homarw 18271 . . . 4 (𝑌𝐻𝑍) ⊆ (Arrow‘𝐶)
7 homdmcoa.g . . . 4 (𝜑 → 𝐺 ∈ (𝑌𝐻𝑍))
86, 7sselid 3911 . . 3 (𝜑 → 𝐺 ∈ (Arrow‘𝐶))
9 fveqeq2 6925 . . . 4 (ℎ = 𝐹 → ((coda‘ℎ) = (doma‘𝑔) ↔ (coda‘𝐹) = (doma‘𝑔)))
102, 5homarw 18271 . . . . 5 (𝑋𝐻𝑌) ⊆ (Arrow‘𝐶)
11 homdmcoa.f . . . . . 6 (𝜑 → 𝐹 ∈ (𝑋𝐻𝑌))
1211adantr 486 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐹 ∈ (𝑋𝐻𝑌))
1310, 12sselid 3911 . . . 4 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐹 ∈ (Arrow‘𝐶))
145homacd 18266 . . . . . 6 (𝐹 ∈ (𝑋𝐻𝑌) → (coda‘𝐹) = 𝑌)
1512, 14syl 18 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝐹) = 𝑌)
16 simpr 490 . . . . . . 7 ((𝜑 ∧ 𝑔 = 𝐺) → 𝑔 = 𝐺)
1716fveq2d 6920 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝑔) = (doma‘𝐺))
187adantr 486 . . . . . . 7 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐺 ∈ (𝑌𝐻𝑍))
195homadm 18265 . . . . . . 7 (𝐺 ∈ (𝑌𝐻𝑍) → (doma‘𝐺) = 𝑌)
2018, 19syl 18 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝐺) = 𝑌)
2117, 20eqtrd 2798 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝑔) = 𝑌)
2215, 21eqtr4d 2801 . . . 4 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝐹) = (doma‘𝑔))
239, 13, 22elrabd 3650 . . 3 ((𝜑 ∧ 𝑔 = 𝐺) → 𝐹 ∈ {ℎ ∈ (Arrow‘𝐶) ∣ (coda‘ℎ) = (doma‘𝑔)})
24 otex 5441 . . . 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 6920 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝑓) = (doma‘𝐹))
285homadm 18265 . . . . . . 7 (𝐹 ∈ (𝑋𝐻𝑌) → (doma‘𝐹) = 𝑋)
2912, 28syl 18 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (doma‘𝐹) = 𝑋)
3029adantrr 730 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝐹) = 𝑋)
3127, 30eqtrd 2798 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝑓) = 𝑋)
3216fveq2d 6920 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝑔) = (coda‘𝐺))
335homacd 18266 . . . . . . 7 (𝐺 ∈ (𝑌𝐻𝑍) → (coda‘𝐺) = 𝑍)
3418, 33syl 18 . . . . . 6 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝐺) = 𝑍)
3532, 34eqtrd 2798 . . . . 5 ((𝜑 ∧ 𝑔 = 𝐺) → (coda‘𝑔) = 𝑍)
3635adantrr 730 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (coda‘𝑔) = 𝑍)
3721adantrr 730 . . . . . . 7 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (doma‘𝑔) = 𝑌)
3831, 37opeq12d 4853 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → ⟨(doma‘𝑓), (doma‘𝑔)⟩ = ⟨𝑋, 𝑌⟩)
3938, 36oveq12d 7469 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔)) = (⟨𝑋, 𝑌⟩ ∙ 𝑍))
40 simprl 783 . . . . . 6 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → 𝑔 = 𝐺)
4140fveq2d 6920 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (2nd ‘𝑔) = (2nd ‘𝐺))
4226fveq2d 6920 . . . . 5 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → (2nd ‘𝑓) = (2nd ‘𝐹))
4339, 41, 42oveq123d 7472 . . . 4 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓)) = ((2nd ‘𝐺)(⟨𝑋, 𝑌⟩ ∙ 𝑍)(2nd ‘𝐹)))
4431, 36, 43oteq123d 4871 . . 3 ((𝜑 ∧ (𝑔 = 𝐺 ∧ 𝑓 = 𝐹)) → ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩ ∙ (coda‘𝑔))(2nd ‘𝑓))⟩ = ⟨𝑋, 𝑍, ((2nd ‘𝐺)(⟨𝑋, 𝑌⟩ ∙ 𝑍)(2nd ‘𝐹))⟩)
458, 23, 25, 44ovmpodv2 7610 . 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 2147  {crab 3416  Vcvv 3454  ⟨cop 4840  ⟨cotp 4863  ‘cfv 6566  (class class class)co 7451   ∈ cmpo 7453  2nd c2nd 8034  compcco 17484  domacdoma 18245  codaccoda 18246  Arrowcarw 18247  Homachoma 18248  compaccoa 18279
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5238  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-ot 4864  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-ov 7454  df-oprab 7455  df-mpo 7456  df-1st 8035  df-2nd 8036  df-doma 18249  df-coda 18250  df-homa 18251  df-arw 18252  df-coa 18281
This theorem is used by:  coa2  18294  coahom  18295  arwlid  18297  arwrid  18298  arwass  18299
  Copyright terms: Public domain W3C validator