๐Ÿ”
AI EngineeringPython

C/C++ to Lean4 Translator

by ArabelaTso

C/C++ to Lean4 Translator is an AI Engineering skill for Claude Code, published by ArabelaTso in Skills-4-SE.

247 stars23 forkson ArabelaTso/Skills-4-SEAdded 2026/09/02+4% in starsRepository updated 2026/08/21
claudeclaude-codeclaude-skillsmetaprogrammingsoftware-developmentsoftware-engineering
Install in seconds
Install C/C++ to Lean4 Translator
Copy C/C++ to Lean4 Translator into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/c-cpp-to-lean4-translator ~/.claude/skills/c-cpp-to-lean4-translator

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/ArabelaTso/Skills-4-SE.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
skills/c-cpp-to-lean4-translator/SKILL.md in ArabelaTso/Skills-4-SE
Installs to
~/.claude/skills/c-cpp-to-lean4-translator
Collection
One of 25 skills cataloged from this repository
Category
AI Engineering โ€” 2631 skills

What C/C++ to Lean4 Translator does

C/C++ to Lean4 Translator converts C or C++ programs into Lean4 code that preserves semantics and stays well typed and executable. Use it when porting imperative algorithms, structs, loops, or I/O to Lean4.

C/C++ to Lean4 Translator is cataloged under AI Engineering on DirSkills. C/C++ to Lean4 Translator comes from a repository tagged claude, claude-code, claude-skills, metaprogramming and software-development.

Documentation

README

C/C++ to Lean4 Translator

Overview

Transform C or C++ programs into equivalent Lean4 code that preserves the original semantics while leveraging Lean4's functional programming paradigm, strong type system, and proof capabilities.

Translation Workflow

Step 1: Analyze Input Code

Understand the C/C++ program structure and semantics:

  1. Identify program components:

    • Functions and their signatures
    • Data structures (structs, classes, arrays)
    • Control flow patterns (loops, conditionals)
    • Memory management (allocation, pointers)
    • I/O operations
    • Dependencies and includes
  2. Understand semantics:

    • What does the program compute?
    • What are the inputs and outputs?
    • Are there side effects?
    • What are the invariants and preconditions?

This is the opening of the README. Read the full README on GitHub.

Frequently asked about C/C++ to Lean4 Translator

  • What else does ArabelaTso publish alongside C/C++ to Lean4 Translator?

    C/C++ to Lean4 Translator is one of 25 skills that DirSkills catalogs from ArabelaTso/Skills-4-SE, the repository it ships in. Its siblings there include ACSL Annotation Assistant, API Design Assistant and API Documentation Generator. Each one is a separate skill with its own page in this directory, installs the same way C/C++ to Lean4 Translator does, and is maintained by ArabelaTso in that same repository. The rest of the collection is listed on the ArabelaTso/Skills-4-SE page.

  • How does C/C++ to Lean4 Translator compare to other AI Engineering skills?

    C/C++ to Lean4 Translator ranks #2333 by stars among the 2631 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of C/C++ to Lean4 Translator against them. Open each page to compare what they document and how they install.

More from ArabelaTso/Skills-4-SE

C/C++ to Lean4 Translator is one of 25 skills cataloged on DirSkills from ArabelaTso/Skills-4-SE.

See all 25 skills โ†’
๐Ÿงพ
1h ago

ACSL Annotation Assistant

ACSL Annotation Assistant creates ACSL contracts, loop invariants, assertions, and memory-safety specifications for C/C++ programs. Use it when preparing code for Frama-C or other formal verification workflows.
Quality
24723
๐Ÿงฉ
1h ago

API Design Assistant

API Design Assistant helps design and review REST APIs by suggesting endpoints, parameters, schemas, authentication, pagination, and versioning. It is used for API planning, documentation, OpenAPI specs, and implementation guidance.
AI Engineering
24723
๐Ÿ“˜
1h ago

API Documentation Generator

API Documentation Generator analyzes repository sources like OpenAPI specs, code comments, and existing docs to produce endpoint references, schemas, auth details, and examples. Use it when documenting an API or creating reference docs from a codebase.
Writing
24723
๐Ÿ”
1h ago

Abstract Domain Explorer

Abstract Domain Explorer applies abstract interpretation to statically analyze programs and infer invariants, value ranges, and variable relationships. Use it to study loops, check safety properties, and detect issues like division by zero without running code.
Quality
24723
๐Ÿง 
1h ago

Abstract Invariant Generator

Abstract Invariant Generator infers loop invariants, preconditions, and postconditions from code using abstract interpretation. Use it when adding formal specifications or verification conditions in Dafny, Isabelle, Coq, ACSL, and similar systems.
AI Engineering
24723
๐Ÿ”Ž
1h ago

Abstract State Analyzer

Abstract State Analyzer performs static abstract interpretation to infer possible program states, value ranges, and data properties without running code. Use it to find likely runtime errors such as out-of-bounds access, null dereferences, division by zero, type inconsistencies, and integer overflow.
Quality
24723