Skip to content

reduce does not recurse into binder types #6084

Description

@JLimperg

Prerequisites

Please put an X between the brackets as you perform the following steps:

Description

reduce does not recurse into binder types, even with skipTypes := false. As a result, the expression computed by reduce is not the input expression's normal form (at the given transparency).

MWE:

import Lean

open Lean Lean.Meta

def Foo := True

def Bar := Foo → Foo

run_meta do
  logInfo $ ← reduceAll (.const ``Bar [])
  -- Foo → True

Versions

"4.15.0-nightly-2024-11-14"

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-lowWe are not planning to work on this issuebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions