S.O.S. Mathematics CyberBoard

Your Resource for mathematics help on the web!
It is currently Sat, 25 May 2013 19:00:41 UTC

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: discrete mathematics "3 value logic" help
PostPosted: Fri, 8 Jun 2012 05:04:06 UTC 
Offline
S.O.S. Newbie

Joined: Fri, 8 Jun 2012 05:00:12 UTC
Posts: 1
so basically i have a project about 3 valued logic ie truth=1 false = 0, unknown = 1/2

in a previous project I had to come up with formulae for 2 valued logic as follows:

negation
t(~p) = 1-t(p)

Conjunction
T(p^q) = min[t(p), t(q)]

Disjunction
T(p V q) = max[t(p), t(q)]

Conditional
~p -> q === ~p V q => t(p->q) = t[~pVq]
=> max[t(~p), t(q)]
=> max[1-t(p), t(q)]

biconditional
p<->q === (p->q)^(q->p) => t(p->q) = t[(p->q)^(q->p)]
=> min[t(p->q), t(q->p)
=> min[max[1-t(p), t(q)], max[1-t(q), t(p)]]
using this information I have to define the connectives for 3 valued logic. and I dont really know how to do that. this is due tomorrow, please help!!! :(


Top
 Profile  
 
 Post subject: Re: discrete mathematics "3 value logic" help
PostPosted: Fri, 8 Jun 2012 06:11:24 UTC 
Offline
Moderator
User avatar

Joined: Mon, 29 Dec 2008 17:49:32 UTC
Posts: 6009
Location: 127.0.0.1, ::1 (avatar courtesy of UDN)
samaha wrote:
so basically i have a project about 3 valued logic ie truth=1 false = 0, unknown = 1/2

in a previous project I had to come up with formulae for 2 valued logic as follows:

negation
t(~p) = 1-t(p)

Conjunction
T(p^q) = min[t(p), t(q)]

Disjunction
T(p V q) = max[t(p), t(q)]

Conditional
~p -> q === ~p V q => t(p->q) = t[~pVq]
=> max[t(~p), t(q)]
=> max[1-t(p), t(q)]

biconditional
p<->q === (p->q)^(q->p) => t(p->q) = t[(p->q)^(q->p)]
=> min[t(p->q), t(q->p)
=> min[max[1-t(p), t(q)], max[1-t(q), t(p)]]
using this information I have to define the connectives for 3 valued logic. and I dont really know how to do that. this is due tomorrow, please help!!! :(


Note that there isn't a complemented lattice of 3 elements, so you necessarily don't have double negation (or excluded middle).

On the other hand, the lattice is pseudocomplemented, so ...

_________________
\begin{aligned}
Spin(1)&=O(1)=\mathbb{Z}/2&\quad&\text{and}\\
Spin(2)&=U(1)=SO(2)&&\text{are obvious}\\
Spin(3)&=Sp(1)=SU(2)&&\text{by }q\mapsto(\mathop{\mathrm{Im}}\mathbb{H}\ni p\mapsto qp\bar{q})\\
Spin(4)&=Sp(1)\times Sp(1)&&\text{by }(q_1,q_2)\mapsto(\mathbb{H}\ni p\mapsto q_1p\bar{q_2})\\
Spin(5)&=Sp(2)&&\text{by }\mathbb{HP}^1\cong S^4_{round}\hookrightarrow\mathbb{R}^5\\
Spin(6)&=SU(4)&&\text{by the irrep }\Lambda_+\mathbb{C}^4
\end{aligned}


Top
 Profile  
 
 Post subject: Re: discrete mathematics "3 value logic" help
PostPosted: Fri, 8 Jun 2012 18:22:34 UTC 
Offline
Member of the 'S.O.S. Math' Hall of Fame

Joined: Mon, 19 May 2003 19:55:19 UTC
Posts: 7951
Location: Lexington, MA
Hello, samaha!

I've changed the code somewhat.


Quote:
So basically i have a project about 3-valued logic: .true = T, false = F, unknown = 0.

I would construct the basic truth tables, using common sense or baby-talk.


. . \begin{array}{|c||c|} p & \sim p \\ \hline T & F \\ 0 & 0 \\ F & T \\ \hline\end{array}


. . \begin{array}{|c|c||c|c|c|c|} p & q & p \wedge q & p \vee q & p \to q & p \leftrightarrow q \\ \hline T&T & T&T&T&T \\ T&0 & 0&T&0&0 \\ T&F & F&T&F&F \\ 0&T & 0&T&T&0 \\ 0&0 & 0&0&0&0 \\ 0&F& F&0&0&0 \\ F&T & F&T&T&F \\ F&0 & F&0&T&0 \\ F&F & F&F&T&T \\ \hline \end{array}


Then apply these to your problems.



Top
 Profile  
 
 Post subject: Re: discrete mathematics "3 value logic" help
PostPosted: Fri, 8 Jun 2012 21:36:42 UTC 
Offline
Moderator
User avatar

Joined: Mon, 29 Dec 2008 17:49:32 UTC
Posts: 6009
Location: 127.0.0.1, ::1 (avatar courtesy of UDN)
Soroban wrote:
\begin{array}{|c||c|} p & \sim p \\ \hline T & F \\ 0 & 0 \\ F & T \\ \hline\end{array}


I disagree. v(\neg p)=\ast v(p), where v\colon L\to\Lambda is our valuation, \ast\colon\Lambda\to\Lambda is our pseudocomplement operator on our pseudocomplemented lattice \Lambda. In particular, the pseudocomplement of the unique nontrivial element in our 3-element bounded lattice is \bot. See, for example, Heyting algebra example in wikipedia (the third one is what the OP asked for).

A way to understand why we necessary have v(\neg p)=0 when v(p)=\frac{1}{2} is to examine what would you get if you apply your rules for v(p\wedge\neg p). Since v(p\wedge p)=v(p), you must define v(p\wedge q)=\frac{1}{2} when v(p)=v(q)=\frac{1}{2}. Also, v(p\wedge(\neg p))=v(\bot)=0, so v(\neg p) cannot be 1/2 or 1 when v(p)=1/2.

_________________
\begin{aligned}
Spin(1)&=O(1)=\mathbb{Z}/2&\quad&\text{and}\\
Spin(2)&=U(1)=SO(2)&&\text{are obvious}\\
Spin(3)&=Sp(1)=SU(2)&&\text{by }q\mapsto(\mathop{\mathrm{Im}}\mathbb{H}\ni p\mapsto qp\bar{q})\\
Spin(4)&=Sp(1)\times Sp(1)&&\text{by }(q_1,q_2)\mapsto(\mathbb{H}\ni p\mapsto q_1p\bar{q_2})\\
Spin(5)&=Sp(2)&&\text{by }\mathbb{HP}^1\cong S^4_{round}\hookrightarrow\mathbb{R}^5\\
Spin(6)&=SU(4)&&\text{by the irrep }\Lambda_+\mathbb{C}^4
\end{aligned}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Contact Us | S.O.S. Mathematics Homepage
Privacy Statement | Search the "old" CyberBoard

users online during the last hour
Powered by phpBB © 2001, 2005-2011 phpBB Group.
Copyright © 1999-2013 MathMedics, LLC. All rights reserved.
Math Medics, LLC. - P.O. Box 12395 - El Paso TX 79913 - USA