@cella-lang/c 0.1.202610121721 → 0.1.202610130446

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/CHANGES.md +5 -0
  2. package/c.cell +0 -0
  3. package/index.json +647 -679
  4. package/package.json +5 -5
package/CHANGES.md CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  ## 未發佈
6
6
 
7
+ - 標準庫的 Int 名字改進 `Int` namespace(`add_int` → `Int.add`、`ltInt` → `Int.blt`、`addIntF` → `Int.addFast`…),套件的原始碼與產生的項都寫完整名稱。對照表見 cella-lang 的變更紀錄。
8
+ - 穩定定義(`docs/stable-defs.json`)的內容雜湊因此改變(引用的名字變了,內容不變):`c.addV`、`c.divV`、`c.mulV`、`c.negV`、`c.remV`、`c.subV`。
9
+ - **不相容**:cpp 的記憶體換成 GArr 表示(見 cpp 的 CHANGES)。`fullPtr m0 k` 的配置編號是 `cpp.gSize (cpp.memArr m0)`;`fullDerefB`、`mallocWritable`、`mallocFreeable` 直接述說 `cpp.derefB`/`cpp.deleteB`。拿掉只在證明裡用的 `derefAfter`、`nthUpd`、`derefAt`、`storeCell`、`writableThenReadable`、`storeCellKeeps`、`blockSame`、`deleteAt`(改用 cpp 的 `storeDerefB`、`storeKeepsWritableB`、`derefNew`、`addAllocBlock`)。
10
+ - **不相容**:cpp 的 `GArr` 換成 trie 表示(見 cpp 的 CHANGES):`c.setAtToCpp` 改述元素的等式(`cpp.elems (…) = cpp.elems (…)`,原本是整個陣列相等);`arrToCpp` 經 `cpp.gFrom` 建。
11
+ - **不相容**:`c.Jump R`(原本 `c.Jump S R`):`goto` 只帶標籤,狀態由 `cpp.ret 值 狀態` 帶(cpp 的 `Flow` 的 `ret` 改成帶狀態)。寫出 `cpp.ret` 期望值的程式要補上狀態。
7
12
  - **不相容**:定理與前置條件改證 `a = b`(原本是路徑 `≡`),同 cpp。名字不變;前置條件照舊寫 `refl` 或具名的洞。`stable-defs.json` 裡雜湊改變的 4 個:`c.ShlOk`、`c.divV`、`c.litV`、`c.remV`。
8
13
  - 標準庫 `int` 的定理改證 `a = b`(cpp 跟著改):用到的定義雜湊可能改變,意思不變。
9
14
  - 標準庫定理名字裡的舊運算名跟著改(`ltNat_refl` → `blt_refl`、`modNatLt` → `modLt`……;規則見 cella-lang 的 CHANGES):套件內的使用處一起改。
package/c.cell CHANGED
Binary file