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

Theorem f12dfv 7140
Description: A one-to-one function with a domain with at least two different elements in terms of function values. (Contributed by Alexander van der Vekens, 2-Mar-2018.)
Hypothesis
Ref Expression
f12dfv.a 𝐴 = {𝑋, 𝑌}
Assertion
Ref Expression
f12dfv (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐹:𝐴1-1𝐵 ↔ (𝐹:𝐴𝐵 ∧ (𝐹𝑋) ≠ (𝐹𝑌))))

Proof of Theorem f12dfv
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 dff14b 7139 . 2 (𝐹:𝐴1-1𝐵 ↔ (𝐹:𝐴𝐵 ∧ ∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦)))
2 f12dfv.a . . . . 5 𝐴 = {𝑋, 𝑌}
32raleqi 3345 . . . 4 (∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦))
4 sneq 4577 . . . . . . . . 9 (𝑥 = 𝑋 → {𝑥} = {𝑋})
54difeq2d 4062 . . . . . . . 8 (𝑥 = 𝑋 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑋}))
6 fveq2 6769 . . . . . . . . 9 (𝑥 = 𝑋 → (𝐹𝑥) = (𝐹𝑋))
76neeq1d 3005 . . . . . . . 8 (𝑥 = 𝑋 → ((𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑦)))
85, 7raleqbidv 3335 . . . . . . 7 (𝑥 = 𝑋 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦)))
9 sneq 4577 . . . . . . . . 9 (𝑥 = 𝑌 → {𝑥} = {𝑌})
109difeq2d 4062 . . . . . . . 8 (𝑥 = 𝑌 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑌}))
11 fveq2 6769 . . . . . . . . 9 (𝑥 = 𝑌 → (𝐹𝑥) = (𝐹𝑌))
1211neeq1d 3005 . . . . . . . 8 (𝑥 = 𝑌 → ((𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑦)))
1310, 12raleqbidv 3335 . . . . . . 7 (𝑥 = 𝑌 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦)))
148, 13ralprg 4636 . . . . . 6 ((𝑋𝑈𝑌𝑉) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦))))
1514adantr 481 . . . . 5 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦))))
162difeq1i 4058 . . . . . . . . . . 11 (𝐴 ∖ {𝑋}) = ({𝑋, 𝑌} ∖ {𝑋})
17 difprsn1 4739 . . . . . . . . . . 11 (𝑋𝑌 → ({𝑋, 𝑌} ∖ {𝑋}) = {𝑌})
1816, 17eqtrid 2792 . . . . . . . . . 10 (𝑋𝑌 → (𝐴 ∖ {𝑋}) = {𝑌})
1918adantl 482 . . . . . . . . 9 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐴 ∖ {𝑋}) = {𝑌})
2019raleqdv 3347 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦)))
21 fveq2 6769 . . . . . . . . . . . 12 (𝑦 = 𝑌 → (𝐹𝑦) = (𝐹𝑌))
2221neeq2d 3006 . . . . . . . . . . 11 (𝑦 = 𝑌 → ((𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2322ralsng 4615 . . . . . . . . . 10 (𝑌𝑉 → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2423adantl 482 . . . . . . . . 9 ((𝑋𝑈𝑌𝑉) → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2524adantr 481 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2620, 25bitrd 278 . . . . . . 7 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
272difeq1i 4058 . . . . . . . . . . 11 (𝐴 ∖ {𝑌}) = ({𝑋, 𝑌} ∖ {𝑌})
28 difprsn2 4740 . . . . . . . . . . 11 (𝑋𝑌 → ({𝑋, 𝑌} ∖ {𝑌}) = {𝑋})
2927, 28eqtrid 2792 . . . . . . . . . 10 (𝑋𝑌 → (𝐴 ∖ {𝑌}) = {𝑋})
3029adantl 482 . . . . . . . . 9 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐴 ∖ {𝑌}) = {𝑋})
3130raleqdv 3347 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦)))
32 fveq2 6769 . . . . . . . . . . . 12 (𝑦 = 𝑋 → (𝐹𝑦) = (𝐹𝑋))
3332neeq2d 3006 . . . . . . . . . . 11 (𝑦 = 𝑋 → ((𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3433ralsng 4615 . . . . . . . . . 10 (𝑋𝑈 → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3534adantr 481 . . . . . . . . 9 ((𝑋𝑈𝑌𝑉) → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3635adantr 481 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3731, 36bitrd 278 . . . . . . 7 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3826, 37anbi12d 631 . . . . . 6 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → ((∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦)) ↔ ((𝐹𝑋) ≠ (𝐹𝑌) ∧ (𝐹𝑌) ≠ (𝐹𝑋))))
39 necom 2999 . . . . . . . 8 ((𝐹𝑋) ≠ (𝐹𝑌) ↔ (𝐹𝑌) ≠ (𝐹𝑋))
4039biimpi 215 . . . . . . 7 ((𝐹𝑋) ≠ (𝐹𝑌) → (𝐹𝑌) ≠ (𝐹𝑋))
4140pm4.71i 560 . . . . . 6 ((𝐹𝑋) ≠ (𝐹𝑌) ↔ ((𝐹𝑋) ≠ (𝐹𝑌) ∧ (𝐹𝑌) ≠ (𝐹𝑋)))
4238, 41bitr4di 289 . . . . 5 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → ((∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦)) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
4315, 42bitrd 278 . . . 4 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
443, 43bitrid 282 . . 3 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
4544anbi2d 629 . 2 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → ((𝐹:𝐴𝐵 ∧ ∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦)) ↔ (𝐹:𝐴𝐵 ∧ (𝐹𝑋) ≠ (𝐹𝑌))))
461, 45bitrid 282 1 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐹:𝐴1-1𝐵 ↔ (𝐹:𝐴𝐵 ∧ (𝐹𝑋) ≠ (𝐹𝑌))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1542  wcel 2110  wne 2945  wral 3066  cdif 3889  {csn 4567  {cpr 4569  wf 6427  1-1wf1 6428  cfv 6431
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2015  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2711  ax-sep 5227  ax-nul 5234  ax-pr 5356
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2072  df-mo 2542  df-eu 2571  df-clab 2718  df-cleq 2732  df-clel 2818  df-nfc 2891  df-ne 2946  df-nel 3052  df-ral 3071  df-rex 3072  df-rab 3075  df-v 3433  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-nul 4263  df-if 4466  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4846  df-br 5080  df-opab 5142  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-iota 6389  df-fun 6433  df-fn 6434  df-f 6435  df-f1 6436  df-fv 6439
This theorem is referenced by:  usgr2trlncl  28122
  Copyright terms: Public domain W3C validator