Alexis Bed (@solidityslayer) header
Alexis Bed (@solidityslayer) profile picture

Building Local AI & sHaPe RoTaTiNg @ The Convent …………… the school is in session ART X TECH

NYC
Joined December 2021
Alexis Bed retweeted
Can we use any compilation pipeline we want to produce efficient machine code, then apply formal methods to show that this code behaves in a certain way? This has long been a dream – a gold standard of formal verification, verifying programs at the assembly level – but was considered to be too difficult due to the loss of structure when going from a high level language to machine code. Can AI bash through this problem? Apparently yes! The basic idea I’ve been playing with is to write an interpreter of the target instruction set in an interactive theorem prover such as Lean or Bend. We can then prove that some compiled program conforms to a given specification by writing a proof that connects the machine code, interpreter, and some desired behavior of that code. Why is this useful? It helps resolve 2 tradeoffs: - When we write programs in a high level language designed for native execution rather than theorem proving, we get great performance, but are unable to formally reason about how that code behaves. - On the other hand, when writing programs in a language like Lean, we can write proofs to reason about its behavior, but get poor native performance. We can try and solve this tension by extracting a program written in something like Rust into Lean, but this tooling is complex, limited, and can introduce bugs! Or, we can develop theorem provers that can compile to efficient native code. This is what Bend hopes to accomplish. Today, both of these techniques are limited, so proving at the assembly or bytecode level seems like a good solution. What is the downside then? Well, formally reasoning about an instruction set is much harder than high level code. You have to consider registers, stack machines, and other low level semantics that are not particularly relevant to showing the correctness of a given algorithm. You also lose a great deal of information during compilation, making reasoning about it more difficult. However, if you happen to be proving correctness over the instruction set you actually intend to run, you get *very* good correctness guarantees, as you don't even need to consider compiler bugs in your threat model. So far, I have experimented with verifying simple algorithms compiled to both RISC-V and WASM32, and have gotten some surprisingly good initial results! LLMs handle writing tedious proofs, and all I do is verify a small set of invariants defining how the code should behave. Interestingly enough, WASM seems to be much easier to reason about, as the instruction set has some higher level semantics, such as local variables and functions. When proving RISC-V, we have to contend with reasoning about things like function dispatch and parameter encoding, which makes life much harder! Anyways, stay tuned for some more updates on this as I try to see just how far we can push this technique!
17
11
2
71
12,936
📝 If you're interested in applying to hack, fill out the form here: localhostai.nyc/apply?utm_so… 💸 We also have room for 1 or 2 more aligned sponsors. If you're interested in sponsoring, fill out the form here: localhostai.nyc/sponsor?utm_…
2
8
254
People keep asking me where the open source AI and private AI people in New York 🗽 are. Instead of a million group chats, I'm bringing them together for a day of hacking and discussion on Saturday November 7th. No one should own your AI except for you. Welcome to LOCALHOST ⬇️
2
18
4
73
3,748
Hire people who help tell you what to do, not the other way around. You want to fill in your gaps. Stay learning.
4
1
22
920
Alexis Bed retweeted
We’re officially halfway through the Shape Rotator Accelerator! This week at The Convent, we hosted a midterm VC demo pitch night for teams to share what they’ve been building and get direct feedback from investors.
5
8
19
1,115
more progress on the vibe code room
4
1
2
27
7,684
Alexis Bed retweeted
Meet Chico, the resident dog of The Convent and a core contributor to the Shape Rotator Accelerator. He belongs to @cryptochefmatt and is currently working on the most important use case: trusted execution of good vibes.
6
5
23
1,747
Who are the coolest and or frontier-iest AI people you know in NYC, doing something fun thursday
21
5
1
79
7,877
Alexis Bed retweeted
5
1
15
934
ETHaly…..AItaly???
4
11
454
Alexis Bed retweeted
the TEE x AI track of the Shape Rotator hackathon will have a tutorial day on the 10th w/ sessions from Phala @PhalaNetwork and Oasis @OasisProtocol
14
8
7
59
15,119
Starting soon 👀 gonna be a fun one 😉🙃
14 papers. 2 weeks. 1 mission: Turning academic research into real-world products & applications Introducing Shape Rotator - a virtual hackathon and accelerator program by IC3, FlashbotsX, @theBBFund, @encodeclub, and The Convent. 🧵👇
6
15
550
intelligence is continuously becoming more abundant, kindness is becoming more scarce
33
1
1
49
1,320
convent school 2026
24
1
37
563
there is no scarcity, just disorganized abundance
28
3
64
2,109
Made a chat to talk about proof of location since more and more folks seem to be interested. DM me if you want to be added
13
3
36
1,713
give it a lil hack to apply - internetcommune.com/
who would like to come stay in a hacker house in argentina for devconnect 👀 house has already been secured
12
7
1
98
6,889
who would like to come stay in a hacker house in argentina for devconnect 👀 house has already been secured
104
1
3
215
12,465