Skip to content

feat(Computability/Languages): languages matching regular expressions are regular#720

Open
chiyunhsu wants to merge 10 commits into
leanprover:mainfrom
chiyunhsu:RegexIsRegular
Open

feat(Computability/Languages): languages matching regular expressions are regular#720
chiyunhsu wants to merge 10 commits into
leanprover:mainfrom
chiyunhsu:RegexIsRegular

Conversation

@chiyunhsu

Copy link
Copy Markdown

Prove languages matching regular expressions are regular in IsRegular.regex.
The proof uses existing theorems IsRegular.add, IsRegular.mul, and IsRegular.kstar.
Prove remaining key ingredient that the language containing only the one character string is regular in IsRegular.char.

Implemented collaboratively by Brooke Gill and Chi-Yun Hsu

@chiyunhsu chiyunhsu changed the title feat (Computability/Languages): languages matching regular expressions are regular feat(Computability/Languages): languages matching regular expressions are regular Jul 14, 2026

@ctchou ctchou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some golfing for you. Could you cherry-pick the following commit and put it on top of your branch? I was not able to push to your branch.

bc9f486

@chiyunhsu chiyunhsu requested a review from ctchou July 15, 2026 01:30

@ctchou ctchou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

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.

3 participants