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

redefine star and derive concat #101

Merged
merged 2 commits into from
Dec 8, 2024
Merged

redefine star and derive concat #101

merged 2 commits into from
Dec 8, 2024

Conversation

awalterschulze
Copy link
Member

No description provided.

@@ -129,17 +136,17 @@ def derive_scalar {α: Type} {a: α} {s: Prop} {P: Lang α}:
rfl

def derive_concat {α: Type} {a: α} {P Q: Lang α} {w: List α}:
(derive (concat P Q) a) w <-> (scalar (null P) (or (derive Q a) (concat (derive P a) Q))) w := by
(derive (concat P Q) a) w <-> (or (concat (derive P a) Q) (scalar (null P) (derive Q a))) w := by
Copy link
Member Author

Choose a reason for hiding this comment

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

scalar is used as a short cut for an if statement, so I think was incorrectly translated before

-- sorry
-- case invFun =>
-- sorry
def derive_star {α: Type} {a: α} {P: Lang α} {w: List α}:
Copy link
Member Author

Choose a reason for hiding this comment

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

There is no need for an if here

-- sorry
-- case invFun =>
-- sorry
def null_star {α: Type} {P: Lang α}:
Copy link
Member Author

Choose a reason for hiding this comment

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

I do not think we need List here

@awalterschulze awalterschulze merged commit 4468363 into main Dec 8, 2024
2 checks passed
@awalterschulze awalterschulze deleted the redefine_star branch December 8, 2024 11:27
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