Results 1 to 8 of 8

Thread: Anyone here familiar with propositional logic?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    The Dude's Avatar Praeses
    Join Date
    Oct 2008
    Location
    I hate it when forums display your location. Now I have to be original.
    Posts
    8,032

    Default Anyone here familiar with propositional logic?

    I guess this is the most fitting forum for this topic. I'm in need of some help here with natural deduction. I'll post the formula and my problem with it if there's anyone here who can help me out. Thanks for whoever can help in advance.
    I have approximate answers and possible beliefs, and different degrees of certainty about different things, but I’m not absolutely sure of anything, and many things I don’t know anything about. But I don’t have to know an answer. I don’t feel frightened by not knowing.
    - Richard Feynman's words. My atheism.

  2. #2
    John Doe's Avatar Primicerius
    Join Date
    Apr 2009
    Location
    Scotland
    Posts
    3,455

    Default Re: Anyone here familiar with propositional logic?

    I've studied some set theory (mainly in vector space) and when I wikied "propositional logic" it looked familiar. Don't get your hope to high with me though, it was years ago, I don't have my notes with me and I was stone 24/7 when I was a student. Post your problem, may be I still have a few neurons connected together.

  3. #3
    The Dude's Avatar Praeses
    Join Date
    Oct 2008
    Location
    I hate it when forums display your location. Now I have to be original.
    Posts
    8,032

    Default Re: Anyone here familiar with propositional logic?

    Haha, alright well I'll take any help I can get at this point. Basically I have to work out the following formula:

    ((P v Q) ^ (P v R)) => (P v (Q ^ R))

    It's part of a much larger formula where I first tried to prove it in the exact opposite direction. I've pulled that off. But due to (P v Q) and (P v R) being disjunctions I can't properly isolate anything to then mash it together in another form. I get the feeling I'm overlooking something direly basic but I have no idea what. The general gist that I understand to be the direction I have to work in is something along these lines:

    Line X (P v Q) => (P v (Q ^ R))
    ...
    Line Y (P v R) => (P v (Q ^R))
    ...
    Line Z ((P v Q) ^ (P v R)) => (P v (Q ^ R))

    But that could be entirely wrong aswell. I don't know. XD
    Last edited by The Dude; February 13, 2011 at 04:19 PM.
    I have approximate answers and possible beliefs, and different degrees of certainty about different things, but I’m not absolutely sure of anything, and many things I don’t know anything about. But I don’t have to know an answer. I don’t feel frightened by not knowing.
    - Richard Feynman's words. My atheism.

  4. #4
    John Doe's Avatar Primicerius
    Join Date
    Apr 2009
    Location
    Scotland
    Posts
    3,455

    Default Re: Anyone here familiar with propositional logic?

    ((P v Q) ^ (P v R)) => (P v (Q ^ R))
    In Boolean it's straight forward: p.q+p.r = p.(q+r)
    EDIT I was wrong, boolean formula is (p+q).(p+r)=p+q.r

    You mentioned going the way back, usually you need use the ¬ somewhere along the line:
    ¬(P v Q) => ¬P ^ ¬Q
    Last edited by John Doe; February 14, 2011 at 05:55 AM.

  5. #5
    The Dude's Avatar Praeses
    Join Date
    Oct 2008
    Location
    I hate it when forums display your location. Now I have to be original.
    Posts
    8,032

    Default Re: Anyone here familiar with propositional logic?

    Yeah I've been pondering negations. Wasn't sure of how to apply them though, I'll give your suggestion a go.
    I have approximate answers and possible beliefs, and different degrees of certainty about different things, but I’m not absolutely sure of anything, and many things I don’t know anything about. But I don’t have to know an answer. I don’t feel frightened by not knowing.
    - Richard Feynman's words. My atheism.

  6. #6
    John Doe's Avatar Primicerius
    Join Date
    Apr 2009
    Location
    Scotland
    Posts
    3,455

    Default Re: Anyone here familiar with propositional logic?

    Could you post the full problem please.

    I've had a read at this and I would like to test what I understood on a concrete case, it looks fun, especially section 5 & 6, as for 7 it's a real

  7. #7
    The Dude's Avatar Praeses
    Join Date
    Oct 2008
    Location
    I hate it when forums display your location. Now I have to be original.
    Posts
    8,032

    Default Re: Anyone here familiar with propositional logic?

    Ah, sure. The full problem is this



    The index of rules in the right column use dutch abbreviations but I guess it shouldn't be too hard to figure out what they mean since the symbols are included. I've managed to proceed up to line 17, as you can see I've proven the problem to be valid in one direction but can't do it the other way around. It shouldn't be difficult I feel, but for some reason I can't make it work. A double implication is effectively nothing but two implications in either direction joined together, so once I've proven both I'll be done.
    Last edited by The Dude; February 14, 2011 at 03:42 AM.
    I have approximate answers and possible beliefs, and different degrees of certainty about different things, but I’m not absolutely sure of anything, and many things I don’t know anything about. But I don’t have to know an answer. I don’t feel frightened by not knowing.
    - Richard Feynman's words. My atheism.

  8. #8
    John Doe's Avatar Primicerius
    Join Date
    Apr 2009
    Location
    Scotland
    Posts
    3,455

    Default Re: Anyone here familiar with propositional logic?

    at line five you proved P v (Q^R) -> (PvQ)^(PvR)

    now you want the other way

    1 (PvQ)^(PvR) premise
    2 PvQ
    3 PvR
    4 ¬P^¬Q negative 2
    5 ¬P^¬R negative 3
    6 ¬P^(¬Qv¬R) 4&5
    7 Pv(Q^R) negative 6

    I'm not 100% sure about line 6, may be it needs to be decomposed further.

    EDIT: I think it should be like that

    1 (PvQ)^(PvR) premise
    2 PvQ
    3 PvR
    ----------------------
    4 ¬P^¬Q equivalent negative 2
    5 ¬P^¬R equivalent negative 3
    --------------------
    6 (¬P^¬Q)v(¬P^¬R) 4&5
    7 ¬P^(¬Qv¬R) equivalent distributive 6
    8 Pv(Q^R) equivalent negative 7

    I just realised that propositional logic is the way to solve a sudoku.
    Last edited by John Doe; February 14, 2011 at 10:59 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •