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

Are self defined functions considered? #213

Closed
DDDOH opened this issue Nov 7, 2024 · 1 comment
Closed

Are self defined functions considered? #213

DDDOH opened this issue Nov 7, 2024 · 1 comment

Comments

@DDDOH
Copy link

DDDOH commented Nov 7, 2024

For example, I define a new concept

def isPalindrome (xs : List Nat) : Prop := xs = xs.reverse

and a theorem based on it

theorem test3 : isPalindrome (dup 3 [1]) := by simp [dup]; rfl

During extracting, will isPalindrome get translated to its original definition (xs = xs.reverse)?

@yangky11
Copy link
Member

yangky11 commented Nov 7, 2024

I don't think isPalindrome will be expanded to its definition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants