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

Theorem fvpr1g 7195
Description: The value of a function with a domain of (at most) two elements. (Contributed by Alexander van der Vekens, 3-Dec-2017.)
Assertion
Ref Expression
fvpr1g ((𝐴 ∈ 𝑉 ∧ 𝐶 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}‘𝐴) = 𝐶)

Proof of Theorem fvpr1g
StepHypRef Expression
1 df-pr 4587 . . . . 5 {⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩} = ({⟨𝐴, 𝐶⟩} ∪ {⟨𝐵, 𝐷⟩})
21fveq1i 6886 . . . 4 ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}‘𝐴) = (({⟨𝐴, 𝐶⟩} ∪ {⟨𝐵, 𝐷⟩})‘𝐴)
3 necom 3008 . . . . 5 (𝐴 ≠ 𝐵 ↔ 𝐵 ≠ 𝐴)
4 fvunsn 7184 . . . . 5 (𝐵 ≠ 𝐴 → (({⟨𝐴, 𝐶⟩} ∪ {⟨𝐵, 𝐷⟩})‘𝐴) = ({⟨𝐴, 𝐶⟩}‘𝐴))
53, 4sylbi 220 . . . 4 (𝐴 ≠ 𝐵 → (({⟨𝐴, 𝐶⟩} ∪ {⟨𝐵, 𝐷⟩})‘𝐴) = ({⟨𝐴, 𝐶⟩}‘𝐴))
62, 5eqtrid 2807 . . 3 (𝐴 ≠ 𝐵 → ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}‘𝐴) = ({⟨𝐴, 𝐶⟩}‘𝐴))
763ad2ant3 1153 . 2 ((𝐴 ∈ 𝑉 ∧ 𝐶 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}‘𝐴) = ({⟨𝐴, 𝐶⟩}‘𝐴))
8 fvsng 7185 . . 3 ((𝐴 ∈ 𝑉 ∧ 𝐶 ∈ 𝑊) → ({⟨𝐴, 𝐶⟩}‘𝐴) = 𝐶)
983adant3 1150 . 2 ((𝐴 ∈ 𝑉 ∧ 𝐶 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({⟨𝐴, 𝐶⟩}‘𝐴) = 𝐶)
107, 9eqtrd 2795 1 ((𝐴 ∈ 𝑉 ∧ 𝐶 ∈ 𝑊 ∧ 𝐴 ≠ 𝐵) → ({⟨𝐴, 𝐶⟩, ⟨𝐵, 𝐷⟩}‘𝐴) = 𝐶)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ w3a 1103   = wceq 1569   ∈ wcel 2144   ≠ wne 2955   ∪ cun 4149  {csn 4584  {cpr 4586  ⟨cop 4834  ‘cfv 6538
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-br 5103  df-opab 5167  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-res 5662  df-iota 6494  df-fun 6540  df-fv 6546
This theorem is used by:  fvpr2g  7196  fvpr1  7197  fvtp1g  7203  fpropnf1  7271  f1prex  7292  wrdlen2i  15098  fvpr0o  17736  linds2eq  33982  zlmodzxzscm  49562  zlmodzxzadd  49563  lincvalpr  49623  ldepspr  49678  2arymptfv  49855  fv1prop  49904
  Copyright terms: Public domain W3C validator