Coq: Stuck using the subtype

后端 未结 3 1483
我在风中等你
我在风中等你 2021-01-22 04:57

I have following definitions: (definition of positive integers as a subtype of nat)

Definition Z_pos_filter (p: nat) : bool :=
  if (beq_nat p 0) then false else         


        
3条回答
  •  半阙折子戏
    2021-01-22 05:01

    IMHO answering this question in the original form is advocating a questionable style. I think that multiplication for such numbers should be just the multiplication of the base type; and the proof should just follow from injectivity of the projection, as is done in mathcomp.

    In general, you are going to have quite a lot of problems if non-fully opaque proofs appear in your terms after reduction.

提交回复
热议问题