Skip to content

Commit

Permalink
Adapt to coq/coq#19530
Browse files Browse the repository at this point in the history
  • Loading branch information
proux01 authored and andres-erbsen committed Sep 23, 2024
1 parent de880ce commit 3ab0943
Show file tree
Hide file tree
Showing 32 changed files with 55 additions and 53 deletions.
4 changes: 2 additions & 2 deletions Kami/Decomposition.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Require Import Bool List String.
Require Import Structures.Equalities FunctionalExtensionality Program.Equality Eqdep Eqdep_dec.
From Coq Require Import Bool List String.
From Coq Require Import Equalities FunctionalExtensionality Equality Eqdep Eqdep_dec.
Require Import Lib.Struct Lib.Word Lib.CommonTactics Lib.ilist Lib.FMap.
Require Import Kami.Syntax Kami.Semantics Kami.SemFacts Kami.Wf Kami.RefinementFacts.

Expand Down
2 changes: 1 addition & 1 deletion Kami/Duplicate.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Bool String List Arith.Peano_dec Lia.
From Coq Require Import Bool String List Peano_dec Lia.
Require Import Lib.FMap Lib.Struct Lib.CommonTactics Lib.Indexer Lib.StringEq Lib.ListSupport.
Require Import Kami.Syntax Kami.Semantics Kami.SemFacts Kami.RefinementFacts Kami.Renaming Kami.Wf.
Require Import Kami.Specialize.
Expand Down
2 changes: 1 addition & 1 deletion Kami/Ex/Divider32.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Require Import Lib.CommonTactics Lib.NatLib Lib.Indexer
Lib.Struct Lib.DepEq Lib.Word Lib.FMap Lib.Reflection.
Require Import Kami.Syntax Kami.Notations Kami.Semantics Kami.SemFacts Kami.Tactics.

Require Import ZArith Eqdep Program.Equality.
From Coq Require Import ZArith Eqdep Equality.

Set Implicit Arguments.

Expand Down
2 changes: 1 addition & 1 deletion Kami/Ex/Divider64.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Require Import Lib.CommonTactics Lib.NatLib Lib.Indexer
Lib.Struct Lib.DepEq Lib.Word Lib.FMap Lib.Reflection.
Require Import Kami.Syntax Kami.Notations Kami.Semantics Kami.SemFacts Kami.Tactics.

Require Import ZArith Eqdep Program.Equality.
Require Import ZArith Eqdep Equality.

Set Implicit Arguments.

Expand Down
2 changes: 1 addition & 1 deletion Kami/Ex/FifoCorrect.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Arith.Peano_dec Bool String List PeanoNat.
Require Import Peano_dec Bool String List PeanoNat.
Require Import Lib.CommonTactics Lib.ilist Lib.NatLib Lib.Word Lib.Struct Lib.StringEq.
Require Import Lib.FMap Lib.Indexer.
Require Import Kami.Syntax Kami.Semantics Kami.SemFacts Kami.Wf Kami.RefinementFacts.
Expand Down
2 changes: 1 addition & 1 deletion Kami/Ex/IsaRv32.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Bool String List Vector ZArith.BinInt.
From Coq Require Import Bool String List Vector BinInt.
Require Import Lib.CommonTactics Lib.Word Lib.Struct.
Require Import Kami.Syntax Kami.Semantics Kami.Notations.
Require Import Ex.MemTypes Ex.SC.
Expand Down
2 changes: 1 addition & 1 deletion Kami/Ex/Multiplier32.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Require Import Lib.CommonTactics Lib.NatLib Lib.Indexer
Lib.Struct Lib.DepEq Lib.Word Lib.FMap Lib.Reflection.
Require Import Kami.Syntax Kami.Notations Kami.Semantics Kami.SemFacts Kami.Tactics.

Require Import ZArith Eqdep Program.Equality.
From Coq Require Import ZArith Eqdep Equality.

Set Implicit Arguments.
Open Scope string.
Expand Down
2 changes: 1 addition & 1 deletion Kami/Ex/Multiplier64.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Require Import Lib.CommonTactics Lib.NatLib Lib.Indexer
Lib.Struct Lib.DepEq Lib.Word Lib.FMap Lib.Reflection.
Require Import Kami.Syntax Kami.Notations Kami.Semantics Kami.SemFacts Kami.Tactics.

Require Import ZArith Eqdep Program.Equality.
Require Import ZArith Eqdep Equality.

Set Implicit Arguments.
Open Scope string.
Expand Down
2 changes: 1 addition & 1 deletion Kami/Ex/NativeFifo.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Arith.Peano_dec Bool String List.
Require Import Peano_dec Bool String List.
Require Import Lib.CommonTactics Lib.ilist Lib.Word Lib.Indexer Lib.StringAsList Lib.StringEq.
Require Import Kami.Syntax Kami.Notations Kami.Semantics.
Require Import Kami.Wf Kami.Tactics.
Expand Down
2 changes: 1 addition & 1 deletion Kami/Ex/SimpleFifoCorrect.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Arith.Peano_dec Bool String List PeanoNat.
Require Import Peano_dec Bool String List PeanoNat.
Require Import Lib.CommonTactics Lib.ilist Lib.NatLib Lib.Word Lib.Struct.
Require Import Lib.FMap Lib.Indexer.
Require Import Kami.Syntax Kami.Semantics Kami.SemFacts Kami.RefinementFacts.
Expand Down
4 changes: 2 additions & 2 deletions Kami/Lib/CommonTactics.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Require Import Bool Ascii String List Eqdep Lia.
Require Import Logic.FunctionalExtensionality.
From Coq Require Import Bool Ascii String List Eqdep Lia.
From Coq Require Import FunctionalExtensionality.

Ltac isNew P :=
match goal with
Expand Down
5 changes: 3 additions & 2 deletions Kami/Lib/DepEq.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Require Import Coq.Arith.PeanoNat.
Require Import Coq.Logic.Eqdep Coq.Logic.Eqdep_dec Coq.Program.Equality.
From Coq Require Import PeanoNat.
From Coq Require Import Eqdep Eqdep_dec.
From Coq.Program Require Import Equality.

(** * Equalities on dependent types *)

Expand Down
12 changes: 6 additions & 6 deletions Kami/Lib/FMap.v
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Require Import String.
Require FSets.FMapList FSets.FMapFacts.
Require Import Lists.SetoidList.
Require Import Structures.OrderedType.
Require Import Structures.OrderedTypeEx.
Require Import Equalities Eqdep_dec FMapInterface.
From Coq Require Import String.
From Coq Require FMapList FMapFacts.
From Coq Require Import SetoidList.
From Coq Require Import OrderedType.
From Coq Require Import OrderedTypeEx.
From Coq Require Import Equalities Eqdep_dec FMapInterface.

Require Import Lib.CommonTactics Lib.StringAsOT Lib.StringEq Lib.Struct.

Expand Down
2 changes: 1 addition & 1 deletion Kami/Lib/N_Z_nat_conversions.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(* This should be in the Coq library *)
Require Import Coq.Arith.Arith Coq.NArith.NArith Coq.ZArith.ZArith Lia.
From Coq Require Import Arith NArith ZArith Lia.

Lemma N_to_Z_to_nat: forall (a: N), Z.to_nat (Z.of_N a) = N.to_nat a.
Proof.
Expand Down
4 changes: 2 additions & 2 deletions Kami/Lib/NatLib.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Require Import Coq.NArith.NArith.
Require Import Coq.ZArith.ZArith.
From Coq Require Import NArith.
From Coq Require Import ZArith.
Require Import N_Z_nat_conversions.
Require Export Lia Nlia.

Expand Down
2 changes: 1 addition & 1 deletion Kami/Lib/StringAsList.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import String Program.Equality Lia.
From Coq Require Import String Equality Lia.

Set Asymmetric Patterns.

Expand Down
4 changes: 2 additions & 2 deletions Kami/Lib/StringAsOT.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Require Import PeanoNat Compare_dec Lia Coq.Strings.String Coq.Strings.Ascii.
Require Import Coq.Structures.OrderedType.
From Coq Require Import PeanoNat Compare_dec Lia String Ascii.
From Coq Require Import OrderedType.

Set Asymmetric Patterns.

Expand Down
3 changes: 2 additions & 1 deletion Kami/Lib/StringStringAsOT.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Require Import Coq.Structures.OrderedType String Lib.StringAsOT.
From Coq Require Import OrderedType String.
Require Import Lib.StringAsOT.

Module StringString_as_OT <: OrderedType.
Definition t := (string * string)%type.
Expand Down
2 changes: 1 addition & 1 deletion Kami/Lib/Word.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Require Import Arith NArith ZArith Bool Lia.
Require Import Eqdep_dec EqdepFacts.
Require Import Program.Tactics Program.Equality.
From Coq.Program Require Import Tactics Equality.
Require Import Ring Ring_polynom.
Require Import Lia Nlia NatLib DepEq N_Z_nat_conversions.

Expand Down
8 changes: 4 additions & 4 deletions Kami/Lib/ilist.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ Set Implicit Arguments.

Set Asymmetric Patterns.

Require Import Coq.Lists.List
Coq.Strings.String
Coq.Arith.Arith Program.Equality.
From Coq Require Import List
String
Arith Equality.
Require Export Lib.VectorFacts.
Require Coq.Vectors.Vector.
From Coq Require Vector.

Set Universe Polymorphism.
Section ilist.
Expand Down
2 changes: 1 addition & 1 deletion Kami/ModuleBound.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Bool String List Arith.Peano_dec.
From Coq Require Import Bool String List Peano_dec.
Require Import Lib.FMap Lib.Struct Lib.CommonTactics Lib.Concat Lib.Indexer Lib.StringEq.
Require Import Kami.Syntax Kami.Semantics Kami.SemFacts.
Require Import Kami.Specialize Kami.Duplicate.
Expand Down
2 changes: 1 addition & 1 deletion Kami/ModuleBoundEx.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Bool String List Arith.Peano_dec.
Require Import Bool String List Peano_dec.
Require Import Lib.FMap Lib.Struct Lib.CommonTactics Lib.Concat Lib.Indexer Lib.StringEq.
Require Import Kami.Syntax Kami.Semantics Kami.SemFacts Kami.RefinementFacts.
Require Import Kami.Specialize Kami.Duplicate Kami.Notations.
Expand Down
4 changes: 2 additions & 2 deletions Kami/PartialInlineFacts.v
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Require Import Bool List String.
From Coq Require Import Bool List String.
Require Import Lib.CommonTactics Lib.Struct.
Require Import Lib.ilist Lib.Word Lib.FMap Lib.StringEq Lib.ListSupport.
Require Import Kami.Syntax Kami.Semantics Kami.SemFacts Kami.RefinementFacts Kami.Wf Kami.Inline Kami.InlineFacts.
Require Import Program.Equality FunctionalExtensionality.
From Coq Require Import Equality FunctionalExtensionality.

Import ListNotations.

Expand Down
2 changes: 1 addition & 1 deletion Kami/PrimBram.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Arith.Peano_dec Bool String List.
Require Import Peano_dec Bool String List.
Require Import Lib.Word Lib.Indexer.
Require Import Kami.Syntax Kami.Notations Kami.Semantics.
Require Import Kami.Wf Kami.Tactics.
Expand Down
2 changes: 1 addition & 1 deletion Kami/PrimFifo.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Require Import Arith.Peano_dec Bool String List.
Require Import Peano_dec Bool String List.
Require Import Lib.Indexer.
Require Import Kami.Syntax Kami.Notations Kami.Semantics.
Require Import Kami.Wf Kami.Tactics.
Expand Down
4 changes: 2 additions & 2 deletions Kami/RefinementFacts.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Require Import Bool List String Lia.
Require Import Program.Equality Program.Basics Classes.Morphisms.
From Coq Require Import Bool List String Lia.
From Coq Require Import Equality Basics Morphisms.
Require Import Lib.CommonTactics Lib.Indexer Lib.FMap Lib.Struct Lib.StringEq Lib.ListSupport.
Require Import Kami.Syntax Kami.Semantics Kami.SemFacts Kami.ModularFacts Kami.Wf.
Require Import FunctionalExtensionality.
Expand Down
2 changes: 1 addition & 1 deletion Kami/Renaming.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Require Import Lib.FMap Lib.Struct Kami.Semantics Kami.Syntax String List Kami.RefinementFacts.
Require Import Program.Equality.
From Coq Require Import Equality.

Require Import Lib.CommonTactics.

Expand Down
4 changes: 2 additions & 2 deletions Kami/SemFacts.v
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Require Import Bool String List Program.Equality Program.Basics.
Require Import FunctionalExtensionality Classes.Morphisms.
From Coq Require Import Bool String List Equality Basics.
From Coq Require Import FunctionalExtensionality Morphisms.
Require Import Lib.CommonTactics Lib.FMap Lib.Struct Lib.StringEq.
Require Import Kami.Syntax Kami.Semantics Kami.Wf.

Expand Down
6 changes: 3 additions & 3 deletions Kami/Semantics.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Require Import Bool List String Lia.
Require Import Structures.Equalities Program.Equality Eqdep Eqdep_dec.
Require Import FunctionalExtensionality.
From Coq Require Import Bool List String Lia.
From Coq Require Import Equalities Equality Eqdep Eqdep_dec.
From Coq Require Import FunctionalExtensionality.
Require Import Lib.Word Lib.CommonTactics Lib.ilist Lib.FMap Lib.StringEq Lib.VectorFacts Lib.Struct.
Require Import Kami.Syntax.

Expand Down
6 changes: 3 additions & 3 deletions Kami/Specialize.v
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Require Import Bool String List Arith.Peano_dec Lia.
From Coq Require Import Bool String List Peano_dec Lia.
Require Import Lib.FMap Lib.Struct Lib.CommonTactics Lib.Indexer Lib.StringAsList Lib.StringEq.
Require Import Kami.Syntax Kami.Semantics Kami.SemFacts Kami.RefinementFacts Kami.Renaming Kami.Wf.

Require Import FunctionalExtensionality.
Require Import Compare_dec.
From Coq Require Import FunctionalExtensionality.
From Coq Require Import Compare_dec.

Set Implicit Arguments.
Set Asymmetric Patterns.
Expand Down
2 changes: 1 addition & 1 deletion Kami/Tactics.v
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Require Import Kami.RefinementFacts Kami.Notations.
Require Import Kami.Inline Kami.InlineFacts Kami.Specialize Kami.Duplicate Kami.Substitute.
Require Import Kami.Decomposition Kami.ModuleBound Kami.ModuleBoundEx.

Require Import FunctionalExtensionality Program.Equality.
From Coq Require Import FunctionalExtensionality Equality.

Set Implicit Arguments.
Set Asymmetric Patterns.
Expand Down
4 changes: 2 additions & 2 deletions Kami/Wf.v
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Require Import Bool List String Structures.Equalities.
From Coq Require Import Bool List String Equalities.
Require Import Lib.Struct Lib.Word Lib.CommonTactics.
Require Import Lib.ilist Lib.FMap Lib.StringEq.
Require Import Kami.Syntax Kami.Semantics.
Require Import FunctionalExtensionality Program.Equality Eqdep Eqdep_dec.
From Coq Require Import FunctionalExtensionality Equality Eqdep Eqdep_dec.

Set Implicit Arguments.
Set Asymmetric Patterns.
Expand Down

0 comments on commit 3ab0943

Please sign in to comment.