-
Notifications
You must be signed in to change notification settings - Fork 130
feat: add implementation of P vs NP problem #1120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Also, be advised, I took some of the code around the encodings of lists from an old Zulip thread discussing this problem, I am not sure if the person who wrote that has gone through the CLA process - should I try to get permission from them or rewrite that part of the code? |
If you think they contributed substantially, perhaps it would be good to add them as co-author by amending one of the commits with something like Definitely nice that you link the zulip discussion in the code! |
|
I was able to replace Daniel Weber's encodings with a more compact implementation, perhaps we can revisit it if we want a more general implementation in the future, but for now it should be fine. |
This PR adds a lemma for `splitOnP`, allowing expressions where a `splitOnP` on a concatenation to be better simplified. Also golfs a relevant consequence with the new lemma. Related to google-deepmind/formal-conjectures#1120
Adds a simp lemma that allows this expression to be simplified, even if it isn't applied to an argument. Identified in google-deepmind/formal-conjectures#1120
This PR implements #676: The P vs NP problem.
I have tried to keep the definitions as simple as possible to avoid misstatements. This PR defines:
Lists ofBools toBoolPas the class of decision problems computable withTM2ComputableInPolyTimeusing a generic encoding forList BoolNPusing an adaptation of the definition in Arora-Barak.As a bonus, this includes a definition of co-NP and the NP vs co-NP conjecture.