Skip to content

feat: add --ignore-missing flag to skip missing declarations#36

Open
augustepoiroux wants to merge 2 commits into
leanprover:masterfrom
augustepoiroux:ignore-missing
Open

feat: add --ignore-missing flag to skip missing declarations#36
augustepoiroux wants to merge 2 commits into
leanprover:masterfrom
augustepoiroux:ignore-missing

Conversation

@augustepoiroux
Copy link
Copy Markdown

This PR adds a new command-line option, --ignore-missing, to allow the exporter to skip missing constant lookups and proceed gracefully, rather than panicking.

By default, lean4export strictly panics when a constant requested for export is not present in the environment. In some systems, it is useful to query multiple declarations without knowing in advance if they are present in the environment.

The main motivation for this option is the development of a disproof feature for comparator where a potential target.disproof declaration might be present or not in the submitted solution.

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

Successfully merging this pull request may close these issues.

1 participant