Skip to content
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

Proof API #9

Open
sorear opened this issue Jun 26, 2016 · 4 comments
Open

Proof API #9

sorear opened this issue Jun 26, 2016 · 4 comments

Comments

@sorear
Copy link
Owner

sorear commented Jun 26, 2016

There's a broad consensus that we want something sort of like a parsed representation of an MMJ2 worksheet. The details need to be worked out, probably in connection with smm-webui work to use the API for proof visualization and editing.

@sorear
Copy link
Owner Author

sorear commented Jul 3, 2016

I think that this is the riskiest part remaining, in terms of how much has yet to be designed and the fact that it'll require scopeck to stop pretending that its only client is verify. @digama0 I think you expressed an interest in this area?

@digama0
Copy link
Contributor

digama0 commented Jul 4, 2016

Here's a plan for IDE integration:

Introduce a new file format for single proofs (essentially the same idea as .mmp files). Such a file will contain a reference to the root .mm file and the target theorem label in the header, and undergoes verification by smm3, which will produce a list of errors if validated with --verify. If it passes muster, it can also be validated with --import, which will take the proof and splice it into the .mm file, replacing the existing theorem. This should give a sufficient suite of tools for an IDE to be able to pop out proofs as needed.

smetamath set.mm --export 2p2e4  # Create a stub proof file for 2p2e4, equivalent to mmj2 ctrl-g 2p2e4
smetamath set.mm --verify 2p2e4  # Verify the proof file, producing a list of errors that can be highlighted by IDE, equivalent to mmj2 ctrl-u
smetamath set.mm --import 2p2e4  # Verify the proof file and write the proof to set.mm, equivalent to MM-PA save new_proof

@digama0
Copy link
Contributor

digama0 commented Jul 4, 2016

A relevant proposal for this is https://groups.google.com/d/msg/metamath/ZlRle52FVO0/94ZTXaAfCQAJ.

@digama0
Copy link
Contributor

digama0 commented Jul 17, 2016

@sorear I have written a new proof assistant proposal at https://groups.google.com/d/msg/metamath/_ky_6Si-UQo/wtBsAFToBwAJ, and I'd like to know what you think of it. Is it worth pursuing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants