feat(codegen): proof-carrying inline of lambda_eliashberg โ UNSHADOW #B#2093
Merged
Conversation
โฆidentity licenses cross-ABI call elision (UNSHADOW #B) UNSHADOW.easy.md ยงB "์ฆ๋ช -ํ๊ฐ" ์ค์ฆ 1๊ฑด โ #4(atlas verdict=license) + #2 (layout-only cross-ABI inline) ๊ฒฐํฉ. ๐ก SIMD ํญ๋ชฉ์ ๋ฌด์์ค ๐ต ์ฐํ(raw SIMD ์ฌ๊ตฌํ ์๋). License (proof โ ์์ผ๋ฉด UNSOUND): atlas ๋ ธ๋ verified-lambda_eliashberg-num (`lambda_eliashberg(0.5)=1.0`, ๐ข SUPPORTED-NUMERICAL, verified-by `hexa verify --expr lambda_eliashberg 0.5 1.0`) ์ด identity `lambda_eliashberg(M0)โก2ยทM0` ๋ณด์ฆ. codegen ์ fn body ๋ฅผ ๋ชจ๋ฆ โ atlas verdict ๋ง์ด opaque cross-ABI call โ closed-form ์นํ ํ๊ฐ. LLVM ๋ถ๊ฐ(precompiled runtime.o symbol ยท theorem DB ๋ถ์ฌ). Transform (gen2_expr CallโIdent, #4 fold ์งํ): lambda_eliashberg(EXPR) โ ({ HexaVal __le_x = (EXPR); HX_FLOAT(__le_x) < 0.0 ? hexa_float(-999999.0) : ((HexaVal){.tag=TAG_FLOAT,.f=(2.0*HX_FLOAT(__le_x))}); }) layout-only(runtime.h-๊ฐ์ TAG_FLOAT/HX_FLOAT/hexa_float๋ง; ๋ด๋ถ ํฌํผ 0). GUARD EXACT: name ์ผ์น + _is_known_fn_global + !_gen2_has_decl + arg 1๊ฐ. DOUBLE-EVAL SAFE: EXPR ๋ฅผ __le_x ๋ก 1ํ let-bind(3ร ์ฝ์). g5 (mini macOS arm64, hexat.base vs hexat.new, ๋์ผ runtime.o): - HIT corpus(expr ์ธ์+์์): 1/3/6.5/-999999/-999999 ์ arm ๋์ผ, md5 570eaa65 ์์ชฝ BYTE-IDENTICAL (์์ guard ๊ฒฝ๋ก ๋ณด์กด) - single-eval corpus(side-effecting bump_then): INLINED arm calls=1, md5 d44d54ac ์์ชฝ BYTE-IDENTICAL (let-bind ๋จ์ผํ๊ฐ ์ฆ๋ช ) - no-hit corpus: emit C base vs new BYTE-IDENTICAL (transform inert) perf: 30M-iter ํซ๋ฃจํ 0.36โ0.19s (~47%) ยท `bl _lambda_eliashberg` _u_main ์๊ฑฐ. hexa_cc.c ๋ B9 generated โ ๋ฏธ์ปค๋ฐ. SSOT = self/codegen.hexa. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# Conflicts: # domains/UNSHADOW.md
dancinlife
added a commit
that referenced
this pull request
May 29, 2026
UNSHADOW ์ ์ ๋ฅผ HEXA-STACK ์ผ๋ก ์ฌ์์ฑ: LLVM ์ ์ฌ๊ตฌํํ์ง ์๊ณ (M1 native-asm 5/5 ํจ๋ฐฐ) clang -O2 ๋ฅผ floor ๋ก ์์ํ ์์ ๐ต ์ฐ์(์ธ๋ผ์ธยทatlas-foldยท proof-carryingยทcheck-elision)๋ฅผ ceiling ์ผ๋ก ์ ์ธต. ์ด๋ฒ ์ฌ์ดํด ๋ closed-negative (#2-ext rt_str ยท C tag-elision)๊ฐ ํ ๋ธ๋ก์ปค๋ก ์๋ ด = runtime.o C-ABI ๋ฒฝ; LTO/same-TU = .c=0 ์กธ์ ์ด ๋ tier ๋ฅผ ๋์์ ์ฌ๋ ์ด์ . - UNSHADOW.md: ์ ์ ์ฌ์์ฑ + 3 ์ ๊ท milestone (๐ก parity ์์ ยท ๐ตร๐ก LTO unwall ์ค์ธก ยท ๐๏ธ ์ ์ธต ์์น ๋ฌธ์ํ) - UNSHADOW.easy.md: ๐๏ธ HEXA-STACK ์ ์ธต ์น์ (ASCII floor/ceiling ๋ค์ด์ด๊ทธ๋จ + ๋น๊ตํ) - UNSHADOW.log.md: B(#2093)+C(#2094) ๋๋ฉ + ABI-๋ฒฝ ์๋ ด meta-finding ๊ธฐ๋ก Co-authored-by: dancinlife <search5599@proton.me> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
๊ฒ์ฆ๋ identity(
lambda_eliashberg(M0)โก2ยทM0, atlasverified-lambda_eliashberg-num๐ข)๋ฅผ license ๋ก ์ผ์ opaque cross-ABI call ์ layout-only ์ธ๋ผ์ธ์ผ๋ก ์นํ. expr ์ธ์ let-bind 1ํ๋ก single-eval ์ฆ๋ช (calls=1). g5 byte-diff IDENTICAL ยท ํซ๋ฃจํ 0.36โ0.19s (~47%). UNSHADOW ๐ต B ๋ง์ผ์คํค flip + log ๊ธฐ๋ก.๐ค Generated with Claude Code