Skip to content

Commit

Permalink
Support Coq 8.17 (AU-COBRA#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
4ever2 authored Apr 28, 2023
1 parent 980f08b commit 9b25224
Show file tree
Hide file tree
Showing 37 changed files with 157 additions and 155 deletions.
23 changes: 11 additions & 12 deletions .github/coq-concert.opam.locked
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ homepage: "https://github.com/AU-COBRA/ConCert"
doc: "https://au-cobra.github.io/ConCert/toc.html"
bug-reports: "https://github.com/AU-COBRA/ConCert/issues"
depends: [
"coq" {= "8.16.1"}
"coq-bignums" {= "9.0.0+coq8.16"}
"coq-equations" {= "1.3+8.16"}
"coq-metacoq-common" {= "1.2+8.16"}
"coq-metacoq-erasure" {= "1.2+8.16"}
"coq-metacoq-pcuic" {= "1.2+8.16"}
"coq-metacoq-safechecker" {= "1.2+8.16"}
"coq-metacoq-template" {= "1.2+8.16"}
"coq-metacoq-template-pcuic" {= "1.2+8.16"}
"coq-metacoq-utils" {= "1.2+8.16"}
"coq" {= "8.17.0"}
"coq-bignums" {= "9.0.0+coq8.17"}
"coq-metacoq-common" {= "1.2+8.17"}
"coq-metacoq-erasure" {= "1.2+8.17"}
"coq-metacoq-pcuic" {= "1.2+8.17"}
"coq-metacoq-safechecker" {= "1.2+8.17"}
"coq-metacoq-template" {= "1.2+8.17"}
"coq-metacoq-template-pcuic" {= "1.2+8.17"}
"coq-metacoq-utils" {= "1.2+8.17"}
"coq-rust-extraction" {= "dev"}
"coq-elm-extraction" {= "dev"}
"coq-quickchick" {= "1.6.5"}
Expand All @@ -38,10 +37,10 @@ dev-repo: "git+https://github.com/AU-COBRA/ConCert.git"
pin-depends: [
[
"coq-rust-extraction.dev"
"git+https://github.com/AU-COBRA/coq-rust-extraction.git#61fd34d9f2fed705a860c33691642d3339681ea1"
"git+https://github.com/AU-COBRA/coq-rust-extraction.git#f31a52ba2c1bddd42e9f9df8fca6c297ac359fae"
]
[
"coq-elm-extraction.dev"
"git+https://github.com/AU-COBRA/coq-elm-extraction.git#1dc7fdb299db35960174f48d813b1ea61f7e396c"
"git+https://github.com/AU-COBRA/coq-elm-extraction.git#0c0a733486f915162a194ee646d5f11d2ffc5cc0"
]
]
2 changes: 1 addition & 1 deletion .github/coq-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion .github/opam-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion .github/workflows/lint-opam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.13.x
opam-repositories: |
opam-repositories: |
coq-released: https://coq.inria.fr/opam/released
default: https://opam.ocaml.org
- name: Set up problem matcher
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ConCert can find real-world attacks as explained
## How to build


Our development works with Coq 8.16 and depends on MetaCoq, std++, and coq-equations.
Our development works with Coq 8.17 and depends on MetaCoq, and std++.
The tests depend on QuickChick.
The dependencies can be installed through `opam`.

Expand All @@ -27,7 +27,7 @@ opam switch create . 4.10.2 --repositories default,coq-released=https://coq.inri
eval $(opam env)
```

If Coq 8.16 is already installed, run
If Coq 8.17 is already installed, run

```bash
git clone https://github.com/AU-COBRA/ConCert.git
Expand Down Expand Up @@ -74,7 +74,7 @@ We use the standard Coqdoc with improved styles and scripts of [CoqdocJS](https:
<br>
<details>
<summary>Cite paper</summary>

```
@article{annenkov_milo_nielsen_spitters_2022,
author={ANNENKOV, DANIL and MILO, MIKKEL and NIELSEN, JAKOB BOTSCH and SPITTERS, BAS},
Expand All @@ -94,7 +94,7 @@ We use the standard Coqdoc with improved styles and scripts of [CoqdocJS](https:
<br>
<details>
<summary>Cite paper</summary>
```
@InProceedings{milo_et_al:OASIcs.FMBC.2022.2,
author = {Milo, Mikkel and Nielsen, Eske Hoy and Annenkov, Danil and Spitters, Bas},
Expand Down Expand Up @@ -122,7 +122,7 @@ We use the standard Coqdoc with improved styles and scripts of [CoqdocJS](https:
<br>
<details>
<summary>Cite paper</summary>
```
@inproceedings{10.1145/3573105.3575685,
author = {Nielsen, Eske Hoy and Annenkov, Danil and Spitters, Bas},
Expand Down Expand Up @@ -243,7 +243,7 @@ We use the standard Coqdoc with improved styles and scripts of [CoqdocJS](https:
<br>
<details>
<summary>Cite paper</summary>
```
@inproceedings{smart-contract-interactions,
author = {Jakob Botsch Nielsen and
Expand Down
21 changes: 10 additions & 11 deletions coq-concert.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,24 @@ bug-reports: "https://github.com/AU-COBRA/ConCert/issues"
doc: "https://au-cobra.github.io/ConCert/toc.html"

depends: [
"coq" {>= "8.16" & < "8.17~"}
"coq" {>= "8.17" & < "8.18~"}
"coq-bignums" {>= "8"}
"coq-quickchick" {>= "1.6.4" & <= "1.6.5"}
"coq-equations" {= "1.3+8.16"}
"coq-metacoq-utils" {= "1.2+8.16"}
"coq-metacoq-common" {= "1.2+8.16"}
"coq-metacoq-template" {= "1.2+8.16"}
"coq-metacoq-template-pcuic" {= "1.2+8.16"}
"coq-metacoq-pcuic" {= "1.2+8.16"}
"coq-metacoq-safechecker" {= "1.2+8.16"}
"coq-metacoq-erasure" {= "1.2+8.16"}
"coq-metacoq-utils" {= "1.2+8.17"}
"coq-metacoq-common" {= "1.2+8.17"}
"coq-metacoq-template" {= "1.2+8.17"}
"coq-metacoq-template-pcuic" {= "1.2+8.17"}
"coq-metacoq-pcuic" {= "1.2+8.17"}
"coq-metacoq-safechecker" {= "1.2+8.17"}
"coq-metacoq-erasure" {= "1.2+8.17"}
"coq-rust-extraction" {= "dev"}
"coq-elm-extraction" {= "dev"}
"coq-stdpp" {>= "1.6.0" & <= "1.8.0"}
]

pin-depends: [
["coq-rust-extraction.dev" "git+https://github.com/AU-COBRA/coq-rust-extraction.git#61fd34d9f2fed705a860c33691642d3339681ea1"]
["coq-elm-extraction.dev" "git+https://github.com/AU-COBRA/coq-elm-extraction.git#1dc7fdb299db35960174f48d813b1ea61f7e396c"]
["coq-rust-extraction.dev" "git+https://github.com/AU-COBRA/coq-rust-extraction.git#f31a52ba2c1bddd42e9f9df8fca6c297ac359fae"]
["coq-elm-extraction.dev" "git+https://github.com/AU-COBRA/coq-elm-extraction.git#0c0a733486f915162a194ee646d5f11d2ffc5cc0"]
]

build: [
Expand Down
10 changes: 5 additions & 5 deletions embedding/examples/AcornExamples.v
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Module AcornBool.
(eCase ("Bool", [])
(tyInd "Bool")
(eRel 0)
[(pConstr "True_coq" [], eConstr "Bool" "False_coq");
[(pConstr "True_coq" [], eConstr "Bool" "False_coq");
(pConstr "False_coq" [], eConstr "Bool" "True_coq")]))].

MetaCoq Run (translateData [] Data).
Expand All @@ -48,12 +48,12 @@ End AcornBool.
Module AcornMaybe.
MetaCoq Run define_mod_prefix.

Definition Data := [gdInd "Maybe" 1 [("Nothing_coq", []);
Definition Data := [gdInd "Maybe" 1 [("Nothing_coq", []);
("Just_coq", [(None, tyRel 0)])] false].
(*---------------------*)
Definition Functions := [
("isJust", eTyLam "A"
(eLambda "x"
(eLambda "x"
(tyApp (tyInd "Maybe") (tyRel 0))
(eCase ("Maybe",[tyRel 0])
(tyInd "Bool")
Expand All @@ -78,7 +78,7 @@ Module AcornProd.
Definition Functions :=
[("fst", eTyLam "A"
(eTyLam "A"
(eLambda "x"
(eLambda "x"
(tyApp (tyApp (tyInd "Pair") (tyRel 1)) (tyRel 0))
(eCase ("Pair",[(tyRel 1); (tyRel 0)])
(tyRel 1)
Expand Down Expand Up @@ -535,7 +535,7 @@ Module AcornBlochain.
(tyInd "string")
(eRel 0)
[(pConstr "InitContext_coq" ["x0"; "x1"], eRel 0)]))
; ("initChain", eLambda "x"
; ("initChain", eLambda "x"
(tyInd "InitContext")
(eCase
("InitContext", [])
Expand Down
3 changes: 2 additions & 1 deletion embedding/theories/Misc.v
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ Lemma forallb_In {A} x (xs : list A) p :
Proof.
revert x.
induction xs; intros x Hin Hfa; auto.
simpl in *. propify; intuition; subst; auto.
simpl in *. propify.
now destruct_or_hyps.
Qed.


Expand Down
1 change: 0 additions & 1 deletion embedding/theories/pcuic/PCUICCorrectness.v
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ From Coq Require Import Basics.
From Coq Require Import Lia.
From Coq Require Import ssrbool.
From Coq Require Import Arith.
From Equations Require Import Equations.

Import ListNotations.
Import NamelessSubst.
Expand Down
Loading

0 comments on commit 9b25224

Please sign in to comment.