coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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 :=
θ
| 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 (θ!θ) ((θ!θ)!θ))) is True whereas:
(Subformula (θ!(θ!θ)) ((θ!θ)!θ))) 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.
- [Coq-Club] Finding subformulas., Bernard Hurley
- Re: [Coq-Club] Finding subformulas.,
gallais @ ensl.org
- Re: [Coq-Club] Finding subformulas., Bernard Hurley
- Re: [Coq-Club] Finding subformulas.,
gallais @ ensl.org
Archive powered by MhonArc 2.6.16.