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

Theorem f12dfv 7279
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 7273 . 2 (𝐹:𝐴–1-1→𝐵 ↔ (𝐹:𝐴⟶𝐵 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦)))
2 f12dfv.a . . . . 5 𝐴 = {𝑋, 𝑌}
32raleqi 3318 . . . 4 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ ∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦))
4 sneq 4594 . . . . . . . . 9 (𝑥 = 𝑋 → {𝑥} = {𝑋})
54difeq2d 4074 . . . . . . . 8 (𝑥 = 𝑋 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑋}))
6 fveq2 6883 . . . . . . . . 9 (𝑥 = 𝑋 → (𝐹‘𝑥) = (𝐹‘𝑋))
76neeq1d 3015 . . . . . . . 8 (𝑥 = 𝑋 → ((𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑦)))
85, 7raleqbidv 3335 . . . . . . 7 (𝑥 = 𝑋 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦)))
9 sneq 4594 . . . . . . . . 9 (𝑥 = 𝑌 → {𝑥} = {𝑌})
109difeq2d 4074 . . . . . . . 8 (𝑥 = 𝑌 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑌}))
11 fveq2 6883 . . . . . . . . 9 (𝑥 = 𝑌 → (𝐹‘𝑥) = (𝐹‘𝑌))
1211neeq1d 3015 . . . . . . . 8 (𝑥 = 𝑌 → ((𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑦)))
1310, 12raleqbidv 3335 . . . . . . 7 (𝑥 = 𝑌 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦)))
148, 13ralprg 4657 . . . . . 6 ((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦))))
1514adantr 486 . . . . 5 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦))))
162difeq1i 4070 . . . . . . . . . . 11 (𝐴 ∖ {𝑋}) = ({𝑋, 𝑌} ∖ {𝑋})
17 difprsn1 4763 . . . . . . . . . . 11 (𝑋 ≠ 𝑌 → ({𝑋, 𝑌} ∖ {𝑋}) = {𝑌})
1816, 17eqtrid 2808 . . . . . . . . . 10 (𝑋 ≠ 𝑌 → (𝐴 ∖ {𝑋}) = {𝑌})
1918adantl 487 . . . . . . . . 9 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (𝐴 ∖ {𝑋}) = {𝑌})
2019raleqdv 3320 . . . . . . . 8 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ ∀𝑦 ∈ {𝑌} (𝐹‘𝑋) ≠ (𝐹‘𝑦)))
21 fveq2 6883 . . . . . . . . . . . 12 (𝑦 = 𝑌 → (𝐹‘𝑦) = (𝐹‘𝑌))
2221neeq2d 3016 . . . . . . . . . . 11 (𝑦 = 𝑌 → ((𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
2322ralsng 4636 . . . . . . . . . 10 (𝑌 ∈ 𝑉 → (∀𝑦 ∈ {𝑌} (𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
2423adantl 487 . . . . . . . . 9 ((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) → (∀𝑦 ∈ {𝑌} (𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
2524adantr 486 . . . . . . . 8 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ {𝑌} (𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
2620, 25bitrd 282 . . . . . . 7 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
272difeq1i 4070 . . . . . . . . . . 11 (𝐴 ∖ {𝑌}) = ({𝑋, 𝑌} ∖ {𝑌})
28 difprsn2 4764 . . . . . . . . . . 11 (𝑋 ≠ 𝑌 → ({𝑋, 𝑌} ∖ {𝑌}) = {𝑋})
2927, 28eqtrid 2808 . . . . . . . . . 10 (𝑋 ≠ 𝑌 → (𝐴 ∖ {𝑌}) = {𝑋})
3029adantl 487 . . . . . . . . 9 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (𝐴 ∖ {𝑌}) = {𝑋})
3130raleqdv 3320 . . . . . . . 8 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ ∀𝑦 ∈ {𝑋} (𝐹‘𝑌) ≠ (𝐹‘𝑦)))
32 fveq2 6883 . . . . . . . . . . . 12 (𝑦 = 𝑋 → (𝐹‘𝑦) = (𝐹‘𝑋))
3332neeq2d 3016 . . . . . . . . . . 11 (𝑦 = 𝑋 → ((𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑋)))
3433ralsng 4636 . . . . . . . . . 10 (𝑋 ∈ 𝑈 → (∀𝑦 ∈ {𝑋} (𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑋)))
3534adantr 486 . . . . . . . . 9 ((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) → (∀𝑦 ∈ {𝑋} (𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑋)))
3635adantr 486 . . . . . . . 8 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ {𝑋} (𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑋)))
3731, 36bitrd 282 . . . . . . 7 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑋)))
3826, 37anbi12d 644 . . . . . 6 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → ((∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦)) ↔ ((𝐹‘𝑋) ≠ (𝐹‘𝑌) ∧ (𝐹‘𝑌) ≠ (𝐹‘𝑋))))
39 necom 3009 . . . . . . . 8 ((𝐹‘𝑋) ≠ (𝐹‘𝑌) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑋))
4039biimpi 219 . . . . . . 7 ((𝐹‘𝑋) ≠ (𝐹‘𝑌) → (𝐹‘𝑌) ≠ (𝐹‘𝑋))
4140pm4.71i 569 . . . . . 6 ((𝐹‘𝑋) ≠ (𝐹‘𝑌) ↔ ((𝐹‘𝑋) ≠ (𝐹‘𝑌) ∧ (𝐹‘𝑌) ≠ (𝐹‘𝑋)))
4238, 41bitr4di 292 . . . . 5 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → ((∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦)) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
4315, 42bitrd 282 . . . 4 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
443, 43bitrid 286 . . 3 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
4544anbi2d 642 . 2 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → ((𝐹:𝐴⟶𝐵 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦)) ↔ (𝐹:𝐴⟶𝐵 ∧ (𝐹‘𝑋) ≠ (𝐹‘𝑌))))
461, 45bitrid 286 1 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (𝐹:𝐴–1-1→𝐵 ↔ (𝐹:𝐴⟶𝐵 ∧ (𝐹‘𝑋) ≠ (𝐹‘𝑌))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2145   ≠ wne 2956  ∀wral 3077   ∖ cdif 3896  {csn 4584  {cpr 4586  ⟶wf 6533  –1-1→wf1 6534  ‘cfv 6537
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-f1 6542  df-fv 6545
This theorem is used by:  usgr2trlncl  30339
  Copyright terms: Public domain W3C validator