Skip to Content.
Sympa Menu

coq-club - [Coq-Club]Implicit Arguments

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club]Implicit Arguments


chronological Thread 
  • From: Line Jakubiec-Jamet <jakubiec AT lif.univ-mrs.fr>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club]Implicit Arguments
  • Date: Fri, 17 Nov 2006 17:07:16 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

   Hello,

I have a question about the synthesis of implicit parameters
in the case of a coercion. Suppose we have the following declarations:

  Parameters (A A1 : Prop) (A1_A : A1->A).
  Coercion A1_A:A1>->A.
  Parameters (P:A->Prop) (P1:A1->Prop).

We can define :

  Definition test1 := exists x, P1(x) /\ P(x).  (* x:A1 inferred *)

But the following definition fails (more exactly the synthesis
of the implicit parameter is not the one that I want):

Definition test2 := exists x, P(x) /\ P1(x). (* x:A inferred and so P1(x) is not typable*)

In order to avoid this problem, is there an easy way to infer automatically the right type?


Thanks for help,

 Line



--
(**********************************************************)
(* Line Jakubiec-Jamet                                    *)
(* Laboratoire d'Informatique Fondamentale de Marseille   *)
(* Université de la Méditerranée (Aix-Marseille II)       *)
(* Faculté des Sciences de Luminy                         *)
(* 163, Avenue de Luminy                                  *)
(* 13288 - MARSEILLE Cedex 9                              *)
(**********************************************************)





Archive powered by MhonArc 2.6.16.

Top of Page