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

Theorem f12dfv 7126
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 7125 . 2 (𝐹:𝐴1-1𝐵 ↔ (𝐹:𝐴𝐵 ∧ ∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦)))
2 f12dfv.a . . . . 5 𝐴 = {𝑋, 𝑌}
32raleqi 3337 . . . 4 (∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦))
4 sneq 4568 . . . . . . . . 9 (𝑥 = 𝑋 → {𝑥} = {𝑋})
54difeq2d 4053 . . . . . . . 8 (𝑥 = 𝑋 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑋}))
6 fveq2 6756 . . . . . . . . 9 (𝑥 = 𝑋 → (𝐹𝑥) = (𝐹𝑋))
76neeq1d 3002 . . . . . . . 8 (𝑥 = 𝑋 → ((𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑦)))
85, 7raleqbidv 3327 . . . . . . 7 (𝑥 = 𝑋 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦)))
9 sneq 4568 . . . . . . . . 9 (𝑥 = 𝑌 → {𝑥} = {𝑌})
109difeq2d 4053 . . . . . . . 8 (𝑥 = 𝑌 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑌}))
11 fveq2 6756 . . . . . . . . 9 (𝑥 = 𝑌 → (𝐹𝑥) = (𝐹𝑌))
1211neeq1d 3002 . . . . . . . 8 (𝑥 = 𝑌 → ((𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑦)))
1310, 12raleqbidv 3327 . . . . . . 7 (𝑥 = 𝑌 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦)))
148, 13ralprg 4627 . . . . . 6 ((𝑋𝑈𝑌𝑉) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦))))
1514adantr 480 . . . . 5 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦))))
162difeq1i 4049 . . . . . . . . . . 11 (𝐴 ∖ {𝑋}) = ({𝑋, 𝑌} ∖ {𝑋})
17 difprsn1 4730 . . . . . . . . . . 11 (𝑋𝑌 → ({𝑋, 𝑌} ∖ {𝑋}) = {𝑌})
1816, 17eqtrid 2790 . . . . . . . . . 10 (𝑋𝑌 → (𝐴 ∖ {𝑋}) = {𝑌})
1918adantl 481 . . . . . . . . 9 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐴 ∖ {𝑋}) = {𝑌})
2019raleqdv 3339 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦)))
21 fveq2 6756 . . . . . . . . . . . 12 (𝑦 = 𝑌 → (𝐹𝑦) = (𝐹𝑌))
2221neeq2d 3003 . . . . . . . . . . 11 (𝑦 = 𝑌 → ((𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2322ralsng 4606 . . . . . . . . . 10 (𝑌𝑉 → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2423adantl 481 . . . . . . . . 9 ((𝑋𝑈𝑌𝑉) → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2524adantr 480 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2620, 25bitrd 278 . . . . . . 7 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
272difeq1i 4049 . . . . . . . . . . 11 (𝐴 ∖ {𝑌}) = ({𝑋, 𝑌} ∖ {𝑌})
28 difprsn2 4731 . . . . . . . . . . 11 (𝑋𝑌 → ({𝑋, 𝑌} ∖ {𝑌}) = {𝑋})
2927, 28eqtrid 2790 . . . . . . . . . 10 (𝑋𝑌 → (𝐴 ∖ {𝑌}) = {𝑋})
3029adantl 481 . . . . . . . . 9 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐴 ∖ {𝑌}) = {𝑋})
3130raleqdv 3339 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦)))
32 fveq2 6756 . . . . . . . . . . . 12 (𝑦 = 𝑋 → (𝐹𝑦) = (𝐹𝑋))
3332neeq2d 3003 . . . . . . . . . . 11 (𝑦 = 𝑋 → ((𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3433ralsng 4606 . . . . . . . . . 10 (𝑋𝑈 → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3534adantr 480 . . . . . . . . 9 ((𝑋𝑈𝑌𝑉) → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3635adantr 480 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3731, 36bitrd 278 . . . . . . 7 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3826, 37anbi12d 630 . . . . . 6 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → ((∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦)) ↔ ((𝐹𝑋) ≠ (𝐹𝑌) ∧ (𝐹𝑌) ≠ (𝐹𝑋))))
39 necom 2996 . . . . . . . 8 ((𝐹𝑋) ≠ (𝐹𝑌) ↔ (𝐹𝑌) ≠ (𝐹𝑋))
4039biimpi 215 . . . . . . 7 ((𝐹𝑋) ≠ (𝐹𝑌) → (𝐹𝑌) ≠ (𝐹𝑋))
4140pm4.71i 559 . . . . . 6 ((𝐹𝑋) ≠ (𝐹𝑌) ↔ ((𝐹𝑋) ≠ (𝐹𝑌) ∧ (𝐹𝑌) ≠ (𝐹𝑋)))
4238, 41bitr4di 288 . . . . 5 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → ((∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦)) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
4315, 42bitrd 278 . . . 4 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
443, 43syl5bb 282 . . 3 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
4544anbi2d 628 . 2 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → ((𝐹:𝐴𝐵 ∧ ∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦)) ↔ (𝐹:𝐴𝐵 ∧ (𝐹𝑋) ≠ (𝐹𝑌))))
461, 45syl5bb 282 1 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐹:𝐴1-1𝐵 ↔ (𝐹:𝐴𝐵 ∧ (𝐹𝑋) ≠ (𝐹𝑌))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wne 2942  wral 3063  cdif 3880  {csn 4558  {cpr 4560  wf 6414  1-1wf1 6415  cfv 6418
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fv 6426
This theorem is referenced by:  usgr2trlncl  28029
  Copyright terms: Public domain W3C validator