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 44607
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 476 . . . . . . . . 9 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → (𝐹''''𝐴) ∈ ran 𝐹)
4 nnel 3057 . . . . . . . . 9 (¬ (𝐹''''𝐴) ∉ ran 𝐹 ↔ (𝐹''''𝐴) ∈ ran 𝐹)
53, 4sylibr 233 . . . . . . . 8 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → ¬ (𝐹''''𝐴) ∉ ran 𝐹)
65a1d 25 . . . . . . 7 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → ((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹))
7 simpl 482 . . . . . . . 8 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → (𝐹''''𝐴) = 𝐵)
87a1d 25 . . . . . . 7 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))
96, 8jca 511 . . . . . 6 (((𝐹''''𝐴) = 𝐵𝐵 ∈ ran 𝐹) → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵)))
109ex 412 . . . . 5 ((𝐹''''𝐴) = 𝐵 → (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))))
11 eleq1 2826 . . . . . . . . . 10 ((𝐹''''𝐴) = 𝐵 → ((𝐹''''𝐴) ∈ ran 𝐹𝐵 ∈ ran 𝐹))
1211anbi2d 628 . . . . . . . . 9 ((𝐹''''𝐴) = 𝐵 → (((𝐹''''𝐴) ∉ ran 𝐹 ∧ (𝐹''''𝐴) ∈ ran 𝐹) ↔ ((𝐹''''𝐴) ∉ ran 𝐹𝐵 ∈ ran 𝐹)))
13 elnelall 3061 . . . . . . . . . 10 ((𝐹''''𝐴) ∈ ran 𝐹 → ((𝐹''''𝐴) ∉ ran 𝐹 → ¬ (𝐹''''𝐴) ∉ ran 𝐹))
1413impcom 407 . . . . . . . . 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 480 . . . . . . 7 (((𝐹''''𝐴) ∉ ran 𝐹𝐵 ∈ ran 𝐹) → (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))
1916, 18jca 511 . . . . . 6 (((𝐹''''𝐴) ∉ ran 𝐹𝐵 ∈ ran 𝐹) → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵)))
2019ex 412 . . . . 5 ((𝐹''''𝐴) ∉ ran 𝐹 → (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))))
2110, 20jaoi 853 . . . 4 (((𝐹''''𝐴) = 𝐵 ∨ (𝐹''''𝐴) ∉ ran 𝐹) → (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))))
2221com12 32 . . 3 (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 ∨ (𝐹''''𝐴) ∉ ran 𝐹) → (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵))))
23 df-xor 1504 . . . 4 (((𝐹''''𝐴) = 𝐵 ⊻ (𝐹''''𝐴) ∉ ran 𝐹) ↔ ¬ ((𝐹''''𝐴) = 𝐵 ↔ (𝐹''''𝐴) ∉ ran 𝐹))
24 xor3 383 . . . 4 (¬ ((𝐹''''𝐴) = 𝐵 ↔ (𝐹''''𝐴) ∉ ran 𝐹) ↔ ((𝐹''''𝐴) = 𝐵 ↔ ¬ (𝐹''''𝐴) ∉ ran 𝐹))
25 dfbi2 474 . . . 4 (((𝐹''''𝐴) = 𝐵 ↔ ¬ (𝐹''''𝐴) ∉ ran 𝐹) ↔ (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵)))
2623, 24, 253bitri 296 . . 3 (((𝐹''''𝐴) = 𝐵 ⊻ (𝐹''''𝐴) ∉ ran 𝐹) ↔ (((𝐹''''𝐴) = 𝐵 → ¬ (𝐹''''𝐴) ∉ ran 𝐹) ∧ (¬ (𝐹''''𝐴) ∉ ran 𝐹 → (𝐹''''𝐴) = 𝐵)))
2722, 26syl6ibr 251 . 2 (𝐵 ∈ ran 𝐹 → (((𝐹''''𝐴) = 𝐵 ∨ (𝐹''''𝐴) ∉ ran 𝐹) → ((𝐹''''𝐴) = 𝐵 ⊻ (𝐹''''𝐴) ∉ ran 𝐹)))
28 xoror 1511 . 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 395  wo 843  wxo 1503   = wceq 1539  wcel 2108  wnel 3048  ran crn 5581  ''''cafv2 44587
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-xor 1504  df-ex 1784  df-cleq 2730  df-clel 2817  df-nel 3049
This theorem is referenced by:  afv2fv0xorb  44646
  Copyright terms: Public domain W3C validator