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

[rules] [strings] Add support for concat_cprop rule #42

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions carcara/src/checker/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ pub enum CheckerError {
#[error("expected term {0} to be a suffix of {1}")]
ExpectedToBeSuffix(Rc<Term>, Rc<Term>),

#[error("expected term {0} to not be empty")]
ExpectedToNotBeEmpty(Rc<Term>),

#[error("this rule can only be used in the last step of a subproof")]
MustBeLastStepInSubproof,

Expand Down
2 changes: 2 additions & 0 deletions carcara/src/checker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,8 @@ impl<'c> ProofChecker<'c> {
"concat_split_suffix" => strings::concat_split_suffix,
"concat_lprop_prefix" => strings::concat_lprop_prefix,
"concat_lprop_suffix" => strings::concat_lprop_suffix,
"concat_cprop_prefix" => strings::concat_cprop_prefix,
"concat_cprop_suffix" => strings::concat_cprop_suffix,

// Special rules that always check as valid, and are used to indicate holes in the
// proof.
Expand Down
Loading
Loading