chore: minor
This commit is contained in:
parent
8598dde6e6
commit
e8ae23b7a6
2 changed files with 9 additions and 3 deletions
|
|
@ -905,9 +905,8 @@ private def unfoldReducibeDefEq (tInfo sInfo : ConstantInfo) (t s : Expr) : Meta
|
|||
|
||||
Auxiliary method for isDefEqDelta -/
|
||||
private def unfoldNonProjFnDefEq (tInfo sInfo : ConstantInfo) (t s : Expr) : MetaM LBool := do
|
||||
let env ← getEnv
|
||||
let tProj? := env.isProjectionFn tInfo.name
|
||||
let sProj? := env.isProjectionFn sInfo.name
|
||||
let tProj? ← isProjectionFn tInfo.name
|
||||
let sProj? ← isProjectionFn sInfo.name
|
||||
if tProj? && !sProj? then
|
||||
unfold s (unfoldDefEq tInfo sInfo t s) $ fun s => isDefEqRight sInfo.name t s
|
||||
else if !tProj? && sProj? then
|
||||
|
|
|
|||
|
|
@ -62,4 +62,11 @@ def getProjectionStructureName? (env : Environment) (projName : Name) : Option N
|
|||
| _ => none
|
||||
|
||||
end Environment
|
||||
|
||||
def isProjectionFn [MonadEnv m] [Monad m] (declName : Name) : m Bool :=
|
||||
return (← getEnv).isProjectionFn declName
|
||||
|
||||
def getProjectionFnInfo? [MonadEnv m] [Monad m] (declName : Name) : m (Option ProjectionFunctionInfo) :=
|
||||
return (← getEnv).getProjectionFnInfo? declName
|
||||
|
||||
end Lean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue