Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename_i renames implementation detail hypotheses #5176

Closed
3 tasks done
JLimperg opened this issue Aug 26, 2024 · 0 comments · Fixed by #5183
Closed
3 tasks done

rename_i renames implementation detail hypotheses #5176

JLimperg opened this issue Aug 26, 2024 · 0 comments · Fixed by #5183
Labels
bug Something isn't working

Comments

@JLimperg
Copy link
Contributor

JLimperg commented Aug 26, 2024

Prerequisites

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

Description

rename_i does not ignore implementation detail hypotheses.

Steps to Reproduce

MWE:

class Foo where

class Bar extends Foo where
  bar : True

def foo : Foo := {}

example [Bar] : Bar := {
  foo with bar := by {
    rename_i inst
    guard_hyp inst : Bar
    /-
    hypothesis inst has type
      Foo
    not
      Bar
    -/
  }

Apologies for the somewhat complex MWE. It's just to set up a goal with an implementation detail hypothesis (namely __src, which appears because of the extended structure).

Versions

"4.12.0-nightly-2024-08-26"

Impact

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant