Skip to content

Commit 448af51

Browse files
authored
Merge pull request Mtac2#428 from proux01/rocq21851
Adapt to rocq-prover/rocq#21851
2 parents 4c3ae6a + c4f5292 commit 448af51

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+97
-108
lines changed

examples/basics_tutorial.v

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ Import M.notations.
4747
(** In addition, we import a couple of modules from the standard
4848
library that we are going to use in some examples. *)
4949

50-
Require Import Arith.Arith.
51-
Require Import Lists.List.
52-
Require Import Strings.String.
50+
From Stdlib Require Import Arith List String.
5351

5452
Set Implicit Arguments.
5553
Notation "x == y" := (Nat.eqb x y) (at level 60).

examples/tactics.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Require Import Mtac2.Mtac2.
2121
Import T.
2222

2323
(** We're going to prove stuff about lists. *)
24-
Require Import Lists.List.
24+
From Stdlib Require Import List.
2525
Import Lists.List.ListNotations.
2626

2727
(** A simple example to warm up. *)

examples/tauto.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
From Mtac2 Require Import Mtac2 Ttactics Sorts.
2-
From Coq Require Import List.
2+
From Stdlib Require Import List.
33
Import M.notations.
44
Import M.
55
Import ListNotations.

src/constrs.ml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ end
218218
module CoqPositive = struct
219219
open Constrs
220220

221-
let xI = mkGlobal "Coq.Numbers.BinNums.xI"
222-
let xO = mkGlobal "Coq.Numbers.BinNums.xO"
223-
let xH = mkGlobal "Coq.Numbers.BinNums.xH"
221+
let xI = mkGlobal "Corelib.Numbers.BinNums.xI"
222+
let xO = mkGlobal "Corelib.Numbers.BinNums.xO"
223+
let xH = mkGlobal "Corelib.Numbers.BinNums.xH"
224224

225225
let isH env sigma = isGlobal env sigma xH
226226
let isI env sigma = isGlobal env sigma xI
@@ -255,9 +255,9 @@ end
255255

256256
module CoqN = struct
257257
open Constrs
258-
(* let tN = Constr.mkConstr "Coq.Numbers.BinNums.N" *)
259-
let h0 = mkGlobal "Coq.Numbers.BinNums.N0"
260-
let hP = mkGlobal "Coq.Numbers.BinNums.Npos"
258+
(* let tN = Constr.mkConstr "Corelib.Numbers.BinNums.N" *)
259+
let h0 = mkGlobal "Corelib.Numbers.BinNums.N0"
260+
let hP = mkGlobal "Corelib.Numbers.BinNums.Npos"
261261

262262
let is0 env sigma = isGlobal env sigma h0
263263
let isP env sigma = isGlobal env sigma hP
@@ -290,9 +290,9 @@ end
290290
module CoqZ = struct
291291
open Constrs
292292

293-
let z0 = mkGlobal "Coq.Numbers.BinNums.Z0"
294-
let zpos = mkGlobal "Coq.Numbers.BinNums.Zpos"
295-
let zneg = mkGlobal "Coq.Numbers.BinNums.Zneg"
293+
let z0 = mkGlobal "Corelib.Numbers.BinNums.Z0"
294+
let zpos = mkGlobal "Corelib.Numbers.BinNums.Zpos"
295+
let zneg = mkGlobal "Corelib.Numbers.BinNums.Zneg"
296296

297297
let to_coq n =
298298
if n = 0 then
@@ -306,9 +306,9 @@ end
306306
module CoqBool = struct
307307
open ConstrBuilder
308308

309-
let boolBuilder = from_string "Coq.Init.Datatypes.bool"
310-
let trueBuilder = from_string "Coq.Init.Datatypes.true"
311-
let falseBuilder = from_string "Coq.Init.Datatypes.false"
309+
let boolBuilder = from_string "Corelib.Init.Datatypes.bool"
310+
let trueBuilder = from_string "Corelib.Init.Datatypes.true"
311+
let falseBuilder = from_string "Corelib.Init.Datatypes.false"
312312

313313
let mkType = build boolBuilder
314314
let mkTrue = build trueBuilder
@@ -326,7 +326,7 @@ end
326326
module CoqAscii = struct
327327
open ConstrBuilder
328328

329-
let asciiBuilder = from_string "Coq.Strings.Ascii.Ascii"
329+
let asciiBuilder = from_string "Stdlib.Strings.Ascii.Ascii"
330330

331331
let from_coq (env, sigma) c =
332332
let (h, args) = decompose_appvect sigma c in
@@ -347,8 +347,8 @@ end
347347
module CoqString = struct
348348
open ConstrBuilder
349349

350-
let emptyBuilder = from_string "Coq.Strings.String.EmptyString"
351-
let stringBuilder = from_string "Coq.Strings.String.String"
350+
let emptyBuilder = from_string "Stdlib.Strings.String.EmptyString"
351+
let stringBuilder = from_string "Stdlib.Strings.String.String"
352352

353353
exception NotAString
354354

@@ -383,8 +383,8 @@ end
383383
module CoqUnit = struct
384384
open ConstrBuilder
385385

386-
let unitBuilder = from_string "Coq.Init.Datatypes.unit"
387-
let ttBuilder = from_string "Coq.Init.Datatypes.tt"
386+
let unitBuilder = from_string "Corelib.Init.Datatypes.unit"
387+
let ttBuilder = from_string "Corelib.Init.Datatypes.tt"
388388

389389
let mkType = build unitBuilder
390390
let mkTT = build ttBuilder

tests/ConstrSelector.v

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ MProof.
3434
select (_ = _) >>= rrewrite ;; reflexivity.
3535
Qed.
3636

37-
Require Import Coq.Arith.Arith.
38-
Require Import Coq.Arith.EqNat.
37+
From Stdlib Require Import Arith EqNat.
3938

4039
Inductive id : Type :=
4140
| Id : nat -> id.
@@ -147,7 +146,7 @@ Inductive ceval : com -> state -> state -> Prop :=
147146

148147
where "c1 '/' st '\\' st'" := (ceval c1 st st').
149148

150-
Require Import Strings.String.
149+
From Stdlib Require Import String.
151150

152151
Definition remember {A} (x:A) (def eq : string) : tactic :=
153152
cpose_base (TheName def) x (fun y:A=>

tests/DepDestruct.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,18 +193,18 @@ Abort.
193193
End ExampleReflect.
194194

195195
Set Unicoq Try Solving Eqn.
196-
Require Vector.
196+
From Stdlib Require Vector.
197197
Module VectorExample.
198198
Import Vector.
199-
Goal forall n (v : t nat n), n = Coq.Lists.List.length (to_list v).
199+
Goal forall n (v : t nat n), n = Stdlib.Lists.List.length (to_list v).
200200
Proof.
201201
pose (it := iTele (fun n => @iBase (Typeₛ) (t nat n))).
202202
pose (vnil := ((@cBase Typeₛ it (aTele 0 aBase) (nil nat))) : CTele it).
203203
pose (vcons := (cProd (fun a => cProd (fun n => cProd (fun (v : t nat n) => (@cBase Typeₛ it (aTele (S n) aBase) (cons _ a _ v)))))) : CTele it).
204204
fix f 2.
205205
intros n v.
206206
pose (a := (aTele n (aBase)) : ATele it).
207-
pose (rt := M.eval (abstract_goal (rsort := Propₛ) (n = Coq.Lists.List.length (to_list v)) a v)).
207+
pose (rt := M.eval (abstract_goal (rsort := Propₛ) (n = Stdlib.Lists.List.length (to_list v)) a v)).
208208
simpl in vcons.
209209
cbn beta iota zeta delta -[RTele] in rt.
210210
assert (N : branch_of_CTele rt vnil).

tests/Exhaustive.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Require Import Strings.String.
1+
From Stdlib Require Import String.
22
From Mtac2 Require Import Base List Exhaustive.
33
Import M.notations.
44

tests/UnivSanityCheck.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Import M.notations.
44

55
Print Universes "universes-mtac2.txt".
66
Import M.
7-
Require Import Coq.Numbers.BinNums.
8-
Require Import Strings.String.
7+
From Corelib Require Import BinNums.
8+
From Stdlib Require Import String.
99

1010
Definition file := "universes-mtac2.txt".
1111
Definition magic_number := "0".

tests/abs.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
From Mtac2
22
Require Export Mtac2.
33

4-
Require Import Strings.String.
4+
From Stdlib Require Import String.
55

6-
Require Import Lists.List.
6+
From Stdlib Require Import List.
77
Import ListNotations.
88

99
Definition assert_eq {A} (a b : A) : M True := mmatch b with a => M.ret I | _ => M.raise exception end.

tests/bugs.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
From Mtac2 Require Import Logic Datatypes Mtac2.
22

3-
Require Import Bool.Bool.
3+
From Stdlib Require Import Bool.
44
Import T.
55

66
(** A bug with destruct *)

0 commit comments

Comments
 (0)