miniCTX
Collection
miniCTX: Neural Theorem Proving with (Long-)Contexts (ICLR 2025 Oral) • 8 items • Updated • 2
srcContext stringlengths 725 11.5k | theoremStatement stringlengths 34 229 | theoremName stringlengths 12 61 | fileCreated dict | theoremCreated dict | file stringclasses 11
values | module stringclasses 11
values | jsonFile stringclasses 11
values | positionMetadata dict | dependencyMetadata dict | proofMetadata dict |
|---|---|---|---|---|---|---|---|---|---|---|
/-
Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Tooby-Smith
-/
import HepLean.SpaceTime.LorentzVector.Basic
import Mathlib.Algebra.Lie.Classical
/-!
# The Minkowski Metric
This file introduces the Minkowski metric on sp... | lemma matrix_eq_id_iff : Λ = 1 ↔ ∀ w v, ⟪v, Λ *ᵥ w⟫ₘ = ⟪v, w⟫ₘ | minkowskiMetric.matrix_eq_id_iff | {
"commit": "675b9a989a4d3f142c67d682ef68b22ea477e83a",
"date": "2024-07-01T00:00:00"
} | {
"commit": "675b9a989a4d3f142c67d682ef68b22ea477e83a",
"date": "2024-07-01T00:00:00"
} | hep_lean/HepLean/SpaceTime/MinkowskiMetric.lean | HepLean.SpaceTime.MinkowskiMetric | HepLean.SpaceTime.MinkowskiMetric.jsonl | {
"lineInFile": 305,
"tokenPositionInFile": 9742,
"theoremPositionInFile": 33
} | {
"inFilePremises": true,
"numInFilePremises": 2,
"repositoryPremises": true,
"numRepositoryPremises": 5,
"numPremises": 68,
"importedModules": [
"Init.Prelude",
"Init.Coe",
"Init.Notation",
"Init.Tactics",
"Init.SizeOf",
"Init.Core",
"Init.MetaTypes",
"Init.SimpLemmas",
... | {
"hasProof": true,
"proof": ":= by\n rw [matrix_eq_iff_eq_forall]\n simp",
"proofType": "tactic",
"proofLengthLines": 2,
"proofLengthTokens": 43
} |
/-
Copyright (c) 2024 Joseph Tooby-Smith. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Tooby-Smith
-/
import HepLean.SpaceTime.LorentzGroup.Basic
/-!
# The Proper Lorentz Group
The proper Lorentz group is the subgroup of the Lorentz group with determinant `1`... | lemma det_of_joined {Λ Λ' : LorentzGroup d} (h : Joined Λ Λ') : Λ.1.det = Λ'.1.det | LorentzGroup.det_of_joined | {
"commit": "89e940a0299f69637521d7b2b002748aaab92ff2",
"date": "2024-05-17T00:00:00"
} | {
"commit": "fdf5fda1e73e043ba40a3836ed1f00ddcc259373",
"date": "2024-05-17T00:00:00"
} | hep_lean/HepLean/SpaceTime/LorentzGroup/Proper.lean | HepLean.SpaceTime.LorentzGroup.Proper | HepLean.SpaceTime.LorentzGroup.Proper.jsonl | {
"lineInFile": 166,
"tokenPositionInFile": 6428,
"theoremPositionInFile": 9
} | {
"inFilePremises": true,
"numInFilePremises": 1,
"repositoryPremises": true,
"numRepositoryPremises": 3,
"numPremises": 24,
"importedModules": [
"Init.Prelude",
"Init.Coe",
"Init.Notation",
"Init.Tactics",
"Init.SizeOf",
"Init.Core",
"Init.MetaTypes",
"Init.SimpLemmas",
... | {
"hasProof": true,
"proof": ":=\n det_on_connected_component $ pathComponent_subset_component _ h",
"proofType": "term",
"proofLengthLines": 1,
"proofLengthTokens": 68
} |
"/-\nCopyright (c) 2024 Joseph Tooby-Smith. All rights reserved.\nReleased under Apache 2.0 license (...TRUNCATED) | @[simp]
lemma dual_id : @dual d 1 = 1 | minkowskiMetric.dual_id | {
"commit": "675b9a989a4d3f142c67d682ef68b22ea477e83a",
"date": "2024-07-01T00:00:00"
} | {
"commit": "675b9a989a4d3f142c67d682ef68b22ea477e83a",
"date": "2024-07-01T00:00:00"
} | hep_lean/HepLean/SpaceTime/MinkowskiMetric.lean | HepLean.SpaceTime.MinkowskiMetric | HepLean.SpaceTime.MinkowskiMetric.jsonl | {
"lineInFile": 237,
"tokenPositionInFile": 7406,
"theoremPositionInFile": 22
} | {"inFilePremises":true,"numInFilePremises":3,"repositoryPremises":true,"numRepositoryPremises":3,"nu(...TRUNCATED) | {"hasProof":true,"proof":":= by\n simpa only [dual, transpose_one, mul_one] using minkowskiMatrix.s(...TRUNCATED) |
"/-\nCopyright (c) 2024 Joseph Tooby-Smith. All rights reserved.\nReleased under Apache 2.0 license (...TRUNCATED) | lemma SO3ToMatrix_in_LorentzGroup (A : SO(3)) : SO3ToMatrix A ∈ LorentzGroup 3 | LorentzGroup.SO3ToMatrix_in_LorentzGroup | {
"commit": "026ed8b85e7a3c83656d9de99ef81bf41ac20e9e",
"date": "2024-05-21T00:00:00"
} | {
"commit": "c64d926e7c2009e6d90d58343fc9d9ad4eb069cf",
"date": "2024-07-02T00:00:00"
} | hep_lean/HepLean/SpaceTime/LorentzGroup/Rotations.lean | HepLean.SpaceTime.LorentzGroup.Rotations | HepLean.SpaceTime.LorentzGroup.Rotations.jsonl | {
"lineInFile": 26,
"tokenPositionInFile": 725,
"theoremPositionInFile": 1
} | {"inFilePremises":true,"numInFilePremises":1,"repositoryPremises":true,"numRepositoryPremises":7,"nu(...TRUNCATED) | {"hasProof":true,"proof":":= by\n rw [LorentzGroup.mem_iff_dual_mul_self]\n simp only [minkowskiMe(...TRUNCATED) |
"/-\nCopyright (c) 2024 Joseph Tooby-Smith. All rights reserved.\nReleased under Apache 2.0 license (...TRUNCATED) | lemma stdBasis_3 : stdBasis 3 = ![0, 0, 0, 1] | SpaceTime.stdBasis_3 | {
"commit": "7020263053f9d96398aaa860dc7b31460214b0b0",
"date": "2024-05-14T00:00:00"
} | {
"commit": "db0f6de59c636e635219f2013bf9cad19a2d09ca",
"date": "2024-05-13T00:00:00"
} | hep_lean/HepLean/SpaceTime/Basic.lean | HepLean.SpaceTime.Basic | HepLean.SpaceTime.Basic.jsonl | {
"lineInFile": 68,
"tokenPositionInFile": 1956,
"theoremPositionInFile": 9
} | {"inFilePremises":true,"numInFilePremises":5,"repositoryPremises":true,"numRepositoryPremises":5,"nu(...TRUNCATED) | {"hasProof":true,"proof":":= by\n funext i\n fin_cases i <;> simp [stdBasis_apply]","proofType":"t(...TRUNCATED) |
"/-\nCopyright (c) 2024 Joseph Tooby-Smith. All rights reserved.\nReleased under Apache 2.0 license (...TRUNCATED) | "lemma orthchroMapReal_on_not_IsOrthochronous {Λ : LorentzGroup d} (h : ¬ IsOrthochronous Λ) :\n (...TRUNCATED) | LorentzGroup.orthchroMapReal_on_not_IsOrthochronous | {
"commit": "89e940a0299f69637521d7b2b002748aaab92ff2",
"date": "2024-05-17T00:00:00"
} | {
"commit": "7ebd2af7a5878a0a87dc35be735a66a0e0e4764a",
"date": "2024-05-17T00:00:00"
} | hep_lean/HepLean/SpaceTime/LorentzGroup/Orthochronous.lean | HepLean.SpaceTime.LorentzGroup.Orthochronous | HepLean.SpaceTime.LorentzGroup.Orthochronous.jsonl | {
"lineInFile": 97,
"tokenPositionInFile": 3452,
"theoremPositionInFile": 11
} | {"inFilePremises":true,"numInFilePremises":4,"repositoryPremises":true,"numRepositoryPremises":7,"nu(...TRUNCATED) | {"hasProof":true,"proof":":= by\n rw [not_orthochronous_iff_le_neg_one] at h\n change stepFunction(...TRUNCATED) |
"/-\nCopyright (c) 2024 Joseph Tooby-Smith. All rights reserved.\nReleased under Apache 2.0 license (...TRUNCATED) | "lemma asTenProd_diag :\n @asTenProd d = ∑ μ, η μ μ • (LorentzVector.stdBasis μ ⊗ₜ[(...TRUNCATED) | minkowskiMatrix.asTenProd_diag | {
"commit": "99f4e858393555a74df554cd7fa7fc8f290b860a",
"date": "2024-07-29T00:00:00"
} | {
"commit": "7b0b979d51cceb4c96a445d2f78e43d69d510b60",
"date": "2024-07-31T00:00:00"
} | hep_lean/HepLean/SpaceTime/LorentzVector/Contraction.lean | HepLean.SpaceTime.LorentzVector.Contraction | HepLean.SpaceTime.LorentzVector.Contraction.jsonl | {
"lineInFile": 181,
"tokenPositionInFile": 6842,
"theoremPositionInFile": 13
} | {"inFilePremises":true,"numInFilePremises":1,"repositoryPremises":true,"numRepositoryPremises":7,"nu(...TRUNCATED) | {"hasProof":true,"proof":":= by\n simp only [asTenProd]\n refine Finset.sum_congr rfl (fun μ _ =>(...TRUNCATED) |
"/-\nCopyright (c) 2024 Joseph Tooby-Smith. All rights reserved.\nReleased under Apache 2.0 license (...TRUNCATED) | "lemma unitDown_rid (x : CovariantLorentzVector d) :\n TensorStructure.contrLeftAux contrDownUp ((...TRUNCATED) | LorentzVector.unitDown_rid | {
"commit": "99f4e858393555a74df554cd7fa7fc8f290b860a",
"date": "2024-07-29T00:00:00"
} | {
"commit": "a97cb623798a037cb7f9ff27508a67bec560f6c7",
"date": "2024-07-30T00:00:00"
} | hep_lean/HepLean/SpaceTime/LorentzVector/Contraction.lean | HepLean.SpaceTime.LorentzVector.Contraction | HepLean.SpaceTime.LorentzVector.Contraction.jsonl | {
"lineInFile": 135,
"tokenPositionInFile": 4937,
"theoremPositionInFile": 9
} | {"inFilePremises":true,"numInFilePremises":4,"repositoryPremises":true,"numRepositoryPremises":14,"n(...TRUNCATED) | {"hasProof":true,"proof":":= by\n simp only [unitDown, LinearEquiv.refl_toLinearMap]\n rw [tmul_su(...TRUNCATED) |
"/-\nCopyright (c) 2024 Joseph Tooby-Smith. All rights reserved.\nReleased under Apache 2.0 license (...TRUNCATED) | lemma id_IsProper : @IsProper d 1 | LorentzGroup.id_IsProper | {
"commit": "89e940a0299f69637521d7b2b002748aaab92ff2",
"date": "2024-05-17T00:00:00"
} | {
"commit": "8024aa92a17078b8ce8608d256f65d2d82aecb41",
"date": "2024-05-20T00:00:00"
} | hep_lean/HepLean/SpaceTime/LorentzGroup/Proper.lean | HepLean.SpaceTime.LorentzGroup.Proper | HepLean.SpaceTime.LorentzGroup.Proper.jsonl | {
"lineInFile": 182,
"tokenPositionInFile": 7048,
"theoremPositionInFile": 12
} | {"inFilePremises":true,"numInFilePremises":1,"repositoryPremises":true,"numRepositoryPremises":3,"nu(...TRUNCATED) | {"hasProof":true,"proof":":= by\n simp [IsProper]","proofType":"tactic","proofLengthLines":1,"proof(...TRUNCATED) |
"/-\nCopyright (c) 2024 Joseph Tooby-Smith. All rights reserved.\nReleased under Apache 2.0 license (...TRUNCATED) | @[simp]
lemma dual_eta : @dual d η = η | minkowskiMetric.dual_eta | {
"commit": "675b9a989a4d3f142c67d682ef68b22ea477e83a",
"date": "2024-07-01T00:00:00"
} | {
"commit": "675b9a989a4d3f142c67d682ef68b22ea477e83a",
"date": "2024-07-01T00:00:00"
} | hep_lean/HepLean/SpaceTime/MinkowskiMetric.lean | HepLean.SpaceTime.MinkowskiMetric | HepLean.SpaceTime.MinkowskiMetric.jsonl | {
"lineInFile": 255,
"tokenPositionInFile": 7914,
"theoremPositionInFile": 25
} | {"inFilePremises":true,"numInFilePremises":4,"repositoryPremises":true,"numRepositoryPremises":4,"nu(...TRUNCATED) | {"hasProof":true,"proof":":= by\n simp only [dual, eq_transpose]\n noncomm_ring [minkowskiMatrix.s(...TRUNCATED) |
An entry in the miniCTX dataset consists of the theorem statement, preceding file contents, and metadata information. For example, given the following theorem s_eq_pow_two in context:
import Mathlib.Data.Real.Basic
/-!
# Square function
We define the squaring function `s : ℝ → ℝ` to be `s x := x * x`.
-/
def s (x : ℝ) : ℝ := x * x
lemma s_eq_pow_two {x : ℝ} : s x = x ^ 2 := by
rw [s, pow_two]
The problem is formatted in JSON as follows:
{
# Preceding file content
"srcContext": "import Mathlib.Data.Real.Basic\n\n/-!\n# Square function\nWe define the squaring function `s : ℝ → ℝ` to be `s x := x * x`.\n-/\n\ndef s (x : ℝ) : ℝ := x * x\n\n",
# Theorem statement
"theoremStatement": "lemma s_eq_pow_two {x : ℝ} : s x = x ^ 2",
# Fully qualified theorem name
"theoremName": "s_eq_pow_two",
# Temporal metadata
"fileCreated": {"commit":"(git commit)", "date":"(date the commit is updated)"},
"theoremCreated": {"commit":"(git commit)", "date":"(date the commit is updated)"},
# Source metadata
"file": "MyProject/Square.lean",
"module": "MyProject.Square",
"positionMetadata": {
# Line number the theorem is on
"lineInFile": 10,
# Number of tokens before the theorem
"tokenPositionInFile": 152,
# Number of premises (definitions, theorems) before the theorem
"theoremPositionInFile": 1
},
# Dependency metadata
"dependencyMetadata": {
# Number of definitions or lemmas defined in this file that the theorem uses
"inFilePremises": true,
"numInFilePremises": 1,
# Number of definitions or lemmas defined in this repository that the theorem uses (including in-file ones)
"repositoryPremises": true
"numRepositoryPremises": 1,
# Number of total premises (in file, repository, or otherwise)
"numPremises": 2,
# Modules imported in the current file
"importedModules": ["Mathlib.Data.Real.Basic", ...]
},
# Proof metadata
"proofMetadata": {
"hasProof": true,
"proof": "by\n rw [s, pow_two]",
"proofType": "tactic",
"proofLengthLines": 2,
"proofLengthTokens": 20
}
}
In addition to individual entries, we also provide the link and git commit version of each split for evaluation:
Please cite:
@article{hu2024minictx,
title={miniCTX: Neural Theorem Proving with (Long-) Contexts},
author={Hu, Jiewen and Zhu, Thomas and Welleck, Sean},
journal={arXiv preprint arXiv:2408.03350},
year={2024}
}