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/EpsilonNFA): define path relation #20645

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

anthonyde
Copy link
Collaborator

@anthonyde anthonyde commented Jan 10, 2025

IsPath enables path-based reasoning in proofs involving εNFA.


Open in Gitpod

@anthonyde anthonyde added the t-computability Computability theory (TMs, DFAs, languages, grammars, etc) label Jan 10, 2025
@github-actions github-actions bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label Jan 10, 2025
Copy link

github-actions bot commented Jan 10, 2025

messageFile.md

@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR to Mathlib (this label is automatically managed by a bot) label Jan 10, 2025
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR to Mathlib (this label is automatically managed by a bot) label Jan 11, 2025
@mathlib4-dependent-issues-bot
Copy link
Collaborator

This PR/issue depends on:

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.

Thank you for the PR! Could you please apply the same suggestions wherever relevant?

Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
@YaelDillies YaelDillies added the awaiting-author A reviewer has asked the author a question or requested changes label Jan 17, 2025
@anthonyde
Copy link
Collaborator Author

Thanks for the review. I applied your suggestions generally.

@anthonyde anthonyde removed the awaiting-author A reviewer has asked the author a question or requested changes label Jan 18, 2025
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Data/List/ReduceOption.lean Outdated Show resolved Hide resolved
Mathlib/Data/List/ReduceOption.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
@YaelDillies YaelDillies added the awaiting-author A reviewer has asked the author a question or requested changes label Jan 19, 2025
`Path` enables path-based reasoning in proofs involving `εNFA`.
Theorems were renamed.
Theorems are renamed to use `snake_case` and remove `_iff` suffixes, and
arguments are made implicit. `@[simp]` is also added where applicable.
`IsPath` is more appropriate for a `Prop` definition. Related theorems
are also renamed.
@anthonyde anthonyde force-pushed the anthonyde/enfa-path branch from f8daea2 to fee8650 Compare January 20, 2025 21:26
Copy link

github-actions bot commented Jan 20, 2025

PR summary 2cbaadd9f9

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Computability.EpsilonNFA 684 685 +1 (+0.15%)
Import changes for all files
Files Import difference
Mathlib.Computability.EpsilonNFA 1

Declarations diff

+ IsPath
+ IsPath.eq_of_nil
+ IsPath.singleton
+ isPath_append
+ isPath_nil
+ isPath_singleton
+ mem_accepts_iff_exists_path
+ mem_evalFrom_iff_exists
+ mem_evalFrom_iff_exists_path
+ mem_εClosure_iff_exists
+ mem_εClosure_iff_exists_path
++ _

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.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@anthonyde
Copy link
Collaborator Author

I applied your suggestions and rebased to remove merged changes from the diff. I'll open another PR for the changes in ReduceOption.lean.

@anthonyde anthonyde removed the awaiting-author A reviewer has asked the author a question or requested changes label Jan 20, 2025
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
Mathlib/Computability/EpsilonNFA.lean Outdated Show resolved Hide resolved
@YaelDillies YaelDillies added the awaiting-author A reviewer has asked the author a question or requested changes label Jan 21, 2025
@anthonyde anthonyde removed the awaiting-author A reviewer has asked the author a question or requested changes label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! t-computability Computability theory (TMs, DFAs, languages, grammars, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants