Difference between revisions of "Talk:Logical graph"

MyWikiBiz, Author Your Legacy — Tuesday November 26, 2024
Jump to navigationJump to search
(→‎Discussion: TXT → TeX)
Line 79: Line 79:
  
 
The negation <math>\lnot x</math> is written <math>(x).\!</math>
 
The negation <math>\lnot x</math> is written <math>(x).\!</math>
 +
 +
This corresponds to the logical graph:
 +
 +
<pre>
 +
          x
 +
          o
 +
          |
 +
          O
 +
</pre>
  
 
The conjunction <math>x \land y</math> is written <math>x y.\!</math>
 
The conjunction <math>x \land y</math> is written <math>x y.\!</math>
 +
 +
This corresponds to the logical graph:
 +
 +
<pre>
 +
        x y
 +
          O
 +
</pre>
  
 
The conjunction <math>x \land y \land z</math> is written <math>x y z.\!</math>
 
The conjunction <math>x \land y \land z</math> is written <math>x y z.\!</math>
 +
 +
This corresponds to the logical graph:
 +
 +
<pre>
 +
        xyz
 +
          O
 +
</pre>
  
 
Etc.
 
Etc.
Line 101: Line 124:
 
</pre>
 
</pre>
  
The disjunction "''x'' or ''y'' or ''z''" is written "((''x'')(''y'')(''z''))".
+
The disjunction <math>x \lor y \lor z</math> is written <math>((x)(y)(z)).\!</math>
  
 
This corresponds to the logical graph:
 
This corresponds to the logical graph:
Line 116: Line 139:
 
Etc.
 
Etc.
  
The implication "''x'' &rArr; ''y''" is written "(''x'' (''y'')), which can be read "not ''x'' without ''y''" if that helps to remember the form of expression.
+
The implication <math>x \Rightarrow y</math> is written <math>(x (y)),\!</math> which can be read "not <math>x\!</math> without <math>y\!</math>" if that helps to remember the form of expression.
  
 
This corresponds to the logical graph:
 
This corresponds to the logical graph:
Line 128: Line 151:
 
</pre>
 
</pre>
  
Thus, the equivalence "''x'' &hArr; ''y''" has to be written somewhat inefficiently as a conjunction of to and fro implications:  "(''x'' (''y''))(''y'' (''x''))".
+
Thus, the equivalence <math>x \Leftrightarrow y</math> has to be written somewhat inefficiently as a conjunction of two implications:  <math>(x (y)) (y (x)).\!</math>
  
 
This corresponds to the logical graph:
 
This corresponds to the logical graph:
Line 155: Line 178:
 
( (p (q)) (q (p)) ) = (p ( (q) )) ((p)(q))
 
( (p (q)) (q (p)) ) = (p ( (q) )) ((p)(q))
 
</pre>
 
</pre>
 
No kidding &hellip;
 

Revision as of 02:00, 3 December 2008

Notes & Queries

Place for Discussion


\(\ldots\)

Logical Equivalence Problem

Problem

Problem posted by Mike1234 on the Discrete Math List at the Math Forum.

  • Required to show that \(\lnot (p \Leftrightarrow q)\) is equivalent to \((\lnot q) \Leftrightarrow p.\)

Solution

Solution posted by Jon Awbrey, working in the medium of logical graphs.

In logical graphs, the required equivalence looks like this:

      q o   o p           q o
        |   |               |
      p o   o q             o   o p
         \ /                |   |
          o               p o   o--o q
          |                  \ / 
          @         =         @

We have a theorem that says:

        y o                xy o
          |                   |
        x @        =        x @

See Logical Graph : C2. Generation Theorem.

Applying this twice to the left hand side of the required equation, we get:

      q o   o p          pq o   o pq
        |   |               |   |
      p o   o q           p o   o q
         \ /                 \ /
          o                   o
          |                   |
          @         =         @

By collection, the reverse of distribution, we get:

          p   q
          o   o
       pq  \ / 
        o   o
         \ /
          @

But this is the same result that we get from one application of double negation to the right hand side of the required equation.

QED

Discussion

Back to the initial problem:

  • Show that \(\lnot (p \Leftrightarrow q)\) is equivalent to \((\lnot q) \Leftrightarrow p.\)

We can translate this into logical graphs by supposing that we have to express everything in terms of negation and conjunction, using parentheses for negation and simple concatenation for conjunction, thus:

The negation \(\lnot x\) is written \((x).\!\)

This corresponds to the logical graph:

          x
          o
          |
          O

The conjunction \(x \land y\) is written \(x y.\!\)

This corresponds to the logical graph:

         x y
          O

The conjunction \(x \land y \land z\) is written \(x y z.\!\)

This corresponds to the logical graph:

         xyz
          O

Etc.

In this form of representation, for historical reasons called the "existential interpretation" of logical graphs, we have the following expressions for basic logical operations:

The disjunction \(x \lor y\) is written \(((x)(y)).\!\)

This corresponds to the logical graph:

        x   y
        o   o
         \ /
          o
          |
          O

The disjunction \(x \lor y \lor z\) is written \(((x)(y)(z)).\!\)

This corresponds to the logical graph:

        x y z
        o o o
         \|/
          o
          |
          O

Etc.

The implication \(x \Rightarrow y\) is written \((x (y)),\!\) which can be read "not \(x\!\) without \(y\!\)" if that helps to remember the form of expression.

This corresponds to the logical graph:

        y o
          |
        x o
          |
          O

Thus, the equivalence \(x \Leftrightarrow y\) has to be written somewhat inefficiently as a conjunction of two implications\[(x (y)) (y (x)).\!\]

This corresponds to the logical graph:

      y o   o x
        |   |
      x o   o y
         \ /
          O

Putting all the pieces together, the problem given amounts to proving the following equation, expressed in the forms of logical graphs and parenthetical parse strings, respectively:

  • Show that \(\lnot (p \Leftrightarrow q)\) is equivalent to \((\lnot q) \Leftrightarrow p.\)
      q o   o p           q o
        |   |               |
      p o   o q             o   o p
         \ /                |   |
          o               p o   o--o q
          |                  \ /
          O         =         O

( (p (q)) (q (p)) ) = (p ( (q) )) ((p)(q))