Aletheia opencode native

From MarceloClaro/OpenCode_Ecosystem · View interactive version

Aletheia opencode native is an AI agent skill from the GitHub repository MarceloClaro/OpenCode_Ecosystem. Aletheia Opencode Native skill for the OpenCode ecosystem

How to use this skill

Skill file

Aletheia OpenCode Native Skill

Superhuman Mathematical Proof Validation

Name: aletheia-opencode-native

Version: 1.0.0

Status: In Development

Category: Research / Mathematics / Theorem Proving


Description

Aletheia is a superhuman proof validation framework that integrates structured reasoning (ReasoningOrchestrator-v11, 68 reasoning types) with multi-agent verification (Cora-Debate, 7 verifiers) to generate and validate mathematical proofs at PhD level quality.

Core Capabilities

Quality Improvements


Trigger Keywords

Use this skill when you need to:

Slash Commands

/aletheia [problem statement]
  Generate proof with superhuman validation
  
/aletheia-audit [proof_id]
  Run PhD Auditor on existing proof
  
/aletheia-benchmark
  Run full A→B→C→D→E pipeline on 10-problem benchmark
  
/aletheia-scale [n]
  Expand benchmark to n problems
  
/aletheia-decisions [proof_id]
  Show DecisionNode entries for proof decision trail

Architecture

Three-Agent Orchestration Pipeline

Input Problem
       ↓
   [Agent: Architect]
   ├─ ReasoningOrchestrator-v11 phase selection
   ├─ Domain analysis
   └─ Proof skeleton generation
       ↓
   [Agent: Verifier]
   ├─ Cora-Debate V1 (Dimensional)
   ├─ Cora-Debate V2 (Algebraic)
   ├─ Cora-Debate V3 (Counterexample)
   └─ Combined verdict (Q-Score UCB1)
       ↓
   [Agent: Auditor]
   ├─ 10-dimension scoring
   ├─ Tier classification (A-D)
   └─ Improvement recommendations
       ↓
   Output: Proof + DecisionNode audit trail

Component Integration

| Component | Purpose | OpenCode Ref |

|-----------|---------|--------------|

| ReasoningOrchestrator-v11 | Phase selection (7 phases, 68 types) | reasoning-orchestrator-v11 |

| Cora-Debate | Multi-agent verification | cora-debate |

| Agent: Architect | Proof generation | reversa-architect |

| Agent: Verifier | Verification via Cora | Custom implementation |

| Agent: Auditor | PhD-level evaluation | Custom implementation |

| MCP: lean-4-verify | Lean 4 verification | lean-4-verify |

| MCP: code-runner | Tactic execution | code-runner |

| MCP: sequential-thinking | Reasoning traces | sequential-thinking |

| DecisionNode | Decision tracking | decisionnode |


Usage Examples

Example 1: Basic Proof Generation

/aletheia "Prove that for any finite set S with n elements, the power set P(S) has 2^n elements"

Returns:

{
  "problem_id": "P001_powerset",
  "domain": "set_theory",
  "proof": {
    "statement": "theorem powerset_cardinality...",
    "lean_code": "theorem P001...",
    "reasoning_phases": [1, 2, 3, 6, 7],
    "sorry_count": 1
  },
  "verification": {
    "cora_v1_dimensional": "PASS",
    "cora_v2_algebraic": "PASS",
    "cora_v3_counterexample": "PASS",
    "verdict": "VERIFIED"
  },
  "audit": {
    "tier": "A",
    "avg_score": 8.35,
    "dimensions": {
      "hypothesis_clarity": 8.2,
      "case_analysis": 9.1,
      "proof_rigor": 8.0,
      ...
    }
  },
  "decisions": [
    "proof-strategy-P001_powerset",
    "verification-P001_powerset",
    "audit-tier-P001_powerset"
  ]
}

Example 2: Run Full Benchmark

/aletheia-benchmark

Returns:

ALETHEIA BENCHMARK RESULTS
═══════════════════════════

Problems: 10
Tier A: 10/10 (100%)
Avg Score: 8.31/10

Dimension Analysis:
├─ hypothesis_clarity: 8.00/10
├─ case_analysis: 9.00/10
├─ proof_rigor: 7.83/10
└─ overall_soundness: 8.31/10

Comparison to Baseline:
├─ V3: 1.40 → OpenCode: 8.31 (+493%)
├─ V4: 6.23 → OpenCode: 8.31 (+34%)
└─ Tier: D → A (100% improvement)

Decisions recorded: 30 (3 per proof)

Example 3: Audit Specific Proof

/aletheia-audit P001_powerset

Returns:

{
  "proof_id": "P001_powerset",
  "tier": "A",
  "score": 8.35,
  "dimensions": {
    "hypothesis_clarity": 8.2,
    "mathematical_insight": 7.5,
    "proof_rigor": 8.0,
    "case_analysis": 9.1,
    "formal_correctness": 7.8,
    "induction_validity": 9.5,
    "tactic_usage": 8.9,
    "lemma_usage": 8.5,
    "edge_case_coverage": 8.3,
    "overall_soundness": 8.35
  },
  "weaknesses": [
    "mathematical_insight slightly below tier A (7.5 vs 8.0 threshold)"
  ],
  "strengths": [
    "Exceptional case analysis (9.1)",
    "Strong induction validity (9.5)"
  ],
  "improvements": [
    "Add more intermediate lemmas to boost mathematical insight",
    "Consider auxiliary theorems for deeper mathematical understanding"
  ]
}

Example 4: View Decision Trail

/aletheia-decisions P001_powerset

Returns:

DECISION TRAIL FOR P001_powerset
════════════════════════════════

[1] proof-strategy-P001_powerset
    Decision: Phase selection [1,2,3,6,7]
    Rationale: Foundational + Inductive + Verificational for set theory
    Timestamp: 2026-05-30T19:15:03Z

[2] verification-P001_powerset
    Decision: Cora-Debate VERIFIED
    Rationale: 3/3 verifiers passed (Dimensional, Algebraic, Counterexample)
    Timestamp: 2026-05-30T19:15:15Z

[3] audit-tier-P001_powerset
    Decision: Tier A (8.35/10)
    Rationale: Strong across all dimensions, exceptional case analysis
    Timestamp: 2026-05-30T19:15:25Z

Integration with OpenCode Agents

As Agent Skill

Use Aletheia as a specialized agent within OpenCode pipelines:

User Intent: "Generate 5 mathematical proofs and validate them"
     ↓
OpenCode Agent Router
     ↓
[Agent: Architect] (resolves: "what are the 5 problems?")
     ↓
[Skill: aletheia-opencode-native] (/aletheia for each problem)
     ↓
[Agent: Report Writer] (synthesizes: proof validation report)

As Pipeline Component

Integrate into multi-stage research pipelines:

Stage 1: Literature Review (SEEKER agent)
     ↓
Stage 2: Conjecture Generation
     ↓
Stage 3: Proof Validation (aletheia-opencode-native)
     ↓
Stage 4: Paper Generation (criador-artigo)

MCPs Required

Core MCPs

Optional MCPs


Benchmark Suite

The skill includes a 10-problem benchmark in benchmarks/aletheia_benchmark.json:

{
  "problems": [
    {
      "id": "A0004",
      "domain": "set_theory",
      "statement": "For finite set S with n elements, |P(S)| = 2^n",
      "difficulty": "intermediate"
    },
    ...
  ]
}

Run with: /aletheia-benchmark


Phase Roadmap

Phase 1: Immediate (Week 1)

Phase 2: Agent Pipeline (Week 2)

Phase 3: MCP Integration (Week 2-3)

Phase 4: Production (Week 3-4)


Performance Metrics

Current State (Phase E)

Targets (After Phase 4)


Configuration

Environment Variables

ALETHEIA_LEAN_PATH=/path/to/lean-4.30.0/bin/lean.exe
ALETHEIA_BENCHMARK_SIZE=10  # Start with 10, scale to 50-100
ALETHEIA_REASONING_PHASES=7  # Always 7 phases in ReasoningOrchestrator
ALETHEIA_CORA_VERIFIERS=3    # V1, V2, V3 active
ALETHEIA_PhD_DIMENSIONS=10   # 10-dimension auditor framework

Status & Support

Current Status: In Development (Phase 1)

Last Updated: 2026-05-30

Maintained By: OpenCode Ecosystem

Support: Post on agent-forum for multi-agent discussion


References

See also:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.