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

Theorem eldmcoa 18240
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 5104 . 2 (𝐺dom · 𝐹 ↔ ⟨𝐺, 𝐹⟩ ∈ dom · )
2 otex 5434 . . . . . 6 ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝐶)(coda‘𝑔))(2nd ‘𝑓))⟩ ∈ V
32rgen2w 3082 . . . . 5 ∀𝑔 ∈ 𝐴 ∀𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)}⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝐶)(coda‘𝑔))(2nd ‘𝑓))⟩ ∈ V
4 coafval.o . . . . . . 7 · = (compa‘𝐶)
5 coafval.a . . . . . . 7 𝐴 = (Arrow‘𝐶)
6 eqid 2761 . . . . . . 7 (comp‘𝐶) = (comp‘𝐶)
74, 5, 6coafval 18239 . . . . . 6 · = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝐶)(coda‘𝑔))(2nd ‘𝑓))⟩)
87fmpox 8078 . . . . 5 (∀𝑔 ∈ 𝐴 ∀𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)}⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝐶)(coda‘𝑔))(2nd ‘𝑓))⟩ ∈ V ↔ · :∪ 𝑔 ∈ 𝐴 ({𝑔} × {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})⟶V)
93, 8mpbi 233 . . . 4 · :∪ 𝑔 ∈ 𝐴 ({𝑔} × {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})⟶V
109fdmi 6721 . . 3 dom · = ∪ 𝑔 ∈ 𝐴 ({𝑔} × {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})
1110eleq2i 2853 . 2 (⟨𝐺, 𝐹⟩ ∈ dom · ↔ ⟨𝐺, 𝐹⟩ ∈ ∪ 𝑔 ∈ 𝐴 ({𝑔} × {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)}))
12 fveq2 6885 . . . . . 6 (𝑔 = 𝐺 → (doma‘𝑔) = (doma‘𝐺))
1312eqeq2d 2772 . . . . 5 (𝑔 = 𝐺 → ((coda‘ℎ) = (doma‘𝑔) ↔ (coda‘ℎ) = (doma‘𝐺)))
1413rabbidv 3420 . . . 4 (𝑔 = 𝐺 → {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} = {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝐺)})
1514opeliunxp2 5815 . . 3 (⟨𝐺, 𝐹⟩ ∈ ∪ 𝑔 ∈ 𝐴 ({𝑔} × {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)}) ↔ (𝐺 ∈ 𝐴 ∧ 𝐹 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝐺)}))
16 fveqeq2 6894 . . . . 5 (ℎ = 𝐹 → ((coda‘ℎ) = (doma‘𝐺) ↔ (coda‘𝐹) = (doma‘𝐺)))
1716elrab 3645 . . . 4 (𝐹 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝐺)} ↔ (𝐹 ∈ 𝐴 ∧ (coda‘𝐹) = (doma‘𝐺)))
1817anbi2i 635 . . 3 ((𝐺 ∈ 𝐴 ∧ 𝐹 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝐺)}) ↔ (𝐺 ∈ 𝐴 ∧ (𝐹 ∈ 𝐴 ∧ (coda‘𝐹) = (doma‘𝐺))))
19 an12 658 . . . 4 ((𝐺 ∈ 𝐴 ∧ (𝐹 ∈ 𝐴 ∧ (coda‘𝐹) = (doma‘𝐺))) ↔ (𝐹 ∈ 𝐴 ∧ (𝐺 ∈ 𝐴 ∧ (coda‘𝐹) = (doma‘𝐺))))
20 3anass 1111 . . . 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
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   ∧ w3a 1103   = wceq 1570   ∈ wcel 2145  ∀wral 3077  {crab 3413  Vcvv 3451  {csn 4584  ⟨cop 4590  ⟨cotp 4592  ∪ ciun 4951   class class class wbr 5103   × cxp 5649  dom cdm 5651  ⟶wf 6534  ‘cfv 6538  (class class class)co 7420  2nd c2nd 8000  compcco 17440  domacdoma 18195  codaccoda 18196  Arrowcarw 18197  compaccoa 18229
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7751
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-ot 4593  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-1st 8001  df-2nd 8002  df-arw 18202  df-coa 18231
This theorem is used by:  homdmcoa  18242  coapm  18246
  Copyright terms: Public domain W3C validator