Skip to main content
QUICK REVIEW

[Paper Review] Towards Proof Synthesis Guided by Neural Machine Translation for Intuitionistic Propositional Logic

Taro Sekiyama, Akifumi Imanishi|arXiv (Cornell University)|Jun 20, 2017
Natural Language Processing TechniquesComputer Science27 references7 citations
TL;DR

This paper proposes a novel proof-synthesis method for intuitionistic propositional logic by framing proof generation as neural machine translation: a sequence-to-sequence (seq2seq) model is trained to translate proposition tokens into proof terms (λ-terms). Despite no hyperparameter tuning, the model generates proofs close to correct ones in tree edit distance, enabling efficient guided proof search that outperforms brute-force methods.

ABSTRACT

Inspired by the recent evolution of deep neural networks (DNNs) in machine learning, we explore their application to PL-related topics. This paper is the first step towards this goal; we propose a proof-synthesis method for the negation-free propositional logic in which we use a DNN to obtain a guide of proof search. The idea is to view the proof-synthesis problem as a translation from a proposition to its proof. We train seq2seq, which is a popular network in neural machine translation, so that it generates a proof encoded as a $λ$-term of a given proposition. We implement the whole framework and empirically observe that a generated proof term is close to a correct proof in terms of the tree edit distance of AST. This observation justifies using the output from a trained seq2seq model as a guide for proof search.

Motivation & Objective

  • To explore the feasibility of using deep neural networks (DNNs) for automated theorem proving in intuitionistic propositional logic.
  • To bridge the gap between DNNs—typically probabilistic and approximate—and formal logic problems requiring fully correct outputs.
  • To evaluate whether a vanilla seq2seq model can generate proof-term candidates that are semantically and structurally close to correct proofs.
  • To design a proof-synthesis pipeline that uses DNN-generated outputs as search guides to improve efficiency over brute-force search.
  • To establish a baseline for DNN-based proof synthesis in formal logic, particularly in the context of the Curry–Howard isomorphism.

Proposed method

  • Represent propositions and proof terms as token sequences using infix notation for logical connectives and λ-calculus syntax.
  • Train a sequence-to-sequence (seq2seq) neural network to map proposition token sequences to proof-term token sequences using a dataset of proposition-proof pairs.
  • Apply Myers’ algorithm to correct grammatical errors in the model’s output by minimizing tree edit distance to a valid parse tree.
  • Use the corrected parse tree as a guide to enumerate candidate proof terms in order of increasing tree edit distance from the DNN output.
  • Validate candidate proof terms by type-checking them in Haskell (via GHCi), leveraging the Curry–Howard isomorphism to confirm correctness.
  • Prioritize candidate proof terms using cost functions based on tree edit distance, with the goal of finding a correct proof efficiently.

Experimental results

Research questions

  • RQ1Can a pre-trained seq2seq model generate proof-term candidates that are structurally close to correct proofs in intuitionistic propositional logic?
  • RQ2To what extent does the DNN-generated output reduce the search space for proof synthesis compared to brute-force enumeration?
  • RQ3How effective is the tree edit distance metric in measuring the proximity of incorrect proof terms to correct ones?
  • RQ4Can a DNN-based guide significantly improve the efficiency of automated proof search in a formal logic system?
  • RQ5What are the limitations of using a non-tuned DNN for proof synthesis, and how can they be mitigated via post-processing and guided search?

Key findings

  • The trained seq2seq model generated correct proofs for nearly half of the benchmark problems without hyperparameter tuning.
  • Incorrect proof-term outputs were frequently close to correct ones in terms of tree edit distance, validating the use of this metric as a guide for search.
  • The guided proof search procedure significantly outperformed brute-force search in terms of efficiency, as it prioritized structurally plausible candidates.
  • Post-processing with Myers’ algorithm successfully corrected grammatical errors in the DNN output, enabling parsing into valid abstract syntax trees.
  • The method demonstrated that even a non-optimized DNN can produce useful, high-quality initial guesses for proof synthesis in formal logic.
  • The approach establishes a viable baseline for DNN-based proof synthesis, suggesting that neural translation can be a powerful heuristic in automated theorem proving.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.