what is the simple logic

Discussion in 'Science' started by hkisdog, Aug 9, 2015.

  1. hkisdog

    hkisdog Banned

    Joined:
    Feb 5, 2013
    Messages:
    1,466
    Likes Received:
    6
    Trophy Points:
    0
    is there are logic, only use AND, OR, XOR, =, NOT?

    I do not like the definition of --->.
     
  2. wgabrie

    wgabrie Well-Known Member Donor

    Joined:
    May 31, 2011
    Messages:
    13,913
    Likes Received:
    3,088
    Trophy Points:
    113
    Gender:
    Male
    What???

    I didn't catch what you don't like the definition of?

    What are you using this for? Logic for computer programming or Logic in general?

    Basically, those things you listed (AND, OR, XOR, =, NOT) are basic operations in Logic and computer logic.

    You'd probably need to find many-valued logic to find any other possible operations. I don't know.
     
  3. wgabrie

    wgabrie Well-Known Member Donor

    Joined:
    May 31, 2011
    Messages:
    13,913
    Likes Received:
    3,088
    Trophy Points:
    113
    Gender:
    Male
    Oh, wait, by ---> you mean implication.

    Like: A --> B (A implies B)

    And its truth table, (T=True, F=False):
    [table="width: 300"]
    [tr]
    [td]A[/td]
    [td]-->[/td]
    [td]B[/td]
    [td]Result:[/td]
    [/tr]
    [tr]
    [td]T[/td]
    [td] [/td]
    [td]T[/td]
    [td]T[/td]
    [/tr]
    [tr]
    [td]T[/td]
    [td] [/td]
    [td]F[/td]
    [td]F[/td]
    [/tr]
    [tr]
    [td]F[/td]
    [td] [/td]
    [td]T[/td]
    [td]T[/td]
    [/tr]
    [tr]
    [td]F[/td]
    [td] [/td]
    [td]F[/td]
    [td]T[/td]
    [/tr]
    [/table]


    Example: If you read the book (A), then you're a good Logistician (B).

    This statement is true unless you've read the book and you're still not a good logistician.
     
  4. 10A

    10A Chief Deplorable Past Donor

    Joined:
    Jan 10, 2013
    Messages:
    5,698
    Likes Received:
    1,006
    Trophy Points:
    113
    Gender:
    Male
    Look up Karnaugh maps, they will provide you the solution to any truth table, with any number of variables, using simpler logic.

    Even XOR can be "reduced" to (A x !B) + (!A x B). Here x stands for multiplication or AND, and ! stands for NOT, and + stands for addition or OR.

    The solution to your problem is !A + B, i.e. (NOT A) OR B.
     
  5. hkisdog

    hkisdog Banned

    Joined:
    Feb 5, 2013
    Messages:
    1,466
    Likes Received:
    6
    Trophy Points:
    0
    Thanks for all answers.

    I do not like the definition of --->, it is dumb.

    B ---> A, if B is false, then B--> A is true, this is dumb.


    can we define a new symbol, |----->,
    that is, if I am in NY, then I am in USA.

    also, if X > 100, then X>2.
     
  6. 10A

    10A Chief Deplorable Past Donor

    Joined:
    Jan 10, 2013
    Messages:
    5,698
    Likes Received:
    1,006
    Trophy Points:
    113
    Gender:
    Male
    You're conflating natural language logic with formal logic. Yes, it makes no sense ("dumb") in natural language terms, but it's just a logical/mathematical definition that doesn't require conformance to everyday language.

    It's like the square root of -1. It makes no natural sense, but it's damn useful for solving a multitude of real world problems. The same goes for infinity. Infinity doesn't make sense, nothing goes on forever, but many times having dimensions go to infinity makes solving a particular problem trivial.
     
  7. Herby

    Herby Active Member Past Donor

    Joined:
    Aug 13, 2010
    Messages:
    439
    Likes Received:
    56
    Trophy Points:
    28
    It's perfectly fine to use the existing --> symbol in your examples.

    I am in NY --> I am in USA
    X > 100 --> X > 2

    That means exactly the same thing as the sentences you wrote down.

    The first part means if B is true then A is true. That's all. It doesn't tell us anything about A if B is false.

    Let's use your example: I am in NY --> I am in USA

    If I am in NY, I am in the USA.
    If I am not in NY, I could be in the USA or in any another country.
    If I am in the USA, I could be in NY or somewhere else in the USA.
    If I am not in the USA, I am not in NY.
     
  8. hkisdog

    hkisdog Banned

    Joined:
    Feb 5, 2013
    Messages:
    1,466
    Likes Received:
    6
    Trophy Points:
    0
    no,

    I do not like the "--->" definition.
    since "if I am in Mars, then I am the president of USA" is true. it is dumb.
    I know in most cases, it is like a promise, example, "if I have $10,000,000, I will give you $10."




    in my definition of "|--->",
    There are sets and their subsets.
    it is more reasonable. Examples,
    if I am in NY, then I am in USA.
    if I am not in USA, then I am not in NY.
     

Share This Page