-
Notifications
You must be signed in to change notification settings - Fork 1.2k
delta-derive handler #380
Copy link
Copy link
Closed
leanprover/lean4
#9800Labels
enhancementNew feature or requestNew feature or requestlean4-change-in-behaviourDescribes a known change in behaviour. No implication that it "needs fixing".Describes a known change in behaviour. No implication that it "needs fixing".t-metaTactics, attributes or user commandsTactics, attributes or user commands
Description
https://leanprover-community.github.io/mathlib_docs/tactic/delta_instance.html#tactic.delta_instance_handler
In lean3 there was a default derive handler which would run delta on the goal. That is, it would pull the instance through the type synonym. We don't have this at present in lean4, so it is necessary to construct the instance by hand.
Examples:
deriving instance LargeCategory, ConcreteCategory for HeytAlgCat
turns into
deriving instance LargeCategory for HeytAlgCat
instance : ConcreteCategory HeytAlgCat := by
dsimp [HeytAlgCat]
infer_instance
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestlean4-change-in-behaviourDescribes a known change in behaviour. No implication that it "needs fixing".Describes a known change in behaviour. No implication that it "needs fixing".t-metaTactics, attributes or user commandsTactics, attributes or user commands