| import Std.WP | |
| set_option sym.debug true | |
| /-! A tactic `have`/`let`/`suffices` wraps the goal in `noImplicitLambda` `mdata` (via | |
| `refine_lift no_implicit_lambda% …`). `vcgen` must read the program type through that annotation. | |
| Also checks that `⦃…⦄` elaborates with only `open Std.WP` (no `open Lean.Order`). -/ | |
| set_option experimental.vcgen true | |
| open Std.WP | |
| example : ⦃fun _ => True⦄ (pure 1 : StateM Nat Nat) ⦃fun _ _ => True⦄ := by | |
| have _h : True := trivial | |
| vcgen | |
| example : ⦃fun _ => True⦄ (pure 1 : StateM Nat Nat) ⦃fun _ _ => True⦄ := by | |
| let _n : Nat := 0 | |
| vcgen |