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

Adapt to https://github.com/coq/coq/pull/19530 #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion etc/notes/poly1305_scratchpad.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Require Coq.Init.Byte Coq.Strings.String. Import Init.Byte(byte(..)) String.
Require Import coqutil.Datatypes.List. Import Lists.List List.ListNotations.
Require Import Coq.ZArith.BinInt. Import Zdiv. Local Open Scope Z_scope.
From Coq Require Import BinInt. Import Zdiv. Local Open Scope Z_scope.
Require Import coqutil.Byte coqutil.Word.LittleEndianList.

(* reference: https://datatracker.ietf.org/doc/html/rfc8439 *)
Expand Down
6 changes: 3 additions & 3 deletions src/Rupicola/Examples/Assoc/Assoc.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Require Import Coq.ZArith.ZArith.
Require Import Coq.Strings.String.
Require Import Coq.Lists.List.
From Coq Require Import ZArith.
From Coq Require Import String.
From Coq Require Import List.
Require Import bedrock2.Syntax. Import Syntax.Coercions.
Require Import bedrock2.NotationsCustomEntry.
(* Require bedrock2.WeakestPrecondition. *)
Expand Down
2 changes: 1 addition & 1 deletion src/Rupicola/Examples/CRC32/Table.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Coq.ZArith.ZArith Coq.Lists.List.
From Coq Require Import ZArith List.
Import ListNotations.
Open Scope Z_scope.

Expand Down
6 changes: 3 additions & 3 deletions src/Rupicola/Examples/CapitalizeThird/CapitalizeThird.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Require Import Coq.ZArith.ZArith.
Require Import Coq.Strings.String.
Require Import Coq.Lists.List.
From Coq Require Import ZArith.
From Coq Require Import String.
From Coq Require Import List.
Require Import bedrock2.Syntax. Import Syntax.Coercions.
Require Import bedrock2.NotationsCustomEntry.
Require bedrock2.WeakestPrecondition.
Expand Down
8 changes: 4 additions & 4 deletions src/Rupicola/Examples/CapitalizeThird/Properties.v
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Require Import Coq.ZArith.ZArith.
Require Import Coq.Strings.String.
Require Import Coq.Lists.List.
Require Import Coq.micromega.Lia.
From Coq Require Import ZArith.
From Coq Require Import String.
From Coq Require Import List.
From Coq Require Import Lia.
Require Import bedrock2.Array.
Require Import bedrock2.NotationsCustomEntry.
Require Import bedrock2.Scalars.
Expand Down
2 changes: 1 addition & 1 deletion src/Rupicola/Examples/IO/IO.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From Coq Require Logic.Eqdep Sets.Ensembles.
From Coq Require Eqdep Ensembles.
Require Import Rupicola.Lib.Api.
Require Export Rupicola.Examples.IO.Writer.

Expand Down
2 changes: 1 addition & 1 deletion src/Rupicola/Examples/KVStore/kv.v
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Definition buf_unborrow_data (b: Buffer) (bs: Bytes) :=

Require Import Arith PeanoNat.

Require Import Coq.Program.Wf.
From Coq.Program Require Import Wf.
Require Import Psatz.

Program Fixpoint ranged_for_nat {A}
Expand Down
4 changes: 2 additions & 2 deletions src/Rupicola/Examples/RevComp.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(* https://benchmarksgame-team.pages.debian.net/benchmarksgame/description/revcomp.html *)
Require Import Coq.Strings.String Coq.Strings.Ascii.
From Coq Require Import String Ascii.

Section Spec.
Open Scope string_scope.
Expand Down Expand Up @@ -37,7 +37,7 @@ Section Spec.
Compute revcomp_spec "RUPICOLA".
End Spec.

Require Import Coq.Strings.Byte.
From Coq Require Import Strings.Byte.
Require Import Rupicola.Lib.Api.
Require Import Rupicola.Lib.Loops.
Require Import Rupicola.Lib.Arrays.
Expand Down
6 changes: 3 additions & 3 deletions src/Rupicola/Examples/Swap/Properties.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Require Import Coq.ZArith.ZArith.
Require Import Coq.Strings.String.
Require Import Coq.Lists.List.
From Coq Require Import ZArith.
From Coq Require Import String.
From Coq Require Import List.
Require Import bedrock2.BasicC64Semantics.
Require Import bedrock2.NotationsCustomEntry.
Require Import bedrock2.ProgramLogic.
Expand Down
6 changes: 3 additions & 3 deletions src/Rupicola/Examples/Swap/Swap.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Require Import Coq.ZArith.ZArith.
Require Import Coq.Strings.String.
Require Import Coq.Lists.List.
From Coq Require Import ZArith.
From Coq Require Import String.
From Coq Require Import List.
Require Import bedrock2.Syntax. Import Syntax.Coercions.
Require Import bedrock2.NotationsCustomEntry.
Require bedrock2.WeakestPrecondition.
Expand Down
4 changes: 2 additions & 2 deletions src/Rupicola/Examples/Uppercase.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Coq.Strings.String Coq.Strings.Ascii.
From Coq Require Import String Ascii.

Section Spec.
Open Scope string_scope.
Expand Down Expand Up @@ -26,7 +26,7 @@ Section Spec.
Compute upstr_spec "rupicola".
End Spec.

Require Import Coq.Strings.Byte.
From Coq Require Import Strings.Byte.
Require Import Rupicola.Lib.Api.
Require Import Rupicola.Lib.Loops.
Require Import Rupicola.Lib.Arrays.
Expand Down
2 changes: 1 addition & 1 deletion src/Rupicola/Lib/Core.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
From Coq Require Export
Classes.Morphisms Numbers.DecimalString
Morphisms DecimalString
String List ZArith Lia.
From Coq Require Vector.
From bedrock2 Require Export
Expand Down
3 changes: 1 addition & 2 deletions src/Rupicola/Lib/Gensym.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
From Coq Require Import
String Numbers.DecimalString.
From Coq Require Import String DecimalString.

Definition _gs (prefix: string) (n: nat) :=
("_gs_" ++ prefix ++ NilEmpty.string_of_uint (Nat.to_uint n))%string.
Expand Down
4 changes: 2 additions & 2 deletions src/Rupicola/Lib/IdentParsing.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(*! Frontend | Ltac2-based identifier parsing for prettier notations !*)
Require Import Coq.NArith.NArith Coq.Strings.String.
Require Import Coq.Init.Byte.
From Coq Require Import NArith String.
From Coq.Init Require Import Byte.
Require Import Ltac2.Ltac2.

Import Ltac2.Init.
Expand Down
2 changes: 1 addition & 1 deletion src/Rupicola/Lib/Monads.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From Coq Require Import Strings.String Logic.FunctionalExtensionality.
From Coq Require Import String FunctionalExtensionality.
From Rupicola.Lib Require Import Core.

Set Implicit Arguments.
Expand Down
4 changes: 2 additions & 2 deletions src/Rupicola/Lib/ToCString.v
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(* Forked from bedrock2/src/bedrock2/ToCString.v *)
Require Import bedrock2.Syntax bedrock2.Variables. Import bopname.
Require Import coqutil.Datatypes.ListSet.
Require Import Coq.ZArith.BinIntDef Coq.Numbers.BinNums Coq.Numbers.DecimalString.
Require Import Coq.Strings.String. Local Open Scope string_scope.
From Coq Require Import BinIntDef BinNums DecimalString.
From Coq Require Import String. Local Open Scope string_scope.

Definition prelude := "#include <stdint.h>
#include <string.h>
Expand Down