# Demonstrate theorems and earn chocolates

*So, you do math, right? So try to demonstrate this property…*

The sentence above is frightening, even for trained mathematicians. After all, even if we took a degree based on demonstrations, asking us to demonstrate something without studying the subject is scary.

But if we have the skill to demonstrate and we’ve already seen the matter, what do we lack?

In that sense, I think that demonstrating is very similar to programming. For proof involves constructing an argument based on a set of previously accepted truths and following a determined logical structure, so that we start from the hypothesis of the statement and arrive at its conclusion. An analogous process for example to programming a “Hello World!”

In programming you can have simple or complex programs doing exactly the same actions, such as calculating the Fibonacci sequence. If done iteratively it is extremely fast, but if done recursively, the same calculation can take longer than the age of the universe.

In demonstrations we have an analogous picture, the same results can be demonstrated by simple or complex processes. For example, prove that the cubic root of 2 is an irrational number:

**Simple way:**

Suppose 2^(1/3) is Rational, so from the definition of Rational number, 2^(1/3) can be written as p/q, where p and q are prime integers.

We have that p/q = 2^(1/3), so:

(p³)/(q³) = 2

p³ = 2.q³

So p is even. Thus, p can be written as 2.r, where r is an integer.

p³ = (2.r)³ = 2.q³

8.r³ = 2.q³

4.r³ = q³

So q is even.

So p and q have a common factor of 2, which is a contradiction.

**Complicated way:**

Suppose 2^(1/3) is Rational, so from the definition of Rational number, 2^(1/3) can be written as p/q, where p and q are prime integers.

We have that p/q = 2^(1/3), so:

(p³)/(q³) = 2

p³ = 2.q³

p³ = q³ + q³

Which is not true, because by Fermat’s Last Theorem the equation

x^n + y^n = z^n

has no solution with n > 2 and (x, y, z) Natural.

A “subtle” difference from the 5th line, which distances a mathematical concept that took about 2,500 years to develop (simple way, available since the Pythagorean School ~ 500 BC // complex way, only available since 1994).

So, starting a demo blindly, as well as creating code, is a very risky game, as we can follow an apparently functional path, but which is much more complex than necessary. But if we had some information about what the demonstration might look like, we might more easily see a simpler path to that proof.

This is how, on August 23, 2019, the event known as “Demonstrate Theorems and Win Candy”.

In this case, we had to prove:

- If f(x) is less than or equal to g(x) for all x in an open interval containing a, and limit when x tends to the a of f(x) and of g(x) is equal to L and M respectively , then L is less than or equal to M;
- The derivative of the constant by the function is equal to the product of the constant by the derivative of the function;
- The derivative of the sum of the functions is equal to the sum of the derivative of the functions;

To write each demonstration we had 6 to 7 pieces to put together in a way that made sense of the statement. The dynamics of that day were very positive, several students from the institute showed up saying that they didn’t know how to demonstrate it in their head, but seeing that it was a matter of putting the pieces together, they risked applying their mathematical reasoning in order to write the demonstration correctly.

The relationship between demonstrating and programming is in fact so close that some students from Unicamp’s Computing Institute reproduced this idea that same day in the afternoon, involving the “Solve 1 program and get a chocolate” in a kind of rivalry with Mathematicians ”.

The following week, on August 29, 2019, I carried out another edition, then another on March 3, 2020. Since then, the COVID-19 pandemic began and these events became unfeasible in person.

But if you feel like demonstrating some mathematical properties, you can do it virtually still with the Drag o X game, created from all these accumulated experiences and your contributions to this weird research I do 😛

Link to play: https://scratch.mit.edu/projects/553580277/

If you participated in a Demonstration and earn chocolates, played **Arrasta o X** or simply liked the post, comment there 🙂