Unofficial Hacker News client - receive Push Notifications on replies.

False computer-checked proofs (opens external site)

250 points by _tk_ 3 days ago | cr.yp.to | 123 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (8)

  1. There's a deeper problem — I'm assuming it doesn't apply in the case of the math proofs because the problem itself has already been formulated in symbolic terms, by humans — but I've had this problem where, an agent proved the correctness of an implementation (within reason), but it proved it against its own incorrect understanding of what needed to be done. So in one case, what it built ended up being the exact opposite of what needed to be done!

    I found it amusing in that case l, that even if it had supplied me with a formal proof of correctness, the proof would also have passed, and the implementation would still have been completely useless! Because the LLM's understanding of what it was supposed to be doing in the first place was wrong.

    Communication is hard!

    Replies (2)
    1. You can't have a formal proof without a formally defined problem. You let your agent formally define the problem and it got it wrong. Doesn't sound very deep.
    2. specs and theorem statements are for humans, everything else is for the robots :)
      Replies (2)
      1. (responding also to sibling comment) > You can't have a formal proof without a formally defined problem. You let your agent formally define the problem and it got it wrong. Doesn't sound very deep. https://news.ycombinator.com/item?id=50671040

        So expressing myself in the strictest mathematical terms is for the human, and being creative and trying a bunch of stuff out is for the machine.

        Who is responsible for this mess!

        Replies (2)
        1. Well, the machine could also help you generate the formal definition if you give it enough prose, context, examples, etc to nail down what you want.

          Going from "we need to write code to reach unambiguity" to "we can explain it like we'd explain it to a human if we want to be very clear" is already a huge step.

          Of course you'd still have to manually verify the formal problem statement that was generated. I guess somewhere, the turtles have to stop.

          You could make this into a more general workflow for working with LLMs:

          1) First spend some iterations with the model to nail down what you want and have it produce mock-ups, test cases, verifiers, etc. Anything that you can check for correctness easily and that the LLM can then in turn use to check for itself.

          2) Then let the LLM run wild and produce the actual thing, using the verifier from step 1 as a guide.

        2. I'm a bit confused why you seem to think that there is no creativity or experimentation in spec authorship. In my experience it's kinda the opposite since it's the most abstracted form and you can iterate much faster than on a low level implementation.
      2. Proofs are also for humans.
        Replies (1)
        1. depends on the proof really. for theoretical mathematics, yes it is important that humans understand the proofs, for software verification we usually care quite a lot less about what's inside the proof as long as we know it's valid.