You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default parameters and default initialization with tactics do not seem to play well together. In particular, the following two test programs do not typecheck:
classFoowherex : Nat := by fail
classBarextends Foo where
x := 0instance : Bar where
and
classFoowherex : Nat
hx : x = x
classBarextends Foo where
hx' : x = x := by rfl
hx := hx'
instance : Bar where
x := 0
On the other hand,
classFoowherex : Nat
hx : x = x
classBarextends Foo where
hx' : x = x := rfl
hx := hx'
instance : Bar where
x := 0
works as expected, so it's got something to do with tactics.
Context
I'm trying to implement premonoidal categories in mathlib without breaking the old MonoidalCategory API, and this requires a lot of default conditions. Getting everything to work is very challenging!
Activity
test: add test for mixed autoParam/optParam for structure field defaults
test: add test for mixed autoParam/optParam for structure field defau…