This currently relies on the encoding pun of Nat.zero as the first tagged constructor of Nat. Since Nat.succ is lowered to addition, it makes sense to also lower Nat.zero to a zero literal. This might also expose more optimization opportunities in the future. |
||
|---|---|---|
| .. | ||
| bench | ||
| compiler | ||
| elabissues | ||
| ir | ||
| lean | ||
| pkg | ||
| playground | ||
| plugin | ||
| simpperf | ||
| .gitignore | ||
| common.sh | ||
| lakefile.toml | ||
| lean-toolchain | ||