Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Predicate Logic Problem

  1. Aug 23, 2015 #1
    Hello,

    I am having particular trouble with the below problem. We are using http://studygig.com/uploads/materials/math1090_mathematical_logi.pdf [Broken] and we must prove this statement using Hilbert style or Equational style proof (first-order logic), but any proof of any type would point me in the right direction.

    (∀x)(A→B) ≡ ((∃x)A) → B

    So far I have tried to use Ping-Pong Theorem to prove that
    1. (∀x)(A→B) → (((∃x)A) → B)
    and
    2. (((∃x)A) → B) → (∀x)(A→B)
    but I can't prove either 1. or 2.

    If anyone could provide insight, I would appreciate it.
     
    Last edited by a moderator: May 7, 2017
  2. jcsd
  3. Aug 23, 2015 #2

    RUber

    User Avatar
    Homework Helper

    To be sure I understand the notation, you are trying to show that
    "In all cases, if A is true, then B is true" is logically equivalent to "If there is a case where A is true, then B is true."
    Using contrapositive, (can you assume the contrapositive at this point?)
    for all x, not B implies not A, and not B implies not (exists a case where A is true).
    Looking at the right side, the negative of (there exists x)A is for all x, not A.
    That seems like it should be in the right neighborhood.
     
  4. Aug 23, 2015 #3
    Hey RUber,

    Thanks for the reply and you understood my notation perfectly.

    I think we can assume the contrapositive. However, when you get to for all x (not B implies not A), I don't know how to make that equivalent to (not B) implies for all x (not A)

    left side: ∀x(~B → ~A)
    right side: ~B → ∀x(~A)

    There is a theorem that allows the left side to be implied to ∀x(~B) → ∀x(~A), but then no way to get that universal quantifier off of the not B.

    Sorry if this is hard to follow, this logic book seems a bit esoteric.
     
  5. Aug 23, 2015 #4

    WWGD

    User Avatar
    Science Advisor
    Gold Member

    How about using truth trees for predicate logic? You basically try to falsify your expression, finding a counterexample, i.e., making premises true and conclusion false.
     
  6. Aug 24, 2015 #5
    Hey WWGD,

    Thanks for the response.

    Truth trees seem like an interesting concept from my quick Googling, but we weren't introduced to those yet in the text and I think that would be outside of the scope of a formal proof in first-order logic (or a Hilbert style proof).

    Is there perhaps any way to translate a truth tree into a formal logic proof that you know of? If I could figure out a truth tree proof, maybe that could help me.
     
  7. Aug 24, 2015 #6

    WWGD

    User Avatar
    Science Advisor
    Gold Member

    Hi Programmer, actually a truth tree is just a way of trying to invalidate an argument: the idea is that of assuming the negation of the (a) conclusion
    and seeing if that negation can be derived from the premises, so that, e.g., if you are given ## A \rightarrow B ## to prove, you try to see if you can derive
    ## \lnot B ## from ##A ##. Please give me till tomorrow, it is kind of late here and I need to get up a bit early. Will be back ASAP.
     
  8. Aug 24, 2015 #7

    RUber

    User Avatar
    Homework Helper

    From a logical perspective, if the cases that falsify the claim are equivalent, then the statements are equivalent.
    ##\forall x (A \to B) ## is false when?
    Only when ##\exists x( A \text{ and } \text{ not } B ) .##
    This is false if for all x, not B implies not A and A implies B.

    The right side,##\exists x( A) \to B## is false when?
    Only when ##\exists x( A) \text{ and } \text{ not } B.##
    This is false when not B implies not A (for all x), and exists x( A) implies B

    It looks like these are essentially the same.

    If you look at this from a set theory perspective, for all x, A implies B means that A is a subset of B. This is really saying that A is only possible within the context of B being true. If B is false, then there is no possibility for A to be true. So the left side implies the right side.
    Does the right side imply the left?
    If there exists an x in A, then B must be true...Using the contrapositive, (not B ) then forall x (not A) , should bring you back to the same set description, indicating that no part of set A is outside of set B.
     
  9. Aug 24, 2015 #8
    Hey RUber,

    I definitely see what you are saying, and if I could prove this using intuition or naive logic, it would be so much easier.

    I just can't seem to translate that reasoning into the strict formal logic of only using inference rules and absolute theorems to derive one side from the other.

    You essentially got it down to left side: NOT (∃x(A and not B)) , right side: NOT (∃x(A) and not B), but existential is around both terms for left side and only around one term for right side. That's the same dilemma as below where I have universal around both terms for left and universal around only one term for right.

    left side:
    ∀x(A→B)

    ∀x(notA ∨ B)

    right side:
    ∃x(A)→B

    not(∀x(notA))→B

    ∀x(notA)∨B

    Any idea where I can go from there?
     
  10. Aug 24, 2015 #9

    RUber

    User Avatar
    Homework Helper

    I see the trouble. I think this needs to be broken up into showing that one implies the other and vice versa...I don't think you'll get there with strict equivalences.
    Does this work?
    ∀x(A→B) ⇔∀x (~B→~A) ∀x (~B)→∀x(~A) ⇔~B→ ∀x(~A)⇔∃x(A)→B
    and...
    ∃x(A)→B A →B ⇔ ∀x(A→B)
    Thus, since one implies two and two implies one, the biconditional is true.
     
  11. Aug 24, 2015 #10
    Wow, that is actually at least very close, but I still can't figure out a few of your steps.

    ∀x (~B)→∀x(~A) ⇔~B→ ∀x(~A)
    is this a theorem that is true in general? I can't seem to find any reference in the text that allows for this removal of universal quantifier (but I could be missing it)


    ∃x(A)→B ⇒ A →B
    I guess this is similar to above. Are we allowed to remove the existential quantifier like that?

    A →B ⇔ ∀x(A→B)
    This looks like weak generalization, but we can only use weak generalization if x does not occur free in our assumptions, and our assumption is what we started with ∃x(A)→B, which could have a free x in B.

    If you could shed any light on the above, that would be great. It could be a shortcoming of my own knowledge that I don't realize why these are allowed.
     
  12. Aug 24, 2015 #11

    RUber

    User Avatar
    Homework Helper

    You are right, maybe that should be a one way conditional statement. ∀x (~B)→∀x(~A) ⇒~B→ ∀x(~A)
    If it is true that existence of any x in A implies B, then A would indicate the existence is true. That's why I needed to switch to the one-way method.
    I suppose I would look at it this way,
    ∀x(A→B) is the same a A→B, isn't it? A free x in B doesn't affect the logic. B and not A is acceptable in all cases.
    A implies ∃x(A), so if it is true that ∃x(A)→B, then A→B.
    For all x, ( if A then ∃x(A) then B ).
     
  13. Aug 24, 2015 #12
    Hmm, I'm still not sure of the first two. They seem right, but I just can't find any support for them.

    Assume this interpretation: A is "x=0", B is "x=1", the domain is {0, 1}, and x is 1.
    A→B is true, because A is false
    ∀x(A→B) is false because there is an x that will make A true and B false, namely x being 0.
     
  14. Aug 24, 2015 #13

    RUber

    User Avatar
    Homework Helper

    So you interpret A then B as there exists an A such that B is true?
    If A then B implies the rule holds all the time, doesn't it?
     
  15. Aug 24, 2015 #14
    Hey RUber,

    Yeah, it gets kind of confusing. The way our class is interpreting them is like this:

    ∃x(A→B) is true if at least one x in the domain satisfies A→B
    A→B is true if the specific x we have just picked from the domain satisfies A→B
    ∀x(A→B) is true if for all x in the domain A→B is always true

    So after a domain is picked, ∃x(A→B) and ∀x(A→B) are either true or false and can not change.

    After a domain is picked, A→B is still not known as true or false until we also pick x (assuming x occurs free in A or B). And if we change the value of x, A→B can also change.
     
  16. Aug 24, 2015 #15
    Hey RUber, WWGD, and anyone else who was working on this problem. I actually just disproved this statement to be true and then found out it was indeed a typo by my teacher. Sorry if I caused anyone much pain over this problem.

    To disprove that (∀x)(A → B) ≡ ((∃x)A) → B is an absolute theorem, consider the following interpretation:

    Let D be {0, 1}, A be x=0, B be x=0, and xD be 1.

    ((∀x)(A → B) ≡ ((∃x)A) → B)D

    (∀x∈D)(x=0 → x=0) ≡ ((∃x∈D)x=0) → xD=0

    (∀x∈D)(x=0 → x=0) ≡ ((∃x∈D)x=0) → 1=0
     
    Last edited: Aug 24, 2015
  17. Aug 25, 2015 #16

    Erland

    User Avatar
    Science Advisor

    It is assumed that B contains no free occurences of x, right? Otherwise, the equivalence is not valid.
     
  18. Aug 25, 2015 #17
    Yeah, that was actually the typo from the instructor, it was supposed to say that x does not occur free in B.

    The original problem actually did not specify that B contains no free occurrences of x so, as you said, the equivalence is not valid.
     
  19. Aug 25, 2015 #18
    Okay, if there are no occurrences of x in B, then some of the manipulations RUber did ought to do the trick. A couple more hints are...

    To get 1), use the contrapositive and the fact that ∀x(F→G(x)) → (F→∀xG(x)) when x does not occur free in F.

    To get 2), you'll need to know that (G→H)→((F→G)→(F→H)) and also that F→(G→H) ≡ G→(F→H). This last one can be very useful if G happens to be a theorem, so that you can apply MP.

    This is the style of proof you would find in Hilbert and Ackermann's logic book.

    This is a good attitude to have.
     
    Last edited by a moderator: May 7, 2017
  20. Aug 26, 2015 #19
    Hey techmologist, thanks for those hints and I have since solved it after knowing there are no free occurrences of x in B.
    Interesting, thanks for the references. I am going to look at some other logic books to broaden my perspective, especially since no one logic system or even notation seems to be the standard.
     
    Last edited: Aug 26, 2015
  21. Aug 26, 2015 #20
    Cool. How did you do it?

    Yeah, that's a good idea. Depending on how much you like logic, you might try to prove the axioms of one system as theorems in another system, and vice versa. That can help you develop a feel for what is going on.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Predicate Logic Problem
  1. Predicate Logic Help! (Replies: 0)

Loading...