<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: omegafixedpoint</title><link>https://news.ycombinator.com/user?id=omegafixedpoint</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sun, 07 Jun 2026 21:41:34 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=omegafixedpoint" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by omegafixedpoint in "Yon – a topos-oriented language with a content-addressed lattice heap"]]></title><description><![CDATA[
<p>A few notes, because this is obviously vibe coded, and does not work in many ways.<p>1. Yon's documentation mentions "Homotopy type theory:"<p><pre><code>  > the runnable HoTT fragment is refl/pair/fst/snd

  These are basic features of martin-lof type theory, not homotopy type theory. The documentation makes no reference of an interval type, which is generally the way to go for decidable type-checking in HoTT without univalence as an opaque axiom.
  
  Pi types are mentioned, but Yon does not have dependent types. From what I can tell, they are polymorphic, maybe even just simply-typed (except for identity types under Pi). See here in the repo: https://github.com/yon-language/yon/blob/523e363a4a00e8da1410a2521b1d7d1309d360ce/frontend/ast.ml#L37
  The datatype Ty only refers to other Ty's. Thus, it is not dependent. Terms cannot appear in types. Pi is explicitly indexed by a type defining its domain and codomain. A pi type is not a pi type if its codomain cannot depend on its domain.
</code></pre>
2. Normalization can fail in Yon.
  Yon's docs say that its universe of propositions has booleans (<a href="https://yon-lang.org/book/heyting-core?_highlight=prop" rel="nofollow">https://yon-lang.org/book/heyting-core?_highlight=prop</a>). It also says its logic is intuitionistic (AKA, constructive). However, it also says the logical connectives on booleans are CLASSICAL. This implies law of excluded middle, which is NOT constructive without careful sandboxing (e.g., Linear logic).<p><pre><code>  Yon dangerously allows propositions to be lifted to booleans. If I am interpreting correctly (docs are very vague), this means propositions can be lifted to terms. This causes an obvious failure of normalization due to assumed proof irrelevance (otherwise Prop would not be distinguished) (also see Coquand's paper on this https://arxiv.org/abs/1911.08174).
</code></pre>
3. Yon's type definitional equality does not actually reduce types.
  See here. This is the function used by the type-checker to check if types are equal. <a href="https://github.com/yon-language/yon/blob/523e363a4a00e8da1410a2521b1d7d1309d360ce/frontend/catt_r_yon.ml#L436" rel="nofollow">https://github.com/yon-language/yon/blob/523e363a4a00e8da141...</a>
  No reduction actually occurs, conveniently because none of the types actually contain terms (that is, it is simply typed).<p><pre><code>  Yon claims to be dependently-typed. See this in the repo: https://github.com/yon-language/yon/blob/523e363a4a00e8da1410a2521b1d7d1309d360ce/frontend/ast.ml#L21
  > Types in Yon Core kernel — the small dependent type theory used for the operational semantics.

  Suppose I'm reading the source code wrong. Conveniently, the comment one line below reveals, once again, that the "type theory" is simply-typed:

  >  *   T, U ::= Type_n                            universe of level n
  >  *         |  Pi(x:T). U                         dependent function

  Pi types eliminate into a FIXED type that does not depend on x. This means there is also no purpose for having a universe hierarchy.

  To confirm, I scoured the docs a bit for any examples using Pi types or Sigma types. I searched the docs, and could not find any, besides this example:
</code></pre>
> world W { Code is X }<p>> place Account in W { balance number }<p>> fun takes_sub(s: { a : Account where Pi(x: Account). Pi(y: Account). Id(Account, x, y) }): number { return 0 }<p>> fun main(): number { return 0 }<p>Notably, the identity is the only constructor for Ty indexed by a term. That is, Pi types can ONLY eliminate into the identity. What if I want my Pi type to eliminate into anything else living in Prop? e.g., an existential like \forall (x : Nat), \exists (y : Nat), x < y. Unfortunately impossible in Yon.<p>This project is clearly produced by AI, and clearly dangerously incorrect. Do not use this for anything serious.</p>
]]></description><pubDate>Sun, 07 Jun 2026 16:08:17 +0000</pubDate><link>https://news.ycombinator.com/item?id=48436170</link><dc:creator>omegafixedpoint</dc:creator><comments>https://news.ycombinator.com/item?id=48436170</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48436170</guid></item></channel></rss>