lean4-htt/src/Lean/Elab/GenInjective.lean
2022-10-19 09:28:08 -07:00

16 lines
494 B
Text

/-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Command
import Lean.Meta.Injective
namespace Lean.Elab.Command
@[builtin_command_elab genInjectiveTheorems] def elabGenInjectiveTheorems : CommandElab := fun stx => do
let declName ← resolveGlobalConstNoOverloadWithInfo stx[1]
liftTermElabM do
Meta.mkInjectiveTheorems declName
end Lean.Elab.Command