Skip to content

Commit

Permalink
proved a few emptystr simplification rules
Browse files Browse the repository at this point in the history
  • Loading branch information
keeganperry7 authored and awalterschulze committed Jan 9, 2025
1 parent b7b8dea commit d5b6375
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions Katydid/Regex/Language.lean
Original file line number Diff line number Diff line change
Expand Up @@ -662,15 +662,21 @@ theorem simp_and_not_null_l_emptystr_is_emptyset
(r: Lang α)
(notnullr: Not (null r)):
and r emptystr = emptyset := by
-- TODO
sorry
funext xs
simp at *
intro hr hxs
rw [hxs] at hr
contradiction

theorem simp_and_emptystr_not_null_r_is_emptyset
(r: Lang α)
(notnullr: Not (null r)):
and emptystr r = emptyset := by
-- TODO
sorry
funext xs
simp at *
intro hxs
rw [hxs]
exact notnullr

theorem simp_and_idemp (r: Lang α):
and r r = r := by
Expand Down Expand Up @@ -756,15 +762,21 @@ theorem simp_and_not_emptystr_l_not_null_r_is_r
(r: Lang α)
(notnullr: Not (null r)):
and (not emptystr) r = r := by
-- TODO
sorry
funext xs
simp [not, emptystr] at *
intro hr hxs
rw [hxs] at hr
contradiction

theorem simp_and_not_null_l_not_emptystr_r_is_l
(r: Lang α)
(notnullr: Not (null r)):
and r (not emptystr) = r := by
-- TODO
sorry
funext xs
simp [not, emptystr] at *
intro hr hxs
rw [hxs] at hr
contradiction

theorem simp_one_r_implies_star_r (r: Lang α) (xs: List α):
r xs -> star r xs := by
Expand Down

0 comments on commit d5b6375

Please # to comment.