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