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

Theorem 2fvcoidd 7306
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 7135 . . 3 ((𝐺:𝐵⟶𝐴 ∧ 𝐹:𝐴⟶𝐵) → (𝐺 ∘ 𝐹) = (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))))
41, 2, 3syl2anc 596 . 2 (𝜑 → (𝐺 ∘ 𝐹) = (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))))
5 2fvcoidd.i . . . . . 6 (𝜑 → ∀𝑎 ∈ 𝐴 (𝐺‘(𝐹‘𝑎)) = 𝑎)
6 2fveq3 6891 . . . . . . . 8 (𝑎 = 𝑥 → (𝐺‘(𝐹‘𝑎)) = (𝐺‘(𝐹‘𝑥)))
7 id 23 . . . . . . . 8 (𝑎 = 𝑥 → 𝑎 = 𝑥)
86, 7eqeq12d 2776 . . . . . . 7 (𝑎 = 𝑥 → ((𝐺‘(𝐹‘𝑎)) = 𝑎 ↔ (𝐺‘(𝐹‘𝑥)) = 𝑥))
98rspccv 3573 . . . . . 6 (∀𝑎 ∈ 𝐴 (𝐺‘(𝐹‘𝑎)) = 𝑎 → (𝑥 ∈ 𝐴 → (𝐺‘(𝐹‘𝑥)) = 𝑥))
105, 9syl 18 . . . . 5 (𝜑 → (𝑥 ∈ 𝐴 → (𝐺‘(𝐹‘𝑥)) = 𝑥))
1110imp 412 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐴) → (𝐺‘(𝐹‘𝑥)) = 𝑥)
1211mpteq2dva 5197 . . 3 (𝜑 → (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))) = (𝑥 ∈ 𝐴 ↦ 𝑥))
13 mptresid 6042 . . 3 ( I ↾ 𝐴) = (𝑥 ∈ 𝐴 ↦ 𝑥)
1412, 13eqtr4di 2813 . 2 (𝜑 → (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))) = ( I ↾ 𝐴))
154, 14eqtrd 2795 1 (𝜑 → (𝐺 ∘ 𝐹) = ( I ↾ 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1569   ∈ wcel 2144  ∀wral 3076   ↦ cmpt 5185   I cid 5544   ↾ cres 5652   ∘ ccom 5654  ⟶wf 6535  ‘cfv 6539
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 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390
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 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-iota 6494  df-fun 6541  df-fn 6542  df-f 6543  df-fv 6547
This theorem is used by:  2fvidf1od  7307  2fvidinvd  7308
  Copyright terms: Public domain W3C validator