No valgrind and ASAN aren’t worth adding. Running valgrind for example is for detecting memory leaks in software - that’s totally irrelevant to whether or not the proof is valid. Asan finds memory leaks and reuse bugs in C/C++ software - again completely unhelpful if your goal is to figure out whether this does prove the Riemann hypothesis. Those are things you might do if you thought the lean4 compiler had a memory leak and if you found such a thing may help performance but they don’t affect proof correctness.
In the spirit of what they are getting at (getting people to try different things) you could look at the grh page and the steps they did (eg using con-ron, con leche and lean4lean) as extra things people can try. I also don’t know whether you include this, but pointing people at how they verify the axiomatic basis[1] used would be helpful.
[1] https://lean-lang.org/doc/reference/latest/ValidatingProofs/ Is the official documentation, but ‘#print axioms’ is what people need to know how to do and it needs to return ‘propext, Classical.choice, Quot.sound’. Hypothetically, if it were to return fewer axioms that would be fine but more is definitely not fine. So for example if it didn’t have Classical.choice that would just mean that it didn’t rely on the axiom of choice. If it includes ‘sorryAx’ that means the proof is incomplete and has a ‘sorry’ declaration somewhere, which is what you do to ‘stub out’ a proof while you’re working on it. If it includes something else that it’s only true relative to the soundness of those axioms. So if it said say ‘Classical.em’ that would mean it includes the law of the excluded middle so it would not be a valid proof in purely intuitionist logic but is fine in classical logic.
My advice is that when you haven’t got a clue you should shut up rather than broadcast your cluelessness.
“Running valgrind for example is for detecting memory leaks in software.”
Valgrind does detect leaks (or at least, the memcheck tool does). That is not the most important thing that it does - so much so that leak reporting is not even turned on by default.
The two most important things that it does is check memory addressability and initialisedness. Errors of those kind are Undefined Behaviour (in some cases a more recent official classification is Erroneous Behavior). Other tools like Dr Memory and address/memory sanitizers also perform similar verification.
Once an application has encountered UB or EB you can no longer reason about its behaviour. From the perspective of a formal proof tool that would be a big problem.
Are these steps worth adding to Riemann@home. Let me know!
Replies (1)
In the spirit of what they are getting at (getting people to try different things) you could look at the grh page and the steps they did (eg using con-ron, con leche and lean4lean) as extra things people can try. I also don’t know whether you include this, but pointing people at how they verify the axiomatic basis[1] used would be helpful.
[1] https://lean-lang.org/doc/reference/latest/ValidatingProofs/ Is the official documentation, but ‘#print axioms’ is what people need to know how to do and it needs to return ‘propext, Classical.choice, Quot.sound’. Hypothetically, if it were to return fewer axioms that would be fine but more is definitely not fine. So for example if it didn’t have Classical.choice that would just mean that it didn’t rely on the axiom of choice. If it includes ‘sorryAx’ that means the proof is incomplete and has a ‘sorry’ declaration somewhere, which is what you do to ‘stub out’ a proof while you’re working on it. If it includes something else that it’s only true relative to the soundness of those axioms. So if it said say ‘Classical.em’ that would mean it includes the law of the excluded middle so it would not be a valid proof in purely intuitionist logic but is fine in classical logic.
Replies (1)
“Running valgrind for example is for detecting memory leaks in software.”
Valgrind does detect leaks (or at least, the memcheck tool does). That is not the most important thing that it does - so much so that leak reporting is not even turned on by default.
The two most important things that it does is check memory addressability and initialisedness. Errors of those kind are Undefined Behaviour (in some cases a more recent official classification is Erroneous Behavior). Other tools like Dr Memory and address/memory sanitizers also perform similar verification.
Once an application has encountered UB or EB you can no longer reason about its behaviour. From the perspective of a formal proof tool that would be a big problem.