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

API for open (as in free variables) terms #714

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8931d75
first draft
ybertot Nov 7, 2024
4816f47
in this version exactly one unbound expression, for both the input an…
ybertot Nov 7, 2024
5c4cfb6
the declaration of open-trm as an argument variant was missing
ybertot Nov 8, 2024
756579a
same
ybertot Nov 8, 2024
54f095a
This version contains a minimal working example of a tactic performing
ybertot Nov 8, 2024
ef62079
this version now accepts constant terms as replacement values
ybertot Nov 8, 2024
92c8ce6
checkpoint
ybertot Nov 8, 2024
d27eef5
checkpoint
ybertot Nov 8, 2024
26f85bc
situation where the code refuses to produce an instantiation
ybertot Nov 10, 2024
cc5a5c1
code that behaves as expected
ybertot Nov 10, 2024
7706567
Now a second minimal working example, with a specific extensionality
ybertot Nov 10, 2024
7ce7b29
Adds a test showing it works under several lambdas
ybertot Nov 10, 2024
76ace58
fixes identify proofs in applications (needed a sigma), plus csmetics
ybertot Nov 11, 2024
058fa77
failed attempt at coping with polymorphic functions
ybertot Nov 12, 2024
5dbb5a3
this version handles polymorphic functions gracefully, the examples a…
ybertot Nov 13, 2024
ceabd83
illustrate problems with variable renaming, adds an example where bound
ybertot Nov 13, 2024
1f199b9
adds the case where sections are used, which currently makes elpi rep…
ybertot Nov 13, 2024
c92bc1b
This version also works well with clashing names, and new names are
ybertot Nov 14, 2024
bd3781b
This version now avoids that elpi adds awkward bound variable names by
ybertot Nov 14, 2024
a5fb937
cleanup
ybertot Nov 14, 2024
36fbb67
adds code to cover other binding constructs in preserve_bound_variables
ybertot Nov 14, 2024
81b4c2d
remove all the debugging code, the tactic is now silent
ybertot Nov 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions builtin-doc/coq-builtin-synterp.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ kind argument type.
type int int -> argument. % Eg. 1 -2.
type str string -> argument. % Eg. x "y" z.w. or any Coq keyword/symbol
type trm term -> argument. % Eg. (t).
type open-trm int -> term -> argument.

% Extra arguments for commands. [Definition], [Axiom], [Record] and [Context]
% take precedence over the [str] argument above (when not "quoted").
Expand Down
1 change: 1 addition & 0 deletions builtin-doc/coq-builtin.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ kind argument type.
type int int -> argument. % Eg. 1 -2.
type str string -> argument. % Eg. x "y" z.w. or any Coq keyword/symbol
type trm term -> argument. % Eg. (t).
type open-trm int -> term -> argument.

% Extra arguments for commands. [Definition], [Axiom], [Record] and [Context]
% take precedence over the [str] argument above (when not "quoted").
Expand Down
1 change: 1 addition & 0 deletions elpi/coq-arg-HOAS.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ kind argument type.
type int int -> argument. % Eg. 1 -2.
type str string -> argument. % Eg. x "y" z.w. or any Coq keyword/symbol
type trm term -> argument. % Eg. (t).
type open-trm int -> term -> argument.

% Extra arguments for commands. [Definition], [Axiom], [Record] and [Context]
% take precedence over the [str] argument above (when not "quoted").
Expand Down
Loading
Loading