Remix.run Logo
▲ rrook 5 hours ago

I'd boil away all of the article's thoughts on "object" vs "meta" languages, and instead point out that all languages are expression of graphs. Once the language is built from this perspective, object language and meta language (using the articles terms) can exist happily together. This is actually the core thesis of my language project; all computation is situated in a global hypergraph.

▲danilafe 5 hours ago | parent [-]

Say more! I'm familiar with expression graphs, and I know languages that are built on this, but it's not clear to me how this applies to formal proofs. Do you have more details?

▲rrook 5 hours ago | parent [-]

Imagine like a graph with typed edges:

A ──f──> B ──g──> C

Any single proof can first be thought of as proving an assertion about the graph. "There exists a path from A to C that traverses g." From there, the proof is bog standard graph maths.

In the abstract, all expressions of logic are graphs, like...statements of graph state, mutation, comparison, relation, differentiation, etc. An expression of language can be an incomplete expression of a graph, and other expressions can fill in the missing pieces or assert things about it. The language can express both the computation and the logic we use to reason about that computation.

In a sense, proof languages typically operate this way. They build a graph, assert something about it, and prove it in the mathy-graphy-sense. Mainstream programming languages have not yet put the graph structures front-and-center in the language design, and in the gap between the two we feel friction.

▲soulofmischief 4 hours ago | parent [-]

Nice, I'm also doing this to a degree with the language I've been building over the last year, proving as many facts as I can about the structure of the code, but my goal is to empower the compiler while allowing for terse, ergonomic code. Formal verification is in the back of my mind, but it isn't a language goal at this time. Instead, I'm focusing on more narrow validation, adopting Rust's "if it compiles it probably runs" ethos.