-
Notifications
You must be signed in to change notification settings - Fork 5
Port coq-plugin-lib to Coq 8.11 #42
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: master
Are you sure you want to change the base?
Changes from 28 commits
763990a
cf1ab43
5ebea67
3ab41c8
d9f5ca6
7ede24e
a3dd7f9
ad7c8e6
f90d9fa
bad58f6
c69de0d
0fcf2c8
827ea2f
5e92a93
6f7a0dd
391a7d7
ba601dd
343c23f
3eeea21
a7c7ae1
cd43754
6d2b009
fad8b1e
c425423
53b15cd
36c0ba0
1e441c4
c249fd9
b555622
5d4e2e0
9b8d5b0
e582a0c
89efa78
3a59347
0e9cb9b
966f8d4
d76e4be
15132c6
eafd2c4
3630afd
a4a353d
c8cdf42
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,3 +23,4 @@ plugin/Makefile | |
| plugin/.merlin | ||
| *.out | ||
| _opam | ||
| src/plibrary.ml | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| OCAMLWARN=-warn-error +a-3-8-40-32-28 | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,6 @@ | |
|
|
||
| open Constr | ||
| open Names | ||
| open Environ | ||
| open Evd | ||
|
|
||
| let coq_init_datatypes = | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,11 +36,11 @@ let parse_tac_str (s : string) : unit Proofview.tactic = | |
| (* Run a coq tactic against a given goal, returning generated subgoals *) | ||
| let run_tac env sigma (tac : unit Proofview.tactic) (goal : constr) | ||
| : Goal.goal list * Evd.evar_map = | ||
| let p = Proof.start sigma [(env, EConstr.of_constr goal)] in | ||
| let (p', _) = Proof.run_tactic env tac p in | ||
| let (subgoals, _, _, _, sigma) = Proof.proof p' in | ||
| subgoals, sigma | ||
| let p = Proof.start ~name:(destVar goal) ~poly:true sigma [(env, EConstr.of_constr goal)] in | ||
| let (p', _, _) = Proof.run_tactic env tac p in | ||
| let compact_p = Proof.data (Proof.compact p') in | ||
|
||
| (compact_p.goals, compact_p.sigma) | ||
|
|
||
| (* Returns true if the given tactic solves the goal. *) | ||
| let solves env sigma (tac : unit Proofview.tactic) (goal : constr) : bool state = | ||
| try | ||
|
|
@@ -476,7 +476,7 @@ and apply_in (n, valu, typ, body) (env, sigma, opts) : tactical option = | |
|
|
||
| (* Last resort decompile let-in as a pose. *) | ||
| and pose (n, valu, t, body) (env, sigma, opts) : tactical option = | ||
| let n' = fresh_name env n in | ||
| let n' = fresh_name env n.binder_name in | ||
| let env' = push_let_in (Name n', valu, t) env in | ||
| let decomp_body = first_pass env' sigma opts body in | ||
| (* If the binding is NEVER used, just skip this. *) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I excluded this from git because it appears to be a build artifact that gets generated whenever
build.shis run.