Commit 7a95488
committed
perf(Analysis.Complex.Exponential): make
Recall that `irreducible_def` creates a declaration that is not unfolded by both
the elaborator and the kernel (without some special effort). Currently,
`UpperHalfPlane.isometry_vertical_line` takes a long time to type check in the
kernel because it attempts to unfold `Real.exp` during whnf.
Unfolding `Real.exp` quickly leads to unfolding `Complex.exp`.
I don't think there is any good reason to want to unfold `Complex.exp` so this PR makes it an `irreducible_def`.
Co-authored-by: Matthew Ballard <matt@mrb.email>Complex.exp an irreducible_def (leanprover-community#32599)1 parent 666e433 commit 7a95488
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments