From: Keiko Nakata <keiko@kurims.kyoto-u.ac.jp>
To: Alain.Frisch@inria.fr
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Recursive types
Date: Wed, 16 Nov 2005 16:40:48 +0900 (JST) [thread overview]
Message-ID: <20051116.164048.68541720.keiko@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <437AD616.7060006@inria.fr>
From: Alain Frisch <Alain.Frisch@inria.fr>
>
> The restriction ensures that structural recursive types are necessarily
> regular. So standard coinductive algorithms (implemented by keeping
> track of visited nodes or by memoization) are ok.
Thanks for the reply.
I think that it is not easy to know when to apply eta-expansion,
namely, to replace a type name with its underlying definition.
For instance, to check equivalence betweeen the types t and s below:
type t = < m : t * t >
type 'a tuple = 'a * 'a
type s = < m : s tuple >
the algorithm should memorize that t * t and s tuple are equivalent,
and then expands s tupl into s * s
so as to check between t * t and s * s?
When type abbreviations are more verobse as in
type 'a id = 'a
type 'a tuple = 'a id * 'a id
type u = < m : < m : u tuple> * < m : u tuple> >
it seems difficult to know when to memorize in what representations
and when to eta-expand by the definitions.
I know easy standard coinductive algorithms found in textbooks,
but how to handle abbreviations is still unclear for me.
With best regards,
Keiko.
next prev parent reply other threads:[~2005-11-16 7:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050506044107.1698.70519.Mailman@yquem.inria.fr>
2005-11-15 22:44 ` Swaroop Sridhar
2005-11-15 23:40 ` [Caml-list] " Jacques Garrigue
2005-11-16 2:20 ` Keiko Nakata
2005-11-16 6:47 ` Alain Frisch
2005-11-16 7:40 ` Keiko Nakata [this message]
2005-11-16 8:55 ` Jacques Garrigue
2005-11-17 1:45 ` Keiko Nakata
2005-11-16 3:28 ` Swaroop Sridhar
2005-11-16 8:38 ` Jacques Garrigue
2005-11-16 23:00 ` Swaroop Sridhar
2005-11-16 23:56 ` Swaroop Sridhar
2008-03-24 3:16 recursive types Jacques Le Normand
2008-03-24 3:51 ` [Caml-list] " Erik de Castro Lopo
2008-03-24 3:51 ` Erik de Castro Lopo
2008-03-24 8:37 ` Jeremy Yallop
-- strict thread matches above, loose matches on Subject: below --
2004-12-13 9:44 nakata keiko
2004-12-13 9:58 ` [Caml-list] " Damien Pous
2004-12-13 12:31 ` skaller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051116.164048.68541720.keiko@kurims.kyoto-u.ac.jp \
--to=keiko@kurims.kyoto-u.ac.jp \
--cc=Alain.Frisch@inria.fr \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox