跳到正文
cccskills
免费在 GitHub 公开

bidirectional-navigator

Safe proof ↔ theorem navigation with non-backtracking constraint.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(3)

  • SKILL.md2.3 KB
  • bidirectional_index.jl6.1 KB
  • CONCOMITANT_SKILLS.md513 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Bidirectional Navigator

Category: Proof Navigation + Caching Type: Graph Index Structure Language: Julia Status: Production Ready Version: 1.0.0 Date: December 22, 2025

Overview

Safe proof ↔ theorem navigation with non-backtracking constraint. Implements Friedman's B operator to enable linear homotopy type theory (LHoTT) resource-aware evaluation where proofs are consumed exactly once.

Key Data Structures

struct Theorem
    id::Int
    name::String
end

struct Proof
    id::Int
    theorem_id::Int
    name::String
end

struct BidirectionalMap
    forward::Dict{Int, Int}     # Proof ID → Theorem ID
    backward::Dict{Int, Vector{Int}}  # Theorem ID → [Proof IDs]
    non_backtracking_ok::Bool
end

Key Functions

  • create_index(theorems, proofs): Build bidirectional mapping
  • evaluate_forward(index, proof_id): O(1) proof → theorem lookup
  • evaluate_backward(index, theorem_id): Cached theorem → proofs lookup
  • check_non_backtracking(): Verify B operator constraint (no u→v→u)
  • linear_evaluation_possible(): Check LHoTT compatibility

Mathematical Foundation

Friedman's Non-Backtracking Operator (B)

No u→v→u cycles ⟺ Linear resource-aware evaluation possible

Enables:

  • Automatic proof consumption tracking
  • Linear type system integration (LHoTT)
  • Memory-efficient navigation (no revisits)

Usage

using BidirectionalIndex

# Create index
index = create_index(theorems, proofs)

# Forward navigation (Proof → Theorem)
theorem_id = evaluate_forward(index, proof_42)

# Backward navigation (Theorem → Proofs)
related_proofs = evaluate_backward(index, theorem_5)

# Verify constraints
if check_non_backtracking(index)
    println("✓ B operator satisfied, linear evaluation ok")
end

Integration Points

  • Agent-based proof discovery with caching
  • Linear homotopy type theory resource tracking
  • Efficient theorem-proof lookup in large catalogs

Performance

  • Index creation: < 0.1 seconds
  • Forward lookup: O(1)
  • Backward lookup: O(1) cached after first access
  • Scalable to 5,652+ theorems

References

  • Friedman (2008): Non-backtracking operator theory
  • Linear Homotopy Type Theory (LHoTT) semantics

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Model ElevenLabs voice synthesis as an ACSet schema with Unison ability handlers for typed voice operations. Use when integrating ElevenLabs TTS into category-theoretic pipelines, building typed voice synthesis workflows, or managing multi-voice narration with GF(3) conservation.

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

Systematic process for analyzing and modernizing legacy applications to comply with the 12-Factor App methodology. Covers code analysis, configuration externalization, dependency management, and container/Kubernetes best practices.

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

13c0e3

免费

Gay MCP skill at invocation 26

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

19d57d

免费

Gay MCP skill at invocation 5

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

1ea91a

免费

Gay MCP skill at invocation 27

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

1eab21

免费

Gay MCP skill at invocation 3

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

查看 plurigrid 的全部技能

报告此技能的问题