We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 834323a commit cb1d2bfCopy full SHA for cb1d2bf
apps/derive/tests/test_derive.v
@@ -168,3 +168,15 @@ Check Kwi _ (refl_equal 3).
168
From Coq Require Ascii.
169
170
#[only(param2)] derive Ascii.ascii.
171
+
172
+(* #407 *)
173
+Definition is_zero (n:nat) := match n with O => true | _ => false end.
174
+derive is_zero.
175
176
+Inductive toto1 := | Toto1 : forall n, unit -> is_zero n = true -> toto1.
177
+Inductive toto2 := | Toto2 : forall n, is_zero n = true -> unit -> toto2.
178
+Inductive toto3 := | Toto3 : unit -> forall n, is_zero n = true -> toto3.
179
180
+#[only(param1_trivial)] derive toto1.
181
+#[only(param1_trivial)] derive toto2.
182
+#[only(param1_trivial)] derive toto3.
0 commit comments