Compare commits

...

2 Commits

Author SHA1 Message Date
Henrik Böving
580ee0ef92 Apply suggestions from code review
Co-authored-by: Siddharth <siddu.druid@gmail.com>
2025-03-16 15:20:33 +01:00
Henrik Böving
3b6d8e8d0c perf: disable implicitDefEqProofs in bv_decide 2025-03-16 14:55:12 +01:00
5 changed files with 27 additions and 5 deletions

View File

@@ -51,7 +51,11 @@ def embeddedConstraintPass : Pass where
let cfg PreProcessM.getConfig
let targets goal.withContext getPropHyps
let simpCtx Simp.mkContext
(config := { failIfUnchanged := false, maxSteps := cfg.maxSteps })
(config := {
failIfUnchanged := false,
implicitDefEqProofs := false, -- leanprover/lean4/pull/7509
maxSteps := cfg.maxSteps,
})
(simpTheorems := relevantHyps)
(congrTheorems := ( getSimpCongrTheorems))
let result?, _ simpGoal goal (ctx := simpCtx) (fvarIdsToSimp := targets)

View File

@@ -440,7 +440,11 @@ partial def enumsPass : Pass where
(simprocs, relevantLemmas) addStructureSimpLemmas simprocs relevantLemmas
let simpCtx Simp.mkContext
(config := { failIfUnchanged := false, maxSteps := cfg.maxSteps })
(config := {
failIfUnchanged := false,
implicitDefEqProofs := false, -- leanprover/lean4/pull/7509
maxSteps := cfg.maxSteps,
})
(simpTheorems := relevantLemmas)
(congrTheorems := getSimpCongrTheorems)

View File

@@ -59,7 +59,12 @@ def intToBitVecPass : Pass where
let intToBvThms intToBitVecExt.getTheorems
let cfg PreProcessM.getConfig
let simpCtx Simp.mkContext
(config := { failIfUnchanged := false, zetaDelta := true, maxSteps := cfg.maxSteps })
(config := {
failIfUnchanged := false,
zetaDelta := true,
implicitDefEqProofs := false, -- leanprover/lean4/pull/7509
maxSteps := cfg.maxSteps,
})
(simpTheorems := #[intToBvThms])
(congrTheorems := ( getSimpCongrTheorems))

View File

@@ -31,7 +31,12 @@ def rewriteRulesPass : Pass where
let cfg PreProcessM.getConfig
let simpCtx Simp.mkContext
(config := { failIfUnchanged := false, zetaDelta := true, maxSteps := cfg.maxSteps })
(config := {
failIfUnchanged := false,
zetaDelta := true,
implicitDefEqProofs := false, -- leanprover/lean4/pull/7509
maxSteps := cfg.maxSteps,
})
(simpTheorems := #[bvThms, sevalThms])
(congrTheorems := ( getSimpCongrTheorems))

View File

@@ -82,7 +82,11 @@ where
(simprocs, relevantLemmas) addStructureSimpLemmas simprocs relevantLemmas
let cfg PreProcessM.getConfig
let simpCtx Simp.mkContext
(config := { failIfUnchanged := false, maxSteps := cfg.maxSteps })
(config := {
failIfUnchanged := false,
implicitDefEqProofs := false, -- leanprover/lean4/pull/7509
maxSteps := cfg.maxSteps,
})
(simpTheorems := relevantLemmas)
(congrTheorems := getSimpCongrTheorems)
let result?, _