@louisultra/dsh-verymath 0.0.0-stage → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +133 -0
- package/LICENSE +21 -0
- package/NOTICE.md +35 -0
- package/README.md +108 -2
- package/README_EN.md +105 -0
- package/UPSTREAM.json +106 -0
- package/cordis.patch.yml +12 -0
- package/docs/capability-examples.md +581 -0
- package/docs/examples/README.md +32 -0
- package/docs/examples/bad_scan.md +10 -0
- package/docs/examples/broken-proof.lean +9 -0
- package/docs/examples/claims.md +7 -0
- package/docs/examples/knapsack.json +10 -0
- package/docs/examples/matrix.json +1 -0
- package/docs/examples/points.csv +21 -0
- package/docs/examples/qp.json +8 -0
- package/docs/examples/research-ws/project/GOALS.yaml +4 -0
- package/docs/examples/research-ws/workstreams/ws-lsa/report.md +13 -0
- package/docs/examples/research-ws/workstreams/ws-lsa/reviews/r1.json +1 -0
- package/docs/examples/research-ws/workstreams/ws-lsa/status.yaml +1 -0
- package/docs/examples/source.csv +4 -0
- package/lib/core/error.d.ts +20 -0
- package/lib/core/error.js +25 -0
- package/lib/core/gates.d.ts +42 -0
- package/lib/core/gates.js +217 -0
- package/lib/core/glossary.d.ts +101 -0
- package/lib/core/glossary.js +243 -0
- package/lib/core/graph.d.ts +118 -0
- package/lib/core/graph.js +460 -0
- package/lib/core/index.d.ts +120 -0
- package/lib/core/index.js +197 -0
- package/lib/core/paper.d.ts +163 -0
- package/lib/core/paper.js +73 -0
- package/lib/core/paths.d.ts +2 -0
- package/lib/core/paths.js +12 -0
- package/lib/core/sage.d.ts +61 -0
- package/lib/core/sage.js +212 -0
- package/lib/core/skills.d.ts +11 -0
- package/lib/core/skills.js +110 -0
- package/lib/tool/index.d.ts +21 -0
- package/lib/tool/index.js +1144 -0
- package/package.json +92 -4
- package/skills/after-ocr/SKILL.md +123 -0
- package/skills/after-ocr/references/audit-schema.md +94 -0
- package/skills/after-ocr/references/error-taxonomy.md +179 -0
- package/skills/after-ocr/scripts/merge_audit_logs.py +329 -0
- package/skills/after-ocr/scripts/scan_markdown_ocr.py +350 -0
- package/skills/after-ocr/tests/test_scripts.py +84 -0
- package/skills/discover-math-problems/SKILL.md +115 -0
- package/skills/discover-math-problems/references/artifact-contract.md +93 -0
- package/skills/discover-math-problems/references/autonomous-research-protocol.md +86 -0
- package/skills/discover-math-problems/references/conjecture-generation-protocol.md +63 -0
- package/skills/discover-math-problems/references/extremal-graph-variants.md +53 -0
- package/skills/graph-theory-paper-reading/SKILL.md +600 -0
- package/skills/invariant-computation/SKILL.md +169 -0
- package/skills/invariant-computation/examples/invariant_summary.example.json +51 -0
- package/skills/invariant-computation/manifest.yaml +46 -0
- package/skills/invariant-computation/references/INDEX.md +20 -0
- package/skills/invariant-computation/references/failure_modes.md +40 -0
- package/skills/invariant-computation/references/method_route_map.md +177 -0
- package/skills/invariant-computation/references/source_notes.md +19 -0
- package/skills/invariant-computation/references/tool_catalog.md +65 -0
- package/skills/invariant-computation/references/validation_checks.md +52 -0
- package/skills/invariant-computation/schema/invariant_summary.schema.json +260 -0
- package/skills/lean-formalization/SKILL.md +111 -0
- package/skills/lean-formalization/lean-runtime/config/env.example +5 -0
- package/skills/lean-formalization/lean-runtime/config/lean_agent.example.toml +28 -0
- package/skills/lean-formalization/lean-runtime/config/numina_runtime.example.toml +12 -0
- package/skills/lean-formalization/lean-runtime/examples/smoke/LocalLeanSmoke.lean +7 -0
- package/skills/lean-formalization/lean-runtime/prompts/complete_sorries.md +3 -0
- package/skills/lean-formalization/lean-runtime/prompts/formalize_statement.md +3 -0
- package/skills/lean-formalization/lean-runtime/prompts/prove_theorem.md +3 -0
- package/skills/lean-formalization/lean-runtime/prompts/repair_lean_file.md +3 -0
- package/skills/lean-formalization/lean-runtime/references/backend_adapter_checklist.md +36 -0
- package/skills/lean-formalization/lean-runtime/references/direct_lean_workflow.md +48 -0
- package/skills/lean-formalization/lean-runtime/references/failure_taxonomy.md +17 -0
- package/skills/lean-formalization/lean-runtime/references/interactive_orchestration.md +83 -0
- package/skills/lean-formalization/lean-runtime/references/lean_agent_capability_map.md +116 -0
- package/skills/lean-formalization/lean-runtime/references/lean_lsp_mcp_adapter.md +219 -0
- package/skills/lean-formalization/lean-runtime/references/lean_runtime_configuration.md +92 -0
- package/skills/lean-formalization/lean-runtime/references/numina_reverse_analysis.md +80 -0
- package/skills/lean-formalization/lean-runtime/references/numina_runtime.md +41 -0
- package/skills/lean-formalization/lean-runtime/references/numina_subagent_troubleshooting.md +77 -0
- package/skills/lean-formalization/lean-runtime/references/review_checklist.md +10 -0
- package/skills/lean-formalization/lean-runtime/references/specialist_agent_patterns.md +65 -0
- package/skills/lean-formalization/lean-runtime/schemas/config.schema.json +12 -0
- package/skills/lean-formalization/lean-runtime/schemas/result.schema.json +33 -0
- package/skills/lean-formalization/lean-runtime/schemas/task.schema.json +30 -0
- package/skills/lean-formalization/lean-runtime/scripts/ai4m_lean.py +222 -0
- package/skills/lean-formalization/lean-runtime/scripts/check_lean_project.py +134 -0
- package/skills/lean-formalization/lean-runtime/scripts/common.py +296 -0
- package/skills/lean-formalization/lean-runtime/scripts/configure_lean.py +222 -0
- package/skills/lean-formalization/lean-runtime/scripts/detect_sorry.py +49 -0
- package/skills/lean-formalization/lean-runtime/scripts/direct_task.py +100 -0
- package/skills/lean-formalization/lean-runtime/scripts/extract_minimal_failure.py +74 -0
- package/skills/lean-formalization/lean-runtime/scripts/numina_runtime.py +414 -0
- package/skills/lean-formalization/lean-runtime/scripts/smoke_test.py +75 -0
- package/skills/lean-formalization/lean-runtime/scripts/tool_status.py +79 -0
- package/skills/lean-formalization/lean-runtime/scripts/validate_patch.py +81 -0
- package/skills/lean-formalization/lean-runtime/scripts/verify_delivery.py +484 -0
- package/skills/lean-formalization/lean-runtime/tests/fixtures/after_bad.lean +4 -0
- package/skills/lean-formalization/lean-runtime/tests/fixtures/after_statement_changed.lean +4 -0
- package/skills/lean-formalization/lean-runtime/tests/fixtures/before.lean +4 -0
- package/skills/lean-formalization/lean-runtime/tests/fixtures/failure.lean +7 -0
- package/skills/lean-formalization/lean-runtime/tests/test_check_lean_project.py +59 -0
- package/skills/lean-formalization/lean-runtime/tests/test_cli.py +377 -0
- package/skills/lean-formalization/lean-runtime/tests/test_common_config.py +84 -0
- package/skills/lean-formalization/lean-runtime/tests/test_configure_lean.py +138 -0
- package/skills/lean-formalization/lean-runtime/tests/test_detect_sorry.py +24 -0
- package/skills/lean-formalization/lean-runtime/tests/test_direct_task.py +69 -0
- package/skills/lean-formalization/lean-runtime/tests/test_numina_runtime.py +168 -0
- package/skills/lean-formalization/lean-runtime/tests/test_validate_patch.py +29 -0
- package/skills/lean-setup/SKILL.md +99 -0
- package/skills/least-squares/README.md +85 -0
- package/skills/least-squares/SKILL.md +613 -0
- package/skills/least-squares/examples.md +380 -0
- package/skills/math-beamer/SKILL.md +325 -0
- package/skills/math-beamer/references/build-and-layout-audit.md +63 -0
- package/skills/math-beamer/references/math-domain-patterns.md +56 -0
- package/skills/math-beamer/references/template-policy.md +43 -0
- package/skills/math-beamer/references/template-source-index.md +51 -0
- package/skills/math-beamer/templates/catalog.yaml +235 -0
- package/skills/math-beamer/templates/packs/algebra-number-theory-talk/main.tex +45 -0
- package/skills/math-beamer/templates/packs/algebra-number-theory-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/algorithm-talk/main.tex +43 -0
- package/skills/math-beamer/templates/packs/algorithm-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/analysis-core-talk/main.tex +49 -0
- package/skills/math-beamer/templates/packs/analysis-core-talk/template.yaml +19 -0
- package/skills/math-beamer/templates/packs/backup-heavy-talk/main.tex +40 -0
- package/skills/math-beamer/templates/packs/backup-heavy-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/beamerposter-a0/main.tex +45 -0
- package/skills/math-beamer/templates/packs/beamerposter-a0/template.yaml +12 -0
- package/skills/math-beamer/templates/packs/combinatorics-graph-talk/main.tex +53 -0
- package/skills/math-beamer/templates/packs/combinatorics-graph-talk/template.yaml +18 -0
- package/skills/math-beamer/templates/packs/control-systems-talk/main.tex +51 -0
- package/skills/math-beamer/templates/packs/control-systems-talk/template.yaml +18 -0
- package/skills/math-beamer/templates/packs/course-lecture-zh/main.tex +43 -0
- package/skills/math-beamer/templates/packs/course-lecture-zh/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/data-experiment-results/main.tex +45 -0
- package/skills/math-beamer/templates/packs/data-experiment-results/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/dynamical-systems-talk/main.tex +42 -0
- package/skills/math-beamer/templates/packs/dynamical-systems-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/geometry-topology-talk/main.tex +43 -0
- package/skills/math-beamer/templates/packs/geometry-topology-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/information-coding-crypto-talk/main.tex +49 -0
- package/skills/math-beamer/templates/packs/information-coding-crypto-talk/template.yaml +18 -0
- package/skills/math-beamer/templates/packs/logic-foundations-category-talk/main.tex +51 -0
- package/skills/math-beamer/templates/packs/logic-foundations-category-talk/template.yaml +18 -0
- package/skills/math-beamer/templates/packs/numerical-analysis-talk/main.tex +51 -0
- package/skills/math-beamer/templates/packs/numerical-analysis-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/optimization-talk/main.tex +58 -0
- package/skills/math-beamer/templates/packs/optimization-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/pde-analysis-talk/main.tex +49 -0
- package/skills/math-beamer/templates/packs/pde-analysis-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/probability-statistics-talk/main.tex +52 -0
- package/skills/math-beamer/templates/packs/probability-statistics-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/reading-group-paper/main.tex +46 -0
- package/skills/math-beamer/templates/packs/reading-group-paper/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/seminar-minimal-en/main.tex +60 -0
- package/skills/math-beamer/templates/packs/seminar-minimal-en/template.yaml +13 -0
- package/skills/math-beamer/templates/packs/seminar-minimal-zh/main.tex +60 -0
- package/skills/math-beamer/templates/packs/seminar-minimal-zh/template.yaml +13 -0
- package/skills/math-beamer/templates/packs/theorem-proof-talk/main.tex +60 -0
- package/skills/math-beamer/templates/packs/theorem-proof-talk/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/thesis-defense/main.tex +42 -0
- package/skills/math-beamer/templates/packs/thesis-defense/template.yaml +9 -0
- package/skills/math-beamer/templates/packs/workshop-tutorial/main.tex +32 -0
- package/skills/math-beamer/templates/packs/workshop-tutorial/template.yaml +9 -0
- package/skills/math-beamer/templates/preview-gallery.md +32 -0
- package/skills/math-beamer/templates/previews/algebra-number-theory-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/algebra-number-theory-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/algorithm-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/algorithm-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/analysis-core-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/analysis-core-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/backup-heavy-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/backup-heavy-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/beamerposter-a0-content.png +0 -0
- package/skills/math-beamer/templates/previews/beamerposter-a0-cover.png +0 -0
- package/skills/math-beamer/templates/previews/combinatorics-graph-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/combinatorics-graph-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/control-systems-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/control-systems-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/course-lecture-zh-content.png +0 -0
- package/skills/math-beamer/templates/previews/course-lecture-zh-cover.png +0 -0
- package/skills/math-beamer/templates/previews/data-experiment-results-content.png +0 -0
- package/skills/math-beamer/templates/previews/data-experiment-results-cover.png +0 -0
- package/skills/math-beamer/templates/previews/dynamical-systems-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/dynamical-systems-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/geometry-topology-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/geometry-topology-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/information-coding-crypto-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/information-coding-crypto-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/logic-foundations-category-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/logic-foundations-category-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/numerical-analysis-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/numerical-analysis-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/optimization-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/optimization-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/pde-analysis-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/pde-analysis-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/probability-statistics-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/probability-statistics-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/reading-group-paper-content.png +0 -0
- package/skills/math-beamer/templates/previews/reading-group-paper-cover.png +0 -0
- package/skills/math-beamer/templates/previews/seminar-minimal-en-content.png +0 -0
- package/skills/math-beamer/templates/previews/seminar-minimal-en-cover.png +0 -0
- package/skills/math-beamer/templates/previews/seminar-minimal-zh-content.png +0 -0
- package/skills/math-beamer/templates/previews/seminar-minimal-zh-cover.png +0 -0
- package/skills/math-beamer/templates/previews/theorem-proof-talk-content.png +0 -0
- package/skills/math-beamer/templates/previews/theorem-proof-talk-cover.png +0 -0
- package/skills/math-beamer/templates/previews/thesis-defense-content.png +0 -0
- package/skills/math-beamer/templates/previews/thesis-defense-cover.png +0 -0
- package/skills/math-beamer/templates/previews/workshop-tutorial-content.png +0 -0
- package/skills/math-beamer/templates/previews/workshop-tutorial-cover.png +0 -0
- package/skills/math-beamer/templates/review-report.md +54 -0
- package/skills/math-beamer/templates/slide-source-ledger.md +22 -0
- package/skills/math-beamer/templates/source-packet.md +50 -0
- package/skills/math-glossary/SKILL.md +347 -0
- package/skills/math-glossary/references/glossary-schema.md +71 -0
- package/skills/math-glossary/references/glossary-usage-guide.md +176 -0
- package/skills/math-glossary/references/glossary-web-template.md +127 -0
- package/skills/math-glossary/references/glossary.schema.json +76 -0
- package/skills/math-glossary/references/user-manual.md +435 -0
- package/skills/math-glossary/requirements-ai.txt +3 -0
- package/skills/math-glossary/requirements.txt +3 -0
- package/skills/math-glossary/scripts/glossary_backup.py +42 -0
- package/skills/math-glossary/scripts/glossary_build.py +467 -0
- package/skills/math-glossary/scripts/glossary_enrich_examples.py +283 -0
- package/skills/math-glossary/scripts/glossary_export.py +333 -0
- package/skills/math-glossary/scripts/glossary_web.py +1265 -0
- package/skills/math-paper-reading/README.md +163 -0
- package/skills/math-paper-reading/SKILL.md +48 -0
- package/skills/math-paper-reading/agent_router.md +36 -0
- package/skills/math-paper-reading/references/proof_pattern_taxonomy.md +123 -0
- package/skills/math-paper-reading/references/quality_rubric.md +36 -0
- package/skills/math-paper-reading/skill_base.md +627 -0
- package/skills/math-paper-reading/skill_literature_search.md +866 -0
- package/skills/math-paper-reading/skill_paper_deep_read.md +1024 -0
- package/skills/math-paper-reading/skill_pathway_proof.md +718 -0
- package/skills/math-paper-reading/skill_reference_manager.md +746 -0
- package/skills/matlab-runner/SKILL.md +217 -0
- package/skills/matlab-runner/examples/README.md +33 -0
- package/skills/matlab-runner/examples/matrix_report.m +28 -0
- package/skills/matlab-runner/examples/plot_damped_sine.m +64 -0
- package/skills/matlab-runner/examples/test_vector_norm.m +12 -0
- package/skills/matlab-runner/references/client-setup.md +24 -0
- package/skills/matlab-runner/references/file-session-safety.md +86 -0
- package/skills/matlab-runner/references/numerical-safety.md +126 -0
- package/skills/matlab-runner/references/resource-safety.md +125 -0
- package/skills/mixed-integer-programming/SKILL.md +119 -0
- package/skills/mixed-integer-programming/lp-examples.md +251 -0
- package/skills/mixed-integer-programming/mip-examples-verified.md +118 -0
- package/skills/open-problem-research-pipeline/SKILL.md +76 -0
- package/skills/open-problem-research-pipeline/skill_literature_analysis.md +201 -0
- package/skills/open-problem-research-pipeline/skill_literature_proof_framework.md +206 -0
- package/skills/open-problem-research-pipeline/skill_literature_search.md +172 -0
- package/skills/open-problem-research-pipeline/skill_qskill.md +177 -0
- package/skills/osqp-solver/SKILL.md +245 -0
- package/skills/osqp-solver/references/citation.md +25 -0
- package/skills/osqp-solver/references/dual-infeasible-example.json +14 -0
- package/skills/osqp-solver/references/feasible-example.json +21 -0
- package/skills/osqp-solver/references/primal-infeasible-example.json +17 -0
- package/skills/osqp-solver/references/python-api.md +95 -0
- package/skills/osqp-solver/references/verification.md +94 -0
- package/skills/osqp-solver/scripts/check_osqp_environment.py +120 -0
- package/skills/osqp-solver/scripts/solve_qp.py +943 -0
- package/skills/paper-writing/SKILL.md +115 -0
- package/skills/paper-writing/skill_claim_evidence_ledger.md +55 -0
- package/skills/paper-writing/skill_formula_environment_and_readability.md +41 -0
- package/skills/paper-writing/skill_latex_build_and_layout_audit.md +73 -0
- package/skills/paper-writing/skill_notation_and_variable_consistency.md +42 -0
- package/skills/paper-writing/skill_paper_skeleton_and_logical_architecture.md +54 -0
- package/skills/paper-writing/skill_proof_obligation_and_assumption_audit.md +57 -0
- package/skills/paper-writing/templates/claim-evidence-ledger.md +23 -0
- package/skills/paper-writing/templates/proof-obligation-ledger.md +22 -0
- package/skills/paper-writing/templates/rapid-prototype-paper-skeleton.md +46 -0
- package/skills/paper-writing/templates/source-packet.md +37 -0
- package/skills/paper-writing/templates/submission-readiness.md +41 -0
- package/skills/proof-blueprint-review/SKILL.md +129 -0
- package/skills/proof-blueprint-review/references/agent-mediated-proof-protocol.md +57 -0
- package/skills/proof-blueprint-review/references/generation-agent.md +45 -0
- package/skills/proof-blueprint-review/references/proof-acceptance-contract.md +41 -0
- package/skills/proof-blueprint-review/references/verification-agent.md +37 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: invariant-computation
|
|
3
|
+
description: Use when a coding agent must compute, route, validate, or explain topological, geometric, or algebraic invariants such as homology, cohomology, Betti numbers, torsion, Euler characteristic, persistent homology, knot or manifold invariants, group homology, Hilbert series, Hilbert polynomials, Betti tables, dimensions, degrees, primary decompositions, or related invariants from mathematical objects, code, data, or papers.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Invariant Computation Skill
|
|
7
|
+
|
|
8
|
+
## DSH Integration Notes
|
|
9
|
+
|
|
10
|
+
- 本技能由 `@louisultra/dsh-verymath` 插件提供。计算前端(GUDHI/SageMath/GAP/SnapPy 等)
|
|
11
|
+
一律先探测再经用户批准安装——本技能的 `manifest.yaml` 审批策略在 DSH 会话中继续生效。
|
|
12
|
+
- 产出 `invariant_summary.json` 后,用 `verymath_paper_validate` 同族的校验纪律自查:
|
|
13
|
+
`result_quality` 枚举(exact/certified_numerical/heuristic/partial/failed)必须如实,
|
|
14
|
+
`remaining_uncertainty` 不可省略。
|
|
15
|
+
- 数学对象的 LaTeX 表示与结构 JSON(来自 math-paper-reading)可作为输入;产物写入当前会话工作区。
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
This Skill is an **Invariant Computation Routing & Verification** workflow for AI4Math tasks.
|
|
19
|
+
|
|
20
|
+
It helps a coding agent turn a mathematical object into a reviewed computational representation, choose an exact, symbolic, TDA, low-dimensional topology, group-homological, or certified numerical route, run only after approval, and report invariant evidence without overstating classification claims.
|
|
21
|
+
|
|
22
|
+
## Operating Principle
|
|
23
|
+
|
|
24
|
+
Keep six layers separate and reviewable:
|
|
25
|
+
|
|
26
|
+
1. **Source object:** what the user, paper, data file, code, or formula actually provides.
|
|
27
|
+
2. **Representation:** complex, chain complex, filtration, triangulation, knot diagram, group presentation, polynomial ideal, module, cone, or numerical system.
|
|
28
|
+
3. **Invariant target:** the exact invariant, coefficient ring or field, grading, orientation, filtration convention, and expected output form.
|
|
29
|
+
4. **Backend route:** tools and commands that can compute the invariant in the current environment.
|
|
30
|
+
5. **Validation checks:** structural checks, independent identities, small examples, or cross-tool comparisons.
|
|
31
|
+
6. **Evidence report:** logs, versions, artifacts, assumptions, failures, and limits.
|
|
32
|
+
|
|
33
|
+
Never let a backend's output outrun the reviewed representation and validation layer.
|
|
34
|
+
|
|
35
|
+
## Input Modes
|
|
36
|
+
|
|
37
|
+
Accept these inputs and route them through the same checkpoint:
|
|
38
|
+
|
|
39
|
+
- finite simplicial, cubical, Delta, CW, or chain complexes;
|
|
40
|
+
- point clouds, distance matrices, scalar fields, images, volumes, and explicit filtrations;
|
|
41
|
+
- manifold triangulations, ideal triangulations, census names, Dehn fillings, knots, links, braid words, PD codes, DT codes, or Gauss codes;
|
|
42
|
+
- finite groups, group presentations, permutation groups, polycyclic groups, and cellular group actions;
|
|
43
|
+
- polynomial rings, ideals, modules, quotient rings, schemes, varieties, sheaves, cones, monoids, and toric data;
|
|
44
|
+
- paper excerpts, LaTeX definitions, code, README instructions, or mixed mathematical bundles.
|
|
45
|
+
|
|
46
|
+
When the input is not already structured, write a `representation_checkpoint.md` before proposing executable commands.
|
|
47
|
+
|
|
48
|
+
## Reference Navigation
|
|
49
|
+
|
|
50
|
+
Start with `references/INDEX.md` for route selection.
|
|
51
|
+
|
|
52
|
+
Read only the references needed for the current task:
|
|
53
|
+
|
|
54
|
+
- `references/method_route_map.md`: read when classifying the mathematical object and invariant route.
|
|
55
|
+
- `references/tool_catalog.md`: read when choosing candidate tools and commands.
|
|
56
|
+
- `references/validation_checks.md`: read before accepting computed results.
|
|
57
|
+
- `references/failure_modes.md`: read when a computation fails, stalls, or returns suspicious evidence.
|
|
58
|
+
- `references/source_notes.md`: read when source attribution or official tool scope matters.
|
|
59
|
+
|
|
60
|
+
## Workflow
|
|
61
|
+
|
|
62
|
+
1. Identify the source object and requested invariant.
|
|
63
|
+
2. Ask for missing essentials only when they block representation: coefficient ring or field, dimension, orientation convention, grading, filtration direction, variable order, base field, or desired precision.
|
|
64
|
+
3. Build a representation checkpoint:
|
|
65
|
+
|
|
66
|
+
```text
|
|
67
|
+
source evidence:
|
|
68
|
+
object family:
|
|
69
|
+
representation:
|
|
70
|
+
target invariant:
|
|
71
|
+
coefficient ring or field:
|
|
72
|
+
conventions:
|
|
73
|
+
candidate exact routes:
|
|
74
|
+
candidate symbolic routes:
|
|
75
|
+
candidate certified numerical routes:
|
|
76
|
+
missing assumptions:
|
|
77
|
+
risks:
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
4. Choose a route using `references/method_route_map.md` and `references/tool_catalog.md`.
|
|
81
|
+
5. Write a bounded computation plan with exact commands, dependencies, expected outputs, timeout, and validation checks.
|
|
82
|
+
6. Ask before installing packages, changing environments, running long computations, editing source files, using remote APIs, or accepting final mathematical claims.
|
|
83
|
+
7. Run approved commands or draft backend-specific code only when appropriate.
|
|
84
|
+
8. Parse evidence into:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
outputs/<run_id>/
|
|
88
|
+
├── input_summary.md
|
|
89
|
+
├── representation_checkpoint.md
|
|
90
|
+
├── route_plan.md
|
|
91
|
+
├── commands/
|
|
92
|
+
├── logs/
|
|
93
|
+
├── results/invariant_summary.json
|
|
94
|
+
├── validation_report.md
|
|
95
|
+
└── RUN_SUMMARY.md
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
The JSON summary should validate against the
|
|
99
|
+
[versioned schema](schema/invariant_summary.schema.json). Use the
|
|
100
|
+
[known-answer example](examples/invariant_summary.example.json) as a shape
|
|
101
|
+
reference, not as evidence for a new computation.
|
|
102
|
+
|
|
103
|
+
9. Validate results using `references/validation_checks.md`.
|
|
104
|
+
10. Report the invariant, assumptions, checks passed, checks failed, software versions, and what the invariant does not prove.
|
|
105
|
+
|
|
106
|
+
## Route Families
|
|
107
|
+
|
|
108
|
+
- **Finite complexes:** use boundary matrices, Smith normal form, sparse field reductions, cochains, and Euler checks for homology, cohomology, Betti numbers, torsion, and cup products.
|
|
109
|
+
- **Persistent homology and TDA:** use filtered complexes, persistent cohomology, Rips/Cech/alpha/witness/cubical/lower-star routes, and diagram comparisons.
|
|
110
|
+
- **Low-dimensional topology and knot theory:** use triangulation, normal-surface, hyperbolic, and knot/link-diagram routes for homology, fundamental groups, knot groups, Alexander polynomials, Jones polynomials, HOMFLY-PT polynomials, determinants, signatures, linking numbers, volumes, and certified hyperbolic quantities.
|
|
111
|
+
- **Group and CW homological algebra:** use resolutions, chain complexes, group presentations, cellular actions, and abelianization checks for group homology and cohomology.
|
|
112
|
+
- **Algebraic geometry and commutative algebra:** use Groebner bases, syzygies, free resolutions, Hilbert series, primary decomposition, saturation, radicals, and sheaf or module methods.
|
|
113
|
+
- **Toric, polyhedral, and semigroup routes:** use cone, monoid, Hilbert basis, lattice-point, and toric ideal computations.
|
|
114
|
+
- **Numerical algebraic geometry:** use homotopy continuation, witness sets, monodromy, and interval or Krawczyk certification when exact symbolic routes are infeasible.
|
|
115
|
+
|
|
116
|
+
## Approval Rules
|
|
117
|
+
|
|
118
|
+
Ask before:
|
|
119
|
+
|
|
120
|
+
- installing GUDHI, SageMath, GAP/HAP, SnapPy, Regina, Macaulay2, Singular, OSCAR, polymake, Normaliz, or other mathematical systems;
|
|
121
|
+
- running expensive enumeration, Groebner basis, homotopy continuation, normal-surface, persistent-homology, or triangulation searches;
|
|
122
|
+
- changing source files, generated data, or computational environments;
|
|
123
|
+
- using remote services or API calls;
|
|
124
|
+
- stating final mathematical conclusions beyond the evidence.
|
|
125
|
+
|
|
126
|
+
Read-only inspection, local file parsing, and drafting route plans do not require approval unless the user has imposed stricter constraints.
|
|
127
|
+
|
|
128
|
+
## Validation
|
|
129
|
+
|
|
130
|
+
Use structural checks before trusting results:
|
|
131
|
+
|
|
132
|
+
- check simplicial closure, cubical dimensions, cell incidences, and `d_{n-1} d_n = 0`;
|
|
133
|
+
- verify filtration values are monotone on faces;
|
|
134
|
+
- record coefficient rings, fields, torsion visibility, and characteristic;
|
|
135
|
+
- compare Euler characteristic with alternating Betti sums;
|
|
136
|
+
- compare `H_1` with abelianization when a fundamental group or group presentation is available;
|
|
137
|
+
- use Poincare duality only when manifold hypotheses are verified;
|
|
138
|
+
- compare known examples such as spheres, tori, projective planes, lens spaces, the unknot, trefoil, figure-eight knot, Hopf link, cyclic groups, and standard ideals;
|
|
139
|
+
- cross-check with an independent backend for publication-grade claims when feasible;
|
|
140
|
+
- require certificates or interval-backed methods for floating hyperbolic or numerical algebraic geometry claims when available.
|
|
141
|
+
|
|
142
|
+
## Failure Modes
|
|
143
|
+
|
|
144
|
+
Call out these signals explicitly:
|
|
145
|
+
|
|
146
|
+
- representation is underspecified or not closed under faces;
|
|
147
|
+
- coefficient ring or characteristic changes the invariant;
|
|
148
|
+
- boundary maps do not compose to zero;
|
|
149
|
+
- filtrations have nonmonotone values or unstable tie-breaking;
|
|
150
|
+
- combinatorial explosion makes a naive route infeasible;
|
|
151
|
+
- Groebner, Smith normal form, or primary decomposition suffers coefficient swell;
|
|
152
|
+
- triangulation is nonmanifold, unsimplified, or convention-dependent;
|
|
153
|
+
- knot/link orientation, mirror, framing, normalization, reduced versus unreduced polynomial, or encoding conventions are unclear;
|
|
154
|
+
- numerical geometry is uncertified, ill-conditioned, or precision-sensitive;
|
|
155
|
+
- computed invariants are too weak to classify the object.
|
|
156
|
+
|
|
157
|
+
## Output Contract
|
|
158
|
+
|
|
159
|
+
Every final report should include:
|
|
160
|
+
|
|
161
|
+
- object representation and source evidence;
|
|
162
|
+
- invariant requested and invariant computed;
|
|
163
|
+
- coefficient ring or field and conventions;
|
|
164
|
+
- backend route and version evidence;
|
|
165
|
+
- exact command or code path used;
|
|
166
|
+
- a non-null invariant value unless the computation failed;
|
|
167
|
+
- validation checks and their results;
|
|
168
|
+
- unresolved ambiguity and next repair route;
|
|
169
|
+
- either a classification caveat or explicit theorem evidence supporting its omission.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"object": {
|
|
4
|
+
"source": "Known-answer fixture: the boundary of a 2-simplex.",
|
|
5
|
+
"representation": "The maximal simplices are [0, 1], [1, 2], and [0, 2], with all faces included."
|
|
6
|
+
},
|
|
7
|
+
"invariant": {
|
|
8
|
+
"requested": "Betti numbers over Q",
|
|
9
|
+
"computed": "Betti numbers in degrees 0 and 1",
|
|
10
|
+
"value": {
|
|
11
|
+
"0": 1,
|
|
12
|
+
"1": 1
|
|
13
|
+
},
|
|
14
|
+
"result_quality": "exact"
|
|
15
|
+
},
|
|
16
|
+
"coefficient_ring_or_field": "Q",
|
|
17
|
+
"conventions": [
|
|
18
|
+
"unreduced homology",
|
|
19
|
+
"degrees not listed are zero"
|
|
20
|
+
],
|
|
21
|
+
"backend": {
|
|
22
|
+
"route": "finite_complexes",
|
|
23
|
+
"name": "documented exact chain-complex reduction",
|
|
24
|
+
"version_evidence": "known-answer schema fixture version 1"
|
|
25
|
+
},
|
|
26
|
+
"command_or_code_path": "not applicable: format-only known-answer fixture",
|
|
27
|
+
"validation_checks": [
|
|
28
|
+
{
|
|
29
|
+
"name": "simplicial closure",
|
|
30
|
+
"kind": "structural",
|
|
31
|
+
"status": "passed",
|
|
32
|
+
"evidence": "All vertices of the three edges are included."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "boundary-map ranks",
|
|
36
|
+
"kind": "invariant_cross_check",
|
|
37
|
+
"status": "passed",
|
|
38
|
+
"evidence": "Over Q, rank d_1 = 2 and rank d_2 = 0, so b_0 = 3 - 2 = 1 and b_1 = (3 - 2) - 0 = 1."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "Euler characteristic",
|
|
42
|
+
"kind": "invariant_cross_check",
|
|
43
|
+
"status": "passed",
|
|
44
|
+
"evidence": "3 vertices - 3 edges = 0 = b_0 - b_1 = 1 - 1."
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"remaining_uncertainty": [],
|
|
48
|
+
"next_repair_route": null,
|
|
49
|
+
"classification_caveat": "Betti numbers alone do not classify finite simplicial complexes up to homotopy equivalence.",
|
|
50
|
+
"fixture_note": "This file demonstrates the result shape and is not evidence from a computation run."
|
|
51
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
schema_version: 1
|
|
2
|
+
skill: invariant-computation
|
|
3
|
+
workflow_scope:
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
supported_input:
|
|
6
|
+
- finite complexes
|
|
7
|
+
- filtrations and point clouds
|
|
8
|
+
- triangulated manifolds and knots
|
|
9
|
+
- groups and CW complexes
|
|
10
|
+
- polynomial ideals and modules
|
|
11
|
+
- cones, monoids, and toric data
|
|
12
|
+
- paper excerpts, LaTeX, code, and data artifacts
|
|
13
|
+
route_families:
|
|
14
|
+
- finite_complexes
|
|
15
|
+
- persistent_homology
|
|
16
|
+
- low_dimensional_topology
|
|
17
|
+
- group_cw_homological_algebra
|
|
18
|
+
- algebraic_geometry_commutative_algebra
|
|
19
|
+
- toric_polyhedral_semigroup
|
|
20
|
+
- numerical_algebraic_geometry
|
|
21
|
+
approval_policy:
|
|
22
|
+
ask_before:
|
|
23
|
+
- installing dependencies
|
|
24
|
+
- changing environments
|
|
25
|
+
- running long computations
|
|
26
|
+
- editing source files
|
|
27
|
+
- using remote APIs
|
|
28
|
+
- making final mathematical claims
|
|
29
|
+
output_artifacts:
|
|
30
|
+
- input_summary.md
|
|
31
|
+
- representation_checkpoint.md
|
|
32
|
+
- route_plan.md
|
|
33
|
+
- logs/
|
|
34
|
+
- results/invariant_summary.json
|
|
35
|
+
- validation_report.md
|
|
36
|
+
- RUN_SUMMARY.md
|
|
37
|
+
validation_contract:
|
|
38
|
+
required:
|
|
39
|
+
- source representation
|
|
40
|
+
- coefficient ring or field
|
|
41
|
+
- convention notes
|
|
42
|
+
- backend version evidence
|
|
43
|
+
- structural checks
|
|
44
|
+
- invariant cross-checks
|
|
45
|
+
- remaining uncertainty
|
|
46
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Invariant Computation References
|
|
2
|
+
|
|
3
|
+
Use this index to load only the reference needed by the current task.
|
|
4
|
+
|
|
5
|
+
| Situation | Read |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| Classify the object and choose a route | `method_route_map.md` |
|
|
8
|
+
| Pick candidate software and understand input/output shapes | `tool_catalog.md` |
|
|
9
|
+
| Decide whether a result is credible | `validation_checks.md` |
|
|
10
|
+
| Diagnose failures, timeouts, suspicious results, or ambiguity | `failure_modes.md` |
|
|
11
|
+
| Cite official or primary source scope for tools | `source_notes.md` |
|
|
12
|
+
|
|
13
|
+
Core workflow:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
classify object -> choose representation -> choose backend route
|
|
17
|
+
-> plan command and validation -> run only after approval
|
|
18
|
+
-> report invariant evidence and limits
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Failure Modes And Repair Routes
|
|
2
|
+
|
|
3
|
+
## Representation Failures
|
|
4
|
+
|
|
5
|
+
| Signal | Likely cause | Repair |
|
|
6
|
+
| --- | --- | --- |
|
|
7
|
+
| missing faces or incidence errors | invalid complex input | close under faces or rebuild from facets |
|
|
8
|
+
| `d d != 0` | orientation, indexing, or boundary error | inspect boundary convention and run a tiny example |
|
|
9
|
+
| filtration value decreases on a face | invalid filtration | recompute lower-star or enforce monotonicity |
|
|
10
|
+
| nonmanifold warning | triangulation does not satisfy manifold hypotheses | switch to complex route or repair triangulation |
|
|
11
|
+
| knot invariant mismatch | mirror, orientation, framing, polynomial normalization, or encoding convention issue | compute unknot, trefoil, figure-eight, or Hopf-link sanity examples under the same convention |
|
|
12
|
+
|
|
13
|
+
## Algorithmic Failures
|
|
14
|
+
|
|
15
|
+
| Signal | Likely cause | Repair |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| memory blow-up in Rips complex | combinatorial explosion | lower max dimension, use sparse distances, use Ripser, or sample |
|
|
18
|
+
| Smith normal form stalls | coefficient swell | compute over fields first, simplify complex, use sparse or modular routes |
|
|
19
|
+
| Groebner basis stalls | term-order or coefficient swell | change term order, use elimination only when needed, try Singular/Macaulay2 |
|
|
20
|
+
| primary decomposition differs by backend | field, saturation, or embedded component convention | record assumptions and compare radicals |
|
|
21
|
+
| normal-surface enumeration explodes | triangulation too large | simplify triangulation or compute weaker invariants first |
|
|
22
|
+
| group homology incomplete | resolution length or group class limits | report partial degree range and seek a better resolution route |
|
|
23
|
+
|
|
24
|
+
## Numerical And Certification Failures
|
|
25
|
+
|
|
26
|
+
| Signal | Likely cause | Repair |
|
|
27
|
+
| --- | --- | --- |
|
|
28
|
+
| hyperbolic invariant is floating only | precision-sensitive computation | use verified/interval route when available |
|
|
29
|
+
| path tracking loses roots | ill-conditioned homotopy | increase precision, change homotopy, or certify only stable roots |
|
|
30
|
+
| residuals are large | wrong system or numerical instability | rescale, inspect equations, rerun with higher precision |
|
|
31
|
+
| certificate fails | singular or near-singular solution | report failure and avoid final exact claims |
|
|
32
|
+
|
|
33
|
+
Treat missing certification as a result-quality warning whenever a numerical route is used for a theorem-level claim.
|
|
34
|
+
|
|
35
|
+
## Interpretation Failures
|
|
36
|
+
|
|
37
|
+
- Do not infer homeomorphism, isomorphism, isotopy, or variety equality from matching weak invariants alone.
|
|
38
|
+
- Do not compare invariants computed over different coefficient rings without saying so.
|
|
39
|
+
- Do not hide missing hypotheses such as compactness, orientability, grading, reduced versus unreduced convention, or base-field characteristic.
|
|
40
|
+
- Do not treat an installed backend's default convention as universal mathematical notation.
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# Method Route Map
|
|
2
|
+
|
|
3
|
+
## Finite Complexes
|
|
4
|
+
|
|
5
|
+
Use for simplicial, cubical, Delta, CW, or explicit chain complexes.
|
|
6
|
+
|
|
7
|
+
Representations:
|
|
8
|
+
|
|
9
|
+
- facets or maximal simplices;
|
|
10
|
+
- cubical grids, images, or voxel volumes;
|
|
11
|
+
- cell boundary maps;
|
|
12
|
+
- sparse matrices over `Z`, `Q`, or finite fields.
|
|
13
|
+
|
|
14
|
+
Invariants:
|
|
15
|
+
|
|
16
|
+
- homology and cohomology groups;
|
|
17
|
+
- Betti numbers and torsion;
|
|
18
|
+
- Euler characteristic;
|
|
19
|
+
- cup products and cohomology ring data when supported;
|
|
20
|
+
- fundamental group only when the chosen backend supports it and the representation is valid.
|
|
21
|
+
|
|
22
|
+
Default route:
|
|
23
|
+
|
|
24
|
+
1. Verify closure and incidence consistency.
|
|
25
|
+
2. Build boundary maps and check `d_{n-1} d_n = 0`.
|
|
26
|
+
3. Use exact integer or field reductions for small and medium cases.
|
|
27
|
+
4. Use sparse field reductions, discrete Morse reductions, or backend-native simplification for large cases.
|
|
28
|
+
|
|
29
|
+
## Persistent Homology And TDA
|
|
30
|
+
|
|
31
|
+
Use for point clouds, distance matrices, scalar fields, images, volumes, explicit filtered complexes, and time-indexed data.
|
|
32
|
+
|
|
33
|
+
Representations:
|
|
34
|
+
|
|
35
|
+
- Vietoris-Rips, Cech, alpha, witness, cubical, lower-star, or explicit filtration;
|
|
36
|
+
- distance matrix or sparse graph;
|
|
37
|
+
- coefficient field and maximum dimension.
|
|
38
|
+
|
|
39
|
+
Invariants:
|
|
40
|
+
|
|
41
|
+
- barcodes;
|
|
42
|
+
- persistence diagrams;
|
|
43
|
+
- persistent Betti numbers;
|
|
44
|
+
- representative cycles or cochains when available;
|
|
45
|
+
- bottleneck or Wasserstein distances for comparisons.
|
|
46
|
+
|
|
47
|
+
Default route:
|
|
48
|
+
|
|
49
|
+
1. Verify filtration monotonicity and coefficient field.
|
|
50
|
+
2. Estimate size growth before building high-dimensional Rips complexes.
|
|
51
|
+
3. Prefer Ripser.py for fast Rips persistence and GUDHI for broader filtrations.
|
|
52
|
+
4. Cross-check tiny examples across two backends when results matter.
|
|
53
|
+
|
|
54
|
+
## Low-Dimensional Topology And Knot Theory
|
|
55
|
+
|
|
56
|
+
Use for 2-, 3-, and 4-manifold triangulations, ideal triangulations, knots, links, braids, and census objects.
|
|
57
|
+
|
|
58
|
+
Representations:
|
|
59
|
+
|
|
60
|
+
- triangulation files or census names;
|
|
61
|
+
- Dehn fillings;
|
|
62
|
+
- PD, DT, Gauss, braid, or planar link diagrams;
|
|
63
|
+
- normal-surface or angle-structure data.
|
|
64
|
+
|
|
65
|
+
Invariants:
|
|
66
|
+
|
|
67
|
+
- homology;
|
|
68
|
+
- fundamental group presentations;
|
|
69
|
+
- normal surfaces and decomposition signals;
|
|
70
|
+
- knot groups and Wirtinger presentations;
|
|
71
|
+
- Alexander, Jones, HOMFLY-PT, Kauffman bracket, and other knot or link polynomials when supported;
|
|
72
|
+
- determinants, signatures, Arf invariant, linking numbers, component data, and crossing or diagram statistics when supported;
|
|
73
|
+
- hyperbolic volume, canonical retriangulation, and isometry signatures when supported.
|
|
74
|
+
|
|
75
|
+
Default route:
|
|
76
|
+
|
|
77
|
+
1. Verify encoding conventions and manifold hypotheses.
|
|
78
|
+
2. For knots and links, record orientation, mirror convention, component ordering, framing if present, and polynomial normalization.
|
|
79
|
+
3. Simplify triangulations or diagrams when backend-safe.
|
|
80
|
+
4. Use exact combinatorial invariants before floating geometric invariants.
|
|
81
|
+
5. Prefer interval or verified routes for hyperbolic claims when available.
|
|
82
|
+
|
|
83
|
+
## Group And CW Homological Algebra
|
|
84
|
+
|
|
85
|
+
Use for finite groups, permutation groups, fp groups, polycyclic groups, cellular actions, and CW-complex chain data.
|
|
86
|
+
|
|
87
|
+
Representations:
|
|
88
|
+
|
|
89
|
+
- group presentations or machine-native group objects;
|
|
90
|
+
- free or projective resolutions;
|
|
91
|
+
- cellular chain complexes;
|
|
92
|
+
- covering spaces and group actions.
|
|
93
|
+
|
|
94
|
+
Invariants:
|
|
95
|
+
|
|
96
|
+
- group homology and cohomology;
|
|
97
|
+
- cohomology rings;
|
|
98
|
+
- resolutions;
|
|
99
|
+
- cellular homology and cohomology;
|
|
100
|
+
- spectral-sequence data when the backend supports it.
|
|
101
|
+
|
|
102
|
+
Default route:
|
|
103
|
+
|
|
104
|
+
1. Identify group class and whether finite algorithms apply.
|
|
105
|
+
2. Check `H_1` against abelianization.
|
|
106
|
+
3. Record resolution length and whether it is proven complete.
|
|
107
|
+
4. Treat incomplete resolutions as partial evidence.
|
|
108
|
+
|
|
109
|
+
## Algebraic Geometry And Commutative Algebra
|
|
110
|
+
|
|
111
|
+
Use for polynomial rings, ideals, modules, quotient rings, affine/projective varieties, schemes, sheaves, and graded data.
|
|
112
|
+
|
|
113
|
+
Representations:
|
|
114
|
+
|
|
115
|
+
- base field and characteristic;
|
|
116
|
+
- polynomial variables and term order;
|
|
117
|
+
- ideal generators or module presentation;
|
|
118
|
+
- grading and saturation choices.
|
|
119
|
+
|
|
120
|
+
Invariants:
|
|
121
|
+
|
|
122
|
+
- dimension and degree;
|
|
123
|
+
- Hilbert series and Hilbert polynomial;
|
|
124
|
+
- free resolutions and Betti tables;
|
|
125
|
+
- radicals and primary decompositions;
|
|
126
|
+
- Ext, Tor, sheaf cohomology, and singularity indicators when supported.
|
|
127
|
+
|
|
128
|
+
Default route:
|
|
129
|
+
|
|
130
|
+
1. Fix base field, grading, and term order.
|
|
131
|
+
2. Use Groebner or standard bases for elimination, dimension, and Hilbert data.
|
|
132
|
+
3. Use specialized free-resolution or primary-decomposition routines when available.
|
|
133
|
+
4. Cross-check dimension and Hilbert data under changed term order when feasible.
|
|
134
|
+
|
|
135
|
+
## Toric, Polyhedral, And Semigroup Routes
|
|
136
|
+
|
|
137
|
+
Use for cones, affine monoids, lattice polytopes, toric ideals, binomial ideals, and semigroup rings.
|
|
138
|
+
|
|
139
|
+
Invariants:
|
|
140
|
+
|
|
141
|
+
- Hilbert basis;
|
|
142
|
+
- Hilbert series;
|
|
143
|
+
- lattice points;
|
|
144
|
+
- normalization;
|
|
145
|
+
- multiplicity, volume, and toric ideal data.
|
|
146
|
+
|
|
147
|
+
Default route:
|
|
148
|
+
|
|
149
|
+
1. Verify lattice, cone, and grading conventions.
|
|
150
|
+
2. Use Normaliz, polymake, OSCAR, Sage, or 4ti2 depending on installed tools.
|
|
151
|
+
3. Cross-check small polytopes by direct enumeration.
|
|
152
|
+
|
|
153
|
+
## Numerical Algebraic Geometry
|
|
154
|
+
|
|
155
|
+
Use when symbolic methods are infeasible for polynomial systems or components.
|
|
156
|
+
|
|
157
|
+
Representations:
|
|
158
|
+
|
|
159
|
+
- polynomial systems;
|
|
160
|
+
- homotopies;
|
|
161
|
+
- witness sets;
|
|
162
|
+
- parameterized systems.
|
|
163
|
+
|
|
164
|
+
Invariants:
|
|
165
|
+
|
|
166
|
+
- isolated roots;
|
|
167
|
+
- degrees;
|
|
168
|
+
- witness sets;
|
|
169
|
+
- component dimensions;
|
|
170
|
+
- certified nonsingular solutions when available.
|
|
171
|
+
|
|
172
|
+
Default route:
|
|
173
|
+
|
|
174
|
+
1. Prefer symbolic exact routes for small systems.
|
|
175
|
+
2. Use homotopy continuation for larger systems.
|
|
176
|
+
3. Require certification or interval/Krawczyk checks for final claims.
|
|
177
|
+
4. Treat uncertified numerical roots as evidence, not proof.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Source Notes
|
|
2
|
+
|
|
3
|
+
These sources define the practical scope of the route families. Use official documentation first when a task requires exact API behavior.
|
|
4
|
+
|
|
5
|
+
| Source | Scope to cite |
|
|
6
|
+
| --- | --- |
|
|
7
|
+
| GUDHI documentation, https://gudhi.inria.fr/doc/latest/ | simplex trees, cubical complexes, alpha/Cech/Rips/witness complexes, persistent homology and related distances |
|
|
8
|
+
| Ripser.py documentation, https://ripser.scikit-tda.org/ | efficient Vietoris-Rips persistent homology, sparse/dense distance inputs, representative cocycles |
|
|
9
|
+
| SageMath reference, https://doc.sagemath.org/ | simplicial complexes, exact algebra, polynomial ideals, and interfaces |
|
|
10
|
+
| GAP HAP documentation, https://gap-packages.github.io/hap/doc/chap0_mj.html | homological algebra programming, group cohomology, CW complexes, resolutions |
|
|
11
|
+
| SnapPy documentation, https://snappy.computop.org/ | topology and geometry of 3-manifolds, triangulations, hyperbolic invariants, verification notes |
|
|
12
|
+
| Spherogram documentation, https://snappy.computop.org/spherogram.html | knots and links, PD/DT/braid/Gauss encodings, link invariants in the SnapPy ecosystem |
|
|
13
|
+
| Regina documentation, https://regina-normal.github.io/ | 3- and 4-manifold triangulations, normal surfaces, angle structures, knots and links |
|
|
14
|
+
| Macaulay2 documentation, https://macaulay2.com/ | commutative algebra, algebraic geometry, Groebner bases, resolutions, Betti numbers, Hilbert data |
|
|
15
|
+
| Singular documentation, https://www.singular.uni-kl.de/ | polynomial computations, standard bases, commutative algebra, singularity theory |
|
|
16
|
+
| OSCAR documentation, https://docs.oscar-system.org/ | computational algebra, geometry, number theory, schemes, toric geometry, homological algebra |
|
|
17
|
+
| Normaliz documentation, https://normaliz.uni-osnabrueck.de/ | affine monoids, rational cones, Hilbert bases, Hilbert series, lattice-point computations |
|
|
18
|
+
|
|
19
|
+
When a source is unavailable locally, do not invent exact API calls. State the intended route and ask before installing or consulting remote documentation if the task needs live API details.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Tool Catalog
|
|
2
|
+
|
|
3
|
+
This catalog lists candidate backends. Do not assume any tool is installed. Inspect the environment first and ask before installing or changing it.
|
|
4
|
+
|
|
5
|
+
## Finite Complexes And TDA
|
|
6
|
+
|
|
7
|
+
| Tool | Best fit | Inputs | Outputs |
|
|
8
|
+
| --- | --- | --- | --- |
|
|
9
|
+
| GUDHI | broad computational topology and persistent homology | simplex trees, cubical complexes, alpha/Cech/Rips/witness complexes | homology, persistence diagrams, filtrations, distances |
|
|
10
|
+
| Ripser.py | fast Vietoris-Rips persistence | point clouds, dense/sparse distance matrices | persistence diagrams, representative cocycles |
|
|
11
|
+
| Dionysus | custom filtrations and persistence variants | filtrations, Rips, lower-star data | persistence, cohomology, zigzag persistence |
|
|
12
|
+
| SageMath | exact simplicial and algebraic topology utilities | simplicial complexes and algebraic structures | homology, cohomology, algebraic calculations |
|
|
13
|
+
| polymake Topaz | simplicial and polyhedral computations | complexes, polytopes | homology, combinatorial and polyhedral invariants |
|
|
14
|
+
|
|
15
|
+
## Low-Dimensional Topology
|
|
16
|
+
|
|
17
|
+
| Tool | Best fit | Inputs | Outputs |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| Regina | 3- and 4-manifold triangulations, normal surfaces, knots and links | triangulations, normal surfaces, link diagrams | homology, normal surfaces, angle structures, knot/link invariants |
|
|
20
|
+
| SnapPy | topology and geometry of 3-manifolds | ideal triangulations, census names, Dehn fillings | homology, fundamental groups, hyperbolic volume, verified geometry routes |
|
|
21
|
+
| Spherogram | knots and links | PD, DT, braid, Gauss codes | link objects, Alexander and Jones style invariants, signatures, linking data |
|
|
22
|
+
| SageMath knot tools | exact knot computations in Sage workflows | knots and links | Alexander polynomials, Jones polynomials, HOMFLY-PT polynomials, signatures, determinants, related invariants |
|
|
23
|
+
|
|
24
|
+
## Group And Homological Algebra
|
|
25
|
+
|
|
26
|
+
| Tool | Best fit | Inputs | Outputs |
|
|
27
|
+
| --- | --- | --- | --- |
|
|
28
|
+
| GAP HAP | group homology, cohomology, CW complexes | groups, chain complexes, resolutions, CW data | homology, cohomology, rings, resolutions |
|
|
29
|
+
| Kenzo | effective homology and algebraic topology | spaces, chain complexes, simplicial sets | homology and effective reductions |
|
|
30
|
+
| GAP core packages | group representation and algebra | finite and finitely presented groups | abelianization, group data, support for HAP routes |
|
|
31
|
+
|
|
32
|
+
## Algebraic Geometry And Commutative Algebra
|
|
33
|
+
|
|
34
|
+
| Tool | Best fit | Inputs | Outputs |
|
|
35
|
+
| --- | --- | --- | --- |
|
|
36
|
+
| Macaulay2 | commutative algebra and algebraic geometry | polynomial rings, ideals, modules, sheaves | Groebner bases, Hilbert data, Betti tables, resolutions, primary decomposition |
|
|
37
|
+
| Singular | polynomial computations and singularity theory | ideals, modules, local/global rings | standard bases, Hilbert series, primary decomposition, singularity invariants |
|
|
38
|
+
| OSCAR | integrated computational algebra, geometry, and number theory | ideals, schemes, varieties, sheaves, toric data | commutative algebra, homological algebra, toric and tropical invariants |
|
|
39
|
+
| SageMath | integrated exact algebra and geometry workflows | rings, ideals, varieties, complexes | Groebner bases, dimensions, interfaces to specialized systems |
|
|
40
|
+
|
|
41
|
+
## Toric, Polyhedral, And Numerical Routes
|
|
42
|
+
|
|
43
|
+
| Tool | Best fit | Inputs | Outputs |
|
|
44
|
+
| --- | --- | --- | --- |
|
|
45
|
+
| Normaliz | cones, affine monoids, Hilbert bases | rational cones, monoids, lattice polytopes | Hilbert bases, Hilbert series, lattice points |
|
|
46
|
+
| 4ti2 | toric ideals and integer relations | matrices, toric data | Markov bases, Groebner bases, lattice basis data |
|
|
47
|
+
| HomotopyContinuation.jl | polynomial homotopy continuation | polynomial systems | roots, paths, witness data, certification support |
|
|
48
|
+
| Bertini or PHCpack | numerical algebraic geometry | polynomial systems | isolated roots, witness sets, numerical decompositions |
|
|
49
|
+
|
|
50
|
+
## Environment Inspection Patterns
|
|
51
|
+
|
|
52
|
+
Use read-only checks first:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
python -c "import gudhi; print(gudhi.__version__)"
|
|
56
|
+
python -c "import ripser; print(ripser.__version__)"
|
|
57
|
+
sage --version
|
|
58
|
+
gap -q
|
|
59
|
+
M2 --version
|
|
60
|
+
Singular --version
|
|
61
|
+
python -c "import snappy; print(snappy.version())"
|
|
62
|
+
regina-python --version
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Ask before installing any missing backend.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Validation Checks
|
|
2
|
+
|
|
3
|
+
## Structural Checks
|
|
4
|
+
|
|
5
|
+
- For a simplicial complex, verify every face of every simplex is present or generated by a backend that guarantees closure.
|
|
6
|
+
- For a cubical complex, verify grid dimension, cell indexing, and lower-star or bitmap convention.
|
|
7
|
+
- For a cell or chain complex, check boundary maps have compatible dimensions and `d_{n-1} d_n = 0`.
|
|
8
|
+
- For a filtration, verify every face appears no later than its coface.
|
|
9
|
+
- For a group route, record whether the group is finite, finitely presented, permutation, polycyclic, or only partially specified.
|
|
10
|
+
- For a polynomial route, record base field, characteristic, variables, term order, grading, and saturation choices.
|
|
11
|
+
- For triangulations or knots, record orientation, mirror, framing, component order, diagram encoding, polynomial normalization, reduced versus unreduced convention, and manifold hypotheses.
|
|
12
|
+
|
|
13
|
+
## Invariant Cross-Checks
|
|
14
|
+
|
|
15
|
+
- Euler characteristic equals the alternating sum of Betti numbers for finite complexes.
|
|
16
|
+
- Integral homology reduced modulo a prime should match field-homology expectations after accounting for torsion.
|
|
17
|
+
- `H_1` of a connected space should match the abelianization of the fundamental group when both are computed.
|
|
18
|
+
- Closed orientable manifold Betti numbers should satisfy Poincare duality when hypotheses are verified.
|
|
19
|
+
- Knot polynomial conventions should be compared against known examples such as the unknot, trefoil, figure-eight knot, and Hopf link.
|
|
20
|
+
- Hilbert series, Hilbert polynomial, dimension, and degree should be mutually consistent in graded algebraic examples.
|
|
21
|
+
- Primary decomposition should reconstruct the radical or ideal relation expected by the backend documentation.
|
|
22
|
+
- Numerical roots should be checked by residuals and certification where available.
|
|
23
|
+
|
|
24
|
+
## Known Examples
|
|
25
|
+
|
|
26
|
+
Use small examples before trusting a new route:
|
|
27
|
+
|
|
28
|
+
| Object | Expected signal |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| sphere `S^n` | Betti numbers in degrees 0 and n |
|
|
31
|
+
| torus `T^2` | Betti numbers 1, 2, 1 over a field |
|
|
32
|
+
| real projective plane | integral torsion in `H_1` |
|
|
33
|
+
| Klein bottle | nonorientable surface checks |
|
|
34
|
+
| cyclic group | abelianization and low-degree group homology sanity checks |
|
|
35
|
+
| unknot | trivial knot polynomial under chosen convention |
|
|
36
|
+
| trefoil | nontrivial Alexander/Jones polynomial and signature convention checks |
|
|
37
|
+
| Hopf link | nonzero linking number with component-order convention recorded |
|
|
38
|
+
| standard complete intersection | predictable Hilbert and Betti data |
|
|
39
|
+
|
|
40
|
+
## Evidence Report Checklist
|
|
41
|
+
|
|
42
|
+
Every result report should state:
|
|
43
|
+
|
|
44
|
+
- exact input artifact or source excerpt;
|
|
45
|
+
- representation used by the backend;
|
|
46
|
+
- coefficient ring or field;
|
|
47
|
+
- conventions that affect signs, gradings, order, or orientation;
|
|
48
|
+
- backend name and version;
|
|
49
|
+
- command or code path;
|
|
50
|
+
- raw log or durable output path;
|
|
51
|
+
- validation checks passed and failed;
|
|
52
|
+
- whether the result is exact, certified numerical, heuristic, partial, or failed.
|