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

Theorem 2fvcoidd 7303
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 7132 . . 3 ((𝐺:𝐵⟶𝐴 ∧ 𝐹:𝐴⟶𝐵) → (𝐺 ∘ 𝐹) = (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))))
41, 2, 3syl2anc 596 . 2 (𝜑 → (𝐺 ∘ 𝐹) = (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))))
5 2fvcoidd.i . . . . . 6 (𝜑 → ∀𝑎 ∈ 𝐴 (𝐺‘(𝐹‘𝑎)) = 𝑎)
6 2fveq3 6888 . . . . . . . 8 (𝑎 = 𝑥 → (𝐺‘(𝐹‘𝑎)) = (𝐺‘(𝐹‘𝑥)))
7 id 23 . . . . . . . 8 (𝑎 = 𝑥 → 𝑎 = 𝑥)
86, 7eqeq12d 2777 . . . . . . 7 (𝑎 = 𝑥 → ((𝐺‘(𝐹‘𝑎)) = 𝑎 ↔ (𝐺‘(𝐹‘𝑥)) = 𝑥))
98rspccv 3574 . . . . . 6 (∀𝑎 ∈ 𝐴 (𝐺‘(𝐹‘𝑎)) = 𝑎 → (𝑥 ∈ 𝐴 → (𝐺‘(𝐹‘𝑥)) = 𝑥))
105, 9syl 18 . . . . 5 (𝜑 → (𝑥 ∈ 𝐴 → (𝐺‘(𝐹‘𝑥)) = 𝑥))
1110imp 412 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐴) → (𝐺‘(𝐹‘𝑥)) = 𝑥)
1211mpteq2dva 5198 . . 3 (𝜑 → (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))) = (𝑥 ∈ 𝐴 ↦ 𝑥))
13 mptresid 6043 . . 3 ( I ↾ 𝐴) = (𝑥 ∈ 𝐴 ↦ 𝑥)
1412, 13eqtr4di 2814 . 2 (𝜑 → (𝑥 ∈ 𝐴 ↦ (𝐺‘(𝐹‘𝑥))) = ( I ↾ 𝐴))
154, 14eqtrd 2796 1 (𝜑 → (𝐺 ∘ 𝐹) = ( I ↾ 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1570   ∈ wcel 2145  ∀wral 3077   ↦ cmpt 5186   I cid 5545   ↾ cres 5653   ∘ ccom 5655  ⟶wf 6533  ‘cfv 6537
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-sep 5249  ax-nul 5260  ax-pr 5391
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-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-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  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 6493  df-fun 6539  df-fn 6540  df-f 6541  df-fv 6545
This theorem is used by:  2fvidf1od  7304  2fvidinvd  7305
  Copyright terms: Public domain W3C validator