Zulip Chat Archive

Stream: general

Topic: bug in `@[derive]`?


Kevin Buzzard (Dec 16 2022 at 18:04):

Lean 3 (yeah I know Lean 3 is so early 2022, but I'm trying to get some PRs off the review queue before a possible flag day):

import topology.instances.real

example : topological_ring  := infer_instance -- works
example : topological_space  := infer_instance -- works

@[derive topological_ring]
def my_reals := 
/-
failed to synthesize type class instance for
⊢ topological_space my_reals
-/

Should that not be happening?


Last updated: Dec 20 2023 at 11:08 UTC