Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Finding subformulas.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Finding subformulas.


chronological Thread 
  • From: Bernard Hurley<bernard AT marcade.biz>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Finding subformulas.
  • Date: Fri, 6 Apr 2012 11:59:35 +0200

Hi all,

Given code like:

==================================

Inductive Formula: Set :=
    &#952;
  | F_join: Formula -> Formula -> Formula.

Notation "x ! y"  := (F_join x y)
  (at level 20, no associativity).

===================================

Is there any way of defining a predicate Subformula so that, for instance,

(Subformula  (&#952;!&#952;)  ((&#952;!&#952;)!&#952;))) is True whereas:
(Subformula  (&#952;!(&#952;!&#952;))  ((&#952;!&#952;)!&#952;))) is False?

Intuitively the predicate can be defined inductively by:

(Subformula A B!C) <-> (Subformula A B) \/ (Subformula A C),

but I can't find any way of actually doing it coq. I think it should be fairly
obvious what I mean by a subformula. Thanks in advance for any help.

Bernard.



Archive powered by MhonArc 2.6.16.

Top of Page