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

Coq small fixes #1108

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open

Coq small fixes #1108

wants to merge 36 commits into from

Conversation

cmester0
Copy link
Contributor

No description provided.

@cmester0 cmester0 force-pushed the coq-small-fixes branch 5 times, most recently from f7cb54f to e39e7cd Compare November 17, 2024 20:48
@cmester0 cmester0 mentioned this pull request Nov 19, 2024
@cmester0 cmester0 marked this pull request as ready for review November 19, 2024 11:18
@cmester0 cmester0 requested a review from W95Psp November 19, 2024 11:18
@@ -56,3 +82,9 @@ Definition asserts (_ : unit) : unit :=
end in
tt.
'''
_CoqProject = '''
-R ./ TODO
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add name of create instead of TODO.

Comment on lines +1 to +14
// TODO:
// fn test() {
// let add : fn(i32, i32) -> i32 = |x, y| x + y;
// let _ = (|x : &u8| { x + x })(&2);

// fn f<F : FnOnce() -> u8> (g: F) -> u8 {
// g() + 2
// }

// f(|| {
// 23
// });
// // Prints "foobar".
// }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Support closures.

@cmester0 cmester0 force-pushed the coq-small-fixes branch 3 times, most recently from e04856e to 5afea93 Compare November 25, 2024 14:16
@cmester0 cmester0 changed the base branch from main to coq-generic-printer-annotated-core-lib November 25, 2024 14:17
@cmester0 cmester0 force-pushed the coq-small-fixes branch 5 times, most recently from a4ab210 to ddec63c Compare November 26, 2024 17:18
@W95Psp
Copy link
Collaborator

W95Psp commented Nov 28, 2024

Let's look at that together to chat about CI, and merge

Base automatically changed from coq-generic-printer-annotated-core-lib to main November 28, 2024 13:32
@W95Psp
Copy link
Collaborator

W95Psp commented Nov 28, 2024

Lasse and I are looking at that PR right now

Comment on lines +39 to +54
# - name: build and run coq on tests
# env:
# FILES: assert attribute-opaque enum-struct-variant
# NOT_SUPPORTED_FILES: attributes cli conditional-match constructor-as-closure cyclic-modules enum-repr even dyn functions
# run: |
# for f in $FILES; do \
# cd hax/tests/$f && \
# nix run . into coq && \
# cd ../../..
# done
# for f in $FILES; do \
# cd hax/tests/$f/proofs/coq/extraction && \
# nix-shell --packages coq coqPackages.coq-record-update --run "coq_makefile -f _CoqProject -o Makefile" && \
# nix-shell --packages coq coqPackages.coq-record-update --run "make" && \
# cd ../../../../../../
# done
Copy link
Contributor Author

@cmester0 cmester0 Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run Coq on (working) snapshot files. Still have to get full coverage.

@cmester0
Copy link
Contributor Author

cmester0 commented Nov 28, 2024

@W95Psp The Coq code should work now. Seems to be an issue with cd in the Extract and Run - Coq job.

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.

2 participants