coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Saulo Araujo <saulo2 AT gmail.com>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Help prooving that string_dec is symmetric
- Date: Sun, 25 Jan 2015 13:03:39 -0300
Hi,
I am trying to prove the following theorem:
Definition strEq x y := if string_dec x y then true else false.
Theorem strEq_t1 :
forall s s',
strEq s s' = true -> strEq s' s = true.
My best attempt at prooving it is below:
Proof.
unfold strEq.
intros.
destruct (string_dec s s').
assert (s' = s).
symmetry.
trivial.
rewrite H0.
But now I need to prove that string_dec is reflexive.
Could someone help me proving it?
Thanks in advance,
Saulo
- [Coq-Club] Help prooving that string_dec is symmetric, Saulo Araujo, 01/25/2015
- Re: [Coq-Club] Help prooving that string_dec is symmetric, Adam Chlipala, 01/25/2015
- Re: [Coq-Club] Help prooving that string_dec is symmetric, Saulo Araujo, 01/25/2015
- Re: [Coq-Club] Help prooving that string_dec is symmetric, Adam Chlipala, 01/25/2015
Archive powered by MHonArc 2.6.18.