Skip to content

Commit edabe25

Browse files
authored
Update RandomDo/Tactic/Deriving.lean
1 parent dd0c7b0 commit edabe25

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎RandomDo/Tactic/Deriving.lean‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ noncomputable def centred (c : ℝ) : Measure ℝ := rdo
2121
return x
2222
```
2323
24-
## Why not `deriving IsMarkov`
25-
26-
A `deriving` clause under a `def` parses, but core commits to *delta deriving* whenever any of the
27-
named declarations is a definition (`Lean.Elab.Deriving.Basic.elabDeriving`): it unfolds the
28-
definition and infers pre-existing instances, and never consults a registered
29-
`DerivingHandler`. Delta deriving cannot run a tactic, and in any case looks for a class parameter
30-
that the fully applied `centred c : Measure ℝ` fits, which `IsMarkov`'s `γ → Measure α` is not.
31-
Supporting that spelling would mean overriding core's `deriving` command elaborator wholesale.
32-
3324
## Which statement is derived
3425
3526
A program's *last* argument is read as the kernel's parameter when it is explicit, giving

0 commit comments

Comments
 (0)