<?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>
  </categories>
  <description>前回に続いてA正規化の話。前回のミニマルな言語にブール型とifによる条件分岐を加える。実は条件分岐の正しいA正規化に関しては曖昧性があるようなので、後半はその話。 言語拡張 ASTに以下を追加： type t = ... | Bool of bool ... | Lt of t * t ... | If of t * t * t Ltは「未満」。(if (&lt; x 5) 5 x))のような形で使う。 α変換は簡単： let rec g env e = match e with ... | A.Bool _ -&gt; e ... | A.Lt(e1,e2) -&gt; A.Lt(g env e1, g en…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2022%2F03%2F14%2F013607&quot; title=&quot;条件分岐のある言語のA正規化 - 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-03-14 01:36:07</published>
  <title>条件分岐のある言語のA正規化</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2022/03/14/013607</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
