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

Theorem f12dfv 7145
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 7144 . 2 (𝐹:𝐴1-1𝐵 ↔ (𝐹:𝐴𝐵 ∧ ∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦)))
2 f12dfv.a . . . . 5 𝐴 = {𝑋, 𝑌}
32raleqi 3346 . . . 4 (∀𝑥𝐴𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦))
4 sneq 4571 . . . . . . . . 9 (𝑥 = 𝑋 → {𝑥} = {𝑋})
54difeq2d 4057 . . . . . . . 8 (𝑥 = 𝑋 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑋}))
6 fveq2 6774 . . . . . . . . 9 (𝑥 = 𝑋 → (𝐹𝑥) = (𝐹𝑋))
76neeq1d 3003 . . . . . . . 8 (𝑥 = 𝑋 → ((𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑦)))
85, 7raleqbidv 3336 . . . . . . 7 (𝑥 = 𝑋 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦)))
9 sneq 4571 . . . . . . . . 9 (𝑥 = 𝑌 → {𝑥} = {𝑌})
109difeq2d 4057 . . . . . . . 8 (𝑥 = 𝑌 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑌}))
11 fveq2 6774 . . . . . . . . 9 (𝑥 = 𝑌 → (𝐹𝑥) = (𝐹𝑌))
1211neeq1d 3003 . . . . . . . 8 (𝑥 = 𝑌 → ((𝐹𝑥) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑦)))
1310, 12raleqbidv 3336 . . . . . . 7 (𝑥 = 𝑌 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦)))
148, 13ralprg 4630 . . . . . 6 ((𝑋𝑈𝑌𝑉) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦))))
1514adantr 481 . . . . 5 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹𝑥) ≠ (𝐹𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦))))
162difeq1i 4053 . . . . . . . . . . 11 (𝐴 ∖ {𝑋}) = ({𝑋, 𝑌} ∖ {𝑋})
17 difprsn1 4733 . . . . . . . . . . 11 (𝑋𝑌 → ({𝑋, 𝑌} ∖ {𝑋}) = {𝑌})
1816, 17eqtrid 2790 . . . . . . . . . 10 (𝑋𝑌 → (𝐴 ∖ {𝑋}) = {𝑌})
1918adantl 482 . . . . . . . . 9 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐴 ∖ {𝑋}) = {𝑌})
2019raleqdv 3348 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦)))
21 fveq2 6774 . . . . . . . . . . . 12 (𝑦 = 𝑌 → (𝐹𝑦) = (𝐹𝑌))
2221neeq2d 3004 . . . . . . . . . . 11 (𝑦 = 𝑌 → ((𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2322ralsng 4609 . . . . . . . . . 10 (𝑌𝑉 → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2423adantl 482 . . . . . . . . 9 ((𝑋𝑈𝑌𝑉) → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2524adantr 481 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ {𝑌} (𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
2620, 25bitrd 278 . . . . . . 7 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ↔ (𝐹𝑋) ≠ (𝐹𝑌)))
272difeq1i 4053 . . . . . . . . . . 11 (𝐴 ∖ {𝑌}) = ({𝑋, 𝑌} ∖ {𝑌})
28 difprsn2 4734 . . . . . . . . . . 11 (𝑋𝑌 → ({𝑋, 𝑌} ∖ {𝑌}) = {𝑋})
2927, 28eqtrid 2790 . . . . . . . . . 10 (𝑋𝑌 → (𝐴 ∖ {𝑌}) = {𝑋})
3029adantl 482 . . . . . . . . 9 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (𝐴 ∖ {𝑌}) = {𝑋})
3130raleqdv 3348 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦) ↔ ∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦)))
32 fveq2 6774 . . . . . . . . . . . 12 (𝑦 = 𝑋 → (𝐹𝑦) = (𝐹𝑋))
3332neeq2d 3004 . . . . . . . . . . 11 (𝑦 = 𝑋 → ((𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3433ralsng 4609 . . . . . . . . . 10 (𝑋𝑈 → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3534adantr 481 . . . . . . . . 9 ((𝑋𝑈𝑌𝑉) → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3635adantr 481 . . . . . . . 8 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ {𝑋} (𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3731, 36bitrd 278 . . . . . . 7 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦) ↔ (𝐹𝑌) ≠ (𝐹𝑋)))
3826, 37anbi12d 631 . . . . . 6 (((𝑋𝑈𝑌𝑉) ∧ 𝑋𝑌) → ((∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹𝑋) ≠ (𝐹𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹𝑌) ≠ (𝐹𝑦)) ↔ ((𝐹𝑋) ≠ (𝐹𝑌) ∧ (𝐹𝑌) ≠ (𝐹𝑋))))
39 necom 2997 . . . . . . . 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 1539  wcel 2106  wne 2943  wral 3064  cdif 3884  {csn 4561  {cpr 4563  wf 6429  1-1wf1 6430  cfv 6433
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fv 6441
This theorem is referenced by:  usgr2trlncl  28128
  Copyright terms: Public domain W3C validator