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

Theorem cocan2 7102
Description: A surjection is right-cancelable. (Contributed by FL, 21-Nov-2011.) (Proof shortened by Mario Carneiro, 21-Mar-2015.)
Assertion
Ref Expression
cocan2 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → ((𝐻𝐹) = (𝐾𝐹) ↔ 𝐻 = 𝐾))

Proof of Theorem cocan2
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fof 6633 . . . . . . 7 (𝐹:𝐴onto𝐵𝐹:𝐴𝐵)
213ad2ant1 1135 . . . . . 6 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → 𝐹:𝐴𝐵)
3 fvco3 6810 . . . . . 6 ((𝐹:𝐴𝐵𝑦𝐴) → ((𝐻𝐹)‘𝑦) = (𝐻‘(𝐹𝑦)))
42, 3sylan 583 . . . . 5 (((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) ∧ 𝑦𝐴) → ((𝐻𝐹)‘𝑦) = (𝐻‘(𝐹𝑦)))
5 fvco3 6810 . . . . . 6 ((𝐹:𝐴𝐵𝑦𝐴) → ((𝐾𝐹)‘𝑦) = (𝐾‘(𝐹𝑦)))
62, 5sylan 583 . . . . 5 (((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) ∧ 𝑦𝐴) → ((𝐾𝐹)‘𝑦) = (𝐾‘(𝐹𝑦)))
74, 6eqeq12d 2753 . . . 4 (((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) ∧ 𝑦𝐴) → (((𝐻𝐹)‘𝑦) = ((𝐾𝐹)‘𝑦) ↔ (𝐻‘(𝐹𝑦)) = (𝐾‘(𝐹𝑦))))
87ralbidva 3117 . . 3 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → (∀𝑦𝐴 ((𝐻𝐹)‘𝑦) = ((𝐾𝐹)‘𝑦) ↔ ∀𝑦𝐴 (𝐻‘(𝐹𝑦)) = (𝐾‘(𝐹𝑦))))
9 fveq2 6717 . . . . . 6 ((𝐹𝑦) = 𝑥 → (𝐻‘(𝐹𝑦)) = (𝐻𝑥))
10 fveq2 6717 . . . . . 6 ((𝐹𝑦) = 𝑥 → (𝐾‘(𝐹𝑦)) = (𝐾𝑥))
119, 10eqeq12d 2753 . . . . 5 ((𝐹𝑦) = 𝑥 → ((𝐻‘(𝐹𝑦)) = (𝐾‘(𝐹𝑦)) ↔ (𝐻𝑥) = (𝐾𝑥)))
1211cbvfo 7099 . . . 4 (𝐹:𝐴onto𝐵 → (∀𝑦𝐴 (𝐻‘(𝐹𝑦)) = (𝐾‘(𝐹𝑦)) ↔ ∀𝑥𝐵 (𝐻𝑥) = (𝐾𝑥)))
13123ad2ant1 1135 . . 3 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → (∀𝑦𝐴 (𝐻‘(𝐹𝑦)) = (𝐾‘(𝐹𝑦)) ↔ ∀𝑥𝐵 (𝐻𝑥) = (𝐾𝑥)))
148, 13bitrd 282 . 2 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → (∀𝑦𝐴 ((𝐻𝐹)‘𝑦) = ((𝐾𝐹)‘𝑦) ↔ ∀𝑥𝐵 (𝐻𝑥) = (𝐾𝑥)))
15 simp2 1139 . . . 4 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → 𝐻 Fn 𝐵)
16 fnfco 6584 . . . 4 ((𝐻 Fn 𝐵𝐹:𝐴𝐵) → (𝐻𝐹) Fn 𝐴)
1715, 2, 16syl2anc 587 . . 3 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → (𝐻𝐹) Fn 𝐴)
18 simp3 1140 . . . 4 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → 𝐾 Fn 𝐵)
19 fnfco 6584 . . . 4 ((𝐾 Fn 𝐵𝐹:𝐴𝐵) → (𝐾𝐹) Fn 𝐴)
2018, 2, 19syl2anc 587 . . 3 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → (𝐾𝐹) Fn 𝐴)
21 eqfnfv 6852 . . 3 (((𝐻𝐹) Fn 𝐴 ∧ (𝐾𝐹) Fn 𝐴) → ((𝐻𝐹) = (𝐾𝐹) ↔ ∀𝑦𝐴 ((𝐻𝐹)‘𝑦) = ((𝐾𝐹)‘𝑦)))
2217, 20, 21syl2anc 587 . 2 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → ((𝐻𝐹) = (𝐾𝐹) ↔ ∀𝑦𝐴 ((𝐻𝐹)‘𝑦) = ((𝐾𝐹)‘𝑦)))
23 eqfnfv 6852 . . 3 ((𝐻 Fn 𝐵𝐾 Fn 𝐵) → (𝐻 = 𝐾 ↔ ∀𝑥𝐵 (𝐻𝑥) = (𝐾𝑥)))
2415, 18, 23syl2anc 587 . 2 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → (𝐻 = 𝐾 ↔ ∀𝑥𝐵 (𝐻𝑥) = (𝐾𝑥)))
2514, 22, 243bitr4d 314 1 ((𝐹:𝐴onto𝐵𝐻 Fn 𝐵𝐾 Fn 𝐵) → ((𝐻𝐹) = (𝐾𝐹) ↔ 𝐻 = 𝐾))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  w3a 1089   = wceq 1543  wcel 2110  wral 3061  ccom 5555   Fn wfn 6375  wf 6376  ontowfo 6378  cfv 6380
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pr 5322
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2886  df-ne 2941  df-ral 3066  df-rex 3067  df-rab 3070  df-v 3410  df-sbc 3695  df-csb 3812  df-dif 3869  df-un 3871  df-in 3873  df-ss 3883  df-nul 4238  df-if 4440  df-sn 4542  df-pr 4544  df-op 4548  df-uni 4820  df-br 5054  df-opab 5116  df-mpt 5136  df-id 5455  df-xp 5557  df-rel 5558  df-cnv 5559  df-co 5560  df-dm 5561  df-rn 5562  df-res 5563  df-ima 5564  df-iota 6338  df-fun 6382  df-fn 6383  df-f 6384  df-fo 6386  df-fv 6388
This theorem is referenced by:  mapen  8810  mapfien  9024  hashfacen  14018  hashfacenOLD  14019  setcepi  17594  qtopeu  22613  qtophmeo  22714  fmptco1f1o  30687  derangenlem  32846
  Copyright terms: Public domain W3C validator