Skip to content

Commit

Permalink
Add minor fixes for Coq 8.17 and 8.18
Browse files Browse the repository at this point in the history
  • Loading branch information
takanuva committed May 12, 2024
1 parent e26c959 commit 0c6a156
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 6 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/coq-8.17.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 8.16
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: coq-community/docker-coq-action@v1.4.1
with:
coq_version: "8.17"
ocaml_version: default
before_script: |
startGroup "Workaround permission issue"
sudo chown -R coq:coq .
endGroup
script: |
startGroup "Build project"
make
endGroup
after_script: |
startGroup "Revert permissions"
sudo chown -R 1001:116 .
endGroup
23 changes: 23 additions & 0 deletions .github/workflows/coq-8.18.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 8.16
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: coq-community/docker-coq-action@v1.4.1
with:
coq_version: "8.18"
ocaml_version: default
before_script: |
startGroup "Workaround permission issue"
sudo chown -R coq:coq .
endGroup
script: |
startGroup "Build project"
make
endGroup
after_script: |
startGroup "Revert permissions"
sudo chown -R 1001:116 .
endGroup
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ I'm currently running against time to finish everything, and I'm pretty tired,
but I'll get back in here to improve this documentation.

![Coq 8.16](https://github.com/takanuva/cps/actions/workflows/coq-8.16.yml/badge.svg)
![Coq 8.17](https://github.com/takanuva/cps/actions/workflows/coq-8.17.yml/badge.svg)
![Coq 8.18](https://github.com/takanuva/cps/actions/workflows/coq-8.18.yml/badge.svg)

# Summary of files

Expand Down
2 changes: 1 addition & 1 deletion theories/Equational.v
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ Proof.
assumption.
+ induction H; auto.
inversion_clear H2.
simpl; f_equal; auto.
simpl; f_equal; auto;
apply H; auto.
- rewrite lift_distributes_over_bind.
do 3 rewrite subst_distributes_over_bind.
Expand Down
8 changes: 4 additions & 4 deletions theories/Lambda/Calculus.v
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ Proof.
(* From H, of course! *)
admit.
+ replace n with (i + j) by lia.
constructor; auto.
constructor; auto;
now apply IHh.
- dependent destruction H.
rename n0 into k.
Expand All @@ -949,7 +949,7 @@ Proof.
(* As above, from H0. *)
admit.
+ replace n with (i + j) by lia.
constructor; auto.
constructor; auto;
now apply IHh.
- dependent destruction H.
rename n0 into k.
Expand All @@ -958,7 +958,7 @@ Proof.
(* Ditto. *)
admit.
+ replace n with (i + j) by lia.
constructor; auto.
constructor; auto;
now apply IHh.
- dependent destruction H.
rename n0 into k.
Expand All @@ -967,7 +967,7 @@ Proof.
(* Ditto. *)
admit.
+ replace n with (i + j) by lia.
constructor; auto.
constructor; auto;
now apply IHh.
- dependent destruction H.
rename n0 into k.
Expand Down
2 changes: 1 addition & 1 deletion theories/Metatheory.v
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ Proof.
rewrite subst_distributes_over_jump.
f_equal.
+ apply IHe.
+ list induction over H.
+ list induction over H;
apply H.
- rewrite lift_distributes_over_bind.
rewrite subst_distributes_over_bind.
Expand Down

0 comments on commit 0c6a156

Please sign in to comment.