Pith. sign in

REVIEW 15 cited by

Finding Inductive Loop Invariants using Large Language Models

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2311.07948 v1 pith:PQYRK6ZV submitted 2023-11-14 cs.PL cs.LG

classification cs.PLcs.LG
keywords invariantsloopinductivellmsproblemprogramsymbolicthey
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Loop invariants are fundamental to reasoning about programs with loops. They establish properties about a given loop's behavior. When they additionally are inductive, they become useful for the task of formal verification that seeks to establish strong mathematical guarantees about program's runtime behavior. The inductiveness ensures that the invariants can be checked locally without consulting the entire program, thus are indispensable artifacts in a formal proof of correctness. Finding inductive loop invariants is an undecidable problem, and despite a long history of research towards practical solutions, it remains far from a solved problem. This paper investigates the capabilities of the Large Language Models (LLMs) in offering a new solution towards this old, yet important problem. To that end, we first curate a dataset of verification problems on programs with loops. Next, we design a prompt for exploiting LLMs, obtaining inductive loop invariants, that are checked for correctness using sound symbolic tools. Finally, we explore the effectiveness of using an efficient combination of a symbolic tool and an LLM on our dataset and compare it against a purely symbolic baseline. Our results demonstrate that LLMs can help improve the state-of-the-art in automated program verification.

Discussion (0). Sign in to comment.

Forward citations

Cited by 15 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Verification Modulo Tested Library Contracts

    cs.PL 2026-04 unverdicted novelty 7.0 of 10

    A new framework synthesizes library method contracts that are adequate for client verification and pass testing scrutiny, using CHC solvers and ICE learning.

  2. InvWeaver: Deductive Feedback for Invariant Synthesis in Interacting-Loop Programs

    cs.LG 2026-07 conditional novelty 6.5 of 10

    InvWeaver synthesizes multi-loop invariants by exposing inter-loop dependencies on a loop-level call graph and refining candidates with weakest-precondition-guided LLM feedback, solving 72/82 multi-loop benchmarks.

  3. VeriSkill: A Self-Evolution Framework for Program Verification Skills

    cs.AI 2026-07 conditional novelty 6.0 of 10

    VeriSkill turns failed program-verification attempts into validated, reusable skill updates, reporting PASS-rate gains of 17.6 to 51.3 percentage points over no-skill agents across Dafny, Frama-C, and VeriFast.

  4. LimICE: Integrating LLM into ICE Framework for Efficient Loop Invariant Inference

    cs.SE 2026-07 conditional novelty 6.0 of 10

    LimICE combines LLM-generated facts, incremental lemma synthesis, and a decision-tree fallback to solve 349/367 linear and 47/50 nonlinear loop-invariant benchmarks, beating state-of-the-art tools.

  5. Diversifying to Verify: When Task-Equivalent Programs Differ in Verifiability

    cs.SE 2026-07 conditional novelty 6.0 of 10

    Diverse recursive and imperative array/list implementations of the same task, paired with frozen representation-specific contracts and bounded Why3 repair, raise task-level verification to 67.1% versus lower rates for...

  6. Guiding LLM-based Loop Invariant Synthesis via Feedback on Local Reasoning Errors

    cs.PL 2026-05 unverdicted novelty 6.0 of 10

    LORIS detects local reasoning errors in LLM-generated proofs for loop invariants by translating natural-language steps to first-order logic implications and using invalid implications to refine the invariants, achievi...

  7. Combining Mechanical and Agentic Specification Inference for Move

    cs.PL 2026-05 unverdicted novelty 6.0 of 10

    Early prototype merges weakest-precondition analysis with an AI agent to infer Move specifications, using the prover as oracle to validate and refine them for code with loops, references, and higher-order functions.

  8. Verification Modulo Tested Library Contracts

    cs.PL 2026-04 unverdicted novelty 6.0 of 10

    Synthesizes adequate modular and contextual contracts for library methods via counterexample-guided learning with CHC solvers and testing to verify clients without full library verification.

  9. Large Lemma Miners: Can LLMs do Induction Proofs for Hardware?

    cs.LO 2025-11 conditional novelty 6.0 of 10

    A neurosymbolic method using two LLM prompting frameworks generates provably correct inductive arguments for 84% of a set of mid-size open-source RTL hardware designs.

  10. ClassInvGen: Class Invariant Synthesis using Large Language Models

    cs.AI 2025-02 unverdicted novelty 6.0 of 10

    ClassInvGen co-generates class invariants and tests with LLMs to outperform pure LLM generation and Daikon on C++ data structures.

  11. Automating Formal Verification with Reinforcement Learning and Recursive Inference

    cs.LG 2026-05 unverdicted novelty 5.0 of 10

    RLVR training raises verified Dafny pass rates from 9.7% to 31.1% on a filtered benchmark while a Lean proof scaffold lifts success from 46.2% to 69.2% on a pilot set and solves 7 of 42 prior unsolved tasks.

  12. Combining Mechanical and Agentic Specification Inference for Move

    cs.PL 2026-05 unverdicted novelty 5.0 of 10

    A hybrid tool pairs mechanical weakest-precondition analysis with an AI agent to infer verifiable specifications for Move programs, using the prover as an oracle to refine results until they pass.

  13. Large Lemma Miners: Can LLMs do Induction Proofs for Hardware?

    cs.LO 2025-11 conditional novelty 5.0 of 10

    LLMs, verified by a symbolic model checker, produced correct inductive strengthenings for 82 of 94 curated RTL safety properties.

  14. Evaluating LLM-Generated ACSL Annotations for Formal Verification

    cs.SE 2026-02 unverdicted novelty 4.0 of 10

    Rule-based annotation generation for ACSL outperforms LLM-based methods in achieving successful formal verification of C programs.

  15. The 4/$\delta$ Bound: Designing Predictable LLM-Verifier Systems for Formal Method Guarantee

    cs.AI 2025-11 reject novelty 2.0 of 10

    The 4/δ bound is the mean of four geometric distributions, not a new theorem, and the simulation validation is circular.

Pith tools