<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zehnpaard</author_name>
  <author_url>https://blog.hatena.ne.jp/zehnpaard/</author_url>
  <blog_title>Arantium Maestum</blog_title>
  <blog_url>https://zehnpaard.hatenablog.com/</blog_url>
  <categories>
    <anon>OCaml</anon>
    <anon>型理論</anon>
    <anon>言語処理系</anon>
  </categories>
  <description>HM型推論にタプル型を追加していく。今回のコードはこちら。 型 タプルというのはちょっと不思議な型で、型コンストラクタとして表そうとすると「任意の数の型をとる型コンストラクタ」となる。理論上の考え方としては二つの型をとるPair型コンストラクタとUnit型を合わせて、式レベルではConsとNilでやるリストを型レベルでやっているものと同型だと見るのが良さそう。 ただし今回はPairを使った実装はしない： type ty = ... | TTuple of ty list 見てのとおり、直接「型のリスト」を持つTTupleを定義している。 式 式として追加するのはタプル値を作成するETuple式…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2022%2F11%2F06%2F230137&quot; title=&quot;Hindley Milner型推論に機能を追加していく４ Tuple型の追加 - Arantium Maestum&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-11-06 23:01:37</published>
  <title>Hindley Milner型推論に機能を追加していく４ Tuple型の追加</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2022/11/06/230137</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
