How far can proofs and Code verification go to specify business logic?
Strata's (https://t.co/Al3NseNbPV) bet: pretty far.
1/ We already build our code in the shape of business logic: That was the promise of OOP to a large extent, shape your program like the world.
Strata (https://t.co/Xb9o9RCy82) is a programming language designed for agents on which Anas who interned with us is working: algebraic types, composition, structured concurrency, and contracts proved by SMT solvers or proof tactics.
This domain is my soft spot, find it fascinating. Will we prove all the code we write? My current thinking / questions:
(i) Yes, we need a simple language that is easy to prove, by setting aside human preferences and assuming agents can work harder. That’s what Strata is exploring. Great!
(ii) The big challenge in formalizing the spec is finding a way to ensure that, for “business” theorems[0], the theorem does not require as much complexity as the code itself, or even more. I don’t have an answer to that.
We're experimenting at Dust with https://t.co/JTIEGBvIB1 (keeping contracts informal for that reason) but there must be a solution to go formal?
[0] Note that some theorems like security theorems are easy to sate, like "there is no overflow here"... but defining business theorems I suspect takes more code than the code you want to prove today :/
@ifigueroap@spolu No, this is the second language I've discovered after-the fact that has the same name, I guess this is a common name in this space? The other is a lean-project called strata in the same space https://t.co/FV85UmOf16
@spolu@ifigueroap Uhh I have run a large recursive `grep` on the whole codebase and website and nowhere does it mention PHP... I don't know if you maybe misread there @ifigueroap 😅 Strata compiles to LLVM IR which then uses the LLVM toolchain to compile to a range of different architectures
6/ This allows us to not only explicit our assumptions (know what we trust and what we don't), but to still have a very expressive language to write a lot of constraints. Most of all this is all written in Strata, we can fully trust that code corresponds to what is being proven.
How far can proofs and Code verification go to specify business logic?
Strata's (https://t.co/Al3NseNbPV) bet: pretty far.
1/ We already build our code in the shape of business logic: That was the promise of OOP to a large extent, shape your program like the world.
Strata (https://t.co/Xb9o9RCy82) is a programming language designed for agents on which Anas who interned with us is working: algebraic types, composition, structured concurrency, and contracts proved by SMT solvers or proof tactics.
This domain is my soft spot, find it fascinating. Will we prove all the code we write? My current thinking / questions:
(i) Yes, we need a simple language that is easy to prove, by setting aside human preferences and assuming agents can work harder. That’s what Strata is exploring. Great!
(ii) The big challenge in formalizing the spec is finding a way to ensure that, for “business” theorems[0], the theorem does not require as much complexity as the code itself, or even more. I don’t have an answer to that.
We're experimenting at Dust with https://t.co/JTIEGBvIB1 (keeping contracts informal for that reason) but there must be a solution to go formal?
[0] Note that some theorems like security theorems are easy to sate, like "there is no overflow here"... but defining business theorems I suspect takes more code than the code you want to prove today :/
5/ This works for external code as well, Strata can import Python, Rust, C, and TypeScript code, and by expressing our *assumptions* on their code, we can prove everything that depends on it on our side to be correct.
@spolu Thanks for the repost @spolu!
I agree its much easier to write `ensures x < y` than `ensure all packages are delivered on time`
Strata tries to do this with higher-level "laws" over types and functions, we use this in Strata to ensure strata's compiler is verified, e.g.
Strata (https://t.co/Xb9o9RCy82) is a programming language designed for agents on which Anas who interned with us is working: algebraic types, composition, structured concurrency, and contracts proved by SMT solvers or proof tactics.
This domain is my soft spot, find it fascinating. Will we prove all the code we write? My current thinking / questions:
(i) Yes, we need a simple language that is easy to prove, by setting aside human preferences and assuming agents can work harder. That’s what Strata is exploring. Great!
(ii) The big challenge in formalizing the spec is finding a way to ensure that, for “business” theorems[0], the theorem does not require as much complexity as the code itself, or even more. I don’t have an answer to that.
We're experimenting at Dust with https://t.co/JTIEGBvIB1 (keeping contracts informal for that reason) but there must be a solution to go formal?
[0] Note that some theorems like security theorems are easy to sate, like "there is no overflow here"... but defining business theorems I suspect takes more code than the code you want to prove today :/
Two ways of learning using AI:
1/2 Make yourself a a tailormade textbook sourced from real textbooks, skipping over material you know and material you don't care for and focusing on what you want to know.
With AI you can just *do* things, I always loved creating constructed languages like Tolkien's Quenya or GoT's High Valyrian but never had a dedicated tool, so meet https://t.co/VPsBwHz0YL
Today we are happy to share one of our first open research releases: Latent Sparse Attention (LSA), a step towards subquadratic attention that matches accuracy of full attention at ultra-long context.
Sparse attention attends to only a few tokens per query, but it has to find the right ones. At 10M tokens, that search takes 98% of the attention layer's time. LSA makes sparse attention up to 22.7× faster and full attention 72.4x faster.
With @kubicek_ales@caciolai@PengLiangzu@SukritSumant@Ben_Hoov@FraserGreenlee@RMBattleday@radim_urban@thoefler@jcrwhittington