`C` language formalization?

Open
#1,319 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
c
Domain
compilers

Research direction

The issue asks whether the community wants a formalized C subset combining K&R C and C89 while excluding expressions with side effects, but it does not specify a change to make or files to inspect. Start by checking whether the project has existing language formalizations and discuss the proposed scope with maintainers. Done would require an agreed design and a concrete implementation plan.

Written by the indexing model from the issue text.

Description

Hi! I am new here, I want to thank you for the work on this project!

Was there ever talk about formalizing a subset of the C language? I want to do it for myself, in order to further use it to teach operational semantics in a language that's already known by most students.

I know there are some C subsets that have been used for other formalizations, but I think I want to go another way: I want to do an intersection of K&R C and C89, while also dropping expressions with side effects, so that I simplify the language while it should still be recognizable.

Is this something that the community would want included?

Dominant language
Lean
Stars
862
Forks
242
Avg merge
1d 4h
Merged PRs (30d)
55

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from leanprover/cslib

All issues in leanprover/cslib

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.