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

Theorem f12dfv 6483
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 6482 . 2 (𝐹:𝐴1-1𝐵 ↔ (𝐹:𝐴𝐵 ∧ ∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦)))
2 f12dfv.a . . . . 5 𝐴 = {𝑋, 𝑌}
32raleqi 3131 . . . 4 (∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦))
4 sneq 4158 . . . . . . . . 9 (𝑥 = 𝑋 → {𝑥} = {𝑋})
54difeq2d 3706 . . . . . . . 8 (𝑥 = 𝑋 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑋}))
6 fveq2 6148 . . . . . . . . 9 (𝑥 = 𝑋 → (𝐹𝑥) = (𝐹𝑋))
76neeq1d 2849 . . . . . . . 8 (𝑥 = 𝑋 → ((𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑦)))
85, 7raleqbidv 3141 . . . . . . 7 (𝑥 = 𝑋 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦)))
9 sneq 4158 . . . . . . . . 9 (𝑥 = 𝑌 → {𝑥} = {𝑌})
109difeq2d 3706 . . . . . . . 8 (𝑥 = 𝑌 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑌}))
11 fveq2 6148 . . . . . . . . 9 (𝑥 = 𝑌 → (𝐹𝑥) = (𝐹𝑌))
1211neeq1d 2849 . . . . . . . 8 (𝑥 = 𝑌 → ((𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑦)))
1310, 12raleqbidv 3141 . . . . . . 7 (𝑥 = 𝑌 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦)))
148, 13ralprg 4205 . . . . . 6 ((𝑋𝑈𝑌𝑉) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦))))
1514adantr 481 . . . . 5 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦))))
162difeq1i 3702 . . . . . . . . . . 11 (𝐴 ∖ {𝑋}) = ({𝑋, 𝑌} ∖ {𝑋})
17 difprsn1 4299 . . . . . . . . . . 11 (𝑋𝑌 → ({𝑋, 𝑌} ∖ {𝑋}) = {𝑌})
1816, 17syl5eq 2667 . . . . . . . . . 10 (𝑋𝑌 → (𝐴 ∖ {𝑋}) = {𝑌})
1918adantl 482 . . . . . . . . 9 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐴 ∖ {𝑋}) = {𝑌})
2019raleqdv 3133 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦)))
21 fveq2 6148 . . . . . . . . . . . 12 (𝑦 = 𝑌 → (𝐹𝑦) = (𝐹𝑌))
2221neeq2d 2850 . . . . . . . . . . 11 (𝑦 = 𝑌 → ((𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2322ralsng 4189 . . . . . . . . . 10 (𝑌𝑉 → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2423adantl 482 . . . . . . . . 9 ((𝑋𝑈𝑌𝑉) → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2524adantr 481 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2620, 25bitrd 268 . . . . . . 7 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
272difeq1i 3702 . . . . . . . . . . 11 (𝐴 ∖ {𝑌}) = ({𝑋, 𝑌} ∖ {𝑌})
28 difprsn2 4300 . . . . . . . . . . 11 (𝑋𝑌 → ({𝑋, 𝑌} ∖ {𝑌}) = {𝑋})
2927, 28syl5eq 2667 . . . . . . . . . 10 (𝑋𝑌 → (𝐴 ∖ {𝑌}) = {𝑋})
3029adantl 482 . . . . . . . . 9 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐴 ∖ {𝑌}) = {𝑋})
3130raleqdv 3133 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦)))
32 fveq2 6148 . . . . . . . . . . . 12 (𝑦 = 𝑋 → (𝐹𝑦) = (𝐹𝑋))
3332neeq2d 2850 . . . . . . . . . . 11 (𝑦 = 𝑋 → ((𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3433ralsng 4189 . . . . . . . . . 10 (𝑋𝑈 → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3534adantr 481 . . . . . . . . 9 ((𝑋𝑈𝑌𝑉) → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3635adantr 481 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3731, 36bitrd 268 . . . . . . 7 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3826, 37anbi12d 746 . . . . . 6 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → ((∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦)) ↔ ((𝐹𝑋) ≠ (𝐹𝑌) ∧ (𝐹𝑌) ≠ (𝐹𝑋))))
39 necom 2843 . . . . . . . 8 ((𝐹𝑋) ≠ (𝐹𝑌) ↔ (𝐹𝑌) ≠ (𝐹𝑋))
4039biimpi 206 . . . . . . 7 ((𝐹𝑋) ≠ (𝐹𝑌) → (𝐹𝑌) ≠ (𝐹𝑋))
4140pm4.71i 663 . . . . . 6 ((𝐹𝑋) ≠ (𝐹𝑌) ↔ ((𝐹𝑋) ≠ (𝐹𝑌) ∧ (𝐹𝑌) ≠ (𝐹𝑋)))
4238, 41syl6bbr 278 . . . . 5 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → ((∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦)) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
4315, 42bitrd 268 . . . 4 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
443, 43syl5bb 272 . . 3 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
4544anbi2d 739 . 2 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → ((𝐹:𝐴𝐵 ∧ ∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦)) ↔ (𝐹:𝐴𝐵 ∧ (𝐹𝑋) ≠ (𝐹𝑌))))
461, 45syl5bb 272 1 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐹:𝐴1-1𝐵 ↔ (𝐹:𝐴𝐵 ∧ (𝐹𝑋) ≠ (𝐹𝑌))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384   = wceq 1480  wcel 1987  wne 2790  wral 2907  cdif 3552  {csn 4148  {cpr 4150  wf 5843  1-1wf1 5844  cfv 5847
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4741  ax-nul 4749  ax-pr 4867
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-rab 2916  df-v 3188  df-sbc 3418  df-dif 3558  df-un 3560  df-in 3562  df-ss 3569  df-nul 3892  df-if 4059  df-sn 4149  df-pr 4151  df-op 4155  df-uni 4403  df-br 4614  df-opab 4674  df-id 4989  df-xp 5080  df-rel 5081  df-cnv 5082  df-co 5083  df-dm 5084  df-iota 5810  df-fun 5849  df-fn 5850  df-f 5851  df-f1 5852  df-fv 5855
This theorem is referenced by:  usgr2trlncl  26525
  Copyright terms: Public domain W3C validator