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

Theorem nf1const 7038
Description: A constant function from at least two elements is not one-to-one. (Contributed by AV, 30-Mar-2024.)
Assertion
Ref Expression
nf1const ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → ¬ 𝐹:𝐴1-1𝐶)

Proof of Theorem nf1const
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simp1 1133 . . . . 5 ((𝑋𝐴𝑌𝐴𝑋𝑌) → 𝑋𝐴)
2 simp2 1134 . . . . 5 ((𝑋𝐴𝑌𝐴𝑋𝑌) → 𝑌𝐴)
3 fvconst 6903 . . . . . . . 8 ((𝐹:𝐴⟶{𝐵} ∧ 𝑋𝐴) → (𝐹𝑋) = 𝐵)
41, 3sylan2 595 . . . . . . 7 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → (𝐹𝑋) = 𝐵)
5 fvconst 6903 . . . . . . . 8 ((𝐹:𝐴⟶{𝐵} ∧ 𝑌𝐴) → (𝐹𝑌) = 𝐵)
62, 5sylan2 595 . . . . . . 7 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → (𝐹𝑌) = 𝐵)
74, 6eqtr4d 2836 . . . . . 6 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → (𝐹𝑋) = (𝐹𝑌))
8 neneq 2993 . . . . . . . 8 (𝑋𝑌 → ¬ 𝑋 = 𝑌)
983ad2ant3 1132 . . . . . . 7 ((𝑋𝐴𝑌𝐴𝑋𝑌) → ¬ 𝑋 = 𝑌)
109adantl 485 . . . . . 6 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → ¬ 𝑋 = 𝑌)
117, 10jcnd 166 . . . . 5 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → ¬ ((𝐹𝑋) = (𝐹𝑌) → 𝑋 = 𝑌))
12 fveqeq2 6654 . . . . . . . 8 (𝑥 = 𝑋 → ((𝐹𝑥) = (𝐹𝑦) ↔ (𝐹𝑋) = (𝐹𝑦)))
13 eqeq1 2802 . . . . . . . 8 (𝑥 = 𝑋 → (𝑥 = 𝑦𝑋 = 𝑦))
1412, 13imbi12d 348 . . . . . . 7 (𝑥 = 𝑋 → (((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦) ↔ ((𝐹𝑋) = (𝐹𝑦) → 𝑋 = 𝑦)))
1514notbid 321 . . . . . 6 (𝑥 = 𝑋 → (¬ ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦) ↔ ¬ ((𝐹𝑋) = (𝐹𝑦) → 𝑋 = 𝑦)))
16 fveq2 6645 . . . . . . . . 9 (𝑦 = 𝑌 → (𝐹𝑦) = (𝐹𝑌))
1716eqeq2d 2809 . . . . . . . 8 (𝑦 = 𝑌 → ((𝐹𝑋) = (𝐹𝑦) ↔ (𝐹𝑋) = (𝐹𝑌)))
18 eqeq2 2810 . . . . . . . 8 (𝑦 = 𝑌 → (𝑋 = 𝑦𝑋 = 𝑌))
1917, 18imbi12d 348 . . . . . . 7 (𝑦 = 𝑌 → (((𝐹𝑋) = (𝐹𝑦) → 𝑋 = 𝑦) ↔ ((𝐹𝑋) = (𝐹𝑌) → 𝑋 = 𝑌)))
2019notbid 321 . . . . . 6 (𝑦 = 𝑌 → (¬ ((𝐹𝑋) = (𝐹𝑦) → 𝑋 = 𝑦) ↔ ¬ ((𝐹𝑋) = (𝐹𝑌) → 𝑋 = 𝑌)))
2115, 20rspc2ev 3583 . . . . 5 ((𝑋𝐴𝑌𝐴 ∧ ¬ ((𝐹𝑋) = (𝐹𝑌) → 𝑋 = 𝑌)) → ∃𝑥𝐴𝑦𝐴 ¬ ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
221, 2, 11, 21syl2an23an 1420 . . . 4 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → ∃𝑥𝐴𝑦𝐴 ¬ ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
23 rexnal2 3219 . . . 4 (∃𝑥𝐴𝑦𝐴 ¬ ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦) ↔ ¬ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
2422, 23sylib 221 . . 3 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → ¬ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
2524olcd 871 . 2 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → (¬ 𝐹:𝐴𝐶 ∨ ¬ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
26 ianor 979 . . 3 (¬ (𝐹:𝐴𝐶 ∧ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)) ↔ (¬ 𝐹:𝐴𝐶 ∨ ¬ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
27 dff13 6991 . . 3 (𝐹:𝐴1-1𝐶 ↔ (𝐹:𝐴𝐶 ∧ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
2826, 27xchnxbir 336 . 2 𝐹:𝐴1-1𝐶 ↔ (¬ 𝐹:𝐴𝐶 ∨ ¬ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
2925, 28sylibr 237 1 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → ¬ 𝐹:𝐴1-1𝐶)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 399  wo 844  w3a 1084   = wceq 1538  wcel 2111  wne 2987  wral 3106  wrex 3107  {csn 4525  wf 6320  1-1wf1 6321  cfv 6324
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pr 5295
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-v 3443  df-sbc 3721  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-op 4532  df-uni 4801  df-br 5031  df-opab 5093  df-id 5425  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fv 6332
This theorem is referenced by:  nf1oconst  7039
  Copyright terms: Public domain W3C validator