Skip to content

ai: rewrite 2ltt skill against original papers and reference impl - #115

Merged
iljakuklic merged 4 commits into
develfrom
update-2ltt-skill
Jul 23, 2026
Merged

iljakuklic merged 4 commits into
develfrom
update-2ltt-skill

Conversation

@iljakuklic

Copy link
Copy Markdown
Owner

Reviewed all sources from CREDITS.md (Kovács ICFP'22/'24 LaTeX sources, the staged demo Haskell code, KACC) and fixed the discrepancies:

  • Remove fabricated guardStage: the reference demo repairs stage mismatches via coercive subtyping (adjustStage/coe), it does not stage-check lookups
  • Untangle conversion checking from staging strictness: full object beta/eta is the 2022 design, no-beta/eta is the CFTT 2024 design; both documented as an explicit up-front decision
  • Add missing content: 2022 object-language variations (monomorphization, Rep indexing), subtyping rules, cofibrancy, intensional-analysis options, CFTT computation products, join points + SOP, generativity axiom, KACC kind grammar with mono-rep/mono-conv restrictions
  • Complete the demo notes: meta machinery, smart constructors, quote insertion, coe, zonk, README design notes
  • Deduplicate: one topic per file with cross-references; fold the redundant slides notes into the 2022 file; keep the skill generic (no project refs)

…tation

Reviewed all sources from CREDITS.md (Kovács ICFP'22/'24 LaTeX sources, the
staged demo Haskell code, KACC) and fixed the discrepancies:

- Remove fabricated guardStage: the reference demo repairs stage mismatches
  via coercive subtyping (adjustStage/coe), it does not stage-check lookups
- Untangle conversion checking from staging strictness: full object beta/eta
  is the 2022 design, no-beta/eta is the CFTT 2024 design; both documented
  as an explicit up-front decision
- Add missing content: 2022 object-language variations (monomorphization,
  Rep indexing), subtyping rules, cofibrancy, intensional-analysis options,
  CFTT computation products, join points + SOP, generativity axiom, KACC
  kind grammar with mono-rep/mono-conv restrictions
- Complete the demo notes: meta machinery, smart constructors, quote
  insertion, coe, zonk, README design notes
- Deduplicate: one topic per file with cross-references; fold the redundant
  slides notes into the 2022 file; keep the skill generic (no project refs)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@iljakuklic iljakuklic self-assigned this Jul 18, 2026
Comment thread .opencode/skills/2ltt/implementation-guide.md Outdated
Comment thread .opencode/skills/2ltt/downen-2020-kinds-are-calling-conventions.md
Comment thread .opencode/skills/2ltt/downen-2020-kinds-are-calling-conventions.md Outdated
Comment thread .opencode/skills/2ltt/demo-implementation.md Outdated
Comment thread .opencode/skills/2ltt/kovacs-2022-staged-compilation-2ltt.md Outdated
iljakuklic and others added 3 commits July 23, 2026 14:21
- Extract the glossary from implementation-guide.md into glossary.md and
  list it in SKILL.md for visibility (#3614753068).
- Reword "memorialize" to "record" in the Downen notes (#3637774438).
- Turn bare backtick .md cross-references into clickable markdown links
  across all skill files (#3638642647).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Explain, next to the arrow example, that the PtrR representation is that of
the function value itself (a code pointer) and that the arity lists only the
argument reps — the return type's representation deliberately never appears in
the kind, which is what keeps return types rep/levity-polymorphic. (#3637766663)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The coe case summary was written as Haskell -- comments inside the same
code block as the runnable adjustStage, making it read as disabled code.
Lift it out into a bullet list so it is unambiguously a summary. (#3637848617)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@iljakuklic
iljakuklic merged commit ae30151 into devel Jul 23, 2026
4 checks passed
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.

1 participant