Skip to content
This repository was archived by the owner on Dec 7, 2025. It is now read-only.

andrew222651/semkon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semkon: semantika kontrolilo (semantic checker)

Semkon uses LLMs to check the correctness of proofs written as comments in your codebase.

Features:

  • automatically finds property+proof blocks in your code
  • recognizes stated "axioms"
  • configurable file exclusion
  • can execute Python code (off by default)

Requires OpenAI API key. Costs can be unpredictable so to be fully safe, use a project API key with a project budget limit.

You can choose which OpenAI model to use. As of Feb 2025, only o1 is useful in @andrew222651's tests on real code, and no non-OpenAI models are useful.

Run: semkon --help

Install for development: pip install -e ".[dev]"

Alternatives:

  • AI code review tools may be able to check some proofs
    • CodeRabbit was able to check some simple proofs with no customizations
    • you may be able to explicitly add proof checking as a custom "style rule" if necessary

Releases

No releases published

Languages