teorth / equational_theories

A project to map out the relations between different equational theories of Magmas.
Apache License 2.0
93 stars 24 forks source link

Refutations from 3-element magmas #50

Open danielvarga opened 15 hours ago

danielvarga commented 15 hours ago

I have python repo https://github.com/danielvarga/magmas that refutes 11,814,111 implications by 3-element counterexamples. I'd like to create a PR here, but as a first-time contributor, let me first ask for suggestions. First of all, where to put this code? Second, what's the most useful way to interface with the Lean efforts? For example, with some more effort and compute, I could provide an 4694 x 4694 x 3 x 3 array with all the counterexamples. (With some special value for "no counterexample for that implication".) Would that work?

It first writes up the boolean matrix S indexed by (equation, magma), for each 3-element magma, and works from there. (S stands for satisfied.) https://terrytao.wordpress.com/2024/09/25/a-pilot-project-in-universal-algebra-to-explore-new-ways-to-collaborate-and-use-machine-assistance/comment-page-1/#comment-685911 gives a bit more info.

The code can create Hasse diagrams (https://static.renyi.hu/ai-shared/daniel/tmp/hasse.html) and the pixel art thing (https://static.renyi.hu/ai-shared/daniel/magmas/implications_3.png).

It's a result of a one-day hackathon between me and ChatGPT, so there are lots of low hanging fruits:

Less low-hanging:

teorth commented 13 hours ago

Thanks for the contribution! We just started creating some guidelines for submission at https://github.com/teorth/equational_theories/blob/main/CONTRIBUTING.md which may answer some of your questions. In particular if your code can generate a large file of proof_wanted claims, that can be output as a Lean file in the generated folder, while your code can be placed in the scripts folder, and a description of the code as a blueprint chapter.