Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Polymorphic in number of arguments

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Polymorphic in number of arguments


chronological Thread 
  • From: Paolo Herms <paolo.herms AT cea.fr>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Polymorphic in number of arguments
  • Date: Tue, 17 Apr 2012 10:09:09 +0200

Hello,
any ideas of how to generalise this sequence, ie. define Tn?

Definition T0
  (A: Type)
  (f: option (A))
  :=
  { x : (A) | f  = Some x }.

Definition T1
  (A: Type)
  (B: forall (a:A), Type)
  (f: forall (a:A), option (B a))
  (a:A) :=
  { x : (B a) | f a  = Some x }.

Definition T2
  (A: Type)
  (B: forall (a:A), Type)
  (C: forall (a:A) (b: B a), Type)
  (f: forall (a:A) (b: B a), option (C a b))
  (a:A) (b: B a) :=
  { x : (C a b) | f a b  = Some x }.

Definition T3
  (A: Type)
  (B: forall (a:A), Type)
  (C: forall (a:A) (b: B a), Type)
  (D: forall (a:A) (b: B a) (c: C a b), Type)
  (f: forall (a:A) (b: B a) (c: C a b), option (D a b c))
  (a:A) (b: B a) (c: C a b) :=
  { x : (D a b c) | f a b c  = Some x }.

Thanks in advance,
-- 
Paolo Herms
PhD Student - CEA Software Safety Lab. / Inria ProVal project-team
Paris, France





Archive powered by MhonArc 2.6.16.

Top of Page