Better HN
topnewbestaskshowjobs
Log inSign up

trehans

39 karma · joined Sep 3, 2019 (7y ago) · 37 submissions

Submissions

comment 13h ago · link · parent

This reflection came out of my repeated struggles with understanding how to balance speed (blanket approval for all permissions) vs safety (approving each action) with my coding agents. A lot of our work at Keller involves applying formal verification techniques to enterprise codebases and I thought this was an interesting parallel. Happy to answer questions!

2.

Coding agents leave me wondering what code will do. Haskell solved it years ago(kellerai.io ↗)

5 points · by trehans · 13h ago · 2 comments

comment 1w ago · link · parent

I think that is a valid level to use formal verification but I would argue it is much more powerful to also have a formal model of code. For example, if I have:

  my_value = run_some_function(some_arg_1, some_arg_2)
  for some_value in my_value.some_list:
     run_some_action(some_value)
Yes it is very helpful to know some properties about `run_some_function` (maybe it is commutative? idempotent?), but it is much more valuable to have a model which can translate what ultimately is being passed to `run_some_action` at the end and how that derives from the return of `run_some_function`, grounding the LLM's reasoning in something deterministic it can't break from.

comment 1w ago · link · parent

To clarify: mentioned "here" meaning mentioned in the comments. HackerNews is presumably majority programmers and the comments section is mostly comments about using proofs for formal verification of code. I agree the article is coming from a mathematics standpoint

comment 1w ago · link · parent

Yes, Verus (for Rust) is a good example of programming language level verification. The recent GitHub Next announcement indicates they are using it in their backend.

You're right that if you verify at the assembly language it can give you additional certainty that there are no additional errors in the compilation step. However, it can be easier for AI to reason about proofs written at the programming language level because (from what I can deduce) it matches the level that humans are operating at and it doesn't have additional details such as registers and memory operations to worry about.

comment 1w ago · link · parent

One thing I'm surprised to see little mention of here is that if you want to use Lean proofs for your code and really want good correspondence between what is proved in Lean and what your code actually does, you need a mathematical model of your programming language embedded in Lean and a deterministic parser converting your code itself into Lean. Otherwise, yes, an AI actually has no checks against hallucination and while writing Lean proofs probably helps AI identify its mistakes it really isn't an end-to-end proof of your code's functionality.

I personally think the future probably involves a combination of unit tests and formal verification to support our confidence in AI-written software, as well as means to align high-level human intent with the low-level intent of individual code pieces, which as this article mentions is the other big piece that can slip with formal proofs: we might not be proving what we think we're proving. For those interested I've written an educational post about this topic here as well: https://kellerai.io/resources/ai-proved-your-code-correct

comment 2w ago · link · parent

Hey all! I'm the author of this post. Formal verification has been trending lately and I thought the subject deserved an explanation, for those wanting to understand the implications without having to have a math PhD.

Fire away any questions you have, happy to answer what I can!

8.

AI proved your code correct. What did it actually prove?(kellerai.io ↗)

3 points · by trehans · 2w ago · 1 comment

comment 1mo ago · link · parent

I looked at this a while back but couldn't figure out how to migrate bookmarks from Arc to Zen. Is that possible now?

comment 9mo ago · link · parent

But randomness comes from the environment, no?

comment 10mo ago · link · parent

Can I suggest changing background color of the tiles between blue and red to indicate how warm each spot is? Would make it easier at a glance.

comment 1y ago · link · parent

Does this work for packages with C/C++ extensions e.g. numpy and scipy?

comment 1y ago · link · parent

IIRC many websites (e.g. for buying concert tickets) have a lock mechanism where you have X amount of time to make your purchase during which time only a limited number of people can be in the checkout process.

comment 1y ago · link · parent

Or... there is some elasticity with price and supply/demand, which falls totally within microeconomics

comment 1y ago · link · parent

hunter2

comment 1y ago · link · parent

For answers like that, it probably wouldn't matter whether it was AI-generated or not. It becomes more relevant with long-form generated content

comment 1y ago · link · parent

I wonder what the prompt would look like as a sentence. Maybe activation maximization can be used to decipher it, maybe by seeing which sentence of length N would maximize similarity to the prompt when fed through a tokenizer

comment 1y ago · link · parent

I'm not sure what this is about, would anyone mind ELI5?

19.

Inverted Totalitarianism(en.wikipedia.org ↗)

3 points · by trehans · 2y ago · discuss

comment 2y ago · link · parent

Interested in knowing this as well

comment 3y ago · link · parent

If you read the article, it addresses this exact scuba pen, and why this is solving a different problem.

comment 3y ago · link · parent

Well, you are not really seeing an eye in a mirror, you are just seeing a representation of it. The medium cannot depict all the dimensions and details of the object, so again you are able to see depictions, representations, and simplifications of it, but never truly be able to grasp the object itself.

comment 3y ago · link · parent

Why not remove the ability to set a key to the null value then? Raise an error in the compiler. It seems pretty undesirable to have undefined behavior in the language, and if high performance is one of your goals, remove the ability for users to do the low performance things.

comment 3y ago · link · parent

Seems like an interesting way of doing it. Why generate the argument configuration from the documentation rather than generating the documentation from the argument configuration? Where there some pain points you wanted to solve from `getopt`, etc.?

comment 3y ago · link · parent

A river flows in one way rather than another because the particles that form the river have momentum one way rather than another. The reason they have this momentum is because the surfaces of the river interact with the air, obstacles, and the rock bed underneath it, and then pass on momentum to internal river particles, which pass on that momentum to other particles, etc. In this way, is the river not processing information regarding things it can directly "observe" about its environment at its surface, as well as the things it has experienced in the past, then processing that information deeper and deeper, until it ultimately leads to a decision on which way the river flows?

comment 3y ago · link · parent

This is cool! I suggest adding some more hints to indicate how important/relevant different papers are. Maybe some tags to classify papers in different fields, and number of citations or amount of discussions online as a metric of how big a paper is? (I know that's not a great metric but I think it's still better than seeing a bunch of papers and not knowing which ones are worth reading). You can also spark discussions. Seeing "0 comments" discourages anyone to look at the comments, but even having an AI-generated summary as a comment can be encouraging and spark discussions. Just a thought.

comment 3y ago · link · parent

Could you just create a GitHub user and ask your readers to add that user as a contributor to the repository they want to use for storing bookmarks?

comment 3y ago · link · parent

I think a better word might be "comprehensive" or "complete".
12