Is Addition Associative? A Proof Using Induction

Click For Summary
The discussion focuses on proving the associative property of addition for natural numbers using mathematical induction. The proof begins with the base case of adding zero and establishes that (a+b) + 0 = a + (b + 0). The inductive step involves showing that if (a+b) + c = a + (b+c), then it follows that (a+b) + c++ = a + (b+c++). Participants emphasize the need for clarity in definitions and the proper use of lemmas to avoid ambiguity, particularly regarding the notation (a+b+c). Overall, the proof is deemed correct but requires careful justification and clearer definitions to enhance its rigor.
HMPARTICLE
Messages
95
Reaction score
0

Homework Statement


For any natural numbers a,b,c, we have (a+b) + c = a + (b + c)

Homework Equations


Definition 2.2.1

Let m be a natural number. To add zero to m, we define 0 + m := m. Now suppose inductively that we have defined how to add n to m. Them we can add n++ to m by defining (n++) + m := (n + m)++.

Lemma 2.2.2
For any natural number n, n + 0 = n.

Lemma 2.2.3
For any natural numbers n and m , n + (m++) = (n+m)++

The Attempt at a Solution


We shall use induction on (a+b)
First we do the base case, c = 0.

By the definition of addition 0 + (a+b) = (a+b), while by lemma 2.2.2 (a+b) + 0 = (a+b). Thus the base case is done. Now suppose inductively that c + (a+b) = (a+b) + c, Now to we have to prove that c++ + (a+b) = (a+b) + c++ to close the induction.
By the definition of addition, c++ + (a+b) = (a+b+c)++ and while by lemma 2.2.3 (a+b) + c++ = (a+b+c)++. This is equal to (a+b+c)++ by the inductive hypothesis c + (a+b) = (a+b) + c. Thus c++ + (a+b) = (a+b) + c++ . Also suppose inductively that a + (b+c) = (b+c) + a.
Now to we have to prove that a++ + (b+c) = (b+c) + a++ to close the induction.
By the definition of addition, a++ + (b+c) = (a+b+c)++ and while by lemma 2.2.3 (b+c) + a++ = (a+b+c)++. This is equal to (a+b+c)++ by the inductive hypothesis a + (b+c) = (b+c) + a. Thus a++ + (b+c) = (b+c) + a++.

so (a+b) + c++ = (a+b+c)++ and (b+c) + a++ = (a+b+c)++
Hence
(a+b) + c = a + (b + c)

----------------------------------------------------------
Now is this a correct proof? if so, is it a decent one. It seems to make sense to me.
 
Physics news on Phys.org
I'd be a little anxious about your use of '(a+b+c)', which is not well-defined.

Personally I would probably start from (a+b)+0 = a + (b+0) and run induction on that.
 
So instead of;
Now suppose inductively that c + (a+b) = (a+b) + c, Now to we have to prove that c++ + (a+b) = (a+b) + c++ to close the induction...

I would write;
Now suppose inductively that (a+b)+0 = a + (b+0), Now to we have to prove that (a+b) + 0++ = a + (b+0)++ to close the induction.
By the definition of addition, 0++ + (a+b) = 1 + (a+b) and while by lemma 2.2.3 (a+b) + 0++ = (a+b) + 1. This is equal to 1 + (a+b) . Also
suppose inductively that (b+0) + a = a + (b+0), Now to we have to prove that (b+0)++ + a = a++ + (b+0)++ to close the induction.
By the definition of addition, (b+0)++ + a = b + a + 1 and while by lemma 2.2.3 (b+0) + a++ = b + a + 1.
so (a+b) + 0++ = a + (b+0)++.
Therefore (a+b)+0 = a + (b+0) by mathematical induction.

How would i introduce c?
 
You can show that (a+b)+0 = a+(b+0) just by using Lemma 2.2.2 (twice)

What I'm suggesting is that you then show that [ (a+b)+c = a+(b+c) ] ⇒ [ (a+b)+(c++) = a+(b+(c++)) ] , which should just be a couple of uses of Lemma 2.2.3.
 
i see; from what you have said, this is what i have come up withFirst we show that (a+b) + 0 = a + (b+0)
By definition 2.2.1;
(a+b) +0 = a+b,
and by lemma 2.2.2
a + (b+0) = a+b.

Now we show that (a+b) + c = a + (b+c)
by lemma 2.2.3;
(a+b) + c++ = (a+b+c)++
also
a + (b+c)++ = (a+b+c)++

so (a+b) + c+ = a + (b+c)++ and by axiom 2.4 we deduce that (a+b) + c = a + (b+c).

Also thanks for being patient with me.
 
(a+b+c) still doesn't mean anything, you have to avoid using this formulation. It means that there is an extra step where you use the given statement of the inductive step.

Also you have to justify that a+(b+(c++)) = a+(b+c)++
 
Last edited:
thank you!
 
Last edited:

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 5 ·
Replies
5
Views
1K
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K