docs(unshadow): #2-ext rt_str inline โ ๐ด CLOSED-NEGATIVE (ABI-boundary falsification)#2087
Merged
Merged
Conversation
โฆtime.h ABI ๊ฒฝ๊ณ ์ฐจ๋จ) UNSHADOW #2 (hexa_int box ์ธ๋ผ์ธ, ~28%) ๋ฅผ STRING ๋ฐํ์ prim ์ผ๋ก ํ์ฅ ์๋ํ closed-negative finding. prim = `rt_str_starts_with` (liveยทpureยทHexaVal 2-arg). falsifier: "pure rt_str_* accessor ์ body ๋ฅผ codegen ์ฝ์ฌ์ดํธ์ ์ธ๋ผ์ธ โ clang -O2 ๊ฐ ๊ฒฝ๊ณ ๋์ด ์ต์ ํ, byte-identicalยทsingle-eval". ๋ฐ์ฆ(THE WALL): inline arm ๋งํฌ ์คํจ โ `Undefined symbols: "_HX_STRLEN"`. runtime.h ๋ HexaVal-๋ ๋ฒจ ABI ํจ์๋ง export ํ๊ณ ๋ด๋ถ ์ค์นผ๋ผ ํฌํผ (HX_STRLENยทhxlcl_strncmpยทlibc strncmp)๋ runtime.c amalgam ๋ด๋ถ์๋ง ์กด์ฌ โ emitted ํ๋ก๊ทธ๋จ(`#include "runtime.h"` + link runtime.o)์์ ์ฐธ์กฐ ๋ถ๊ฐ. HX_IS_STR/HX_STR ๋ export ๋์ง๋ง HX_STRLEN ์ ์ ๋จ. ruled-out axis: hexa_int ๊ฐ ์ฑ๊ณตํ ๊ฑด box-literal ์ด runtime.h-๊ฐ์ struct ๋ ์ด์์ + ๋ฆฌํฐ๋ด๋ง ์จ์(๋ด๋ถ ํฌํผ 0) ์ธ๋ฐ, ๋ชจ๋ ์๋ฏธ์๋ rt_str_* body ๋ ๋ด๋ถ ํฌํผ๋ฅผ ๊ฑด๋๋ ค ์์-๋ ์ด์์ ์ธ๋ผ์ธ ํํ๊ฐ ์์. ์ธ๋ผ์ธํ๋ ค๋ฉด runtime.h ํฌํผ export(=๊ฒฝ๊ณ ์ฌํ๋) ๋๋ ์ ์ญ ํ๋ฆฌ์ฐ๋ธ `#include <string.h>`(surgical ์๋ + strncmp ๋งคํฌ๋ก-shadow ์ถฉ๋) ํ์ โ ๋ ๋ค ์ฝ์ฌ์ดํธ ์ธ๋ผ์ธ ์ค์ฝํ ๋ฐ. double-eval ๊ฐ๋ ์ค๊ณ๋ ์ ์(emitted C ์์ ๊ฐ ์ธ์ ์ ํํ 1ํ let-bind ํ์ธ, BASE single-eval calls=1). ๋ฐ์ฆ์ ๊ฐ๋๊ฐ ์๋๋ผ ๋งํฌ ๊ฒฝ๊ณ. ์ ํ์ฑ ์ฐ์ : codegen ๋ณ๊ฒฝ revert(์ธ๋ผ์ธ์ ๋น๋ ์์ฒด ์คํจ). bench/log/verdict ๋ง commit. UNSHADOW.md cross-layer milestone ๋ฏธ๋ณ๊ฒฝ(extension). NO hand-written .c. artifacts: - .verdicts/unshadow-2ext-rt-str-inline/F-UNSHADOW-2EXT-RT-STR-INLINE.txt (verbatim) - bench/unshadow/strstarts_{corpus,heavy,singleeval}.hexa - domains/UNSHADOW.log.md (extension entry) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# Conflicts: # domains/UNSHADOW.log.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
โ๏ธ UNSHADOW #2-extension โ rt_str_* ์ธ๋ผ์ธ: ๐ด CLOSED-NEGATIVE
#2(hexa_int, merged ~28%)์ ๋ฌธ์์ด prim์ผ๋ก ํ์ฅ ์๋ โ link ๊ฒฝ๊ณ์ falsified. ์ฝ๋ ๋ณ๊ฒฝ ์์(codegen.hexa clean revert) โ log + verdict + ๋ฒค์น๋ง ๊ธฐ๋ก(publishable negative ยท commons
paper_negative_ok).๋ฌด์์ด ๋ฐ์ฆ๋๋
prim
rt_str_starts_with์ธ๋ผ์ธ โ ์ ๋งํฌ๋จ:runtime.h๋ HexaVal-level ABI๋ง exportํ๊ณ ๋ด๋ถ ์ค์นผ๋ผ ํฌํผ(HX_STRLENยทhxlcl_strncmp)๋ ๋ ธ์ถ ์ ํจ. ๋ชจ๋ ์๋ฏธ์๋rt_str_*๋ณธ๋ฌธ์ ๋น-export ๋ด๋ถ์ ์์กด โ ์์-๋ ์ด์์ ์ธ๋ผ์ธ form ๋ถ์ฌ.์ hexa_int์ ๋๋ (์ญ๊ท๋ช )
((HexaVal){.tag,.i})๋ runtime.h-๊ฐ์ ๊ตฌ์กฐ์ฒด+๋ฆฌํฐ๋ด๋ง ์ โ ๋ด๋ถ ํฌํผ 0๊ฐ. ์ธ๋ผ์ธ ๊ฐ๋ฅ โ prim ๋ณธ๋ฌธ์ด runtime.h ๊ฐ์ ํ๋ฉด๋ง ์ฌ์ฉ. ์ด๊ฒ ์ด๋ฒ ๋ฐ๊ฒฌ.๊ฐ๋๋ ์ ์
double-eval ๊ฐ๋(๊ฐ ์ธ์ 1ํ let-bind,
__sw_s/__sw_p) ์ค๊ณ๋ ์ ํํ์. ๋ฐ์ฆ์ ABI ๊ฒฝ๊ณ์ง ๊ฐ๋ ๊ฒฐํจ ์๋.verdict:
.verdicts/unshadow-2ext-rt-str-inline/F-UNSHADOW-2EXT-RT-STR-INLINE.txt. milestone flip ์์(ํ์ฅ). ๐ค Generated with Claude Code