{"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/learning-structure-aware-representations-of","title":"Learning Structure-Aware Representations of Dependent Types","arxiv_id":"2402.02104","date":"2024-02-03","proceeding":null,"authors":["Konstantinos Kogkalidis","Orestis Melkonian","Jean-Philippe Bernardy"],"abstract":"Agda is a dependently-typed programming language and a proof assistant, pivotal in proof formalization and programming language theory. This paper extends the Agda ecosystem into machine learning territory, and, vice versa, makes Agda-related resources available to machine learning practitioners. We introduce and release a novel dataset of Agda program-proofs that is elaborate and extensive enough to support various machine learning applications -- the first of its kind. Leveraging the dataset's ultra-high resolution, which details proof states at the sub-type level, we propose a novel neural architecture targeted at faithfully representing dependently-typed programs on the basis of structural rather than nominal principles. We instantiate and evaluate our architecture in a premise selection setup, where it achieves promising initial results, surpassing strong baselines.","url_abs":"https://arxiv.org/abs/2402.02104v2","url_pdf":"https://arxiv.org/pdf/2402.02104v2.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":"learning-structure-aware-representations-of","repo_url":"https://github.com/konstantinoskokos/quill","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null},{"paper_slug":"learning-structure-aware-representations-of","repo_url":"https://github.com/konstantinosKokos/neural-agda","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[{"slug":"agda2train","name":"agda2train","full_name":""}],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2402.02104","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.02104"}},"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/konstantinosKokos/neural-agda","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/konstantinoskokos/quill","reach":null}],"summary":{"ran":10,"ran_honours":1,"ran_draft_wrong":2,"unverified":6},"by_repo_kind":{"official":{"samples":19,"ran":13,"repositories":2}},"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":19,"samples":[{"code_sha256_prefix":"ce485d6261d21166","entry":"Batch","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ce485d6261d21166"}},{"code_sha256_prefix":"8be62e485fdeb756","entry":"BatchedASTs","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8be62e485fdeb756"}},{"code_sha256_prefix":"bc5b36746d8e9a27","entry":"EncoderLayer","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bc5b36746d8e9a27"}},{"code_sha256_prefix":"86ebf65df3cb1d71","entry":"ModelCfg","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"86ebf65df3cb1d71"}},{"code_sha256_prefix":"8183f36aee184817","entry":"RMSNorm","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8183f36aee184817"}},{"code_sha256_prefix":"2f40f2fadee7744d","entry":"ResidualFFN","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2f40f2fadee7744d"}},{"code_sha256_prefix":"fdfd1455a11456cb","entry":"SwiGLU","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fdfd1455a11456cb"}},{"code_sha256_prefix":"0e82717944cb974d","entry":"TMHA","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0e82717944cb974d"}},{"code_sha256_prefix":"bd87777d88dfb303","entry":"read_json","repo":"konstantinosKokos/neural-agda","repo_kind":"official","path":"src/quill/api/schemas.py","file_url":"https://github.com/konstantinosKokos/neural-agda/blob/HEAD/src/quill/api/schemas.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bd87777d88dfb303"}},{"code_sha256_prefix":"7737be1c28b203e7","entry":"rope_like_init","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7737be1c28b203e7"}},{"code_sha256_prefix":"0da1d27fb499666e","entry":"scope_causal_mask","repo":"konstantinosKokos/neural-agda","repo_kind":"official","path":"src/quill/nn/batching.py","file_url":"https://github.com/konstantinosKokos/neural-agda/blob/HEAD/src/quill/nn/batching.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0da1d27fb499666e"}},{"code_sha256_prefix":"f6de8baf588e325d","entry":"taylor_2","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f6de8baf588e325d"}},{"code_sha256_prefix":"73e601e6a1a7240a","entry":"taylor_atn_fn","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"73e601e6a1a7240a"}},{"code_sha256_prefix":"5018be8751896c24","entry":"BinaryPathEncoder","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5018be8751896c24"}},{"code_sha256_prefix":"4cdc5194ac34ad0b","entry":"FileEncoder","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4cdc5194ac34ad0b"}},{"code_sha256_prefix":"62245188ef69c424","entry":"Model","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"62245188ef69c424"}},{"code_sha256_prefix":"ce07a37f044d3844","entry":"TermEncoder","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ce07a37f044d3844"}},{"code_sha256_prefix":"29f310dfa3baa3c0","entry":"TokenEmbedding","repo":"konstantinoskokos/quill","repo_kind":"official","path":"src/quill/nn/model.py","file_url":"https://github.com/konstantinoskokos/quill/blob/HEAD/src/quill/nn/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"29f310dfa3baa3c0"}},{"code_sha256_prefix":"3e3cd096e3e751de","entry":"main","repo":"konstantinosKokos/neural-agda","repo_kind":"official","path":"src/quill/api/serve.py","file_url":"https://github.com/konstantinosKokos/neural-agda/blob/HEAD/src/quill/api/serve.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3e3cd096e3e751de"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}