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

Theorem nf1const 7056
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 1131 . . . . 5 ((𝑋𝐴𝑌𝐴𝑋𝑌) → 𝑋𝐴)
2 simp2 1132 . . . . 5 ((𝑋𝐴𝑌𝐴𝑋𝑌) → 𝑌𝐴)
3 fvconst 6923 . . . . . . . 8 ((𝐹:𝐴⟶{𝐵} ∧ 𝑋𝐴) → (𝐹𝑋) = 𝐵)
41, 3sylan2 594 . . . . . . 7 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → (𝐹𝑋) = 𝐵)
5 fvconst 6923 . . . . . . . 8 ((𝐹:𝐴⟶{𝐵} ∧ 𝑌𝐴) → (𝐹𝑌) = 𝐵)
62, 5sylan2 594 . . . . . . 7 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → (𝐹𝑌) = 𝐵)
74, 6eqtr4d 2858 . . . . . 6 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → (𝐹𝑋) = (𝐹𝑌))
8 neneq 3021 . . . . . . . 8 (𝑋𝑌 → ¬ 𝑋 = 𝑌)
983ad2ant3 1130 . . . . . . 7 ((𝑋𝐴𝑌𝐴𝑋𝑌) → ¬ 𝑋 = 𝑌)
109adantl 484 . . . . . 6 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → ¬ 𝑋 = 𝑌)
117, 10jcnd 165 . . . . 5 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → ¬ ((𝐹𝑋) = (𝐹𝑌) → 𝑋 = 𝑌))
12 fveqeq2 6676 . . . . . . . 8 (𝑥 = 𝑋 → ((𝐹𝑥) = (𝐹𝑦) ↔ (𝐹𝑋) = (𝐹𝑦)))
13 eqeq1 2824 . . . . . . . 8 (𝑥 = 𝑋 → (𝑥 = 𝑦𝑋 = 𝑦))
1412, 13imbi12d 347 . . . . . . 7 (𝑥 = 𝑋 → (((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦) ↔ ((𝐹𝑋) = (𝐹𝑦) → 𝑋 = 𝑦)))
1514notbid 320 . . . . . 6 (𝑥 = 𝑋 → (¬ ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦) ↔ ¬ ((𝐹𝑋) = (𝐹𝑦) → 𝑋 = 𝑦)))
16 fveq2 6667 . . . . . . . . 9 (𝑦 = 𝑌 → (𝐹𝑦) = (𝐹𝑌))
1716eqeq2d 2831 . . . . . . . 8 (𝑦 = 𝑌 → ((𝐹𝑋) = (𝐹𝑦) ↔ (𝐹𝑋) = (𝐹𝑌)))
18 eqeq2 2832 . . . . . . . 8 (𝑦 = 𝑌 → (𝑋 = 𝑦𝑋 = 𝑌))
1917, 18imbi12d 347 . . . . . . 7 (𝑦 = 𝑌 → (((𝐹𝑋) = (𝐹𝑦) → 𝑋 = 𝑦) ↔ ((𝐹𝑋) = (𝐹𝑌) → 𝑋 = 𝑌)))
2019notbid 320 . . . . . 6 (𝑦 = 𝑌 → (¬ ((𝐹𝑋) = (𝐹𝑦) → 𝑋 = 𝑦) ↔ ¬ ((𝐹𝑋) = (𝐹𝑌) → 𝑋 = 𝑌)))
2115, 20rspc2ev 3634 . . . . 5 ((𝑋𝐴𝑌𝐴 ∧ ¬ ((𝐹𝑋) = (𝐹𝑌) → 𝑋 = 𝑌)) → ∃𝑥𝐴𝑦𝐴 ¬ ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
221, 2, 11, 21syl2an23an 1418 . . . 4 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → ∃𝑥𝐴𝑦𝐴 ¬ ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
23 rexnal2 3257 . . . 4 (∃𝑥𝐴𝑦𝐴 ¬ ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦) ↔ ¬ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
2422, 23sylib 220 . . 3 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → ¬ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦))
2524olcd 870 . 2 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → (¬ 𝐹:𝐴𝐶 ∨ ¬ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
26 ianor 978 . . 3 (¬ (𝐹:𝐴𝐶 ∧ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)) ↔ (¬ 𝐹:𝐴𝐶 ∨ ¬ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
27 dff13 7010 . . 3 (𝐹:𝐴1-1𝐶 ↔ (𝐹:𝐴𝐶 ∧ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
2826, 27xchnxbir 335 . 2 𝐹:𝐴1-1𝐶 ↔ (¬ 𝐹:𝐴𝐶 ∨ ¬ ∀𝑥𝐴𝑦𝐴 ((𝐹𝑥) = (𝐹𝑦) → 𝑥 = 𝑦)))
2925, 28sylibr 236 1 ((𝐹:𝐴⟶{𝐵} ∧ (𝑋𝐴𝑌𝐴𝑋𝑌)) → ¬ 𝐹:𝐴1-1𝐶)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 398  wo 843  w3a 1082   = wceq 1536  wcel 2113  wne 3015  wral 3137  wrex 3138  {csn 4564  wf 6348  1-1wf1 6349  cfv 6352
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2792  ax-sep 5200  ax-nul 5207  ax-pr 5327
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1084  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-mo 2621  df-eu 2653  df-clab 2799  df-cleq 2813  df-clel 2892  df-nfc 2962  df-ne 3016  df-ral 3142  df-rex 3143  df-rab 3146  df-v 3495  df-sbc 3771  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-nul 4289  df-if 4465  df-sn 4565  df-pr 4567  df-op 4571  df-uni 4836  df-br 5064  df-opab 5126  df-id 5457  df-xp 5558  df-rel 5559  df-cnv 5560  df-co 5561  df-dm 5562  df-rn 5563  df-iota 6311  df-fun 6354  df-fn 6355  df-f 6356  df-f1 6357  df-fv 6360
This theorem is referenced by:  nf1oconst  7057
  Copyright terms: Public domain W3C validator