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

Theorem 2fvcoidd 7334
Description: Show that the composition of two functions is the identity function by applying both functions to each value of the domain of the first function. (Contributed by AV, 15-Dec-2019.)
Hypotheses
Ref Expression
2fvcoidd.f (𝜑 → 𝐹:𝐴⟶𝐵)
2fvcoidd.g (𝜑 → 𝐺:𝐵⟶𝐴)
2fvcoidd.i (𝜑 → ∀𝑎 ∈ 𝐴 (𝐺‘(𝐹‘𝑎)) = 𝑎)
Assertion
Ref Expression
2fvcoidd (𝜑 → (𝐺 ∘ 𝐹) = ( I ↾ 𝐴))
Distinct variable groups:   𝐴,𝑎   𝐹,𝑎   𝐺,𝑎
Allowed substitution hints:   𝜑(𝑎)   𝐵(𝑎)

Proof of Theorem 2fvcoidd
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 2fvcoidd.g . . 3 (𝜑 → 𝐺:𝐵⟶𝐴)
2 2fvcoidd.f . . 3 (𝜑 → 𝐹:𝐴⟶𝐵)
3 fcompt 7164 . . 3 ((𝐺:𝐵⟶𝐴 ∧ 𝐹:𝐴⟶𝐵) → (𝐺 ∘ 𝐹) = (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))))
41, 2, 3syl2anc 596 . 2 (𝜑 → (𝐺 ∘ 𝐹) = (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))))
5 2fvcoidd.i . . . . . 6 (𝜑 → ∀𝑎 ∈ 𝐴 (𝐺‘(𝐹‘𝑎)) = 𝑎)
6 2fveq3 6919 . . . . . . . 8 (𝑎 = 𝑥 → (𝐺‘(𝐹‘𝑎)) = (𝐺‘(𝐹‘𝑥)))
7 id 23 . . . . . . . 8 (𝑎 = 𝑥 → 𝑎 = 𝑥)
86, 7eqeq12d 2779 . . . . . . 7 (𝑎 = 𝑥 → ((𝐺‘(𝐹‘𝑎)) = 𝑎 ↔ (𝐺‘(𝐹‘𝑥)) = 𝑥))
98rspccv 3577 . . . . . 6 (∀𝑎 ∈ 𝐴 (𝐺‘(𝐹‘𝑎)) = 𝑎 → (𝑥 ∈ 𝐴 → (𝐺‘(𝐹‘𝑥)) = 𝑥))
105, 9syl 18 . . . . 5 (𝜑 → (𝑥 ∈ 𝐴 → (𝐺‘(𝐹‘𝑥)) = 𝑥))
1110imp 412 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐴) → (𝐺‘(𝐹‘𝑥)) = 𝑥)
1211mpteq2dva 5202 . . 3 (𝜑 → (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))) = (𝑥 ∈ 𝐴 ↦ 𝑥))
13 mptresid 6059 . . 3 ( I ↾ 𝐴) = (𝑥 ∈ 𝐴 ↦ 𝑥)
1412, 13eqtr4di 2816 . 2 (𝜑 → (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))) = ( I ↾ 𝐴))
154, 14eqtrd 2798 1 (𝜑 → (𝐺 ∘ 𝐹) = ( I ↾ 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1570   ∈ wcel 2147  ∀wral 3080   ↦ cmpt 5190   I cid 5550   ↾ cres 5658   ∘ ccom 5660  ⟶wf 6560  ‘cfv 6564
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-sep 5253  ax-nul 5264  ax-pr 5396
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-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-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5172  df-mpt 5191  df-id 5551  df-xp 5662  df-rel 5663  df-cnv 5664  df-co 5665  df-dm 5666  df-rn 5667  df-res 5668  df-ima 5669  df-iota 6518  df-fun 6566  df-fn 6567  df-f 6568  df-fv 6572
This theorem is used by:  2fvidf1od  7335  2fvidinvd  7336
  Copyright terms: Public domain W3C validator