From: John Max Skaller <skaller@ozemail.com.au>
To: Alain Frisch <frisch@clipper.ens.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] equi-recursive Fold isomorphism
Date: Sun, 28 Jul 2002 11:45:39 +1000 [thread overview]
Message-ID: <3D434CC3.6030508@ozemail.com.au> (raw)
In-Reply-To: <Pine.SOL.4.44.0207272131260.18652-100000@clipper.ens.fr>
Alain Frisch wrote:
>My Recursive module uses the same technique; it may do what you want:
>http://www.eleves.ens.fr:8080/home/frisch/soft#recursive
>
Thanks!
Hmmm: Ocaml 3.04+15 with -rectypes
# let rec x = (1,(1,(1,x)));;
val x : int * (int * (int * 'a)) as 'a =
....
Seem like Ocaml doesn't minimise the type, but:
let rec y = (1,y);;
x = y;;
Works correctly (so it knows the two types are comparable).
Interestingly, the answer is false: both data structures
consist of an infinite stream of 1's, represented by
cycles of distinct lengths. No item by item comparison
could reveal any distinction: the infinite tree expansions
of the data structures are the same. Is Ocaml's answer correct?
--
John Max Skaller, mailto:skaller@ozemail.com.au
snail:10/1 Toxteth Rd, Glebe, NSW 2037, Australia.
voice:61-2-9660-0850
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-07-28 1:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-27 17:32 John Max Skaller
2002-07-27 19:43 ` Alain Frisch
2002-07-28 1:45 ` John Max Skaller [this message]
2002-07-28 20:14 ` Alain Frisch
2002-08-01 14:49 ` [Caml-list] Question about distribution John Max Skaller
2002-08-01 15:48 ` Xavier Leroy
2002-08-03 17:34 ` Daniel de Rauglaudre
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=3D434CC3.6030508@ozemail.com.au \
--to=skaller@ozemail.com.au \
--cc=caml-list@inria.fr \
--cc=frisch@clipper.ens.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