Nicolás
Nicolás

Reputation: 303

Reasoning with pattern matchings in Coq

If I have a hypothesis of the form

H: match G with
   | C x => e
   | _ => None
   end = Some T

How can I deduce G = C x ? Thanks!

Upvotes: 0

Views: 51

Answers (1)

ejgallego
ejgallego

Reputation: 6852

Please submit complete examples; likely in your case destruct G; congruence should do the trick.

Upvotes: 1

Related Questions