<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>AI4MAth on Docs</title><link>https://hiraethecho.github.io/docs/ai/ai4math/</link><description>Recent content in AI4MAth on Docs</description><generator>Hugo --0.165.0</generator><language>en</language><managingEditor>wyz2016zxc@outlook.com(Hiraeth)</managingEditor><webMaster>wyz2016zxc@outlook.com(Hiraeth)</webMaster><atom:link href="https://hiraethecho.github.io/docs/ai/ai4math/index.xml" rel="self" type="application/rss+xml"/><item><title>C for Math</title><link>https://hiraethecho.github.io/docs/ai/ai4math/c4math/</link><pubDate>Wed, 26 Aug 2026 00:00:00 +0000</pubDate><author>wyz2016zxc@outlook.com(Hiraeth)</author><guid>https://hiraethecho.github.io/docs/ai/ai4math/c4math/</guid><description>用 C 语言的思路设计数学研究方式</description><content:encoded><![CDATA[<h1 id="between-natural-language-and-codes">
  <a class="anchor inpage" href="#between-natural-language-and-codes">#</a>Between Natural Language and Codes</h1>
<p>计算机领域有一条名言：没有什么问题是加一个中间层解决不了的，如果有，就再加一条。</p>
<p>AI4Math 的问题是，AI 直接写 lean4 代码，人看不懂；直接写自然语言（包括用自然语言推理），太多幻觉，即使 convience 了人类，也可能出错。
一方面，需要让结果能被人理解；另一方面，要能翻译到形式化验证。</p>
<p>加一个中间层，一个伪代码风格的，更简单直接的内容。</p>
<p>它应该是一种协议，一个定理/引理/命题的格式，但是并非代码格式，要更宽松一些。
能更好地被人以自然语言风格理解，这同样意味着能被 LLM 思考。<br>
另一方面，这个<em>伪</em>代码应该有严格的部分，使得它依然可以有 lsp treesitter，来初步保证正确性。
一个命题是形如 $A \implies B$ 的格式，把它看作函数，有输入和输出（都是statement），这个结构就像 C 语言的函数，对输入的格式有要求，函数本身的输出也有要求。</p>
]]></content:encoded></item></channel></rss>