Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  afv2orxorb Structured version   Visualization version   GIF version

Theorem afv2orxorb 44720
Description: If a set is in the range of a function, the alternate function value at a class 𝐴 equals this set or is not in the range of the function iff the alternate function value at the class 𝐴 either equals this set or is not in the range of the function. If 𝐵 ∉ ran 𝐹, both disjuncts of the exclusive or can be true: (𝐹''''𝐴) = 𝐵 → (𝐹''''𝐴) ∉ ran 𝐹. (Contributed by AV, 11-Sep-2022.)
Assertion
Ref Expression
afv2orxorb (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 ∨ (𝐹''''𝐴) ∉ ran 𝐹) ↔ ((𝐹''''𝐴) = 𝐵 ⊻ (𝐹''''𝐴) ∉ ran 𝐹)))

Proof of Theorem afv2orxorb
StepHypRef Expression
1 eleq1 2826 . . . . . . . . . . 11 (𝐵 = (𝐹''''𝐴) → (𝐵 ∈ ran 𝐹 ↔ (𝐹''''𝐴) ∈ ran 𝐹))
21eqcoms 2746 . . . . . . . . . 10 ((𝐹''''𝐴) = 𝐵 → (𝐵 ∈ ran 𝐹 ↔ (𝐹''''𝐴) ∈ ran 𝐹))
32biimpa 477 . . . . . . . . 9 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → (𝐹''''𝐴) ∈ ran 𝐹)
4 nnel 3058 . . . . . . . . 9 (¬ (𝐹''''𝐴) ∉ ran 𝐹 ↔ (𝐹''''𝐴) ∈ ran 𝐹)
53, 4sylibr 233 . . . . . . . 8 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → ¬ (𝐹''''𝐴) ∉ ran 𝐹)
65a1d 25 . . . . . . 7 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → ((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹))
7 simpl 483 . . . . . . . 8 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → (𝐹''''𝐴) = 𝐵)
87a1d 25 . . . . . . 7 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))
96, 8jca 512 . . . . . 6 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵)))
109ex 413 . . . . 5 ((𝐹''''𝐴) = 𝐵 → (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))))
11 eleq1 2826 . . . . . . . . . 10 ((𝐹''''𝐴) = 𝐵 → ((𝐹''''𝐴) ∈ ran 𝐹𝐵 ∈ ran 𝐹))
1211anbi2d 629 . . . . . . . . 9 ((𝐹''''𝐴) = 𝐵 → (((𝐹''''𝐴) ∉ ran 𝐹 ∧ (𝐹''''𝐴) ∈ ran 𝐹) ↔ ((𝐹''''𝐴) ∉ ran 𝐹𝐵 ∈ ran 𝐹)))
13 elnelall 3062 . . . . . . . . . 10 ((𝐹''''𝐴) ∈ ran 𝐹 → ((𝐹''''𝐴) ∉ ran 𝐹 → ¬ (𝐹''''𝐴) ∉ ran 𝐹))
1413impcom 408 . . . . . . . . 9 (((𝐹''''𝐴) ∉ ran 𝐹 ∧ (𝐹''''𝐴) ∈ ran 𝐹) → ¬ (𝐹''''𝐴) ∉ ran 𝐹)
1512, 14syl6bir 253 . . . . . . . 8 ((𝐹''''𝐴) = 𝐵 → (((𝐹''''𝐴) ∉ ran 𝐹𝐵 ∈ ran 𝐹) → ¬ (𝐹''''𝐴) ∉ ran 𝐹))
1615com12 32 . . . . . . 7 (((𝐹''''𝐴) ∉ ran 𝐹𝐵 ∈ ran 𝐹) → ((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹))
17 pm2.24 124 . . . . . . . 8 ((𝐹''''𝐴) ∉ ran 𝐹 → (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))
1817adantr 481 . . . . . . 7 (((𝐹''''𝐴) ∉ ran 𝐹𝐵 ∈ ran 𝐹) → (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))
1916, 18jca 512 . . . . . 6 (((𝐹''''𝐴) ∉ ran 𝐹𝐵 ∈ ran 𝐹) → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵)))
2019ex 413 . . . . 5 ((𝐹''''𝐴) ∉ ran 𝐹 → (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))))
2110, 20jaoi 854 . . . 4 (((𝐹''''𝐴) = 𝐵 ∨ (𝐹''''𝐴) ∉ ran 𝐹) → (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))))
2221com12 32 . . 3 (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 ∨ (𝐹''''𝐴) ∉ ran 𝐹) → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))))
23 df-xor 1507 . . . 4 (((𝐹''''𝐴) = 𝐵 ⊻ (𝐹''''𝐴) ∉ ran 𝐹) ↔ ¬ ((𝐹''''𝐴) = 𝐵 ↔ (𝐹''''𝐴) ∉ ran 𝐹))
24 xor3 384 . . . 4 (¬ ((𝐹''''𝐴) = 𝐵 ↔ (𝐹''''𝐴) ∉ ran 𝐹) ↔ ((𝐹''''𝐴) = 𝐵 ↔ ¬ (𝐹''''𝐴) ∉ ran 𝐹))
25 dfbi2 475 . . . 4 (((𝐹''''𝐴) = 𝐵 ↔ ¬ (𝐹''''𝐴) ∉ ran 𝐹) ↔ (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵)))
2623, 24, 253bitri 297 . . 3 (((𝐹''''𝐴) = 𝐵 ⊻ (𝐹''''𝐴) ∉ ran 𝐹) ↔ (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵)))
2722, 26syl6ibr 251 . 2 (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 ∨ (𝐹''''𝐴) ∉ ran 𝐹) → ((𝐹''''𝐴) = 𝐵 ⊻ (𝐹''''𝐴) ∉ ran 𝐹)))
28 xoror 1514 . 2 (((𝐹''''𝐴) = 𝐵 ⊻ (𝐹''''𝐴) ∉ ran 𝐹) → ((𝐹''''𝐴) = 𝐵 ∨ (𝐹''''𝐴) ∉ ran 𝐹))
2927, 28impbid1 224 1 (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 ∨ (𝐹''''𝐴) ∉ ran 𝐹) ↔ ((𝐹''''𝐴) = 𝐵 ⊻ (𝐹''''𝐴) ∉ ran 𝐹)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844  wxo 1506   = wceq 1539  wcel 2106  wnel 3049  ran crn 5590  ''''cafv2 44700
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-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-xor 1507  df-ex 1783  df-cleq 2730  df-clel 2816  df-nel 3050
This theorem is referenced by:  afv2fv0xorb  44759
  Copyright terms: Public domain W3C validator