Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,73 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
## Example Entry
|
| 6 |
+
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:
|
| 7 |
+
|
| 8 |
+
```lean
|
| 9 |
+
import Mathlib.Data.Real.Basic
|
| 10 |
+
|
| 11 |
+
/-!
|
| 12 |
+
# Square function
|
| 13 |
+
We define the squaring function `s : ℝ → ℝ` to be `s x := x * x`.
|
| 14 |
+
-/
|
| 15 |
+
|
| 16 |
+
def s (x : ℝ) : ℝ := x * x
|
| 17 |
+
|
| 18 |
+
lemma s_eq_pow_two {x : ℝ} : s x = x ^ 2 := by
|
| 19 |
+
rw [s, pow_two]
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
The problem is formatted in JSON as follows:
|
| 23 |
+
|
| 24 |
+
```json
|
| 25 |
+
{
|
| 26 |
+
"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",
|
| 27 |
+
"theoremStatement": "lemma s_eq_pow_two {x : ℝ} : s x = x ^ 2",
|
| 28 |
+
"theoremName": "s_eq_pow_two",
|
| 29 |
+
"fileCreated": "(git commit)",
|
| 30 |
+
"theoremCreated": "(git commit)",
|
| 31 |
+
"file": "(file name)",
|
| 32 |
+
"positionMetadata": {
|
| 33 |
+
"lineInFile": 10,
|
| 34 |
+
"tokenPositionInFile": 152,
|
| 35 |
+
"theoremPositionInFile": 1
|
| 36 |
+
},
|
| 37 |
+
"dependencyMetadata": {
|
| 38 |
+
"inFilePremises": true,
|
| 39 |
+
"repositoryPremises": false
|
| 40 |
+
},
|
| 41 |
+
"proofMetadata": {
|
| 42 |
+
"hasProof": true,
|
| 43 |
+
"proof": "by\n rw [s, pow_two]",
|
| 44 |
+
"proofType": "tactic",
|
| 45 |
+
"proofLengthLines": 2,
|
| 46 |
+
"proofLengthTokens": 20
|
| 47 |
+
}
|
| 48 |
+
}
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
### Description of Each Entry
|
| 52 |
+
|
| 53 |
+
- **srcContext**: The context of the source file preceding the theorem, including imports and relevant definitions. This provides necessary background to understand the theorem.
|
| 54 |
+
- **theoremStatement**: The statement of the theorem being proved.
|
| 55 |
+
- **theoremName**: The name of the theorem.
|
| 56 |
+
- **fileCreated**: The git commit hash indicating when the file was created.
|
| 57 |
+
- **theoremCreated**: The git commit hash indicating when the theorem was added.
|
| 58 |
+
- **file**: The name of the file containing the theorem.
|
| 59 |
+
- **positionMetadata**:
|
| 60 |
+
- **lineInFile**: The line number in the file where the theorem is located.
|
| 61 |
+
- **tokenPositionInFile**: The number of tokens in the file before the theorem starts.
|
| 62 |
+
- **theoremPositionInFile**: The number of premises (definitions, theorems) before the theorem in the file.
|
| 63 |
+
- **dependencyMetadata**:
|
| 64 |
+
- **inFilePremises**: Indicates whether the theorem uses definitions or lemmas defined in the same file.
|
| 65 |
+
- **repositoryPremises**: Indicates whether the theorem uses definitions or lemmas defined in another file within the same repository.
|
| 66 |
+
- **proofMetadata**:
|
| 67 |
+
- **hasProof**: Indicates whether the theorem has a proof.
|
| 68 |
+
- **proof**: The proof of the theorem.
|
| 69 |
+
- **proofType**: The type of proof, term proof or tactic proof.
|
| 70 |
+
- **proofLengthLines**: The length of the proof in lines.
|
| 71 |
+
- **proofLengthTokens**: The length of the proof in tokens.
|
| 72 |
+
|
| 73 |
+
In addition to individual entries, we also record the version (git commit) of the repository.
|