Files
lean4/tests/pkg/leanchecker/LeanCheckerTests/AddFalse.lean
Sebastian Ullrich 1361d733a6 feat: re-integrate lean4checker as leanchecker (#11887)
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>
2026-01-08 09:41:33 +00:00

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