Skip to content

Commit

Permalink
fix set universe poly
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenCyril committed Oct 7, 2024
1 parent 2aa9842 commit 673a837
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion _CoqProject
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ examples/summable.v
examples/trocq_setoid_rewrite.v
examples/Vector_tuple.v
examples/misc.v
examples/nat_ind.v
examples/nat_ind.v
examples/list_option.v
5 changes: 4 additions & 1 deletion examples/list_option.v
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ From Coq Require Import ssreflect.
From Trocq Require Import Trocq.
From Trocq Require Import Param_trans Param_list.

Set Universe Polymorphism.

Definition option_to_list {A : Type} (xo : option A) : list A :=
match xo with
| None => nil
Expand Down Expand Up @@ -105,5 +107,6 @@ Qed.
Goal forall A B C (xo : option A) (f : A -> B) (g : B -> C),
omap g (omap f xo) = omap (fun x => g (f x)) xo.
Proof.
trocq. apply map_compose.
trocq.
apply map_compose.
Qed.

0 comments on commit 673a837

Please sign in to comment.