Skip to content

Claude/add academic proofs bo51p#21

Merged
hyperpolymath merged 3 commits intomainfrom
claude/add-academic-proofs-Bo51p
Dec 31, 2025
Merged

Claude/add academic proofs bo51p#21
hyperpolymath merged 3 commits intomainfrom
claude/add-academic-proofs-Bo51p

Conversation

@hyperpolymath
Copy link
Owner

No description provided.

claude and others added 3 commits December 31, 2025 12:29
Add complete formal academic documentation covering:

Proofs and Metatheory:
- Type system soundness (progress/preservation theorems)
- Quantitative type theory (linearity proofs, semiring laws)
- Algebraic effects formal semantics (handlers, row polymorphism)
- Ownership/borrowing verification (memory safety proofs)
- Row polymorphism (unification, coherence)
- Dependent types and refinement types (normalization, SMT)
- Coherence and parametricity (free theorems)
- Type inference algorithm specification

Formal Verification:
- Operational semantics (small-step, evaluation contexts)
- Denotational semantics (domain theory, logical relations)
- Axiomatic semantics (Hoare logic, separation logic)

Mathematical Foundations:
- Categorical semantics (LCCCs, graded comonads, Freyd categories)
- Logic foundations (Curry-Howard, linear logic correspondence)
- Complexity and decidability analysis

White Papers:
- Language design rationale and related work comparison

Mechanized Proofs (stubs):
- Coq formalization structure
- Lean 4 formalization structure
- Agda formalization structure

All documents include:
- Complete formal definitions and inference rules
- Detailed proof sketches and theorem statements
- Implementation dependencies marked with [IMPL-DEP] tags
- References to academic literature
- Connections to the existing codebase (lib/ast.ml, etc.)
This commit establishes the foundation for implementing AffineScript:

Design Documents:
- DECISIONS.md: Key design decisions for runtime, effects, WASM, SMT, etc.
- ROADMAP.md: Phased implementation plan (9 phases, version milestones)

Compiler Infrastructure (OCaml stubs):
- lib/symbol.ml: Symbol table for name resolution
- lib/resolve.ml: Name resolution pass
- lib/types.ml: Internal type representation
- lib/unify.ml: Type/row/effect unification
- lib/typecheck.ml: Bidirectional type checker
- lib/quantity.ml: QTT quantity checking
- lib/borrow.ml: Borrow checker

Runtime (Rust):
- runtime/Cargo.toml: Crate configuration
- runtime/src/lib.rs: Entry point
- runtime/src/alloc.rs: Memory allocator
- runtime/src/effects.rs: Effect handling (evidence-passing)
- runtime/src/panic.rs: Panic handling
- runtime/src/ffi.rs: Foreign function interface
- runtime/src/gc.rs: Optional garbage collector

Tooling (Rust):
- tools/affinescript-lsp/: Language server protocol implementation
- tools/affine-pkg/: Package manager (Cargo-inspired)
- tools/affine-doc/: Documentation generator

All stubs contain comprehensive TODOs for future implementation.
@hyperpolymath hyperpolymath merged commit 863bad1 into main Dec 31, 2025
2 of 4 checks passed
@hyperpolymath hyperpolymath deleted the claude/add-academic-proofs-Bo51p branch December 31, 2025 13:55
`;
}).join('');

searchResults.innerHTML = html;

Check failure

Code scanning / Semgrep OSS

Semgrep Finding: javascript.browser.security.insecure-document-method.insecure-document-method Error

User controlled data in methods like innerHTML, outerHTML or document.write is an anti-pattern that can lead to XSS vulnerabilities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants