Commit 1422c82
authored
test: use plain shareCommon before kernel check in vcgen benchmarks (#14304)
This PR restores the `vcgen` benchmarks that regressed with `maximum
recursion depth has been reached` at larger sizes.
The benchmark driver applied `Sym.shareCommon` to the whole proof term
before kernel checking in order to restore structural sharing.
`Sym.shareCommon` now enforces the `SymM` representation invariants and
repairs kernel projections via `Meta.transform`, which recurses under
`maxRecDepth`; on the O(n)-deep `State`/`Reader` proof terms this
overflows the limit. The driver now calls
`Lean.ShareCommon.shareCommon`, the primitive backing
`shareCommonPreDefs`, which is the step the driver was emulating.1 parent 3fce916 commit 1422c82
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments