agentsclimarketplace

Ai symbolic neuro

Skill r-irbe/proof-skills/skills/ai-symbolic-neuro

APM-installable agent skills for Lean 4 and Mathlib4 — proof tactics, math domains, review and research workflows, generic tooling.

Install
npx -y skills add r-irbe/proof-skills --skill ai-symbolic-neuro

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

USE FOR: Symbolic AI, neuro-symbolic integration, knowledge representation and reasoning (KRR), ontology engineering, description logics, and hybrid symbolic-neural architectures. Use for reasoning about formal knowledge structures, rule-based systems, logic programming, semantic web technologies, and their integration with neural approaches in knowledge graphs and structured reasoning pipelines. DO NOT USE FOR: formalising the ontology in Lean (use @lean-knowledge-formalization); commonsense reasoning (use @ai-commonsense-reasoning); agentic AI (use @ai-agentic-evolving). TRIGGERS: symbolic AI, neuro-symbolic, knowledge representation, KRR, ontology engineering, description logic, hybrid AI.

SKILL.md

10.8 KB, as published. Nobody here has run it

Symbolic AI & Neuro-Symbolic Integration

Formal knowledge representation, symbolic reasoning, and their integration with neural methods for knowledge structuring and consolidation pipelines.


Routing

  • USE FOR: Symbolic AI, neuro-symbolic integration, knowledge representation and reasoning (KRR), ontology engineering, description logics, and hybrid symbolic-neural architectures. Use for reasoning about formal knowledge structures, rule-based systems, logic programming, semantic web technologies, and their integration with neural approaches in knowledge graphs and structured reasoning pipelines.
  • DO NOT USE FOR: formalising the ontology in Lean (use @lean-knowledge-formalization); commonsense reasoning (use @ai-commonsense-reasoning); agentic AI (use @ai-agentic-evolving).
  • TRIGGERS: symbolic AI, neuro-symbolic, knowledge representation, KRR, ontology engineering, description logic, hybrid AI.

Workflow

  1. Identify the integration question: symbolic-only, neural-only, or hybrid; pick the integration pattern (loose / tight / unified) from the body.
  2. Pick the KRR formalism (description logic, RDF/OWL, conceptual graph, neural-symbolic embedding) that matches the application.
  3. Apply the formalism; document where neural and symbolic components communicate + their semantic guarantees.
  4. Hand off: to @lean-knowledge-formalization for Lean encoding, to @math-graph-knowledge for graph-theoretic foundations, to @lean-zettelkasten.

Recovery & STOP

  • STOP if the question is purely commonsense-reasoning — delegate to @ai-commonsense-reasoning.
  • STOP if the question is about causal/deontic logic — delegate to @ai-causal-deontic.
  • STOP if the neural component requires empirical evaluation beyond methodological reasoning — escalate to @research-council.

Handoffs

  • Predecessors: agent:gateway, skill:lean-research.
  • Successors: skill:lean-knowledge-formalization, skill:ai-commonsense-reasoning, skill:math-graph-knowledge.

Part 1 — Knowledge Representation Foundations

1.1 Representation Languages

LanguageExpressivenessDecidabilityCommon relevance
Propositional logicLowP (SAT: NP-complete)Gate predicates and finite checks
First-order logic (FOL)HighSemi-decidableTheorem formalization
Description logic (ALC)MediumExpTimeOntology TBoxes
OWL-DLMedium-high2NExpTimeSemantic web ontologies
DatalogLimited FOLP (data complexity)Recursive queries on knowledge graphs
Answer Set ProgrammingNonmonotonicΣP2-completeDefault reasoning
Modal logicFOL + modalitiesVariesEpistemic/deontic reasoning

1.2 Ontology Engineering

Foundational ontologies:

  • DOLCE (Descriptive Ontology for Linguistic and Cognitive Engineering)
  • BFO (Basic Formal Ontology) — ISO 21838
  • SUMO (Suggested Upper Merged Ontology)

Design patterns:

  • Parthood and mereology
  • Temporal entities (endurants vs perdurants)
  • Roles and role-playing
  • Quality and quality spaces

Common application: knowledge-graph quality gates validate ontological consistency:

  • TBox coherence (no unsatisfiable concepts)
  • ABox consistency (instances satisfy TBox constraints)
  • Schema-instance alignment

1.3 Formal Reasoning Systems

SystemApproachCompletenessUse
TableauxModel construction attemptComplete for DLOntology reasoning
ResolutionRefutationComplete for FOLTheorem proving
Sequent calculusStructural proofComplete for FOLProof theory
Natural deductionIntroduction/eliminationComplete for FOLHuman-like proofs
Type theoryCurry-Howard??? (depends on system)Lean 4 foundation

Part 2 — Neuro-Symbolic Integration

2.1 Integration Spectrum (Kautz 2020)

LevelDescriptionExamplePipeline role
1Symbolic ← NeuralNeural generates symbolic outputExperience → symbols
2Symbolic → NeuralSymbolic knowledge guides neuralStructuring → embedding
3Hybrid pipelineNeural + symbolic sequentialFull Project pipeline
4Tightly coupledNeural and symbolic share representationGraph of Thoughts
5UnifiedSingle system with both capabilitiesTarget architecture

2.2 Key Architectures

  • Neural theorem proving: Neural guide for tactic selection (GPT-f, AlphaProof)
  • Knowledge graph embeddings: TransE, RotatE, CompGCN — vector representations of KG
  • Graph neural networks: Message passing on knowledge structures
  • Neurosymbolic concept learner: Learn visual concepts as logical programs
  • Logic tensor networks: Differentiable first-order logic

2.3 Typical Neuro-Symbolic Position

Many verification-oriented pipelines operate at Level 3-4:

  • Ingest phase: neural perception, extraction, or embedding.
  • Articulation: neural-to-symbolic conversion from natural language to structured claims.
  • Structuring: symbolic knowledge graph construction and validation.
  • Consolidation: hybrid formal verification plus neural synthesis.
  • Application: symbolic-to-neural feedback from validated knowledge to new tasks.

Part 3 — Commonsense Reasoning

3.1 Commonsense Knowledge Types

TypeDescriptionFormalization Challenge
PhysicalObjects fall, liquids flowQualitative physics, spatial reasoning
SocialPeople have intentions, emotionsTheory of mind, folk psychology
TemporalEvents have duration, causationAllen's interval algebra
TaxonomicDogs are animalsInheritance hierarchies
DefaultBirds fly (unless penguin)Nonmonotonic logic
CausalPushing causes movementCausal models (Pearl)

3.2 Formal Approaches

  • Circumscription (McCarthy): Minimize abnormality
  • Default logic (Reiter): Default rules with exceptions
  • Answer set programming: Stable models with negation-as-failure
  • Probabilistic logic: Weight rules by confidence
  • Large language models: Implicit commonsense from training data

3.3 Pipeline Integration

Commonsense reasoning commonly enters structured-AI pipelines in:

  • Articulation: Interpreting tacit knowledge requires commonsense context
  • Structuring: Default rules for knowledge graph completion
  • Quality gates: Commonsense consistency checks on extracted knowledge
  • Trust dynamics: Social commonsense for multi-agent coordination

Part 4 — Knowledge Graph Reasoning

4.1 Reasoning Tasks

TaskInputOutputMethod
Link prediction$(h, r, ?)$Missing tail entityEmbedding + scoring
Type inferenceEntity featuresEntity typeClassification
Rule miningKG triplesHorn rulesAMIE, AnyBURL
Query answeringComplex queryAnswer entitiesQuery embedding
KG completionPartial KGComplete KGCombination methods
Consistency checkingKG + constraintsViolationsDL reasoning

4.2 Formal Quality Metrics

MetricFormulaInterpretation
PrecisionTP / (TP + FP)Fraction of predicted links that are correct
RecallTP / (TP + FN)Fraction of true links predicted
MRR$\frac{1}{Q
Hits@KFraction of correct in top-KRetrieval quality
Semantic validityOntology-consistency rateStructural soundness

4.3 Knowledge Graph Architecture

Experience → Raw triples (LLM extraction)
  → Articulation → Candidate assertions with confidence
    → Structuring → Validated KG with ontological constraints
      → Consolidation → Proven properties (Lean formalization)
        → Innovation → Novel inferences from verified base

Quality gates at each transition enforce:

  • Confidence thresholds (configurable per domain)
  • Ontological consistency (TBox reasoning)
  • Provenance tracking (W3C PROV-O)
  • Temporal validity (assertions expire)

Part 5 — Host-Repository Lean Extension Points

Do not assume repository-local Lean modules, tactics, or namespaces exist unless the host repository explicitly provides them. When a repository has local knowledge-graph or quality-gate modules, map them to this generic checklist:

Local extension pointSymbolic AI aspectTypical structures
Provenance / audit trail moduleDAG well-formedness, trust compositionstages, edges, well-formedness predicates
Causal / knowledge-graph moduleCausal DAG and graph formalizationcausal links, typed edges, confidence scores
Quality-gate modulePredicate logic on quality measuresgates, thresholds, monotonicity theorems
Classification / regime moduleDecision procedures for regimesregime types, decidability, monotonicity
Causal-reasoning skill handoffCausal DAGs and counterfactual reasoningdelegate to @lean-causal-reasoning

Part 6 — Research Connections

6.1 Epistemic Mapping Targets

KK (Known)KU (Gap)UU (To Discover)
DAG formalizationFull DL reasoning in LeanOWL-to-Lean translation
Propositional gatesNonmonotonic formalizationCommonsense integration
Trust compositionNeuro-symbolic verificationLLM-generated proof verification
Provenance chainsTemporal knowledge evolutionOntology evolution formalization

6.2 Key References

  • Brachman & Levesque (2004) — Knowledge Representation and Reasoning
  • Hitzler et al. (2020) — Neuro-Symbolic AI: state of the art
  • Marcus & Davis (2019) — Rebooting AI (commonsense perspective)
  • Hogan et al. (2021) — Knowledge Graphs (comprehensive survey)
  • Davis (2015) — Commonsense reasoning: an event calculus perspective

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.