CtrlK
BlogDocsLog inGet started
Tessl Logo

c-cpp-to-lean4-translator

Translates C/C++ into Lean 4 for interactive theorem proving — deep verification where automated tools fail. Use when Dafny's automation isn't enough, when proving mathematical properties of an algorithm, or when building a machine-checked proof for publication or certification.

Install with Tessl CLI

npx tessl i github:santosomar/general-secure-coding-agent-skills --skill c-cpp-to-lean4-translator
What are skills?

93

Quality

91%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SKILL.md
Review
Evals

Discovery

89%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

This is a strong description with excellent trigger terms and completeness. It clearly distinguishes itself from other verification tools by explicitly mentioning when to use it over Dafny. The main weakness is that the specific capabilities could be more concrete—listing actual translation/proof actions rather than the high-level 'translates' verb.

Suggestions

Add 2-3 specific concrete actions like 'converts loop invariants, generates proof obligations, handles pointer arithmetic proofs' to improve specificity

DimensionReasoningScore

Specificity

Names the domain (C/C++ to Lean 4 translation, theorem proving) and the general action (translates, verification), but doesn't list multiple concrete actions like 'generates proof obligations, handles memory models, converts loop invariants'.

2 / 3

Completeness

Clearly answers both what ('Translates C/C++ into Lean 4 for interactive theorem proving') and when ('Use when Dafny's automation isn't enough, when proving mathematical properties, or when building machine-checked proofs for publication or certification').

3 / 3

Trigger Term Quality

Includes strong natural keywords users would say: 'Lean 4', 'theorem proving', 'Dafny', 'mathematical properties', 'machine-checked proof', 'publication', 'certification', 'C/C++'. Good coverage of terms a user needing formal verification would naturally use.

3 / 3

Distinctiveness Conflict Risk

Highly distinctive niche targeting Lean 4 specifically, contrasting with Dafny, and focusing on formal verification for publication/certification. Unlikely to conflict with general code translation or other verification tools.

3 / 3

Total

11

/

12

Passed

Implementation

92%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

This is an excellent skill that efficiently teaches C-to-Lean translation with concrete, executable examples and clear decision criteria for when to use Lean vs Dafny. The worked example with both C source and complete Lean proof is particularly strong. Minor improvement possible in progressive disclosure for advanced topics.

DimensionReasoningScore

Conciseness

Extremely efficient use of tokens. Tables compress comparisons elegantly, code examples are minimal but complete, and the content assumes Claude understands functional programming, proof assistants, and C semantics without explanation.

3 / 3

Actionability

Provides fully executable Lean 4 code with complete worked examples including both the functional model and theorem proofs. The translation table, tactic reference, and output format template give concrete, copy-paste-ready guidance.

3 / 3

Workflow Clarity

Clear translation path articulated (imperative C → functional model → proof about model). The worked example demonstrates the complete workflow, and the output format section provides explicit structure for deliverables.

3 / 3

Progressive Disclosure

Content is well-organized with clear sections and tables, but everything is inline in a single file. For a skill of this complexity, references to separate files for Mathlib integration patterns or additional worked examples would improve navigation.

2 / 3

Total

11

/

12

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation11 / 11 Passed

Validation for skill structure

No warnings or errors.

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.