Better HN
topnewbestaskshowjobs
Log inSign up

TwoFx

305 karma · joined Mar 22, 2014 (12y ago) · 21 submissions

Submissions

comment 3d ago · link · parent

There are efforts to mechanize Masullo's proof [1]. As of right now, this work is ongoing, so there is nothing to report yet.

With people being as confused as they are (just look at the messages in this thread), I think it's good that TFA is very clear about what it is saying, namely that a specific formal artifact that was posted to the internet is correct, and nothing else. Making value judgements or contrasting the proofs (or proof attempts) is not the point of the post.

(I work at the Lean FRO, but I wasn't involved in the verification effort or the writing of the post)

[1]: https://leanprover.zulipchat.com/#narrow/channel/113488-gene...

comment 3d ago · link · parent

Masullo's proof didn't come with a Lean formalization.

comment 3d ago · link · parent

A lot has happened since the fake Collatz refutation: https://leodemoura.github.io/blog/2026-10-15-lean-now-ships-...

In short, Lean has formally verified checkers now, and the RH proof was checked with them. So any such soundness hole would have to be exploited in the correctness proofs of the checkers, which is a much smaller attack surface than the RH formalization.

comment 3d ago · link · parent

The problem we need to solve is that building a Lean project allows for arbitrary code execution, just like many other programming languages. Thus, building a Lean project might interfere with your proof checking infrastructure and fool it into accepting an incorrect proof.

"Building" a Lean project actually consists of two steps that can be separated: compiling the high-level Lean document to the simple expression format of the Lean kernel (this part is called "elaboration") and then checking that this expression consistutes a valid proof of the claimed statement (this part is called "kernel checking"). Only the first part potentially involves arbitrary code execution.

Lean ships with a component called `lake comparator` [1]. It works like this: a trusted challenge (formal statement) and the potential proof are elaborated separately in sandboxed environments so that code execution during the build of the proof cannot interfere with the checker or the trusted statement. Then the statement and proof are both exported into a simple JSON-format [2] that represents the relevant terms in the expression format of the Lean kernel, and then the checkers check this JSON.

If this process succeeds, then you know that you definitely have a proof of the relevant statement, with the JSON as a witness of the proof.

[1]: https://lean-lang.org/doc/reference/latest/ValidatingProofs/... [2]: https://github.com/leanprover/lean4export

comment 10mo ago · link · parent

Maybe I'm just missing the joke, but it feels worth pointing out that almost all of the logos on that page are clearly inspired by the ensō circle from Zen art.

comment 11mo ago · link · parent

I highly recommend watching the relevant section of that video (4:38 to 8:59) and then implementing it yourself in whatever system you know that can draw lines and circles (I did it in Godot; it took only a few minutes to learn enough Godot to start on the algorithm).

It's absolutely mind-blowing that so little code can produce such a beautiful result. It's also fun to play with the parameters and see how they affect how the cloth feels.

7.

My first verified imperative program(markushimmel.de ↗)

181 points · by TwoFx · 1y ago · 93 comments

comment 4y ago · link · parent

Access has been somewhat reluctant to make BeOS-related material available in the past. For example, they did provide access to the BeOS API documentation (called the Be Book) to the Haiku project, but only under a restrictive no-derivatives license (see [1]). This has caused some pain the past, as extra care must be taken that Haiku's API documentation, the Haiku Book [2], is not a derivative work, so everything had to be rewritten from scratch, even documentation for parts of the API that are largely unchanged.

[1] https://www.haiku-os.org/legacy-docs/bebook/LegalNotice.html

[2] https://www.haiku-os.org/docs/api/index.html

comment 4y ago · link · parent

Adding the thing that complains is a one-time cost. It may work on Firefox now, but making sure that it continues working on Firefox is a continuous resource investment.

comment 9y ago · link · parent

This is part of a very nice larger article by the same author on visualizing algorithms [0]. It covers sampling, shuffling, sorting, and maze generation.

[0]: https://bost.ocks.org/mike/algorithms/

comment 9y ago · link · parent

From the paper: "To investigate the noisiness of using Reddit as a source of self-annotated sarcasm we estimate the proportion of false positives and false negatives induced by our filtering. This is done by having three human evaluators manually check a random subset of 500 comments from SARC-main tagged as sarcastic and 500 tagged as non-sarcastic, with full access to the comment’s context. A comment was labeled a false positive if a majority determined that the “/s” tag was not an annotation but part of the sentence and a false negative if a majority determined that the comment author was clearly being sarcastic. After evaluation, the false positive rate was determined to be 2.0% and the false negative rate 3.0%. Although the false positive rate is reasonable, the false negative rate is significant compared to the sarcasm proportion, indicating large variation in the working definition of sarcasm and the need for methods that can handle noisy data in the unbalanced setting."

12.

Sophie Germain Prime Search found World Record twin primes [pdf](primegrid.com ↗)

90 points · by TwoFx · 10y ago · 9 comments

comment 10y ago · link · parent

10/4 is the day of the announcement

comment 10y ago · link · parent

This has also been discussed on the podcast 'This Week in Google' by digital nomad Mike Elgan: https://twit.tv/shows/this-week-in-google/episodes/349?autos...

comment 10y ago · link · parent

Do you happen to have a link to the code in FAKE that implements this for .NET?

comment 10y ago · link · parent

The CoreCLR version of the .NET Garbage Collector can be found at https://github.com/dotnet/coreclr/tree/master/src/gc

comment 10y ago · link · parent

Randall Munroe of xkcd had a (humorous) look at when the number of dead people on Facebook surpasses the number of living people a few years ago: https://what-if.xkcd.com/69/

comment 10y ago · link · parent

Proof assistants are in some ways very similar to what you described. Coq [1] is a popular example. It helps control complexity of larger proofs and verifies that everything that is derived is correct.

[1] https://coq.inria.fr/

comment 10y ago · link · parent

Looks like it's MIT-licensed: https://github.com/HunterLarco/voxel.css/blob/master/package...

comment 11y ago · link · parent

There is none. https://twitter.com/jakevdp/status/644863206339379201

comment 12y ago · link · parent

Check out Funciton (http://esolangs.org/wiki/Funciton) - an esoteric programming language that is based on a similar idea.