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

Array/Slice Patterns are not supported #804

Open
Tracked by #806
karthikbhargavan opened this issue Jul 25, 2024 · 0 comments · May be fixed by #878
Open
Tracked by #806

Array/Slice Patterns are not supported #804

karthikbhargavan opened this issue Jul 25, 2024 · 0 comments · May be fixed by #878
Assignees
Labels
engine Issue in the engine keep-open marked-unimplemented Issue refered by `Unimplemented {issue_id...}` in the engine unsupported-rust Rust code rejected by hax. Unless marked wontfix, we want to support it soon.

Comments

@karthikbhargavan
Copy link
Contributor

#[hax_lib::fstar::after("let lemma (a:u8) (b:u8) : Lemma (ensures (f(f([a,b])) == [a,b])) = ()")]
fn f(x: [u8; 2]) -> [u8; 2] {
    match x {
        [a, b] => [b, a]
    }
}

   Open this code snippet in the playground

This example results in an error:

error: [HAX0001] (AST import) something is not implemented yet.
Pat:Array
 --> src/lib.rs:7:1
  |
7 |         [a, b] => [b, a]
  | ^^^^^^^^^^^^^^
  |
info: hax: wrote file /workdir/proofs/fstar/extraction/Playground.fst
@W95Psp W95Psp added unsupported-rust Rust code rejected by hax. Unless marked wontfix, we want to support it soon. engine Issue in the engine labels Jul 29, 2024
@maximebuyse maximebuyse linked a pull request Sep 18, 2024 that will close this issue
@W95Psp W95Psp changed the title Array Patterns are not supported Array/Slice Patterns are not supported Sep 30, 2024
@W95Psp W95Psp added keep-open marked-unimplemented Issue refered by `Unimplemented {issue_id...}` in the engine labels Oct 2, 2024
@franziskuskiefer franziskuskiefer linked a pull request Oct 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Issue in the engine keep-open marked-unimplemented Issue refered by `Unimplemented {issue_id...}` in the engine unsupported-rust Rust code rejected by hax. Unless marked wontfix, we want to support it soon.
Projects
No open projects
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants