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
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
aeca05b
Add prefix to names
cmester0 Oct 30, 2024
16b3472
fmt
cmester0 Nov 4, 2024
b9727e5
Minor fixes
cmester0 Nov 4, 2024
37fb5ce
Update concrete ident for record
cmester0 Nov 4, 2024
49feac4
Improved enum and records
cmester0 Nov 5, 2024
8d53378
Test coq implementation / coverage tests
cmester0 Nov 7, 2024
316c39d
fmt
cmester0 Nov 11, 2024
5aa766f
CI for coq coverage
cmester0 Nov 11, 2024
dc95eea
fmt
cmester0 Nov 17, 2024
1f124ab
Remove unused file
cmester0 Nov 17, 2024
52106f0
random fmt bug?
cmester0 Nov 17, 2024
a134f1a
Update snapshot
cmester0 Nov 19, 2024
1801b1c
fmt
cmester0 Nov 19, 2024
e5e10ab
Test some snapshots
cmester0 Nov 19, 2024
b87a682
fmt
cmester0 Nov 19, 2024
f6d7a82
Add example co-inductive/mutual recursion issues with trait
cmester0 Nov 22, 2024
00d44cb
Update coq backend
cmester0 Nov 25, 2024
e3ff48a
Use core for coq coverage test
cmester0 Nov 25, 2024
783fca5
fmt
cmester0 Nov 25, 2024
85c4766
snapshot
cmester0 Nov 25, 2024
9cf8aec
fmt
cmester0 Nov 25, 2024
014525c
Snapshot update
cmester0 Nov 25, 2024
5dd787f
CI
cmester0 Nov 25, 2024
f4edc30
Minor changes
cmester0 Nov 26, 2024
0b6a19c
snapshot
cmester0 Nov 26, 2024
b058cf8
CI?
cmester0 Nov 27, 2024
6d8a653
wip
W95Psp Nov 28, 2024
ff429a0
Fix tests
cmester0 Nov 28, 2024
13b86ce
Fix tests
cmester0 Nov 28, 2024
197d1a3
CI: nix files for coq coverage example and library
W95Psp Nov 28, 2024
71e0a65
Fixed coverage tests
cmester0 Nov 28, 2024
2a69ded
Merge
cmester0 Nov 28, 2024
7b28517
CI
cmester0 Nov 28, 2024
a1d69f1
fmt
cmester0 Nov 28, 2024
d58eb4f
snapshot
cmester0 Nov 28, 2024
77687e6
Typo
cmester0 Dec 10, 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
50 changes: 50 additions & 0 deletions .github/workflows/extract_and_run_coq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Extract and Run - Coq

on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: ⤵ Install hax
run: |
nix build .\#coq-coverage-example

# - name: build coverage example
# working-directory: hax/examples/coverage
# run: |
# nix run . into coq

# - name: install annotated core for coq
# working-directory: hax/proof-libs/coq/coq/generated-core
# run: |
# 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" && \
# nix-shell --packages coq coqPackages.coq-record-update --run "sudo make install"

# - name: run coq - coverage
# working-directory: hax/examples/coverage/proofs/coq/extraction
# run: |
# sed 's/_impl_f_/_f_/' < Coverage_Test_instance.v > Coverage_Test_instance.v # TODO: this is a hotfix, should be solved in backend and removed from here.
# 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"

# - 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
Comment on lines +35 to +50
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.

Loading
Loading