mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
This PR makes the external checker lean4checker available as the existing `leanchecker` binary already known to elan, allowing for out-of-the-box access to it. --------- Co-authored-by: Kim Morrison <kim@tqft.net> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
11 lines
340 B
Lean4
11 lines
340 B
Lean4
import Lean.Elab.Term
|
|
|
|
open Lean in
|
|
run_elab
|
|
modifyEnv fun env => Id.run do
|
|
let decl := .thmDecl { name := `false, levelParams := [], type := .const ``False [], value := .const ``False [] }
|
|
let .ok env := env.addDeclCore (doCheck := false) 0 decl none |
|
|
let _ : Inhabited Environment := ⟨env⟩
|
|
unreachable!
|
|
env
|