Users' Mathboxes Mathbox for Jeff Madsen < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  cocanfo Structured version   Visualization version   GIF version

Theorem cocanfo 38746
Description: Cancellation of a surjective function from the right side of a composition. (Contributed by Jeff Madsen, 1-Jun-2011.) (Proof shortened by Mario Carneiro, 27-Dec-2014.)
Assertion
Ref Expression
cocanfo (((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) → 𝐺 = 𝐻)

Proof of Theorem cocanfo
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simplr 781 . . . . . 6 ((((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) ∧ 𝑦 ∈ 𝐴) → (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹))
21fveq1d 6887 . . . . 5 ((((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) ∧ 𝑦 ∈ 𝐴) → ((𝐺 ∘ 𝐹)‘𝑦) = ((𝐻 ∘ 𝐹)‘𝑦))
3 simpl1 1210 . . . . . . 7 (((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) → 𝐹:𝐴–onto→𝐵)
4 fof 6796 . . . . . . 7 (𝐹:𝐴–onto→𝐵 → 𝐹:𝐴⟶𝐵)
53, 4syl 18 . . . . . 6 (((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) → 𝐹:𝐴⟶𝐵)
6 fvco3 6985 . . . . . 6 ((𝐹:𝐴⟶𝐵 ∧ 𝑦 ∈ 𝐴) → ((𝐺 ∘ 𝐹)‘𝑦) = (𝐺‘(𝐹‘𝑦)))
75, 6sylan 592 . . . . 5 ((((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) ∧ 𝑦 ∈ 𝐴) → ((𝐺 ∘ 𝐹)‘𝑦) = (𝐺‘(𝐹‘𝑦)))
8 fvco3 6985 . . . . . 6 ((𝐹:𝐴⟶𝐵 ∧ 𝑦 ∈ 𝐴) → ((𝐻 ∘ 𝐹)‘𝑦) = (𝐻‘(𝐹‘𝑦)))
95, 8sylan 592 . . . . 5 ((((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) ∧ 𝑦 ∈ 𝐴) → ((𝐻 ∘ 𝐹)‘𝑦) = (𝐻‘(𝐹‘𝑦)))
102, 7, 93eqtr3d 2803 . . . 4 ((((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) ∧ 𝑦 ∈ 𝐴) → (𝐺‘(𝐹‘𝑦)) = (𝐻‘(𝐹‘𝑦)))
1110ralrimiva 3154 . . 3 (((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) → ∀𝑦 ∈ 𝐴 (𝐺‘(𝐹‘𝑦)) = (𝐻‘(𝐹‘𝑦)))
12 fveq2 6885 . . . . . 6 ((𝐹‘𝑦) = 𝑥 → (𝐺‘(𝐹‘𝑦)) = (𝐺‘𝑥))
13 fveq2 6885 . . . . . 6 ((𝐹‘𝑦) = 𝑥 → (𝐻‘(𝐹‘𝑦)) = (𝐻‘𝑥))
1412, 13eqeq12d 2776 . . . . 5 ((𝐹‘𝑦) = 𝑥 → ((𝐺‘(𝐹‘𝑦)) = (𝐻‘(𝐹‘𝑦)) ↔ (𝐺‘𝑥) = (𝐻‘𝑥)))
1514cbvfo 7297 . . . 4 (𝐹:𝐴–onto→𝐵 → (∀𝑦 ∈ 𝐴 (𝐺‘(𝐹‘𝑦)) = (𝐻‘(𝐹‘𝑦)) ↔ ∀𝑥 ∈ 𝐵 (𝐺‘𝑥) = (𝐻‘𝑥)))
163, 15syl 18 . . 3 (((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) → (∀𝑦 ∈ 𝐴 (𝐺‘(𝐹‘𝑦)) = (𝐻‘(𝐹‘𝑦)) ↔ ∀𝑥 ∈ 𝐵 (𝐺‘𝑥) = (𝐻‘𝑥)))
1711, 16mpbid 235 . 2 (((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) → ∀𝑥 ∈ 𝐵 (𝐺‘𝑥) = (𝐻‘𝑥))
18 eqfnfv 7029 . . . 4 ((𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) → (𝐺 = 𝐻 ↔ ∀𝑥 ∈ 𝐵 (𝐺‘𝑥) = (𝐻‘𝑥)))
19183adant1 1148 . . 3 ((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) → (𝐺 = 𝐻 ↔ ∀𝑥 ∈ 𝐵 (𝐺‘𝑥) = (𝐻‘𝑥)))
2019adantr 486 . 2 (((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) → (𝐺 = 𝐻 ↔ ∀𝑥 ∈ 𝐵 (𝐺‘𝑥) = (𝐻‘𝑥)))
2117, 20mpbird 260 1 (((𝐹:𝐴–onto→𝐵 ∧ 𝐺 Fn 𝐵 ∧ 𝐻 Fn 𝐵) ∧ (𝐺 ∘ 𝐹) = (𝐻 ∘ 𝐹)) → 𝐺 = 𝐻)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1103   = wceq 1569   ∈ wcel 2144  ∀wral 3076   ∘ ccom 5654   Fn wfn 6533  ⟶wf 6534  –onto→wfo 6536  ‘cfv 6538
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 6540  df-fn 6541  df-f 6542  df-fo 6544  df-fv 6546
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator