Compare commits

...

2 Commits

Author SHA1 Message Date
Leonardo de Moura
488d944eb9 test: nested proof propagation 2025-05-29 20:01:41 -07:00
Leonardo de Moura
d741cfb0ca feat: propagate proposition proved by nested proof 2025-05-29 19:59:49 -07:00
2 changed files with 15 additions and 0 deletions

View File

@@ -366,6 +366,7 @@ where
let c := args[0]!
internalizeImpl c generation e
registerParent e c
pushEqTrue c <| mkApp2 (mkConst ``eq_true) c args[1]!
else if f.isConstOf ``ite && args.size == 5 then
let c := args[1]!
internalizeImpl c generation e

View File

@@ -36,3 +36,17 @@ trace: [Meta.debug] [i < a.size, j < a.size, j < b.size]
#guard_msgs (trace) in
example (i j : Nat) (a b : Array Nat) (h1 : j < a.size) (h : j < b.size) (h2 : i j) : a[i] < a[j] + b[j] i = j False := by
grind -mbtc on_failure fallback
namespace Test
opaque p : Prop
axiom hp : p
opaque h : p Prop
example : h (@Lean.Grind.nestedProof p hp) p := by
grind
example : h hp p := by
grind
end Test