You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Apply resugarings also to pre- and postconditions #1945
The Lean backend produces a[(0 : usize)]_? for the occurrence of a[0] in the function body but core_models.ops.index.Index.index a (0 : usize) for the occurrence of a[0] in the requires-clause.
The same expression is translated as let x : i32 := a; in the function body and as let x : i32 ← (pure a); in the precondition because the LetPure resugaring is only applied to the function body.
Activity
abentkamp commentedon Feb 18, 2026
The issue remains, but the example above had been fixed by #1950.
Here is a different example:
Open this code snippet in the playground
The same expression is translated as
let x : i32 := a;in the function body and aslet x : i32 ← (pure a);in the precondition because theLetPureresugaring is only applied to the function body.