-
Notifications
You must be signed in to change notification settings - Fork 15
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
Notations no longer work in binport #192
Comments
Oof, I think this is an ugly error... When we elaborate the Lean 4 notation command, we get this: /- sources/mathlib/src/data/real/basic.lean:1:270000: error: application type mismatch
Lean.withRef f✝
argument
f✝
has type
Lean.TSyntax `ident : Type
but is expected to have type
Lean.Syntax : Type
-/ Apparently we get an exception during TC synthesis (but it's not timeout related from what I can tell), not even this works: #check fun n : Nat => (n : Option Nat) |
Apparently, this instance is dangerous now: @DirectSum.GradeZero.nonUnitalNonAssocSemiring :
{ι : Type ?u.302} →
[_inst_1 : DecidableEq ι] →
(A : ι → Type ?u.303) →
[_inst_2 : AddZeroClass ι] →
[_inst_3 : (i : ι) → AddCommMonoid (A i)] →
[_inst_4 : DirectSum.GnonUnitalNonAssocSemiring A] →
NonUnitalNonAssocSemiring (A Zero.zero) What happens is that we try e.g. unifying |
Changing |
Maybe after the discrimination tree refactor where we no longer do iota-reduction. (Right now |
* `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.
Like ≅+* or ℝ
The text was updated successfully, but these errors were encountered: