davidbusbib commited on
Commit
2162cb9
·
verified ·
1 Parent(s): 403e093

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -58,3 +58,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ embeddings_corpus/idx_to_statement.json filter=lfs diff=lfs merge=lfs -text
62
+ embeddings_deepseek/idx_to_statement.json filter=lfs diff=lfs merge=lfs -text
63
+ embeddings_fixed/idx_to_statement.json filter=lfs diff=lfs merge=lfs -text
64
+ embeddings_mistral/idx_to_statement.json filter=lfs diff=lfs merge=lfs -text
65
+ results_shared/pool.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,35 +1,67 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
3
  ---
4
 
5
  # vector_behavior — data bundle
6
 
7
  Companion data for https://github.com/david-busbib/vector_behavior-
8
 
9
- Theorem embeddings restricted to the 99,552 Mathlib theorems the study uses,
10
- written in pool order, float32. Also carries the proof-dependency graph reduced to
11
- what the scripts read.
12
 
13
- | file | size | contents |
14
- |---|---|---|
15
- | `vb_bundle_e5_large.zip` | 375 MB | `e5_large` (1024-dim), `pool.json`, `subset.json`, `neighbors.npz`, dependency graph |
 
 
 
 
 
16
 
17
- ## Use
18
 
19
  ```bash
20
  git clone https://github.com/david-busbib/vector_behavior-.git
21
  cd vector_behavior-
22
  pip install -r requirements.txt
23
 
24
- unzip vb_bundle_e5_large.zip
25
- cp vb_bundle/results_shared/* results/shared/
26
- export VB_DATA=$PWD/vb_bundle
 
 
27
 
28
  python scripts/19_read_mutual.py
29
  ```
30
 
31
- Scripts filter themselves to the embedding spaces present, so this partial bundle
32
- runs the whole pipeline. Numbers come out lower than the report's headline column,
33
- which uses `e5_mistral` — rankings and conclusions are identical.
 
 
 
 
 
 
 
 
 
 
 
34
 
35
- md5 `d042a6370c4c02ba933adbbae51205a6`
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ task_categories:
4
+ - feature-extraction
5
+ tags:
6
+ - mathlib
7
+ - lean4
8
+ - theorem-embeddings
9
  ---
10
 
11
  # vector_behavior — data bundle
12
 
13
  Companion data for https://github.com/david-busbib/vector_behavior-
14
 
15
+ Four theorem embedding spaces over the same 99,552 Mathlib theorems, restricted to
16
+ the rows the study uses and written **in pool order**, float32. Also carries the
17
+ proof-dependency graph, reduced to what the scripts actually read.
18
 
19
+ | directory | space | dim | size |
20
+ |---|---|---|---|
21
+ | `embeddings_mistral/` | `e5_mistral` — intfloat/e5-mistral-7b-instruct | 4096 | 1.6 GB |
22
+ | `embeddings_corpus/` | `e5_large` — intfloat/e5-large-v2 | 1024 | 407 MB |
23
+ | `embeddings_fixed/` | `e5_large_stmt` — same model, different text source | 1024 | 407 MB |
24
+ | `embeddings_deepseek/` | `deepseek_prover` — **degenerate, contrast only** | 4096 | 1.6 GB |
25
+ | `results_shared/` | pool.json, subset.json, neighbors.npz | | 27 MB |
26
+ | `graph_uses.json.gz` | proof dependency graph, 55,575 theorems | | 2.4 MB |
27
 
28
+ ## Setup
29
 
30
  ```bash
31
  git clone https://github.com/david-busbib/vector_behavior-.git
32
  cd vector_behavior-
33
  pip install -r requirements.txt
34
 
35
+ huggingface-cli download davidbusbib/vector-behavior-data \
36
+ --repo-type dataset --local-dir vb_data
37
+
38
+ cp vb_data/results_shared/* results/shared/
39
+ export VB_DATA=$PWD/vb_data
40
 
41
  python scripts/19_read_mutual.py
42
  ```
43
 
44
+ ### Pulling only what you need
45
+
46
+ Each space is ~0.4-1.6 GB. To take one:
47
+
48
+ ```bash
49
+ huggingface-cli download davidbusbib/vector-behavior-data \
50
+ --repo-type dataset --local-dir vb_data \
51
+ --include "embeddings_corpus/*" "results_shared/*" "graph_uses.json.gz" "to_additive.json"
52
+ ```
53
+
54
+ Scripts filter themselves to whichever spaces are present, so a partial download
55
+ runs the whole pipeline over the subset you took.
56
+
57
+ ## Notes
58
 
59
+ * Rows are pool-ordered, so `pool["rows"][space]` is the identity. This is why the
60
+ arrays are smaller than the originals (99,552 rather than 180,907 / 104,050 rows)
61
+ and why no script needs changing.
62
+ * float32 throughout. float16 moves the numbers.
63
+ * `deepseek_prover` is degenerate — 81% of its variance sits in one direction after
64
+ centring, and it was extracted under fp16. It is in the study as a contrast, never
65
+ as evidence. See `RESULTS.md`.
66
+ * Proofs and the dependency graph are **held back** as validation in this project.
67
+ `graph_uses.json.gz` is here so Phase 3 can be rerun; it is not an encoder input.
embeddings_corpus/embeddings.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:085cade866c03a7085ee971825e60391ee3717786d53581baa8a6e8b56f3b47d
3
+ size 407765120
embeddings_corpus/idx_to_name.json ADDED
The diff for this file is too large to render. See raw diff
 
embeddings_corpus/idx_to_statement.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c22e1a37a8eb7ecf781bc687eeeb58a8640998d9cde3cd65091540807bac15f5
3
+ size 14863963
embeddings_deepseek/embeddings.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:959199b402ca58d02d0f5f2828fa2a298ba2319eb77a1fd11c8a5ba277936b9d
3
+ size 1631060096
embeddings_deepseek/idx_to_name.json ADDED
The diff for this file is too large to render. See raw diff
 
embeddings_deepseek/idx_to_statement.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c22e1a37a8eb7ecf781bc687eeeb58a8640998d9cde3cd65091540807bac15f5
3
+ size 14863963
embeddings_fixed/embeddings.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85b498a3eefbfc85f3b022bd2abf07d7140bc69941da208e5ecd07f8355295f1
3
+ size 407765120
embeddings_fixed/idx_to_name.json ADDED
The diff for this file is too large to render. See raw diff
 
embeddings_fixed/idx_to_statement.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c22e1a37a8eb7ecf781bc687eeeb58a8640998d9cde3cd65091540807bac15f5
3
+ size 14863963
embeddings_mistral/embeddings.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aa24fa51e4aedc7b2d61374a40ee101df455a0ac92aec457a5778d51c35a047
3
+ size 1631060096
embeddings_mistral/idx_to_name.json ADDED
The diff for this file is too large to render. See raw diff
 
embeddings_mistral/idx_to_statement.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c22e1a37a8eb7ecf781bc687eeeb58a8640998d9cde3cd65091540807bac15f5
3
+ size 14863963
graph_uses.json.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:800928ca784f61d5a413ff0360a8e13cc5bc338fc462e4df80d53bceaba7c84d
3
+ size 2459134
results_shared/neighbors.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a106ab3c2559f0d0f3ab43c6cd4aaa0def154ef41e36f0ae6fe2281928813a11
3
+ size 1106301
results_shared/pool.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43185c5a16f73016d89a0925bc2292ac951e358234feb2e6030a526fd1ff257b
3
+ size 25361079
results_shared/subset.json ADDED
The diff for this file is too large to render. See raw diff
 
to_additive.json ADDED
The diff for this file is too large to render. See raw diff