Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Help prooving that string_dec is symmetric

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Help prooving that string_dec is symmetric


Chronological Thread 
  • 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



Archive powered by MHonArc 2.6.18.

Top of Page