Research-Stack/4-Infrastructure/shim
Brandon Schneider 48eb892f49 feat: AlphaProof batch mode with copy-if pre-filter
New CLI mode: python alphaproof_loop.py --batch <lean_dir>

Pipeline:
1. Pre-filter scans Lean codebase (11,434 theorems)
2. Classifies trivial (63.5%) vs non-trivial (36.5%)
3. Prioritizes non-trivial by tactic count + sorry weight
4. Feeds hardest problems to Ollama LLM first
5. Skips trivial theorems entirely (zero deltas)

Usage:
  python alphaproof_loop.py --batch ../../0-Core-Formalism/lean/Semantics/Semantics
  python alphaproof_loop.py --batch . --max-iter 20 --model deepseek-coder-v2:16b

Same pattern as vectorized copy_if:
  - Skip zero deltas → 40x faster (blog post)
  - Skip trivial theorems → 2.7x faster (pre-filter)
  - Focus solver on residuals → fewer iterations
2026-05-29 02:42:04 -05:00
..
authentik_agent_manager WIP: accumulated changes 2026-05-25 16:24:21 -05:00
lake_compile_bridge style(compile-bridge): format GPU verifier 2026-05-20 18:46:49 -05:00
netwatch WIP: accumulated changes 2026-05-25 16:24:21 -05:00
tang9k_ipc_worker WIP: accumulated changes 2026-05-25 16:24:21 -05:00
alphaproof_loop.py feat: AlphaProof batch mode with copy-if pre-filter 2026-05-29 02:42:04 -05:00
batch_embed_artifacts.py refactor(rds): consolidate 14 psycopg2 connect patterns into shared rds_connect module 2026-05-26 15:09:34 -05:00
beaver_mask_freshness_negative_controls.py Stage stack solidification source slice 2026-05-11 22:08:10 -05:00
braid_search.py fix: braid_search.py QUBO/soliton from float to Q16_16 integer arithmetic 2026-05-28 17:47:40 -05:00
braid_vcn_encoder.py feat: vectorized delta+RLE via copy-if pattern (3.3x faster, 2.5x smaller) 2026-05-29 02:24:55 -05:00
build_corpus278.py feat(lean): complete goldenContractionEnergyDecrease proof + PIST predictions pipeline v2 2026-05-27 12:40:16 -05:00
build_pist_matrices_278.py feat(lean): complete goldenContractionEnergyDecrease proof + PIST predictions pipeline v2 2026-05-27 12:40:16 -05:00
clean_rrc_pist_validation.py feat(pist): add RRC PIST validation report cleaner 2026-05-26 15:38:07 -05:00
combined_theorems.py feat(pist): scaled Tier 2B batch — 21/64 theorems, RRCShape 71.4% 2026-05-26 10:34:32 -05:00
compare_tier1_vs_tier2.py feat(pist): Tier 2 beats Tier 1 on 5/6 independent targets 2026-05-26 09:57:10 -05:00
credential_loader.py refactor(rds): consolidate 14 psycopg2 connect patterns into shared rds_connect module 2026-05-26 15:09:34 -05:00
dataset_ingest_rds.py refactor(rds): consolidate 14 psycopg2 connect patterns into shared rds_connect module 2026-05-26 15:09:34 -05:00
decompose_tier2b_traces.py feat(pist): Tier 2B spectral decomposition — first real proof-path spectra 2026-05-26 03:08:05 -05:00
emit278_extract.py feat(lean): wire 278-equation corpus end-to-end; emit emit278.json 2026-05-27 00:11:55 -05:00
ene_migrate_and_tag.py cleanup(ene): remove hardcoded schema path, drop inline schema fallback, add legacy shim strip receipt 2026-05-26 16:22:40 -05:00
ene_substrate_schema.sql feat(infra): add DSP node schema and flac_dsp_node.py shim 2026-05-29 01:31:13 -05:00
ene_wiki_body_reingest.py refactor(rds): consolidate 14 psycopg2 connect patterns into shared rds_connect module 2026-05-26 15:09:34 -05:00
failure_flexure_bank.py feat(pist): Route-Repair v1.1 — 60 failure flexures ingested, obstruction-type voting 2026-05-26 12:17:42 -05:00
flac_dsp_node.py feat(infra): add DSP node schema and flac_dsp_node.py shim 2026-05-29 01:31:13 -05:00
genus0_sphere_shell_demo.py fix(lean+shim): enforce lean-coding rules across audit surface 2026-05-26 23:17:40 -05:00
gpu_fpga_ipc_symbol_surface.py WIP: accumulated changes 2026-05-25 16:24:21 -05:00
hutter_jxl_starfield_eigenprobe.py Stage JXL starfield replay slice 2026-05-11 22:08:44 -05:00
hutter_jxl_starfield_replay_verify.py Stage JXL starfield replay slice 2026-05-11 22:08:44 -05:00
ingest_57_flexures.py refactor(rds): consolidate 14 psycopg2 connect patterns into shared rds_connect module 2026-05-26 15:09:34 -05:00
ingest_flexure_joints.py feat(pist): flexure features v2 — full spectral profile per joint 2026-05-26 11:00:31 -05:00
joint_classifier.py refactor(rds): consolidate 14 psycopg2 connect patterns into shared rds_connect module 2026-05-26 15:09:34 -05:00
label_canary_theorems.py fix(lean+shim): enforce lean-coding rules across audit surface 2026-05-26 23:17:40 -05:00
lean_proof_prefilter.py feat: Lean proof pre-filter (copy-if pattern for compilation) 2026-05-29 02:34:38 -05:00
lean_trace_bridge.py feat(pist): Tier 2 trace bridge — tactic-level goal transitions 2026-05-26 02:28:16 -05:00
lean_trace_bridge_v2.py feat(pist): 57/64 theorem batch — 89.5% proof status LOOCV 2026-05-26 11:20:17 -05:00
Modelfile.gemma-physics-math Track remaining source and documentation inventory 2026-05-11 22:18:31 -05:00
particle_physics_lut.py feat: particle physics LUT — 50 years of PDG data as Q16_16 BRAM tables 2026-05-28 19:26:27 -05:00
pist_canary_batch.py feat(pist): canary batch — 42 real Lean theorems through full pipeline 2026-05-26 02:09:08 -05:00
pist_classify.py refactor(rds): consolidate 14 psycopg2 connect patterns into shared rds_connect module 2026-05-26 15:09:34 -05:00
pist_matrix_builder.py feat(lean): complete goldenContractionEnergyDecrease proof + PIST predictions pipeline v2 2026-05-27 12:40:16 -05:00
pist_route_repair.py feat(pist): Route-Repair Loop v1 — 11% recovery rate 2026-05-26 11:38:01 -05:00
pist_trace_classify_mcp.py feat(lean): port pist_trace_classify motif scoring to Semantics.PIST.Motif 2026-05-26 23:45:07 -05:00
pist_trace_decompose.py feat(pist): Tier 2 trace canary — 24 multi-tactic Lean theorems 2026-05-26 02:37:22 -05:00
q16_lut_vcn.py feat: 12 math enhancements — Q16 LUT, braid VCN encoder, FPGA Verilog, FFT, crypto 2026-05-28 14:49:26 -05:00
qubo_highs.py feat: HiGHS integration, scale space solver, adjugate matrix, FPGA voltage/BRAM modules 2026-05-28 15:42:14 -05:00
rds_connect.py refactor(rds): consolidate 14 psycopg2 connect patterns into shared rds_connect module 2026-05-26 15:09:34 -05:00
requirements.txt feat: HiGHS integration, scale space solver, adjugate matrix, FPGA voltage/BRAM modules 2026-05-28 15:42:14 -05:00
route_repair_v14a.py feat(lean): port route_repair_v14a rank_patches to Semantics.PIST.Repair 2026-05-26 23:32:36 -05:00
routing_benchmark.py fix(lean+shim): enforce lean-coding rules across audit surface 2026-05-26 23:17:40 -05:00
rrc_pist_shape_alignment.py fix(lean+shim): enforce lean-coding rules across audit surface 2026-05-26 23:17:40 -05:00
run_scaled_trace.py feat(pist): scaled Tier 2B batch — 21/64 theorems, RRCShape 71.4% 2026-05-26 10:34:32 -05:00
run_trace_canary.py feat(pist): Tier 2 trace canary — 24 multi-tactic Lean theorems 2026-05-26 02:37:22 -05:00
run_trace_v2_canary.py feat(pist): Tier 2B — instrumented trace bridge with real transition matrices 2026-05-26 02:56:46 -05:00
scale_space_solver.py feat: Tailscale graceful degradation — chain never fails 2026-05-28 19:19:14 -05:00
seed_flexure_dataset.py refactor(rds): consolidate 14 psycopg2 connect patterns into shared rds_connect module 2026-05-26 15:09:34 -05:00
stack_fail_closure_register.py Stage stack solidification source slice 2026-05-11 22:08:10 -05:00
stack_solidification_audit.py Stage stack solidification source slice 2026-05-11 22:08:10 -05:00
sync_wiki_to_rds.py refactor(rds): consolidate 14 psycopg2 connect patterns into shared rds_connect module 2026-05-26 15:09:34 -05:00
tang9k_uart_beacon_probe.py Stage stack solidification source slice 2026-05-11 22:08:10 -05:00
test_braid_pipeline.py fix: update Sidon tests for Mian-Chowla API (68/68 pass) 2026-05-28 17:06:40 -05:00
test_pist_receipt_density_injector.py test(pist): add receipt-density injector regression harness 2026-05-26 15:16:40 -05:00
trace_canary_theorems.py feat(pist): Tier 2 trace canary — 24 multi-tactic Lean theorems 2026-05-26 02:37:22 -05:00
validate_receipt_density_sidecar.py feat(pist): add receipt-density sidecar readback validator 2026-05-26 15:18:11 -05:00
validate_rrc_predictions.py fix(lean+shim): enforce lean-coding rules across audit surface 2026-05-26 23:17:40 -05:00
vcn_compute_substrate.py feat: wire pipeline into VCN substrate + FPGA bitstream for Q16 LUT 2026-05-28 15:02:13 -05:00