Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Question about mutual inductive definition with fixpoint

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Question about mutual inductive definition with fixpoint


Chronological Thread 
  • From: Ilmārs Cīrulis <ilmars.cirulis AT gmail.com>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Question about mutual inductive definition with fixpoint
  • Date: Tue, 16 Feb 2016 19:38:27 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=ilmars.cirulis AT gmail.com; spf=Pass smtp.mailfrom=ilmars.cirulis AT gmail.com; spf=None smtp.helo=postmaster AT mail-yw0-f173.google.com
  • Ironport-phdr: 9a23:jWIjthyhIFty9N7XCy+O+j09IxM/srCxBDY+r6Qd0ewSIJqq85mqBkHD//Il1AaPBtWEra4fwLuL+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStGU05/8hr360qaQSjsLrQL1Wal1IhSyoFeZnegtqqwmFJwMzADUqGBDYeVcyDAgD1uSmxHh+pX4p8Y7oGwD884mooRLVry/dKAlR5RZCi4nOiY7/oej4RLEVE6E4mYWemQQiBtBRQbfukLURJD05wr+s0Fnw2GxPNfrSbEvEWCj66JiUgSugyYdKjo460nYj8VxiORQpxf39E83+JLdfIzAbKk2RajaZ95PHWc=

// Somehow I wrote answer but it got lost and wasn't send.
 
Thank you, but this isn't good enough. If my idea isn't possible, then I will simply write inductive definition of Term, then Fixpoint on it (smth like term_is_correct) and use it inside type { T | term_is_correct T}. 
But it would be unsatisfying for me. Because I need only correct Term instances (with correct bindings inside of them) and have no use for incorrect ones. :|
 
If such mutual definition - of an inductive type which uses (in definition) a fixpoint defined on it - isn't possible in Coq, I will, of course, accept it and use sigma type.



Archive powered by MHonArc 2.6.18.

Top of Page