Skip to content

Commit b242a31

Browse files
committed
Crude fix for Parametricity tests.
1 parent f47eedc commit b242a31

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

test-suite/ListQueue.v

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Require Import Parametricity.
22

3-
Require Import List.
3+
From Stdlib Require Import List.
44
Import ListNotations.
55

66
Definition bind_option {A B} (f : A -> option B) (x : option A) :
@@ -20,10 +20,7 @@ Definition bind_option2 {A B C} (f : A -> B -> option C)
2020
Notation "'do' X , Y <- A 'in' B" := (bind_option2 (fun X Y => B) A)
2121
(at level 200, X ident, Y ident, A at level 100, B at level 200).
2222

23-
24-
25-
Require Import List.
26-
23+
From Stdlib Require Import List.
2724

2825
Record Queue := {
2926
t :> Type;

test-suite/Parametricity.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ Global Parametricity Tactic := ((destruct_reflexivity; fail)
4747
|| (destruct_reflexivity_with_nat_arg_pattern; fail)
4848
|| auto).
4949

50-
51-
Require Import ProofIrrelevance. (* for opaque terms *)
50+
Axiom proof_irrelevance : forall (P:Prop) (p1 p2:P), p1 = p2.
51+
Register proof_irrelevance as core.proof_irrelevance. (* for opaque terms *)
5252

5353
Set Allow StrictProp. (* TODO: use SProp instead of ProofIrrelevance *)
5454

0 commit comments

Comments
 (0)