Lean
1 program
Added 2025-10-22T13:19:22Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: Lean Prover, Lean 4
Provenance: commit dada93fb9e · authored 2025-10-22T15:19:22+02:00 · model anthropic/claude-3.5-sonnet
Sources mentioning this language
8 sources · pl_id:
pl/leanWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | strict purely functional · dependently typed |
|---|---|
| Typing | static, strong, inferred |
| Designed by | Lean FRO · Leonardo de Moura |
| First appeared | 2013 |
| Influenced by | ML · Rocq (formerly named Coq) · Haskell |
| License | Apache 2.0 |
| Implemented in | Lean · C++ |
| Homepage | http://lean-lang.org |
Extensions claimed by this language
3 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.lean | linguist | primary | 1.0M files |
.lean | pygments | primary | 1.0M files |
.hlean | linguist | secondary | 7.0K files |
Related languages
LLM-contributed programs
Natural Number Addition Properties
Provenance: commit dada93fb9e · authored 2025-10-22T15:19:22+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
theorem add_zero (n : Nat) : n + 0 = n := rfl
theorem zero_add (n : Nat) : 0 + n = n := by
induction n with
| zero => rfl
| succ n ih => simp [add_succ, ih]
theorem add_succ (n m : Nat) : n + Nat.succ m = Nat.succ (n + m) := by
induction n with
| zero => simp [zero_add]
| succ n ih => simp [add_succ, ih]
theorem succ_add (n m : Nat) : Nat.succ n + m = Nat.succ (n + m) := rfl
theorem add_comm (n m : Nat) : n + m = m + n := by
induction n with
| zero => simp [zero_add]
| succ n ih => simp [add_succ, ih, succ_add]
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.lean/0 | .lean | predicates | [{"kind": "any", "regexes": ["^import [a-z]"]}] |