Group Abstract Group Abstract

Message Boards Message Boards

0
|
12.9K Views
|
5 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Simplifying between set theory and logical connectives

Posted 10 years ago
POSTED BY: Greg Ferenstein
5 Replies

Mathematica 10.3 gets it wrong with this calculation (A [Intersection] B) [Union] (A [Intersection] C) It seems to work if we inactivate Union and Intersection:

Inactivate[
 replRule := {HoldPattern[
     x \[Element] 
      u_ \[Union] v_] :> (x \[Element] u) \[Or] (x \[Element] v), 
   HoldPattern[
     x \[Element] 
      u_ \[Intersection] v_] :> (x \[Element] u) \[And] (x \[Element] 
       v)};
 predicate1 = 
  x \[Element] (A \[Intersection] B) \[Union] (A \[Intersection] C);
 predicate2 = x \[Element] A && (x \[Element] B || x \[Element] C);
 Simplify[Equivalent[predicate1, predicate2] //. replRule], 
 Union | Intersection | C]
POSTED BY: Gianluca Gorni
Posted 10 years ago

Simplifying between set theory and logical connectives

POSTED BY: Greg Ferenstein

How about replacement rules:

HoldForm[x \[Element] (A \[Intersection] 
      B) \[Union] (A \[Intersection] C)] //. {HoldPattern[
    x \[Element] 
     u_ \[Union] v_] :> (x \[Element] u) \[Or] (x \[Element] v), 
  HoldPattern[
    x \[Element] 
     u_ \[Intersection] v_] :> (x \[Element] u) \[And] (x \[Element] 
      v)}
POSTED BY: Gianluca Gorni
Posted 10 years ago

@Simon Cadrin is there a way to go between abstract sets and logical connectives? i'd like to convert between the two. Thanks so much for you help!

POSTED BY: Greg Ferenstein

enter image description here

POSTED BY: Simon Cadrin
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard