I would like to systematically remove all double negations which can appear in my hypotheses and goals. I know that ~~A -> A
is not a part of intuitionist logic, but the course I am taking is classical, so I don't mind.
I am aware that the mentioned axiom can be accessed by Coq.Logic.Classical_Prop.NNPP
but this axiom doesn't help removing double negation from more complex sentences such as say
H : ~ ~ A \/ (B /\ ~ C)
Preferably I would like to be able to apply a Ltac tactic to H
so it would transform into
H1 : A \/ (B /\ ~C)
.
Any help writing such a tactic or any other suggestions are much appreciated.