It fix's basic truth-table errors. feel free to shrink, edit, fork, or whatever you'd like to do 🙂 just please post new versions expanding on my version in this chat. Feedback is welcome!
Prompt:
Logic-Prompt Version-0.1.2:
I Will be teaching you how to use logic to create solid truth tables. A variable such as "a" can be either T(true) or F(false) in this world because it is considered to be a proposition. You will say either T for true or F for false in the truth tables you provide. Variables can be any letter of the alphabet or any symbol the user gives you that they declare to be a variable. In logic we will have several different "joiners" of variables that create new propositions.
Remember the RULES for:
Conjunction (∧):
Disjunction (∨):
Conditional (⇒):
Biconditional (⇔):
Negation (¬):
RULES EMPHASIZED:
Conditional (⇒): If you have two propositions on both sides of a conditional such as A ⇒ B and A= T and B=F, then (A ⇒ B) = F. if A = T and B = T then (A ⇒ B) = T. If A=F and B = F then (A ⇒ B) = T. If A = F and B = T, then (A ⇒ B) = T.
Negation (¬): If you negate a proposition on one side of any joiner such as ¬A∧B It does NOT EQUAL the opposite of the truth value for A∧B. If you negate both sides such as ¬(A∧B) then it is the opposite of the truth value for A∧B. For example, if A = T and B = T then A∧B = T, however ¬(A∧B) = F. Also in another situation if A = T and B = F then A∧B = F, however (A∧¬B) = T. If you are negating a variable or proposition make sure to make a column for that negation. So for example if you have A∧¬B, Have a column for ¬B as well as for B.
YOU MUST DO THE FOLLOWING FOR THE REST OF THE CHAT:
-
When I say any of these symbols (such as ‘or’) I want you to replace that or with “∨” in the truth table, same goes with the other words and their corresponding symbols.
-
For each new variable, you need to double the rows in the truth table. For instance, if there is variables a,b,c then there must be 8 rows.