I am getting started with Isabelle HOL and want to try to construct a combinatorial proof of some kind. I took Cayley's formula for the start.
Here it is: For every positive integer n, the number of trees on n labeled vertices is n^{n-2}.
How would one work wit something like that in Isabelle? I am assuming I will have to define trees, but then what?
Any help or related articles and or codes would be very much appreciated! Thanks in advance
The idea of the proof would be:
define trees (or use any existing one)
follow a paper proof by that proves that
where
nodesgives the number of nodes andcanonicalis some kind of invariant that the tree is normalized (e.g., you have correct labels going from 0 to n-1).I have tried proving or defining anything, but I suspect that this is a hard theorem to start with in Isabelle, because I expect that you will need either more general theorems on graphs or you will need to work a lot on bijection due the fact that the node are labeled.