arXiv · 2605.10568
Correct-by-Construction G-Code Generation: A Neuro-Symbolic Approach via Separation Logic
Abstract
This paper proposes a neuro-symbolic framework for G-code generation that seeks to integrate the neural generative capabilities of the GLLM method (Abdelaal et al., 2025) with formal verification via a Separation Logic (SL) prover. To establish a reliable physical baseline, the framework extracts deterministic boundary representations from 3D CAD models (STEP files) using the OpenCASCADE framework. This extracted geometric data supports a two-component architecture: the LLM serves as an initial code generator, while the SL Prover, utilizing a Spatial Heap model, evaluates the output. By conceptualizing physical collisions as logical Spatial Data Races -- violations of the separating conjunction in SL -- our framework translates proof failures into structured mathematical feedback. These failures are condensed into bounding boxes that serve as directives for the LLM's iterative self-correction. Ultimately, this work aims to develop a self-correcting system that reduces the need for human supervision, leading to safer and verified autonomous manufacturing.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Yeonseok Lee. 2026-05-11. Correct-by-Construction G-Code Generation: A Neuro-Symbolic Approach via Separation Logic. https://arxiv.org/abs/2605.10568
Cite the original work for its findings. Save a collection to share your selection of sources.