Better HN
topnewbestaskshowjobs
Log inSign up

tkz1312

489 karma · joined Aug 9, 2023 (3y ago) · 152 submissions

Submissions

comment 1d ago · link · parent

> That a proof can be proving something else than what you think and still compile.

sure that's clear and correct, but it's much more relevant for something like program verification (where semantics can be large), than a relatively simple statement like the Riemann hypothesis.

> Otherwise, dunno, go ahead and write your proof in Java. Program ≡ proof, right?

Interestingly enough, you can apply propositions as types to any typed programming language and get a proof calculus out, it's just that the logical system that you get from applying it to Java or C++ and so on is simply not consistent.

comment 2d ago · link · parent

no. if ZFC + infinitely many inaccessible cardinals is consistent, then so is ZFC (and lean), but the converse is not true: the consistency of ZFC implies nothing about the consistency of ZFC + infinitely many inaccessible cardinals.

comment 2d ago · link · parent

yes, programs are proofs, theorems are types, proof checking is type checking. I think we're agreeing with each other, or what point are you trying to make?

comment 2d ago · link · parent

Yes, Lean is stronger than ZFC. lean has been shown to be consistent with ZFC + infinitely many inaccessible cardinals.

comment 4d ago · link · parent

in lean proof checking and type checking are exactly one and the same.

comment 4d ago · link · parent

I'm fully onboard with the idea that git is horrible to learn and unfriendly for beginners, and also that jj is more convenient and a better UX. I do however struggle to find the point of it for me personally when I've suffered with git for long enough that it has become deeply familiar and very intuitive, and these days I mostly interact with it at a distance through a robot. I've yet to see anything which is for me personally compelling enough to make the effort to switch.

comment 4d ago · link · parent

why should it disappear? afaict llms seem to be an accelerant, skilled engineers with a good grasp of how to use then fly, mediocre ones, or ones who haven't yet figured out workflows that mesh with their style kinda just chug along at their same old pace.

comment 5d ago · link · parent

I don't disagree with you necessarily, and I do think it a good practice to disclose how much of a contribution was llm generated, but regarding the difference an individual makes, I see a huge gap between different colleagues in how well they are able to use llms and the quality of the results they are able to produce with them, so I am increasingly inclined to view them as something closer to a compiler or SMT solver than a contributor in of themselves.

comment 5d ago · link · parent

If performance is a critical factor, then formal verification of many c programs is probably cheaper than a rewrite in rust these days. There are still limits (especially around concurrency and syscall modelling), but given the money and energy being poured into the field at the moment, I would be surprised if those remain serious obstacles for long.

comment 6d ago · link · parent

I now run all my network facing C code via fil-c. I have limited needs (ssh, static file server), but for those it works very well. I personally am more in favour of making existing battle tested C safer via fil-c or formal verification, than I am of rewriting the world in rust.

New code means new bugs, and losing the many years of accumulated bug fixes and hardening present in many critical pieces of our infra by rewriting in rust is not a desirable tradeoff. The new world we live in where fv has become many orders of magnitude cheaper also makes rust seem much less attractive.

comment 2w ago · link · parent

I was surprised to discover recently that C++ is in a pretty nice sweet spot for verification (at least at the binary level), where it has some useful type system features, but will get out of your way and generate simple ASM (without e.g. spamming bounds checks and panics everywhere as rust does).

comment 3w ago · link · parent

wasn't it setup in an unexploitable configuration (not actually serving a php page IIRC?) for most of the time, and then got popped within like 2 hours once fixed?

comment 4w ago · link · parent

Another article about scaling agents that waffles around for ages and doesnt mention proof systems. Proof systems work. Proof systems let your robots generate thousands of lines of code and you know it's bug free without having to check a single line. Proof systems let you review and iterate on a contained and simple system model and then use those guarantees across huge parts of your code.

Just giving up and ceding control of our codebases to the robots is not a serious engineering proposition.

comment 1mo ago · link · parent

https://github.com/kim-em/lean-zstd

comment 1mo ago · link · parent

Sounds like you would have been in support of the US export bans on cryptography back in the day ;)

comment 1mo ago · link · parent

The groups with a lot of resources are always going to have the best tools available. The question is what tools do I (a person with limited time and resources) get access to. I am in a better position if the delta between my tooling and their tooling is minimized.

comment 1mo ago · link · parent

Because the people I want to defend against includes those with enough resources to train and fine tune models with strong offensive capabilities themselves.

comment 1mo ago · link · parent

I am a defender, and I really really want to have access to high quality models that are good at finding vulns and hacking. Leaving them in the hands only of government agencies and orgs with enough resources to do extensive training / fine tuning seems like the absolute worst possible case for the future security of global software systems.

comment 1mo ago · link · parent

Semantics of a language describe the behaviour of a sentence in that language when executed. When you have semantics in a theorem prover you can construct equivalence proofs between programs expressed in different languages (or proofs that a compiler from one language to another is semantics preserving).

I was mostly referring to accuracy when I said "good" above, in the sense that they should reflect the actual behaviour of the language they describe.

comment 1mo ago · link · parent

You don't really need compilers anymore. LLM's can write programs over any AST and provide an equivalence proof provided you have good semantics for the source and target.

comment 1mo ago · link · parent

I've been extracting a lot of verified C from theorem provers recently.

comment 1mo ago · link · parent

sure zero was a bit strong, but I personally feel pretty good about depending on only the go stdlib, compared to pulling in litellm.

comment 1mo ago · link · parent

Claude will write you something custom that fits your exact requirements with zero supply chain risk in an afternoon.

comment 1mo ago · link · parent

You can batch calls if you're serving a lot of people at once.

comment 1mo ago · link · parent

I only ship code I don't understand if it comes with a proof of correctness

comment 1mo ago · link · parent

Using nix to generate k8s yaml is actually quite pleasant. You avoid all the string templating bullshit and can use nix functions and the nixos module system to build proper abstractions.

comment 1mo ago · link · parent

distillation and the Chinese open weights models is pretty the only thing that still makes me feel like there is hope that AI might have a positive impact on society.

comment 1mo ago · link · parent

llms work best on optimization problems. especially when wrapped in a proof system.

comment 1mo ago · link · parent

I'm pretty convinced most serious software will have some kind of proof system inside within the next few years.

comment 1mo ago · link · parent

You don't need to review proof code.

In the last 9 months or so llms have gone from just another useful proof tactic (like grind or sledgehammer or sat solvers) to being so good at writing proofs that I don't even bother to try myself anymore.

123456