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

Theorem fvcofneq 6333
Description: The values of two function compositions are equal if the values of the composed functions are pairwise equal. (Contributed by AV, 26-Jan-2019.)
Assertion
Ref Expression
fvcofneq ((𝐺 Fn 𝐴𝐾 Fn 𝐵) → ((𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥)) → ((𝐹𝐺)‘𝑋) = ((𝐻𝐾)‘𝑋)))
Distinct variable groups:   𝑥,𝐹   𝑥,𝐺   𝑥,𝐻   𝑥,𝐾   𝑥,𝑋
Allowed substitution hints:   𝐴(𝑥)   𝐵(𝑥)

Proof of Theorem fvcofneq
StepHypRef Expression
1 simpl 473 . . . 4 ((𝐺 Fn 𝐴𝐾 Fn 𝐵) → 𝐺 Fn 𝐴)
2 elin 3780 . . . . . 6 (𝑋 ∈ (𝐴𝐵) ↔ (𝑋𝐴𝑋𝐵))
3 simpl 473 . . . . . 6 ((𝑋𝐴𝑋𝐵) → 𝑋𝐴)
42, 3sylbi 207 . . . . 5 (𝑋 ∈ (𝐴𝐵) → 𝑋𝐴)
543ad2ant1 1080 . . . 4 ((𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥)) → 𝑋𝐴)
6 fvco2 6240 . . . 4 ((𝐺 Fn 𝐴𝑋𝐴) → ((𝐹𝐺)‘𝑋) = (𝐹‘(𝐺𝑋)))
71, 5, 6syl2an 494 . . 3 (((𝐺 Fn 𝐴𝐾 Fn 𝐵) ∧ (𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥))) → ((𝐹𝐺)‘𝑋) = (𝐹‘(𝐺𝑋)))
8 simpr 477 . . . . 5 ((𝐺 Fn 𝐴𝐾 Fn 𝐵) → 𝐾 Fn 𝐵)
9 simpr 477 . . . . . . 7 ((𝑋𝐴𝑋𝐵) → 𝑋𝐵)
102, 9sylbi 207 . . . . . 6 (𝑋 ∈ (𝐴𝐵) → 𝑋𝐵)
11103ad2ant1 1080 . . . . 5 ((𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥)) → 𝑋𝐵)
12 fvco2 6240 . . . . 5 ((𝐾 Fn 𝐵𝑋𝐵) → ((𝐻𝐾)‘𝑋) = (𝐻‘(𝐾𝑋)))
138, 11, 12syl2an 494 . . . 4 (((𝐺 Fn 𝐴𝐾 Fn 𝐵) ∧ (𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥))) → ((𝐻𝐾)‘𝑋) = (𝐻‘(𝐾𝑋)))
14 fveq2 6158 . . . . . . 7 ((𝐾𝑋) = (𝐺𝑋) → (𝐻‘(𝐾𝑋)) = (𝐻‘(𝐺𝑋)))
1514eqcoms 2629 . . . . . 6 ((𝐺𝑋) = (𝐾𝑋) → (𝐻‘(𝐾𝑋)) = (𝐻‘(𝐺𝑋)))
16153ad2ant2 1081 . . . . 5 ((𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥)) → (𝐻‘(𝐾𝑋)) = (𝐻‘(𝐺𝑋)))
1716adantl 482 . . . 4 (((𝐺 Fn 𝐴𝐾 Fn 𝐵) ∧ (𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥))) → (𝐻‘(𝐾𝑋)) = (𝐻‘(𝐺𝑋)))
18 id 22 . . . . . . . . . . . 12 (𝐺 Fn 𝐴𝐺 Fn 𝐴)
19 fnfvelrn 6322 . . . . . . . . . . . 12 ((𝐺 Fn 𝐴𝑋𝐴) → (𝐺𝑋) ∈ ran 𝐺)
2018, 4, 19syl2anr 495 . . . . . . . . . . 11 ((𝑋 ∈ (𝐴𝐵) ∧ 𝐺 Fn 𝐴) → (𝐺𝑋) ∈ ran 𝐺)
2120ex 450 . . . . . . . . . 10 (𝑋 ∈ (𝐴𝐵) → (𝐺 Fn 𝐴 → (𝐺𝑋) ∈ ran 𝐺))
22 id 22 . . . . . . . . . . . 12 (𝐾 Fn 𝐵𝐾 Fn 𝐵)
23 fnfvelrn 6322 . . . . . . . . . . . 12 ((𝐾 Fn 𝐵𝑋𝐵) → (𝐾𝑋) ∈ ran 𝐾)
2422, 10, 23syl2anr 495 . . . . . . . . . . 11 ((𝑋 ∈ (𝐴𝐵) ∧ 𝐾 Fn 𝐵) → (𝐾𝑋) ∈ ran 𝐾)
2524ex 450 . . . . . . . . . 10 (𝑋 ∈ (𝐴𝐵) → (𝐾 Fn 𝐵 → (𝐾𝑋) ∈ ran 𝐾))
2621, 25anim12d 585 . . . . . . . . 9 (𝑋 ∈ (𝐴𝐵) → ((𝐺 Fn 𝐴𝐾 Fn 𝐵) → ((𝐺𝑋) ∈ ran 𝐺 ∧ (𝐾𝑋) ∈ ran 𝐾)))
27 eleq1 2686 . . . . . . . . . . . 12 ((𝐾𝑋) = (𝐺𝑋) → ((𝐾𝑋) ∈ ran 𝐾 ↔ (𝐺𝑋) ∈ ran 𝐾))
2827eqcoms 2629 . . . . . . . . . . 11 ((𝐺𝑋) = (𝐾𝑋) → ((𝐾𝑋) ∈ ran 𝐾 ↔ (𝐺𝑋) ∈ ran 𝐾))
2928anbi2d 739 . . . . . . . . . 10 ((𝐺𝑋) = (𝐾𝑋) → (((𝐺𝑋) ∈ ran 𝐺 ∧ (𝐾𝑋) ∈ ran 𝐾) ↔ ((𝐺𝑋) ∈ ran 𝐺 ∧ (𝐺𝑋) ∈ ran 𝐾)))
30 elin 3780 . . . . . . . . . . 11 ((𝐺𝑋) ∈ (ran 𝐺 ∩ ran 𝐾) ↔ ((𝐺𝑋) ∈ ran 𝐺 ∧ (𝐺𝑋) ∈ ran 𝐾))
3130biimpri 218 . . . . . . . . . 10 (((𝐺𝑋) ∈ ran 𝐺 ∧ (𝐺𝑋) ∈ ran 𝐾) → (𝐺𝑋) ∈ (ran 𝐺 ∩ ran 𝐾))
3229, 31syl6bi 243 . . . . . . . . 9 ((𝐺𝑋) = (𝐾𝑋) → (((𝐺𝑋) ∈ ran 𝐺 ∧ (𝐾𝑋) ∈ ran 𝐾) → (𝐺𝑋) ∈ (ran 𝐺 ∩ ran 𝐾)))
3326, 32sylan9 688 . . . . . . . 8 ((𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋)) → ((𝐺 Fn 𝐴𝐾 Fn 𝐵) → (𝐺𝑋) ∈ (ran 𝐺 ∩ ran 𝐾)))
34 fveq2 6158 . . . . . . . . . . . 12 (𝑥 = (𝐺𝑋) → (𝐹𝑥) = (𝐹‘(𝐺𝑋)))
35 fveq2 6158 . . . . . . . . . . . 12 (𝑥 = (𝐺𝑋) → (𝐻𝑥) = (𝐻‘(𝐺𝑋)))
3634, 35eqeq12d 2636 . . . . . . . . . . 11 (𝑥 = (𝐺𝑋) → ((𝐹𝑥) = (𝐻𝑥) ↔ (𝐹‘(𝐺𝑋)) = (𝐻‘(𝐺𝑋))))
3736rspcva 3297 . . . . . . . . . 10 (((𝐺𝑋) ∈ (ran 𝐺 ∩ ran 𝐾) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥)) → (𝐹‘(𝐺𝑋)) = (𝐻‘(𝐺𝑋)))
3837eqcomd 2627 . . . . . . . . 9 (((𝐺𝑋) ∈ (ran 𝐺 ∩ ran 𝐾) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥)) → (𝐻‘(𝐺𝑋)) = (𝐹‘(𝐺𝑋)))
3938ex 450 . . . . . . . 8 ((𝐺𝑋) ∈ (ran 𝐺 ∩ ran 𝐾) → (∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥) → (𝐻‘(𝐺𝑋)) = (𝐹‘(𝐺𝑋))))
4033, 39syl6 35 . . . . . . 7 ((𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋)) → ((𝐺 Fn 𝐴𝐾 Fn 𝐵) → (∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥) → (𝐻‘(𝐺𝑋)) = (𝐹‘(𝐺𝑋)))))
4140com23 86 . . . . . 6 ((𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋)) → (∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥) → ((𝐺 Fn 𝐴𝐾 Fn 𝐵) → (𝐻‘(𝐺𝑋)) = (𝐹‘(𝐺𝑋)))))
42413impia 1258 . . . . 5 ((𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥)) → ((𝐺 Fn 𝐴𝐾 Fn 𝐵) → (𝐻‘(𝐺𝑋)) = (𝐹‘(𝐺𝑋))))
4342impcom 446 . . . 4 (((𝐺 Fn 𝐴𝐾 Fn 𝐵) ∧ (𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥))) → (𝐻‘(𝐺𝑋)) = (𝐹‘(𝐺𝑋)))
4413, 17, 433eqtrrd 2660 . . 3 (((𝐺 Fn 𝐴𝐾 Fn 𝐵) ∧ (𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥))) → (𝐹‘(𝐺𝑋)) = ((𝐻𝐾)‘𝑋))
457, 44eqtrd 2655 . 2 (((𝐺 Fn 𝐴𝐾 Fn 𝐵) ∧ (𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥))) → ((𝐹𝐺)‘𝑋) = ((𝐻𝐾)‘𝑋))
4645ex 450 1 ((𝐺 Fn 𝐴𝐾 Fn 𝐵) → ((𝑋 ∈ (𝐴𝐵) ∧ (𝐺𝑋) = (𝐾𝑋) ∧ ∀𝑥 ∈ (ran 𝐺 ∩ ran 𝐾)(𝐹𝑥) = (𝐻𝑥)) → ((𝐹𝐺)‘𝑋) = ((𝐻𝐾)‘𝑋)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384  w3a 1036   = wceq 1480  wcel 1987  wral 2908  cin 3559  ran crn 5085  ccom 5088   Fn wfn 5852  cfv 5857
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4751  ax-nul 4759  ax-pow 4813  ax-pr 4877
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2913  df-rex 2914  df-rab 2917  df-v 3192  df-sbc 3423  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-nul 3898  df-if 4065  df-sn 4156  df-pr 4158  df-op 4162  df-uni 4410  df-br 4624  df-opab 4684  df-id 4999  df-xp 5090  df-rel 5091  df-cnv 5092  df-co 5093  df-dm 5094  df-rn 5095  df-res 5096  df-ima 5097  df-iota 5820  df-fun 5859  df-fn 5860  df-fv 5865
This theorem is referenced by:  fvcosymgeq  17789
  Copyright terms: Public domain W3C validator