Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Question about proof with single negation and equality

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Question about proof with single negation and equality


Chronological Thread 
  • From: Arnaud Spiwack <aspiwack AT lix.polytechnique.fr>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Question about proof with single negation and equality
  • Date: Tue, 22 Jul 2014 12:20:30 +0200


It is indeed provable if you suppose decidability of equality on C. I
don't know if there is a weaker suitable supposition.

Of course there is: namely the asserion that [c=c'] is negative. Now, this is quite beyond the stage of nitpicking. But it's fairly generic too: classical reasoning is valid on negative formulæ. For weaker principle may be possible to force them without going full negative (though I'm not the right person to ask how). But here, we need full-blown double negation elimination, so this is, I assume, optimal.

Variable C N: Set.
Variable F: C-> N.
Axiom A: forall c c': C, (~ (c = c')) <-> (~ (F c = F c')).
Axiom Ceqneg: forall c c':C, ~~ c=c' -> c=c'.

Theorem T: forall (n: N) (c: C), F c = n -> forall c': C, F c' = n -> c = c'.
Proof.
  intros * <- * h.
  apply Ceqneg. intros hc.
  apply -> A.
  + exact hc.
  + symmetry. exact h.
Qed.




Archive powered by MHonArc 2.6.18.

Top of Page