Commit 1ece331
syntax: expr_strictly_free_of_region (closes blocker 5)
Reformulates the region-freedom predicate to drop the shadow short-
circuit in [ERegion r' body], which the 2026-05-28 audit (task #29)
identified as the cause of blocker 5 (predicate-too-weak in L1
region-shrinkage lemma family).
Changes:
* formal/Syntax.v
- new Fixpoint expr_strictly_free_of_region : same shape as
expr_free_of_region except the [ERegion _ body] case recurses
UNCONDITIONALLY (no String.eqb shadow short-circuit).
- new Lemma expr_strictly_free_implies_free : Qed via structural
induction. Trivial implication establishing the strict variant
is a conservative strengthening.
* formal/Semantics_L1.v
- migrate preconditions of region_shrink_preserves_typing_l1_gen_m,
region_shrink_preserves_typing_l1_gen, region_shrink_preserves_typing_l1,
preservation_l3_region_active_echo, and preservation_l3 from
expr_free_of_region to expr_strictly_free_of_region.
- update the [T_Region_L1] / [T_Region_L1_Echo] rr<>r descend
sub-cases' IH-discharge comments (proof body uses the same
simpl + destruct pattern, now with strict Hfree).
Audit constraints honored:
* Zero new Admitted or Axiom declarations (4 admits / 3 Admitted
preserved exactly per main).
* The shadowed sub-case admits at Semantics_L1.v:553/621 REMAIN —
they are blocked by list-vs-multiset structural mismatch
(Phase D work), NOT by predicate weakness. The strict variant
does NOT close them.
* No patching of legacy Theorem preservation in Semantics.v (false
per Counterexample.v) or the legacy Typing.v judgment.
Out of scope (follow-up):
* The step rules S_Region_Exit / S_Region_Exit_Echo in Semantics.v
still emit the weak expr_free_of_region premise. Migrating those
to strict is a separate concern (legacy operational semantics)
and intentionally NOT done here per task instruction.
Build: all 9 .v files compile clean under coqc 8.18.0 from a fresh
.vo state.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8747d89 commit 1ece331
2 files changed
Lines changed: 120 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
431 | 441 | | |
432 | 442 | | |
433 | 443 | | |
434 | 444 | | |
435 | | - | |
| 445 | + | |
436 | 446 | | |
437 | 447 | | |
438 | 448 | | |
| |||
532 | 542 | | |
533 | 543 | | |
534 | 544 | | |
535 | | - | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
536 | 550 | | |
537 | 551 | | |
538 | 552 | | |
| |||
601 | 615 | | |
602 | 616 | | |
603 | 617 | | |
604 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
605 | 621 | | |
606 | 622 | | |
607 | 623 | | |
| |||
656 | 672 | | |
657 | 673 | | |
658 | 674 | | |
659 | | - | |
| 675 | + | |
660 | 676 | | |
661 | 677 | | |
662 | 678 | | |
| |||
668 | 684 | | |
669 | 685 | | |
670 | 686 | | |
671 | | - | |
| 687 | + | |
672 | 688 | | |
673 | 689 | | |
674 | 690 | | |
| |||
1741 | 1757 | | |
1742 | 1758 | | |
1743 | 1759 | | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
1744 | 1768 | | |
1745 | 1769 | | |
1746 | 1770 | | |
1747 | 1771 | | |
1748 | 1772 | | |
1749 | 1773 | | |
1750 | | - | |
| 1774 | + | |
1751 | 1775 | | |
1752 | | - | |
| 1776 | + | |
1753 | 1777 | | |
1754 | 1778 | | |
1755 | 1779 | | |
| |||
1806 | 1830 | | |
1807 | 1831 | | |
1808 | 1832 | | |
1809 | | - | |
| 1833 | + | |
1810 | 1834 | | |
1811 | 1835 | | |
1812 | 1836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
190 | 278 | | |
191 | 279 | | |
192 | 280 | | |
| |||
0 commit comments