leanprover-community / leanprover-community/mathlib4

agda2lean

Open
#42,793 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lean
Stars
4.2k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

https://github.com/chboishabba/agda2lean

Hi! A brief update on agda2lean:

This is now a working path from checked Agda code to Lean-facing output. It is not a text converter: it starts from Agda's checked representation, records declarations and their dependencies in a small shared format, then produces Lean output and checks the result independently.

The immediate goal is modest: make small, well-understood Agda developments usable from Lean while being clear about what translated directly, what needs a Lean-side proof, and what is not supported yet.

We are also thinking about a proof-wiki-style layer: a browsable record for each translated declaration, linking the Agda source, Lean result, dependencies, and the translation receipt. Much of the underlying record-keeping is already part of agda2lean; the wiki would make it useful to people rather than only to the build.

This is related to the aim of Logipedia, which uses Dedukti to make proofs available across systems. We are not putting Dedukti in agda2lean's main translation path. For us, it is a possible later independent audit route; the near-term work remains a practical, checkable Agda-to-Lean path.

I'd especially welcome advice on:

  • the kinds of Agda material that would be most useful to bring into the Lean/mathlib world;
  • how Lean users would want translated declarations and their provenance presented;
  • existing mathlib conventions or projects we should align with.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked agda2lean project and the issue's stated goals for Agda-to-Lean translation, provenance, and possible wiki presentation. No repository files, tests, or entry points are named, and completion criteria are not defined; a concrete implementation scope would need to be established first.

Written by the indexing model from the issue text.

Assessment

Domain
compilers, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.