【发布时间】:2018-11-24 20:36:10
【问题描述】:
我正在尝试使用以下语法定义一个名为 isVector 的实体
Require Export Setoid.
Require Export Coq.Reals.Reals.
Require Export ArithRing.
Definition Point := Type.
Record MassPoint:Type:= cons{number : R ; point: Point}.
Variable add_MP : MassPoint -> MassPoint -> MassPoint .
Variable mult_MP : R -> MassPoint -> MassPoint .
Variable orthogonalProjection : Point -> Point -> Point -> Point.
Definition isVector (v:MassPoint):= exists A, B :Point , v= add_MP((−1)A)(1B).
Coq IDE 一直抱怨定义存在语法错误。目前,我还没有弄明白。
【问题讨论】:
标签: coq exists definition