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

[Merged by Bors] - chore: cleanup for mathport update #620

Closed
wants to merge 1 commit into from

Conversation

digama0
Copy link
Member

@digama0 digama0 commented Nov 17, 2022

  • add_decl_doc already exists in core (this declaration was just shadowing it)
  • setup_tactic_parser is not planned for porting; the nearest equivalent is nothing at all
  • mk_simp_attribute can mostly be aligned to register_simp_attr, and the remaining part (the := ids,*) can't be supported at all and will give a suitable port message in mathport
  • std_next alignment consistently gives a stack overflow when porting on my machine; I think this is a recent regression (possibly Notations no longer work in binport mathport#192?) but this is a quick fix since this function doesn't matter too much.

@digama0
Copy link
Member Author

digama0 commented Nov 17, 2022

bors merge

bors bot pushed a commit that referenced this pull request Nov 17, 2022
* `add_decl_doc` already exists in core (this declaration was just shadowing it)
* `setup_tactic_parser` is not planned for porting; the nearest equivalent is nothing at all
* `mk_simp_attribute` can mostly be aligned to `register_simp_attr`, and the remaining part (the `:= ids,*`) can't be supported at all and will give a suitable port message in mathport
* `std_next` alignment consistently gives a stack overflow when porting on my machine; I think this is a recent regression (possibly leanprover-community/mathport#192?) but this is a quick fix since this function doesn't matter too much.
@bors
Copy link

bors bot commented Nov 17, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore: cleanup for mathport update [Merged by Bors] - chore: cleanup for mathport update Nov 17, 2022
@bors bors bot closed this Nov 17, 2022
@bors bors bot deleted the mathport_fix branch November 17, 2022 07:20
@gebner
Copy link
Member

gebner commented Nov 18, 2022

alignment consistently gives a stack overflow when porting on my machine; I think this is a recent regression (possibly leanprover-community/mathport#192?)

I don't think this is related to 192. That issue is about binported type class instances that break Lean 4. Those typically don't cause stack overflows.

@digama0
Copy link
Member Author

digama0 commented Nov 18, 2022

Just to clarify, the issue that happens is that when synport is translating a theorem (the binport part, which translates the environment), it first tries to use the given definition, then stubs the value and then the type if it hits defeq issues. The problem is that even though it is in a try catch, the first attempt fails with an uncatchable stack overflow due to things being almost defeq but with a bunch of lets and a bunch of big numerals it seems like something is blowing up in the term.

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

Successfully merging this pull request may close these issues.

2 participants