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

Theorem eldmcoa 17317
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 5031 . 2 (𝐺dom · 𝐹 ↔ ⟨𝐺, 𝐹⟩ ∈ dom · )
2 otex 5322 . . . . . 6 ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩(comp‘𝐶)(coda𝑔))(2nd𝑓))⟩ ∈ V
32rgen2w 3119 . . . . 5 𝑔𝐴𝑓 ∈ {𝐴 ∣ (coda) = (doma𝑔)}⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩(comp‘𝐶)(coda𝑔))(2nd𝑓))⟩ ∈ V
4 coafval.o . . . . . . 7 · = (compa𝐶)
5 coafval.a . . . . . . 7 𝐴 = (Arrow‘𝐶)
6 eqid 2798 . . . . . . 7 (comp‘𝐶) = (comp‘𝐶)
74, 5, 6coafval 17316 . . . . . 6 · = (𝑔𝐴, 𝑓 ∈ {𝐴 ∣ (coda) = (doma𝑔)} ↦ ⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩(comp‘𝐶)(coda𝑔))(2nd𝑓))⟩)
87fmpox 7747 . . . . 5 (∀𝑔𝐴𝑓 ∈ {𝐴 ∣ (coda) = (doma𝑔)}⟨(doma𝑓), (coda𝑔), ((2nd𝑔)(⟨(doma𝑓), (doma𝑔)⟩(comp‘𝐶)(coda𝑔))(2nd𝑓))⟩ ∈ V ↔ · : 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)})⟶V)
93, 8mpbi 233 . . . 4 · : 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)})⟶V
109fdmi 6498 . . 3 dom · = 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)})
1110eleq2i 2881 . 2 (⟨𝐺, 𝐹⟩ ∈ dom · ↔ ⟨𝐺, 𝐹⟩ ∈ 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)}))
12 fveq2 6645 . . . . . 6 (𝑔 = 𝐺 → (doma𝑔) = (doma𝐺))
1312eqeq2d 2809 . . . . 5 (𝑔 = 𝐺 → ((coda) = (doma𝑔) ↔ (coda) = (doma𝐺)))
1413rabbidv 3427 . . . 4 (𝑔 = 𝐺 → {𝐴 ∣ (coda) = (doma𝑔)} = {𝐴 ∣ (coda) = (doma𝐺)})
1514opeliunxp2 5673 . . 3 (⟨𝐺, 𝐹⟩ ∈ 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)}) ↔ (𝐺𝐴𝐹 ∈ {𝐴 ∣ (coda) = (doma𝐺)}))
16 fveqeq2 6654 . . . . 5 ( = 𝐹 → ((coda) = (doma𝐺) ↔ (coda𝐹) = (doma𝐺)))
1716elrab 3628 . . . 4 (𝐹 ∈ {𝐴 ∣ (coda) = (doma𝐺)} ↔ (𝐹𝐴 ∧ (coda𝐹) = (doma𝐺)))
1817anbi2i 625 . . 3 ((𝐺𝐴𝐹 ∈ {𝐴 ∣ (coda) = (doma𝐺)}) ↔ (𝐺𝐴 ∧ (𝐹𝐴 ∧ (coda𝐹) = (doma𝐺))))
19 an12 644 . . . 4 ((𝐺𝐴 ∧ (𝐹𝐴 ∧ (coda𝐹) = (doma𝐺))) ↔ (𝐹𝐴 ∧ (𝐺𝐴 ∧ (coda𝐹) = (doma𝐺))))
20 3anass 1092 . . . 4 ((𝐹𝐴𝐺𝐴 ∧ (coda𝐹) = (doma𝐺)) ↔ (𝐹𝐴 ∧ (𝐺𝐴 ∧ (coda𝐹) = (doma𝐺))))
2119, 20bitr4i 281 . . 3 ((𝐺𝐴 ∧ (𝐹𝐴 ∧ (coda𝐹) = (doma𝐺))) ↔ (𝐹𝐴𝐺𝐴 ∧ (coda𝐹) = (doma𝐺)))
2215, 18, 213bitri 300 . 2 (⟨𝐺, 𝐹⟩ ∈ 𝑔𝐴 ({𝑔} × {𝐴 ∣ (coda) = (doma𝑔)}) ↔ (𝐹𝐴𝐺𝐴 ∧ (coda𝐹) = (doma𝐺)))
231, 11, 223bitri 300 1 (𝐺dom · 𝐹 ↔ (𝐹𝐴𝐺𝐴 ∧ (coda𝐹) = (doma𝐺)))
Colors of variables: wff setvar class
Syntax hints:  wb 209  wa 399  w3a 1084   = wceq 1538  wcel 2111  wral 3106  {crab 3110  Vcvv 3441  {csn 4525  cop 4531  cotp 4533   ciun 4881   class class class wbr 5030   × cxp 5517  dom cdm 5519  wf 6320  cfv 6324  (class class class)co 7135  2nd c2nd 7670  compcco 16569  domacdoma 17272  codaccoda 17273  Arrowcarw 17274  compaccoa 17306
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-rep 5154  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-reu 3113  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-op 4532  df-ot 4534  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-id 5425  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-ov 7138  df-oprab 7139  df-mpo 7140  df-1st 7671  df-2nd 7672  df-arw 17279  df-coa 17308
This theorem is referenced by:  homdmcoa  17319  coapm  17323
  Copyright terms: Public domain W3C validator