Help:Tau day

Happy tau day, everyone.

Wikiproofs.org is a site where we write math proofs in a formal language which is automatically checked for correctness. We assume axioms and prove theorems from them. Eventually, we hope to prove all of mathematics from a small set of axioms, the axioms of logic and set theory. To get there, we want as many people participating as possible. Our tau day exercises introduce how to write proofs for wikiproofs and provide a (hopefully fun) puzzle for tau day. Warning: Writing formal proofs can be addictive. Don't say we didn't warn you.

The best way to further explain Wikiproofs is by example, and by getting you to start writing some proofs. We have no objection to celebrating tau day in the customary fashion of serving two pies, but this tau day project involves proving some simple statements involving τ. We explain everything you need to know about the mathematics and the proof system, and you should be able to get your first proof written and verified within 6 minutes and 28 seconds (getting to the end may take somewhat longer than that, but not the whole tau day).

To play along, start by editing a proof module. You can create your own account and create a page at User module:YourUsername/Tau day, or you can use the Sandbox. If you get stuck at any point, let us know at WP:TEA. We'd be glad to help, or would love to hear feedback about where it got difficult or boring for you.

The first step
Start by putting the following text into your module:

&lt;jh&gt; import (PROPOSITIONS Interface:Classical_propositional_calculus ) import (FIRSTORDER Interface:First-order_logic_with_quantifiability (PROPOSITIONS) ) import (TAU Interface:Tau_day_axioms (PROPOSITIONS FIRSTORDER) ) &lt;/jh&gt;

Everything between the -tags is interpreted by the proof verifier. The  stands for JHilbert, which is the proof verifier used on Wikiproofs. The import statements tell the verifier to make use of some previously proved, or assumed, results. They provide logic (and, or, implies, etc.) and real numbers which are familiar numbers such as 1, -5, 44/7, √2, τ, or e, as well as operations on real numbers such as addition, division, square root, and a few others.

Once you have copy-pasted those imports into your proof module, hit the preview button. You should see "Proof module parsed successfully" at the bottom of the page in green.

A small exercise
Our first exercise is to show how proofs work by writing a very simple proof. It is just a restatement of something in the tau day axioms file, but with a new name.

Edit the page and move the cursor above the &lt;/jh&gt; (everything we will be talking about in this exercise is a formal proof, which means it goes between the &lt;jh&gt; and &lt;/jh&gt; tags).

Then we need to declare a variable. So first add  to your proof module, which declares a variable named θ. If your keyboard doesn't have θ, you can insert it by clicking on θ below the edit window. All the variables we will be adding are real numbers, which is what the "real" means.

Next add. This indicates we are proving a result called TauIsPeriodOfSine. The empty parentheses are for distinct variable constraints and hypotheses, neither of which we need to worry about for now.

Now we need to state what we are going to be proving. In normal mathemetical notation we'd state it as. Tau (τ) is the ratio of a circle's circumference to its radius. Theta is an angle and sin is the sine function. If you don't remember sine from high school trigonometry, don't worry. One of the nice things about Wikiproofs is that even if you don't have a deep understanding of the concept behind what you are proving, you can still see how each step follows from the previous one. So if you like you can just think of the statements in Interface:Tau day axioms as strings of meaningless symbols, where the rules of the game of assembling them into proofs are given in that file and the others we imported (together with a very simple set of rules built into JHilbert).

Anyway, what we are proving is  and we express it almost that way in JHilbert. The main difference is that we need parentheses for everything. So add  to your proof.

The actual proof
The only thing remaining is the actual proof. A proof is a set of invocations of existing statements. For this first proof, we just need one invocation, which corresponds to what we are trying to prove. So we will be invoking  (which you can find at Interface:Tau day axioms). To invoke it, we need to notice that  contains one variable:.

To invoke a statement, we give expansions for each of the variables which need filling in, in the order in which they occur in the statement, and then the name of the statement. In this example, that is. The entire proof is enclosed in parentheses, so add  to your proof module. Then add  (to close out the  ).

That's a completed proof. It should look like this: var (real θ) thm (TauIsPeriodOfSine     ((sin (θ + (τ))) = (sin θ))    (θ SinePeriod)  )

Hit preview (or save, to save your work back to the wiki), and you should see "Proof module parsed successfully" again. If you get an error, there's a list of error messages near the bottom of Help:JHilbert.

An easy variation on that proof
When we invoke a statement in a proof, we can plug anything in for the expansion of a variable. Your next exercise is to use this fact to prove  (which is the same as the previous result but with   in place of  ). Call your theorem. You will need to declare the variable  (just as we declared   earlier). Come back to this page once you've gotten this new proof to verify.

Statements with hypotheses
The next proof is. Set up this proof and call it  (we pick that name because it will eventually help us prove something called  ). The first step in the proof is invoking  from Interface:Tau day axioms. Go ahead and write that part of the proof (which gives us ) but leave the parentheses open because the proof isn't finished. After  you then write. If you look up  in Interface:Tau day axioms you will see that it takes something of the form   as a hypothesis and gives you , which in our case is. Fortunately, that is what we need, so close all the parentheses and verify and save this proof.

The proof stack
Our next proof is, which we'll call. The first two steps are to invoke  and , in that order. Look at those two statements and see if you can see what you need to plug in for the variables in each case. When we write two statement invocations after one other, they are put on a proof stack. So then we can invoke something which takes two statements off the proof stack, in this case  (which is located in Interface:First-order logic with quantifiability). That's the final step in this proof, so verify and save this proof.

Cosine period
The next theorem to prove is, which is. You'll prove it with,  , and   (in that order), together with   and   (both in Interface:First-order logic with quantifiability) to join the pieces together. Figure out what to plug into the variables for each of those theorems, and where you need the  and. Verify and save that proof.

Cosine of tau
In an effort to keep this exercise to something which could be completed on tau day, we'll make this the last theorem to prove:. Prove it using,  , and  , with   and   to help. You'll also need  which is similar to the   we saw a few sections ago.

Exporting the result
If you have finished all the exercises to this point, you have proved everything in Interface:Tau day theorems. Add the following to your proof module: export (THEOREMS Interface:Tau_day_theorems (PROPOSITIONS FIRSTORDER) ) and verify the page. If the export verifies, it means your proof module has proved all the statements in the Tau day theorems interface. Congratulations!

Theorems 2
If you want to keep going, there is another set of exercises at Interface:Tau day theorems 2. They are intended to be done in order, often with each result leading to the next one, but there isn't as detailed a set of instructions as there was for the first set.

What next?
You can find another example explaining how to write proofs at Help:Tutorial. To find things to contribute to, browse Category:Pages needing cleanup. Feel free to ask questions at WP:TEA.