-
Notifications
You must be signed in to change notification settings - Fork 763
[declare] Refactor constant information into a record. #12372
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
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
f77743c
[declare] Stronger typing for start_proof
ejgallego 43d381a
[declare] Move proof information to declare.
ejgallego 2ac5353
[declare] Remove mutual internals from Info.t structure.
ejgallego 671004a
[declare] Remove Lemmas module
ejgallego 1f121eb
[declare] Refactor constant information into a record.
ejgallego 7d183d8
[declare] Make ProgramDecl.t abstract
ejgallego d83e95c
[declare] [api] Removal of deprecated functions
ejgallego a6d663c
[declare] [api] Removal of duplicated type aliases.
ejgallego b143d12
[declare] Move udecl to Info structure.
ejgallego 030bb57
[declare] Reify Proof.t API into the Proof module.
ejgallego c09871d
[declare] [api] Modify logical presentation of declare interfaces
ejgallego 6291e5b
[declare] [compat] Remove exception alias.
ejgallego 9c58cd6
[declare] Documentation on obligations
ejgallego ba8db3c
[declare] Nit on interface
ejgallego 22bb101
[declare] Nit on hook call.
ejgallego c7a62d0
[declare] Refactor analysis and construction of mutual lemmas
ejgallego e622379
[declare] Use Recthm.t in mutual analysis functions
ejgallego f72efb3
[declare] Nit on regular lemma init.
ejgallego 862e5a0
[vernac] Nit refatoring on lemma command interpretation
ejgallego ea8b9e0
[declare] Improve organization of proof/constant information.
ejgallego bf31fad
[declare] Improve logical code order
ejgallego 06159c5
[obligation] Switch to new declare info API.
ejgallego 4a2c865
[declare] Merge remaining obligations bits into Declare
ejgallego d9dca86
[declare] Remove Proof_ending from the public API
ejgallego 4ad9fa2
[declare] Some more cleanup on unused functions after the last commits.
ejgallego a5a65dd
[declare] Return list of declared global in Proof.save
ejgallego eb950df
[recLemmas] Nit on naming consistency.
ejgallego c62aa0e
[ci] Add overlays for PR #12372
ejgallego File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| if [ "$CI_PULL_REQUEST" = "12372" ] || [ "$CI_BRANCH" = "proof+info" ]; then | ||
|
|
||
| rewriter_CI_REF=proof+info | ||
| rewriter_CI_GITURL=https://github.com/ejgallego/rewriter | ||
|
|
||
| paramcoq_CI_REF=proof+info | ||
| paramcoq_CI_GITURL=https://github.com/ejgallego/paramcoq | ||
|
|
||
| mtac2_CI_REF=proof+info | ||
| mtac2_CI_GITURL=https://github.com/ejgallego/Mtac2 | ||
|
|
||
| equations_CI_REF=proof+info | ||
| equations_CI_GITURL=https://github.com/ejgallego/Coq-Equations | ||
|
|
||
| elpi_CI_REF=proof+info | ||
| elpi_CI_GITURL=https://github.com/ejgallego/coq-elpi | ||
|
|
||
| aac_tactics_CI_REF=proof+info | ||
| aac_tactics_CI_GITURL=https://github.com/ejgallego/aac-tactics | ||
|
|
||
| metacoq_CI_REF=proof+info | ||
| metacoq_CI_GITURL=https://github.com/ejgallego/metacoq | ||
|
|
||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| let declare_definition ~poly name sigma body = | ||
| let udecl = UState.default_univ_decl in | ||
| let scope = Declare.Global Declare.ImportDefaultBehavior in | ||
| let scope = Locality.Global Locality.ImportDefaultBehavior in | ||
| let kind = Decls.(IsDefinition Definition) in | ||
| Declare.declare_definition ~name ~scope ~kind ~impargs:[] ~udecl | ||
| ~opaque:false ~poly ~types:None ~body sigma | ||
| let cinfo = Declare.CInfo.make ~name ~typ:None () in | ||
| let info = Declare.Info.make ~scope ~kind ~udecl ~poly () in | ||
| Declare.declare_definition ~info ~cinfo ~opaque:false ~body sigma |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,4 +16,4 @@ val start_deriving | |
| : Names.Id.t | ||
| -> Constrexpr.constr_expr | ||
| -> Names.Id.t | ||
| -> Lemmas.t | ||
| -> Declare.Proof.t | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.