latest changes & additions at abelard.org link to document abstracts quotations at abelard.org, with source document where relevant      latest news headlines at abelard's news and comment zone Children and television violence interesting site links at abelard's news and comment zone about abelard and abelard.org
link to short briefings documents France zone at abelard.org - another France economics and money zone at abelard.org - government swindles and how to transfer money on the net   Energy - beyond fossil fuels click for abelard's child education zone visit abelard's gallery technology zone at abelard.org: how to survive and thrive on the web

back to abelard's front page

 

sums will set you free

how to teach your child numbers arithmetic mathematics

writing down sets and set logic equations



site map

Link to abelard.org's RSS newsfeed

Google
 
Web abelard.org
how to teach your child number arithmetic mathematics - writing down sets and set logic equations is part of the series of documents about fundamental education at abelard.org. These pages are a sub-set of sums will set you free
how to teach a person number, arithmetic, mathematics on teaching reading

truth tables for connectives

NOT

state ~ state (¬)   state   ~ state (¬)
True [T] False [F] 1 0
False [F] True [T] 0 1

AND

AND truth tables (&     cap symbol)
state state and state   state state and state
True [T] True [T] True [T]   1 1 1
True [T] False [F] False [F]   1 0 0
False [F] True [T] False [F]   0 1 0
False [F] False [F] False [F]   0 0 0

OR (inclusive OR)

  OR (inclusive OR) truth tables (v   union symbol )
state state or state   state state or state
True [T] True [T] True [T]   1 1 1
True [T] False [F] True [T]   1 0 1
False [F] True [T] True [T]   0 1 1
False [F] False [F] False [F]   0 0 0

XOR (EXCLUSIVE OR)

XOR (exclusive OR) truth tables
state state XOR state   state state XOR state
True [T] True [T] False [F]   1 1 0
True [T] False [F] True [T]   1 0 1
False [F] True [T] True [T]   0 1 1
False [F] False [F] False [F]   0 0 0

implication

implies symbol truth table [implies]
a b a implies symbol b
True [T] True [T] True [T]
True [T] False [F] False [F]
False [F] True [T] True [T]
False [F] False [F] True [T]

equivalence

equivalent symbol truth table [equivalence]
a b a equivalent symbol b
True [T] True [T] True [T]
True [T] False [F] False [F]
False [F] True [T] False [F]
False [F] False [F] True [T]

return to the index Error: Thread 1439 does not exist.

 

connective/operator symbols

NOT (also sometimes called complement)  ~   ¬
AND (also called conjunction)   &     cap symbol
inclusive OR (also called inclusive disjunction)   v   union symbol

You can then build up compound formulae such as (~ A) but this format can be reduced to ~ A union symbol B. This is because, just like arithmetic connectives, an order of precedence is defined:

~ / NOT is most cohesive (applied first)
then resolve what is inside brackets (brackets are also used to emphasise structure)
then connectives like AND and OR,
which are, in turn, more cohesive than implies symbol [implies] and equivalent symbol [equivalence].

 

working out compound truth values - logic equations

You can indicate variables by A, B, p, q, greek letters or whatever you choose. I am going to use capital letters in what follows.

How to solve the following equation, [(A implies symbol ~ B) v (C ~ D)] equivalent symbol [~(A implies symbol D) v (~ C v E)], step by step.
Note that truth values for the connectives are obtained by reference to the tables above.

If you find this example too daunting, then go to the examples section first, then return here.

 

Assume A, B and C are true and D and E are false.
These values are substituted in the first line.

 

 

 

 

 

 

 

 


advertising
disclaimer

 

 

[(A implies symbol ~ B) v (C ~ D)] equivalent symbol [~ (A implies symbol D) v (~ C v E)]    
[(  T ~ T)  v ( T ~ F )]  equivalent symbol [~  (T v   T     First substitute in the truth values of the variables
[(A implies symbol   B) v (C   D)] equivalent symbol [~ (A implies symbol D) v ( C v E)]   Resolve the NOTs / ~s immediately bound/attached to variables
 [(T   F)  v ( T   T) ]  equivalent symbol

[~

 

 (T F ) v ( F v F)]    Three NOTs resolved by reversing, one NOT remains outside brackets
[ F     v   T ]   equivalent symbol [~ ( F ) v   ( F )]   Resolve the connectives in the inner brackets
[ F     v   T ]   equivalent symbol   [ T   v     F ]   Now resolving the remaining NOT
        T         equivalent symbol         T           Resolving the last connective
                  T                     The equation resolves to TRUE

The last connective to be resolved, in this case the equivalence connective equivalent symbol, is sometimes called the main or prime connective. Compare this with the prime connective in the next example. In that case, the prime connective is the last NOT / ~ to be resolved.

 

logic and probability

As you will see from the truth tables above, if there is one variable, as in the NOT table, there are two possible states: true or false (T or F, 1 or 0). If there are two variables such as A and B, as in the rest of the tables, there are four states: True True, True False, False True, False False.

So, with one variable, there are 21(that is 2) outcomes,
with two variables, there are 22 (that is 4) outcomes,
with three variables, there are 23 (that is 8) outcomes.

A B C or A B C
True [T] True [T] True [T]   1 1 1
True [T] True [T] False [F]   1 1 0
True [T] False [F] True [T]   1 0 1
True [T] False [F] False [F]   1 0 0
False [F] True [T] True [T]   0 1 1
False [F] True [T] False [F]   0 1 0
False [F] False [F] True [T]   0 0 1
False [F] False [F] False [F]   0 0 0

So four variables or 24 has 16 outcomes. And so on.

This is the same arithmetic as when you toss a coin. The coin will come down either heads or tails, that is a 50% chance of either heads or tails. toss the coin again and the odds remain the same - 50% heads, 50% tails. This is one chance out of two - ½.

If you toss two coins, you have one chance in four, 25%, that both will come down heads. That is ½ x ½, which is ¼. Referring to the two variable tables you can see the same pattern.

Toss a third coin and there is one chance in eight that all three coins will come down as heads. There is another one chance in eight that all three will come down as tails.

For that matter, heads can represent True or 1, and tails can represent False or 0.
So there is one chance in eight that all three coins will be heads or tails, or True or False, or 1 or 0, or On or Off. Recall the switches (link).

One in eight chances of three heads, and one in eight chances of three tails, now that’s two eighths - ah, where are the other six-eighths? Well, you can see them all laid out in the table above. They are the six cases where there is a mixture of head and tails (True and False, 1 and 0). The whole eight cases make up 100% of the possibilities.

Hey, now you are at the beginning of learning about probability and laying the groundwork for binary-based arithmetic!

A cubic, six-sided die can come down in one of six different ways each time it is thrown. Thus, Any one number has a one-sixth chance of showing up on any one throw. A die is a six-sided coin.

Enough of this for the moment, but here is a way to join the concepts in logic and probability together; and make your learning more interesting.

 

examples

And now we go through the wormhole into cloud-cuckoo land, so fasten your safety belt!

With copious attempts to match symbolic logic to natural language, for instance written or spoken English, and to structures of the game of mathematics/arithmetic, ‘they’ have so far settled upon eighteen structures they regard on fundamental.

I am going to start by outlining three of these.

There is so-called tautology, whence whatever values you ay substitute in for the variables. The result will always come out True. The idea of a tautology is that whatever data you may feed in to it, you extract no more information than you put in. The problem involves the false belief in the ideas of same and equals. (If you want to go further, go to the error called ‘equality’.) The idea of a tautology is, in fact, empirically unsound, but to show you this, I would have to go far further than this page intends. In everyday language, a tautology may be “wet water is wet”.

The following equation and truth table illustrates a tautology. Again, it is empirically unsound. (For those who want to dig further: the error of the excluded middle.)

Assuming that A is true   Assuming that A is false
~ (A

~

A)     ~ (A

~

A)  
~   (T ~ T) First substitute in the truth values of the variables   ~   ( F ~ F)  First substitute in the truth values of the variables
~ (T   F) Resolve the NOT / ~ immediately bound/attached to variables   ~ (F   T) Resolve the NOT / ~ immediately bound/attached to variables
~   F     Resolve the connective  

~

  F     Resolve the connective
    T     Now resolving the remaining NOT, the prime connective
the equation resolves to TRUE
      T     Now resolving the remaining NOT, the prime connective
the equation resolves to TRUE

 

The next structure is called a contradiction. Again it is empirically unsound. (For those who want to dig further see the error of the excluded middle.) With a logical contradiction, whatever values you put into the variables, the sentence will come out False.

Assuming that A is true   Assuming that A is false
A

~

A     A

~

A  
T

~

T First substitute in the truth values of the variables   F

~

F First substitute in the truth values of the variables
T F   Resolve the NOT   F T   Resolve the NOT
  F     Now resolve the connective (the prime connective)
the equation resolves to FALSE
    F     Now resolve the connective (the prime connective)
the equation resolves to FALSE
Another way to write the result of this equation,
done by placing the truth variable under the variables or connectives
in the same order as shown by the step by step method
T F F T This method puts all the truth values for both variables and connectives on one line:
both A’s are True,
under the NOT goes False,
thus the AND must be False.
  F F T F This method puts all the truth values for both variables and connectives on one line:
both A’s are False,
thus under the NOT you put True,
and under the AND is put FALSE.

The equation A ~A has a result that is false, whether A is assumed to be True or False.

 

A third structure is called a contingency. Here, the results depend upon the values substituted for the variables.

A equivalent symbol (B v A)   A equivalent symbol (B v A)   A equivalent symbol (B v A)   A equivalent symbol (B v A)  
A is True, B is True   A is True, B is False   A is False, B is True   A is False, B is False  
equivalent symbol (T v T)   T equivalent symbol (F v T)   F equivalent symbol (T v F)   F   equivalent symbol (F v F) First substitute in the truth values of the variables
T equivalent symbol   T     T equivalent symbol   T     F equivalent symbol   T     F equivalent symbol   F   Resolve the OR / v immediately bound/attached to a variable
  T           F           F        

 

T       Resolve the connective, the prime connective
Another way to write the result of this equation
T T T T T   T F F T T   F F T T F   F T F F F This method puts the truth values for both variables and connectives on one line

A contingency is nearer to the real world. In terms of an English sentence: “If it is raining, the road will be wet”. If it is raining, this will come out True. If it is not raining, then it will come out false. But don’t try this when driving through a road tunnel! And if it is raining in Singapore, the roads may not be wet in the Mojave desert.

 

logic and programming computers

If you should tumble into this maelstrom, which I regard as nonsense, I remind you again of my opening notes. However, should you persist in a wish to immerse yourself further in this wonderland, I refer you again to Logic and Philosophy: A Modern Introduction.

As said, my objective is to give you enough for understanding computer logic.

Those who play with this knitting try to convert idiomatic connectives into supposed logical forms; that is, words such as AND, IF, IMPLIES.

In computing, we are concerned with much more mundane, practical matters.
Does a potential employee have school-leaving qualifications,
AND is under 87 years old,
AND is capable of lifting 56 lbs/25 kg?
If all these qualities are so, put YES in column 6.
If anyone of these conditions is not met, then put NO.
 
In computer logic terms this will be
column 6 equals A AND B AND C.
But the computer will, in fact, put 1 or 0 (one or zero) in an assigned location representing column 6.
Unless you are going to be a developer, or work for a company like Intel or AMD, all this will be made much easier for you, so that you do not have to know what is going under the computer bonnet. For example, you may write
IF Johnny Simpson UpperAge AND Qual AND Lift THEN col.6 = T, or YES, or is TRUE.

Computer languages vary considerably in their keywords and structures.

Remember the truth tables.

People even give you degrees or prizes for this stuff if you can make it look complicated enough. Any screed of nonsense will be published in ‘academic’ journals, if you carefully wrap it up in the tinsel of this sort of mumbo jumbo!

 

 

add comment

end notes

  1. Die is the singular word (the word for one object) for which the plural is dice. It is very common that the plural (describing more than one object), dice, is misapplied to one die.

sums will set you free includes the series of documents about economics and money at abelard.org.
moneybookers information e-gold information fiat money and inflation
calculating moving averages the arithmetic of fractional banking

You are here: how to teach your child number arithmetic mathematics - writing down sets and set logic equations
< sums will set you free < Home

about abelard memory, paranoia & paradigms francis galton france zone   memory & intelligence loud music & hearing damage children & tv violence


spacing line at abelard.org

 

  information abstracts briefings   news headlines news archives latest

email abelard at abelard.org

© abelard, 2010,10 february

all rights reserved

the web address for this page is http://www.abelard.org/sums/teaching_number_arithmetic_mathematics_writing_down_sets.php

735 words
prints as 4 A4 pages (on my printer and set-up)