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

Theorem eldmcoa 18255
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 5107 . 2 (𝐺dom · 𝐹 ↔ ⟨𝐺, 𝐹⟩ ∈ dom · )
2 otex 5438 . . . . . 6 ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝐶)(coda‘𝑔))(2nd ‘𝑓))⟩ ∈ V
32rgen2w 3085 . . . . 5 ∀𝑔 ∈ 𝐴 ∀𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)}⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝐶)(coda‘𝑔))(2nd ‘𝑓))⟩ ∈ V
4 coafval.o . . . . . . 7 · = (compa‘𝐶)
5 coafval.a . . . . . . 7 𝐴 = (Arrow‘𝐶)
6 eqid 2763 . . . . . . 7 (comp‘𝐶) = (comp‘𝐶)
74, 5, 6coafval 18254 . . . . . 6 · = (𝑔 ∈ 𝐴, 𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} ↦ ⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝐶)(coda‘𝑔))(2nd ‘𝑓))⟩)
87fmpox 8089 . . . . 5 (∀𝑔 ∈ 𝐴 ∀𝑓 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)}⟨(doma‘𝑓), (coda‘𝑔), ((2nd ‘𝑔)(⟨(doma‘𝑓), (doma‘𝑔)⟩(comp‘𝐶)(coda‘𝑔))(2nd ‘𝑓))⟩ ∈ V ↔ · :∪ 𝑔 ∈ 𝐴 ({𝑔} × {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})⟶V)
93, 8mpbi 233 . . . 4 · :∪ 𝑔 ∈ 𝐴 ({𝑔} × {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})⟶V
109fdmi 6732 . . 3 dom · = ∪ 𝑔 ∈ 𝐴 ({𝑔} × {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)})
1110eleq2i 2856 . 2 (⟨𝐺, 𝐹⟩ ∈ dom · ↔ ⟨𝐺, 𝐹⟩ ∈ ∪ 𝑔 ∈ 𝐴 ({𝑔} × {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)}))
12 fveq2 6896 . . . . . 6 (𝑔 = 𝐺 → (doma‘𝑔) = (doma‘𝐺))
1312eqeq2d 2774 . . . . 5 (𝑔 = 𝐺 → ((coda‘ℎ) = (doma‘𝑔) ↔ (coda‘ℎ) = (doma‘𝐺)))
1413rabbidv 3423 . . . 4 (𝑔 = 𝐺 → {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)} = {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝐺)})
1514opeliunxp2 5820 . . 3 (⟨𝐺, 𝐹⟩ ∈ ∪ 𝑔 ∈ 𝐴 ({𝑔} × {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝑔)}) ↔ (𝐺 ∈ 𝐴 ∧ 𝐹 ∈ {ℎ ∈ 𝐴 ∣ (coda‘ℎ) = (doma‘𝐺)}))
16 fveqeq2 6905 . . . . 5 (ℎ = 𝐹 → ((coda‘ℎ) = (doma‘𝐺) ↔ (coda‘𝐹) = (doma‘𝐺)))
1716elrab 3648 . . . 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 1569   ∈ wcel 2146  ∀wral 3080  {crab 3416  Vcvv 3454  {csn 4588  ⟨cop 4838  ⟨cotp 4861  ∪ ciun 4954   class class class wbr 5106   × cxp 5653  dom cdm 5655  ⟶wf 6543  ‘cfv 6547  (class class class)co 7430  2nd c2nd 8010  compcco 17455  domacdoma 18210  codaccoda 18211  Arrowcarw 18212  compaccoa 18244
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2196  ax-12 2215  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7761
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2101  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 4839  df-ot 4862  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-iota 6501  df-fun 6549  df-fn 6550  df-f 6551  df-f1 6552  df-fo 6553  df-f1o 6554  df-fv 6555  df-ov 7433  df-oprab 7434  df-mpo 7435  df-1st 8011  df-2nd 8012  df-arw 18217  df-coa 18246
This theorem is used by:  homdmcoa  18257  coapm  18261
  Copyright terms: Public domain W3C validator