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

Theorem dffo3f 7148
Description: An onto mapping expressed in terms of function values. As dffo3 7144 but with less disjoint vars constraints. (Contributed by Glauco Siliprandi, 17-Aug-2020.)
Hypothesis
Ref Expression
dffo3f.1 Ⅎ𝑥𝐹
Assertion
Ref Expression
dffo3f (𝐹:𝐴⟶onto𝐵 ↔ (𝐹:𝐴⟶𝐵 ∧ ∀𝑦 ∈ 𝐵 ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)))
Distinct variable groups:   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑦,𝐹
Allowed substitution hint:   𝐹(𝑥)

Proof of Theorem dffo3f
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 dffo2 6840 . 2 (𝐹:𝐴⟶onto𝐵 ↔ (𝐹:𝐴⟶𝐵 ∧ ran 𝐹 = 𝐵))
2 ffn 6749 . . . . 5 (𝐹:𝐴⟶𝐵 → 𝐹 Fn 𝐴)
3 fnrnfv 6985 . . . . . . 7 (𝐹 Fn 𝐴 → ran 𝐹 = {𝑦 ∣ ∃𝑤 ∈ 𝐴 𝑦 = (𝐹‘𝑤)})
4 dffo3f.1 . . . . . . . . . . 11 Ⅎ𝑥𝐹
5 nfcv 2932 . . . . . . . . . . 11 Ⅎ𝑥𝑤
64, 5nffv 6936 . . . . . . . . . 10 Ⅎ𝑥(𝐹‘𝑤)
76nfeq2 2949 . . . . . . . . 9 Ⅎ𝑥 𝑦 = (𝐹‘𝑤)
8 nfv 1951 . . . . . . . . 9 Ⅎ𝑤 𝑦 = (𝐹‘𝑥)
9 fveq2 6926 . . . . . . . . . 10 (𝑤 = 𝑥 → (𝐹‘𝑤) = (𝐹‘𝑥))
109eqeq2d 2780 . . . . . . . . 9 (𝑤 = 𝑥 → (𝑦 = (𝐹‘𝑤) ↔ 𝑦 = (𝐹‘𝑥)))
117, 8, 10cbvrexw 3312 . . . . . . . 8 (∃𝑤 ∈ 𝐴 𝑦 = (𝐹‘𝑤) ↔ ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥))
1211abbii 2836 . . . . . . 7 {𝑦 ∣ ∃𝑤 ∈ 𝐴 𝑦 = (𝐹‘𝑤)} = {𝑦 ∣ ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)}
133, 12eqtrdi 2820 . . . . . 6 (𝐹 Fn 𝐴 → ran 𝐹 = {𝑦 ∣ ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)})
1413eqeq1d 2771 . . . . 5 (𝐹 Fn 𝐴 → (ran 𝐹 = 𝐵 ↔ {𝑦 ∣ ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)} = 𝐵))
152, 14syl 18 . . . 4 (𝐹:𝐴⟶𝐵 → (ran 𝐹 = 𝐵 ↔ {𝑦 ∣ ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)} = 𝐵))
16 dfbi2 480 . . . . . . 7 ((∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥) ↔ 𝑦 ∈ 𝐵) ↔ ((∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥) → 𝑦 ∈ 𝐵) ∧ (𝑦 ∈ 𝐵 → ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥))))
17 nfcv 2932 . . . . . . . . . 10 Ⅎ𝑥𝐴
18 nfcv 2932 . . . . . . . . . 10 Ⅎ𝑥𝐵
194, 17, 18nff 6745 . . . . . . . . 9 Ⅎ𝑥 𝐹:𝐴⟶𝐵
20 nfv 1951 . . . . . . . . 9 Ⅎ𝑥 𝑦 ∈ 𝐵
21 simpr 490 . . . . . . . . . . 11 (((𝐹:𝐴⟶𝐵 ∧ 𝑥 ∈ 𝐴) ∧ 𝑦 = (𝐹‘𝑥)) → 𝑦 = (𝐹‘𝑥))
22 ffvelcdm 7123 . . . . . . . . . . . 12 ((𝐹:𝐴⟶𝐵 ∧ 𝑥 ∈ 𝐴) → (𝐹‘𝑥) ∈ 𝐵)
2322adantr 486 . . . . . . . . . . 11 (((𝐹:𝐴⟶𝐵 ∧ 𝑥 ∈ 𝐴) ∧ 𝑦 = (𝐹‘𝑥)) → (𝐹‘𝑥) ∈ 𝐵)
2421, 23eqeltrd 2870 . . . . . . . . . 10 (((𝐹:𝐴⟶𝐵 ∧ 𝑥 ∈ 𝐴) ∧ 𝑦 = (𝐹‘𝑥)) → 𝑦 ∈ 𝐵)
2524exp31 425 . . . . . . . . 9 (𝐹:𝐴⟶𝐵 → (𝑥 ∈ 𝐴 → (𝑦 = (𝐹‘𝑥) → 𝑦 ∈ 𝐵)))
2619, 20, 25rexlimd 3276 . . . . . . . 8 (𝐹:𝐴⟶𝐵 → (∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥) → 𝑦 ∈ 𝐵))
2726biantrurd 542 . . . . . . 7 (𝐹:𝐴⟶𝐵 → ((𝑦 ∈ 𝐵 → ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)) ↔ ((∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥) → 𝑦 ∈ 𝐵) ∧ (𝑦 ∈ 𝐵 → ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)))))
2816, 27bitr4id 293 . . . . . 6 (𝐹:𝐴⟶𝐵 → ((∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥) ↔ 𝑦 ∈ 𝐵) ↔ (𝑦 ∈ 𝐵 → ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥))))
2928albidv 1957 . . . . 5 (𝐹:𝐴⟶𝐵 → (∀𝑦(∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥) ↔ 𝑦 ∈ 𝐵) ↔ ∀𝑦(𝑦 ∈ 𝐵 → ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥))))
30 eqabcb 2910 . . . . 5 ({𝑦 ∣ ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)} = 𝐵 ↔ ∀𝑦(∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥) ↔ 𝑦 ∈ 𝐵))
31 df-ral 3087 . . . . 5 (∀𝑦 ∈ 𝐵 ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥) ↔ ∀𝑦(𝑦 ∈ 𝐵 → ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)))
3229, 30, 313bitr4g 317 . . . 4 (𝐹:𝐴⟶𝐵 → ({𝑦 ∣ ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)} = 𝐵 ↔ ∀𝑦 ∈ 𝐵 ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)))
3315, 32bitrd 282 . . 3 (𝐹:𝐴⟶𝐵 → (ran 𝐹 = 𝐵 ↔ ∀𝑦 ∈ 𝐵 ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)))
3433pm5.32i 585 . 2 ((𝐹:𝐴⟶𝐵 ∧ ran 𝐹 = 𝐵) ↔ (𝐹:𝐴⟶𝐵 ∧ ∀𝑦 ∈ 𝐵 ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)))
351, 34bitri 278 1 (𝐹:𝐴⟶onto𝐵 ↔ (𝐹:𝐴⟶𝐵 ∧ ∀𝑦 ∈ 𝐵 ∃𝑥 ∈ 𝐴 𝑦 = (𝐹‘𝑥)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1570   = wceq 1572   ∈ wcel 2151  {cab 2747  Ⅎwnfc 2917  ∀wral 3086  ∃wrex 3096  ran crn 5662   Fn wfn 6568  ⟶wf 6569  ⟶ontowfo 6571  ‘cfv 6573
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-nul 5269  ax-pr 5401
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-ral 3087  df-rex 3097  df-rab 3419  df-v 3458  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-br 5112  df-opab 5177  df-mpt 5196  df-id 5556  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-fo 6579  df-fv 6581
This theorem is used by:  foelrnf  7150  fompt  7160
  Copyright terms: Public domain W3C validator