Another Test Problem for Kelly's Group

Level 1

2 + 2 = ? 2 + 2 = ?


The answer is 4.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

To run the proof below, you'll need Coq . You can read more about the Coq Proof Assistant on Wikipedia

We shall begin by defining the natural numbers along with two and four .

1
2
3
4
5
6
Inductive nat : Type :=
  | O : nat
  | S : nat -> nat.

Definition two : nat := S (S O). 
Definition four : nat := S (S (S (S O))).

We then, define plus

1
2
3
4
5
Fixpoint plus (n : nat) (m : nat) : nat :=
  match n with
    | O => m
    | S n' => S (plus n' m)
  end.

Now, we can prove the theorem we desire.

1
2
Theorem two_plus_two_four : plus two two = four.
Proof. simpl. reflexivity. Qed.

And we are done!

Alternately, you could also use this:

1
2
Theorem two_plus_two_four : plus two two = four.
Proof. trivial. Qed.


Of course, here is a much less direct proof: Link

I think you're on to something here. +1

Using the same approach, I believed that we prove that n+n=2n (for positive integer n) as well, but I can't seem to finish it off.

Perhaps, this time, we could implore Taniyama-Shimura Conjecture (also known as Modularity theorem), followed by the 7th law of thermodynamics? I'll be back on this.

Pi Han Goh - 3 years, 11 months ago

Log in to reply

Actually, Software Foundations asks to prove something similar in the second exercise, here

By the way, this particular solution is a joke, but many researchers believe some serious stuff can be done with formal methods.

Agnishom Chattopadhyay - 3 years, 11 months ago

Log in to reply

Really? It's a joke? I'm always serious though !

Pi Han Goh - 3 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...