Skip to content

Commit

Permalink
inline
Browse files Browse the repository at this point in the history
  • Loading branch information
kmill committed Nov 8, 2024
1 parent bf8e2b5 commit 386f25c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/Lean/Elab/DefView.lean
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ def DefKind.isTheorem : DefKind → Bool
| .theorem => true
| _ => false

def DefKind.isDefOrAbbrevOrOpaque : DefKind → Bool
| .def => true
| .instance => true
| .opaque => true
| .abbrev => true
| _ => false

def DefKind.isExample : DefKind → Bool
| .example => true
| _ => false
Expand Down
2 changes: 1 addition & 1 deletion src/Lean/Elab/MutualDef.lean
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ def pushLetRecs (preDefs : Array PreDefinition) (letRecClosures : List LetRecClo
letRecClosures.foldlM (init := preDefs) fun preDefs c => do
let type := Closure.mkForall c.localDecls c.toLift.type
let value := Closure.mkLambda c.localDecls c.toLift.val
let kind ← if kind.isDefOrAbbrevOrOpaque then
let kind ← if kind matches .def | .instance | .opaque | .abbrev then
-- Convert any proof let recs inside a `def` to `theorem` kind
withLCtx c.toLift.lctx c.toLift.localInstances do
return if (← inferType c.toLift.type).isProp then .theorem else kind
Expand Down

0 comments on commit 386f25c

Please sign in to comment.