Decomposing equality of constructors coq

前端 未结 2 486
离开以前
离开以前 2021-01-18 10:54

Often in Coq I find myself doing the following: I have the proof goal, for example:

some_constructor a c d = some_constructor b c d

And I r

2条回答
  •  旧巷少年郎
    2021-01-18 11:50

    In particular, standard Coq provides the f_equal tactic.

    Inductive u : Type := U : nat -> nat -> nat -> u.
    
    Lemma U1 x y z1 z2 : U x y z1 = U x y z2.
    f_equal
    

    Also, ssreflect provides a general-purpose congruence tactic congr.

提交回复
热议问题