FStarLang / FStarLang/FStar

Support for SMTPat on fields of an inductive

Open
#1,973 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
F*
Stars
3.1k
Forks
267
Avg merge
10h 45m
Merged PRs (30d)
54

Description

It would be nice to be able to do:

```
typeclass c {
lemma_foo: ... [ SMTPat ... ];
}
```

and be able to enjoy the pattern:

```
let f [| c |] =
// pattern in local scope
```

or, if not supported, at least warn about it. Santiago seconded this proposal.

Thanks,

Jonathan

Contributor guide

Open the contributing guide

Research direction

Start by tracing how SMTPat annotations on typeclass lemmas and patterns over inductive fields are handled. Compare the requested examples with the current behavior, then determine whether support can be added or a warning should be emitted for the unsupported form.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.