Commit 172733f
Remove redundant keyword escaping fallback and explicit class renames
The lean_reserved_names fallback in backend_common and the explicit
declare {lean} rename type Eq = Eq0 / Ord = Ord0 in basic_classes.lem
were added to work around a Cerberus team build issue (stale object
files). Since rename_top_level already handles keyword escaping via
lean_constants, both mechanisms were redundant.
Keeps: typed_ast_syntax.ml class rename support (genuine infrastructure
fix — declare rename type now works for classes), and the test cases
for prefix/guard/show keyword patterns.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c8ffabd commit 172733f
File tree
5 files changed
+4
-29
lines changed- lean-lib/LemLib
- library
- src
5 files changed
+4
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
160 | | - | |
161 | 159 | | |
162 | 160 | | |
163 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | 376 | | |
389 | 377 | | |
390 | 378 | | |
| |||
453 | 441 | | |
454 | 442 | | |
455 | 443 | | |
456 | | - | |
457 | | - | |
458 | 444 | | |
459 | 445 | | |
460 | 446 | | |
| |||
599 | 585 | | |
600 | 586 | | |
601 | 587 | | |
602 | | - | |
603 | | - | |
604 | 588 | | |
605 | 589 | | |
606 | 590 | | |
| |||
609 | 593 | | |
610 | 594 | | |
611 | 595 | | |
612 | | - | |
| 596 | + | |
613 | 597 | | |
614 | | - | |
| 598 | + | |
615 | 599 | | |
616 | 600 | | |
617 | 601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 115 | | |
121 | 116 | | |
122 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | | - | |
282 | 280 | | |
283 | 281 | | |
284 | 282 | | |
| |||
0 commit comments