问题描述
我有一个参数关系 NAME
google
PACKAGE CONTENTS
protobuf (package)
,每当两者都与相同的参数一起使用时,我想在谓词 myeq
下重写它。如果我声明适当的态射,它会很好地工作:
P
然而,当我尝试应用一个函数时它停止工作,甚至注册为 From Coq Require Import Setoid Morphisms.
Parameter A B : Type.
Parameter myeq : A -> relation B.
Add Parametric Relation (a : A) : B (myeq a) as myeq_rel.
Parameter P : A -> B -> Prop.
Add Parametric Morphism (a : A) : (P a)
with signature (myeq a) ==> iff as P_morphism.
Admitted.
Lemma test1 b1 b2 :
(forall a,myeq a b1 b2) ->
exists a,P a b1.
Proof.
intro.
setoid_rewrite H. (* OK *)
Abort.
的态射:
myeq
我是不是忘记申报什么了?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)