0
나는 하나 개의 파일 모듈 형 내가 예를 들어 WeakPairProps
에 Lemma
를 사용할 수있는 또 다른 파일 B.v
을 정의하려면 다음Coq에서 보조 정리를 사용하는 방법? <code>Weak_A</code> :
Module Type WeakPair.
...
End WeakPair.
Module WeakPairProps (Import WP : WeakPair).
Lemma Weak_A ....
End WeakPairProps.
A.v
라고 정의했다. WeakPairProps
은 모듈 유형이 아니기 때문에 WeakPairProps
에서 보조 정리를 재사용 할 수있는 모듈을 작성하는 방법을 모르겠습니다.
Module WeakPairPropsInst := WeakPairProps(WeakPairImpl).
은 이제 참조 할 수 있습니다 :
이제Module WeakPairImpl <: WeakPair.
(* stuff goes here *)
End WeakPairImpl.
당신이 펑 WeakPairProps
를 인스턴스화 할 수 있습니다 :