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

Theorem eldmcoa 17696
Description: A pair 𝐺, 𝐹 is in the domain of the arrow composition, if the domain of 𝐺 equals the codomain of 𝐹. (In this case we say 𝐺 and 𝐹 are composable.) (Contributed by Mario Carneiro, 11-Jan-2017.)
Hypotheses
Ref Expression
coafval.o · = (compa𝐶)
coafval.a 𝐴 = (Arrow‘𝐶)
Assertion
Ref Expression
eldmcoa (𝐺dom · 𝐹 ↔ (𝐹𝐴𝐺𝐴 ∧ (coda𝐹) = (doma𝐺)))

Proof of Theorem eldmcoa
Dummy variables 𝑓 𝑔 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-br 5071 . 2 (𝐺dom · 𝐹 ↔ ⟨𝐺, 𝐹⟩ ∈ dom · )
2 otex 5374 . . . . . 6 ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩(comp‘𝐶)(coda𝑔))(2nd𝑓))⟩ ∈ V
32rgen2w 3076 . . . . 5 𝑔𝐴𝑓 ∈ {𝐴 ∣ (coda) = (doma𝑔)}⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩(comp‘𝐶)(coda𝑔))(2nd𝑓))⟩ ∈ V
4 coafval.o . . . . . . 7 · = (compa𝐶)
5 coafval.a . . . . . . 7 𝐴 = (Arrow‘𝐶)
6 eqid 2738 . . . . . . 7 (comp‘𝐶) = (comp‘𝐶)
74, 5, 6coafval 17695 . . . . . 6 · = (𝑔𝐴, 𝑓 ∈ {𝐴 ∣ (coda) = (doma𝑔)} ↦ ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩(comp‘𝐶)(coda𝑔))(2nd𝑓))⟩)
87fmpox 7880 . . . . 5 (∀𝑔𝐴𝑓 ∈ {𝐴 ∣ (coda) = (doma𝑔)}⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩(comp‘𝐶)(coda𝑔))(2nd𝑓))⟩ ∈ V ↔ · : 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)})⟶V)
93, 8mpbi 229 . . . 4 · : 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)})⟶V
109fdmi 6596 . . 3 dom · = 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)})
1110eleq2i 2830 . 2 (⟨𝐺, 𝐹⟩ ∈ dom · ↔ ⟨𝐺, 𝐹⟩ ∈ 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)}))
12 fveq2 6756 . . . . . 6 (𝑔 = 𝐺 → (doma𝑔) = (doma𝐺))
1312eqeq2d 2749 . . . . 5 (𝑔 = 𝐺 → ((coda) = (doma𝑔) ↔ (coda) = (doma𝐺)))
1413rabbidv 3404 . . . 4 (𝑔 = 𝐺 → {𝐴 ∣ (coda) = (doma𝑔)} = {𝐴 ∣ (coda) = (doma𝐺)})
1514opeliunxp2 5736 . . 3 (⟨𝐺, 𝐹⟩ ∈ 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)}) ↔ (𝐺𝐴𝐹 ∈ {𝐴 ∣ (coda) = (doma𝐺)}))
16 fveqeq2 6765 . . . . 5 ( = 𝐹 → ((coda) = (doma𝐺) ↔ (coda𝐹) = (doma𝐺)))
1716elrab 3617 . . . 4 (𝐹 ∈ {𝐴 ∣ (coda) = (doma𝐺)} ↔ (𝐹𝐴 ∧ (coda𝐹) = (doma𝐺)))
1817anbi2i 622 . . 3 ((𝐺𝐴𝐹 ∈ {𝐴 ∣ (coda) = (doma𝐺)}) ↔ (𝐺𝐴 ∧ (𝐹𝐴 ∧ (coda𝐹) = (doma𝐺))))
19 an12 641 . . . 4 ((𝐺𝐴 ∧ (𝐹𝐴 ∧ (coda𝐹) = (doma𝐺))) ↔ (𝐹𝐴 ∧ (𝐺𝐴 ∧ (coda𝐹) = (doma𝐺))))
20 3anass 1093 . . . 4 ((𝐹𝐴𝐺𝐴 ∧ (coda𝐹) = (doma𝐺)) ↔ (𝐹𝐴 ∧ (𝐺𝐴 ∧ (coda𝐹) = (doma𝐺))))
2119, 20bitr4i 277 . . 3 ((𝐺𝐴 ∧ (𝐹𝐴 ∧ (coda𝐹) = (doma𝐺))) ↔ (𝐹𝐴𝐺𝐴 ∧ (coda𝐹) = (doma𝐺)))
2215, 18, 213bitri 296 . 2 (⟨𝐺, 𝐹⟩ ∈ 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)}) ↔ (𝐹𝐴𝐺𝐴 ∧ (coda𝐹) = (doma𝐺)))
231, 11, 223bitri 296 1 (𝐺dom · 𝐹 ↔ (𝐹𝐴𝐺𝐴 ∧ (coda𝐹) = (doma𝐺)))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  wral 3063  {crab 3067  Vcvv 3422  {csn 4558  cop 4564  cotp 4566   ciun 4921   class class class wbr 5070   × cxp 5578  dom cdm 5580  wf 6414  cfv 6418  (class class class)co 7255  2nd c2nd 7803  compcco 16900  domacdoma 17651  codaccoda 17652  Arrowcarw 17653  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-arw 17658  df-coa 17687
This theorem is referenced by:  homdmcoa  17698  coapm  17702
  Copyright terms: Public domain W3C validator