Skip to content

Commit 30ceeff

Browse files
committed
fix: smal fixes
1 parent 5fefd85 commit 30ceeff

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Lean/Elab/Tactic/Do/Internal/VCGen/Solve.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private def normalizePre? (scope : VCGen.Scope) (goal : MVarId) (α pre target :
200200
if let some (g, h) ← ofPropPreIntro? goal pre then
201201
return some ({ scope with lastLiftedPre? := some h }, [g])
202202
if let some goal' ← introsExcessArgs goal then return some (scope, [goal'])
203-
if let some gs ← truePre? goal pre target then
203+
if let some gs ← normalizePreToTop? goal pre target then
204204
return some (scope, gs)
205205
if let some (g, h) ← barePreIntro? goal α pre then
206206
return some ({ scope with lastLiftedPre? := some h }, [g])

tests/bench/mvcgen/sym/test_do_logic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ theorem Spec.incr
691691
(post : PUnit → Nat → Pred) (epost : EPred) (n : Nat) :
692692
Triple (fun s => post ⟨⟩ (s + n))
693693
(incr n : StateT Nat m PUnit) post epost := by
694-
mvcgen' [WhileLoop.incr]; rfl
694+
mvcgen' [TopBetaReduction.incr]; rfl
695695

696696
/--
697697
error: unsolved goals
@@ -728,4 +728,4 @@ theorem incr_poly (amounts : List Nat) :
728728
mvcgen' [incr]
729729

730730

731-
end WhileLoop
731+
end TopBetaReduction

0 commit comments

Comments
 (0)