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

Theorem f12dfv 7327
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 7321 . 2 (𝐹:𝐴⟶1-1𝐵 ↔ (𝐹:𝐴⟶𝐵 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦)))
2 f12dfv.a . . . . 5 𝐴 = {𝑋, 𝑌}
32raleqi 3329 . . . 4 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ ∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦))
4 sneq 4601 . . . . . . . . 9 (𝑥 = 𝑋 → {𝑥} = {𝑋})
54difeq2d 4073 . . . . . . . 8 (𝑥 = 𝑋 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑋}))
6 fveq2 6931 . . . . . . . . 9 (𝑥 = 𝑋 → (𝐹‘𝑥) = (𝐹‘𝑋))
76neeq1d 3029 . . . . . . . 8 (𝑥 = 𝑋 → ((𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑦)))
85, 7raleqbidv 3346 . . . . . . 7 (𝑥 = 𝑋 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦)))
9 sneq 4601 . . . . . . . . 9 (𝑥 = 𝑌 → {𝑥} = {𝑌})
109difeq2d 4073 . . . . . . . 8 (𝑥 = 𝑌 → (𝐴 ∖ {𝑥}) = (𝐴 ∖ {𝑌}))
11 fveq2 6931 . . . . . . . . 9 (𝑥 = 𝑌 → (𝐹‘𝑥) = (𝐹‘𝑌))
1211neeq1d 3029 . . . . . . . 8 (𝑥 = 𝑌 → ((𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑦)))
1310, 12raleqbidv 3346 . . . . . . 7 (𝑥 = 𝑌 → (∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦)))
148, 13ralprg 4665 . . . . . 6 ((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦))))
1514adantr 486 . . . . 5 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑥 ∈ {𝑋, 𝑌}∀𝑦 ∈ (𝐴 ∖ {𝑥})(𝐹‘𝑥) ≠ (𝐹‘𝑦) ↔ (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦))))
162difeq1i 4069 . . . . . . . . . . 11 (𝐴 ∖ {𝑋}) = ({𝑋, 𝑌} ∖ {𝑋})
17 difprsn1 4773 . . . . . . . . . . 11 (𝑋 ≠ 𝑌 → ({𝑋, 𝑌} ∖ {𝑋}) = {𝑌})
1816, 17eqtrid 2821 . . . . . . . . . 10 (𝑋 ≠ 𝑌 → (𝐴 ∖ {𝑋}) = {𝑌})
1918adantl 487 . . . . . . . . 9 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (𝐴 ∖ {𝑋}) = {𝑌})
2019raleqdv 3331 . . . . . . . 8 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ ∀𝑦 ∈ {𝑌} (𝐹‘𝑋) ≠ (𝐹‘𝑦)))
21 fveq2 6931 . . . . . . . . . . . 12 (𝑦 = 𝑌 → (𝐹‘𝑦) = (𝐹‘𝑌))
2221neeq2d 3030 . . . . . . . . . . 11 (𝑦 = 𝑌 → ((𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
2322ralsng 4644 . . . . . . . . . 10 (𝑌 ∈ 𝑉 → (∀𝑦 ∈ {𝑌} (𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
2423adantl 487 . . . . . . . . 9 ((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) → (∀𝑦 ∈ {𝑌} (𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
2524adantr 486 . . . . . . . 8 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ {𝑌} (𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
2620, 25bitrd 282 . . . . . . 7 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑋) ≠ (𝐹‘𝑌)))
272difeq1i 4069 . . . . . . . . . . 11 (𝐴 ∖ {𝑌}) = ({𝑋, 𝑌} ∖ {𝑌})
28 difprsn2 4774 . . . . . . . . . . 11 (𝑋 ≠ 𝑌 → ({𝑋, 𝑌} ∖ {𝑌}) = {𝑋})
2927, 28eqtrid 2821 . . . . . . . . . 10 (𝑋 ≠ 𝑌 → (𝐴 ∖ {𝑌}) = {𝑋})
3029adantl 487 . . . . . . . . 9 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (𝐴 ∖ {𝑌}) = {𝑋})
3130raleqdv 3331 . . . . . . . 8 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ ∀𝑦 ∈ {𝑋} (𝐹‘𝑌) ≠ (𝐹‘𝑦)))
32 fveq2 6931 . . . . . . . . . . . 12 (𝑦 = 𝑋 → (𝐹‘𝑦) = (𝐹‘𝑋))
3332neeq2d 3030 . . . . . . . . . . 11 (𝑦 = 𝑋 → ((𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑋)))
3433ralsng 4644 . . . . . . . . . 10 (𝑋 ∈ 𝑈 → (∀𝑦 ∈ {𝑋} (𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑋)))
3534adantr 486 . . . . . . . . 9 ((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) → (∀𝑦 ∈ {𝑋} (𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑋)))
3635adantr 486 . . . . . . . 8 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ {𝑋} (𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑋)))
3731, 36bitrd 282 . . . . . . 7 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦) ↔ (𝐹‘𝑌) ≠ (𝐹‘𝑋)))
3826, 37anbi12d 644 . . . . . 6 (((𝑋 ∈ 𝑈 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → ((∀𝑦 ∈ (𝐴 ∖ {𝑋})(𝐹‘𝑋) ≠ (𝐹‘𝑦) ∧ ∀𝑦 ∈ (𝐴 ∖ {𝑌})(𝐹‘𝑌) ≠ (𝐹‘𝑦)) ↔ ((𝐹‘𝑋) ≠ (𝐹‘𝑌) ∧ (𝐹‘𝑌) ≠ (𝐹‘𝑋))))
39 necom 3023 . . . . . . . 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 1572   ∈ wcel 2156   ≠ wne 2970  ∀wral 3091   ∖ cdif 4055  {csn 4595  {cpr 4597  ⟶wf 6574  ⟶1-1wf1 6575  ‘cfv 6578
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263  ax-nul 5274  ax-pr 5406
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-ne 2971  df-nel 3077  df-ral 3092  df-rex 3102  df-rab 3424  df-v 3463  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-br 5117  df-opab 5182  df-id 5561  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-iota 6532  df-fun 6580  df-fn 6581  df-f 6582  df-f1 6583  df-fv 6586
This theorem is used by:  usgr2trlncl  30491
  Copyright terms: Public domain W3C validator