Skip to content
Closed
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 tests/elab/10564.lean
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option linter.deprecated.syntax false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/11687.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std

set_option sym.debug true

set_option linter.deprecated.syntax false
set_option warn.sorry false

Expand Down
3 changes: 3 additions & 0 deletions tests/elab/12048.lean
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option linter.deprecated.syntax false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/9362.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option linter.deprecated.syntax false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/9363.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option linter.deprecated.syntax false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/9365.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option linter.deprecated.syntax false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/9474.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option linter.deprecated.syntax false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/9581.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option linter.deprecated.syntax false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/bhaviksSampler.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Std.Data.TreeMap
import Std.Tactic.Do

set_option sym.debug true

/-!
This test is based on code by Bhavik Mehta.
It demonstrates that much of the boilerplate that he was forced to write for his proof
Expand Down
12 changes: 6 additions & 6 deletions tests/elab/bhaviksSampler.lean.out.expected
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bhaviksSampler.lean:97:4-97:11: warning: declaration uses `sorry`
bhaviksSampler.lean:116:4-116:8: warning: declaration uses `sorry`
bhaviksSampler.lean:125:8-125:18: warning: declaration uses `sorry`
bhaviksSampler.lean:128:8-128:25: warning: declaration uses `sorry`
bhaviksSampler.lean:155:17-155:24: warning: declaration uses `sorry`
bhaviksSampler.lean:151:8-151:23: warning: declaration uses `sorry`
bhaviksSampler.lean:99:4-99:11: warning: declaration uses `sorry`
bhaviksSampler.lean:118:4-118:8: warning: declaration uses `sorry`
bhaviksSampler.lean:127:8-127:18: warning: declaration uses `sorry`
bhaviksSampler.lean:130:8-130:25: warning: declaration uses `sorry`
bhaviksSampler.lean:157:17-157:24: warning: declaration uses `sorry`
bhaviksSampler.lean:153:8-153:23: warning: declaration uses `sorry`
2 changes: 2 additions & 0 deletions tests/elab/doLogicTests.lean
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import Std
import Lean.Elab.Tactic.Do.VCGen
import Lean

set_option sym.debug true

open Std.Do

set_option grind.warning false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/experimentalIntrinsic.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.WP

set_option sym.debug true

/-!
Every form of the intrinsic verification syntax reports that it is experimental, at the keyword that
introduces the form, and `set_option experimental.intrinsic true` silences those reports.
Expand Down
3 changes: 3 additions & 0 deletions tests/elab/forInListSpecUnivPoly.lean
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do
set_option linter.deprecated.syntax false
set_option warn.sorry false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/grind_12246.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Std.Do
import Std.Tactic.Do

set_option sym.debug true

def Matrix' (α β γ : Type) : Type := α → β → γ

namespace Matrix'
Expand Down
6 changes: 3 additions & 3 deletions tests/elab/grind_12246.lean.out.expected
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
grind_12246.lean:11:4-11:15: warning: declaration uses `sorry`
grind_12246.lean:14:4-14:14: warning: declaration uses `sorry`
grind_12246.lean:30:8-30:29: warning: declaration uses `sorry`
grind_12246.lean:13:4-13:15: warning: declaration uses `sorry`
grind_12246.lean:16:4-16:14: warning: declaration uses `sorry`
grind_12246.lean:32:8-32:29: warning: declaration uses `sorry`
2 changes: 2 additions & 0 deletions tests/elab/mspecInvariantInstantiation.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Std.Tactic.Do
import Std.Do.WP.Basic

set_option sym.debug true

def tst (n : Nat) : Vector Bool n := Id.run do
let mut res : Vector Bool n := .ofFn fun _ ↦ false
for i in [:n] do
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mspecNoAssignSyntheticOpaque.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Lean

set_option sym.debug true

open Std.Do

set_option linter.deprecated.syntax false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mvcgenInvariantsSuggestions.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Std.Tactic.Do
import Std

set_option sym.debug true

open Std Do

set_option grind.warning false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mvcgenInvariantsWith.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Std.Tactic.Do
import Std

set_option sym.debug true

open Std Do

set_option grind.warning false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mvcgenJPs.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option grind.warning false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mvcgenLocalSpec.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option linter.deprecated.syntax false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mvcgenPRangeInst.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option warn.sorry false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mvcgenRflReducibility.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

/-!
This test case from Hax asserts that `mspec` doesn't use default reducibility when trying
`SPred.entails.rfl`. If it did, then the `MyShl.shl a 32` would be unfolded deeply and we'd run
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mvcgenSimpClassMethod.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option linter.deprecated.syntax false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mvcgenSplitState.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

/-!
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mvcgenTutorial.lean
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import Std.Tactic.Do
import Std.Tactic.BVDecide
import Std.Data.HashSet

set_option sym.debug true

set_option grind.warning false
set_option linter.deprecated.syntax false

Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mvcgenUnknownIdent.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

open Std.Do

set_option linter.deprecated.syntax false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/mvcgenWithFail.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std

set_option sym.debug true

/-!
`mvcgen with grind` should behave like `induction ... with grind` and fail if `grind` fails on
one of the goals.
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/pairsSumToZero.lean
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ https://markushimmel.de/blog/my-first-verified-imperative-program/
import Std.Data.HashSet.Lemmas
import Std.Tactic.Do

set_option sym.debug true

open Std Do

/-!
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/rc_model.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Std.Tactic.BVDecide
import Std.Tactic.Do

set_option sym.debug true

open Std Do

set_option doc.verso true
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/specInvariantAttr.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Std.Tactic.Do
import Std

set_option sym.debug true

open Std Do

set_option grind.warning false
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/sym_intro_impl_detail.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Std.WP
import Std.Tactic.Do

set_option sym.debug true

/-!
`sym => intro` introduces a binder whose name starts with `__` as an implementation-detail local,
as the elaborator does for such binders, so the goal hides it. `vcgen` introduces the join point
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/sym_intro_issue.lean
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Fix: guard `finalize` with `if fvars.isEmpty then return (#[], mvarId)`.
-/
import Lean

set_option sym.debug true

-- Demonstrate the bug by calling `Sym.intros` on a non-forall goal.
-- With the fix in `introCore.finalize`, this prints "GOOD".
-- Without the fix, it prints "BUG".
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/sym_preprocessType_zetaDelta.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Lean.Meta.Sym

set_option sym.debug true

/-!
`Sym.preprocessType` must not zeta-delta ambient let-bound fvars unless explicitly
requested (`zetaDelta := false` by default). Regression test from Sebastian Graf's
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/sym_simp_zeta.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.Tactic.Do

set_option sym.debug true

/-!
`Sym.simp` rewrite theorems must preserve nondep `let`s (e.g. do-notation `__do_jp`
join points) in their RHS. Previously `preprocessType` zeta-reduced the whole theorem
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenCoinductiveFixpoint.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.WP

set_option sym.debug true

/-!
# `coinductive_fixpoint` beside a `vcgen` proof

Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenCondSplit.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.WP

set_option sym.debug true

/-!
`vcgen` splits a program headed by `cond` (`bif c then t else e`) into one verification
condition per branch, with `c = true` or `c = false` in scope. The split rule is cached
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenDefeqAbuseProg.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Std.WP
import Std.WP.Triple.SpecLemmas

set_option sym.debug true

/-!
# `vcgen` on a program that is not of the type of its `WP` instance

Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenDepAssertionLattice.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.WP

set_option sym.debug true

/-!
Regression test for a *dependent* assertion language `(st : State) → st.Invariant → Prop`. Its order
is the pointwise function order, but `vcgen`'s peel rule `le_of_forall_le` cannot currently be
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenForallRhs.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.WP

set_option sym.debug true

/-!
`vcgen` must split a raw `∀`/`→` on the RHS of a `Prop` entailment (`le_forall`) and an `iInf` on
any `Pi` assertion lattice (`iInf_apply` + `le_iInf`), including when the `iInf` is applied to excess
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenHaveGoalMData.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
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`). -/
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenImp.lean
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Authors: Sebastian Graf
import Std.WP
import Std.WP.Triple.SpecLemmas

set_option sym.debug true

/-!
# `vcgen` on a non-monadic program type

Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenLiftAnonymousTransformer.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.WP

set_option sym.debug true

/-!
`liftMach` coerces the anonymous state transformer `fun s => match c s.machine with …` into
`EStateM Unit Sys` by definitional unfolding alone: `EStateM` is a reducible function type, so
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenMDataProgram.lean
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import Std.WP
import Lean
import Std

set_option sym.debug true

set_option experimental.vcgen true

/-! `vcgen` must classify a program wrapped in an `mdata` node, such as the
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenMVarProgram.lean
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Std.WP

set_option sym.debug true

/-!
A spec whose program applies a continuation variable under a binder, as in
`Lang.bnd (fun x => Lang.add (k x) (Lang.nat 0))`. First-order matching leaves `k` open, so
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenMatchDependentDiscr.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Std.Tactic.Do
import Std.WP

set_option sym.debug true

/-!
Regression test for `mvcgen`/`vcgen` splitting a `match` whose discriminant telescope is
dependent: a later discriminant's type mentions an earlier discriminant. Abstracting the matcher
Expand Down
2 changes: 2 additions & 0 deletions tests/elab/vcgenMatchDiscrEq.lean
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Std.Tactic.Do
import Std.WP

set_option sym.debug true

/-!
Regression test for `vcgen` splitting a `match h : d with` whose alternatives bind an equality
`h : d = pattern`. The split must not substitute the discriminant in the alternatives, since their
Expand Down
Loading
Loading