Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Computability): r.e. sets are closed under inter/union/projection/composition #16705

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iehality
Copy link
Collaborator

Prove that r.e. sets are closed under intersections, unions, projection and composition.


Open in Gitpod

Copy link

PR summary 12251580db

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ comp_computable
+ const
+ inter
+ re_iff
+ union
+++ projection

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.

@joneugster joneugster added the t-computability Computability theory (TMs, DFAs, languages, grammars, etc) label Sep 12, 2024
Copy link
Collaborator

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

Can you use aesop to golf anything?

exact (H _ _).mpr ⟨encode b, a, b, ⟨rfl, rfl⟩, c, hc, rfl⟩
intro c a
constructor
· simp [g']
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you squeeze that simp?

Comment on lines +250 to +252
by_cases h : p <;> simp [h]
· simpa using Partrec.some.dom_re
· simpa using (Partrec.none (α := α) (σ := α)).dom_re
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
by_cases h : p <;> simp [h]
· simpa using Partrec.some.dom_re
· simpa using (Partrec.none (α := α) (σ := α)).dom_re
by_cases h : p
· simpa [h] using Partrec.some.dom_re
· simpa [h] using (Partrec.none (α := α) (σ := α)).dom_re

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-computability Computability theory (TMs, DFAs, languages, grammars, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants