{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/leanreasoner-boosting-complex-logical","title":"LeanReasoner: Boosting Complex Logical Reasoning with Lean","arxiv_id":"2403.13312","date":"2024-03-20","proceeding":null,"authors":["Dongwei Jiang","Marcio Fonseca","Shay B. Cohen"],"abstract":"Large language models (LLMs) often struggle with complex logical reasoning due to logical inconsistencies and the inherent difficulty of such reasoning. We use Lean, a theorem proving framework, to address these challenges. By formalizing logical reasoning problems into theorems within Lean, we can solve them by proving or disproving the corresponding theorems. This method reduces the risk of logical inconsistencies with the help of Lean's symbolic solver. It also enhances our ability to treat complex reasoning tasks by using Lean's extensive library of theorem proofs. Our method achieves state-of-the-art performance on the FOLIO dataset and achieves performance near this level on ProofWriter. Notably, these results were accomplished by fine-tuning on fewer than 100 in-domain samples for each dataset.","url_abs":"https://arxiv.org/abs/2403.13312v1","url_pdf":"https://arxiv.org/pdf/2403.13312v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"leanreasoner-boosting-complex-logical","repo_url":"https://github.com/some-random/theorem-proving-reasoning","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"automated-theorem-proving","task_name":"Automated Theorem Proving"},{"task_slug":"logical-reasoning","task_name":"Logical Reasoning"}],"methods":[{"method_slug":null,"method_name":"Library"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2403.13312","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2403.13312"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/some-random/theorem-proving-reasoning","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/ufmg-smite/lean-smt","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":3,"unverified":1},"by_repo_kind":{"official":{"samples":4,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"7c8d542cb4bef23b","entry":"data_generation_FOLIO","repo":"some-random/theorem-proving-reasoning","repo_kind":"official","path":"gpt4prompt_FOLIO.py","file_url":"https://github.com/some-random/theorem-proving-reasoning/blob/HEAD/gpt4prompt_FOLIO.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7c8d542cb4bef23b"}},{"code_sha256_prefix":"3372503a9ea067e9","entry":"data_generation_proofwriter","repo":"some-random/theorem-proving-reasoning","repo_kind":"official","path":"gpt4prompt.py","file_url":"https://github.com/some-random/theorem-proving-reasoning/blob/HEAD/gpt4prompt.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3372503a9ea067e9"}},{"code_sha256_prefix":"c227e24d5d3b7407","entry":"data_generation_proofwriter_logiclm","repo":"some-random/theorem-proving-reasoning","repo_kind":"official","path":"gpt4prompt.py","file_url":"https://github.com/some-random/theorem-proving-reasoning/blob/HEAD/gpt4prompt.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c227e24d5d3b7407"}},{"code_sha256_prefix":"eafe956cec46a09f","entry":"data_generation_folio","repo":"some-random/theorem-proving-reasoning","repo_kind":"official","path":"gpt4prompt_FOLIO.py","file_url":"https://github.com/some-random/theorem-proving-reasoning/blob/HEAD/gpt4prompt_FOLIO.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"eafe956cec46a09f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}