Skip to content

Prove sorts, search & DP#2

Open
Grover-c13 wants to merge 3 commits into
mainfrom
prove-sorts-search-dp
Open

Prove sorts, search & DP#2
Grover-c13 wants to merge 3 commits into
mainfrom
prove-sorts-search-dp

Conversation

@Grover-c13

@Grover-c13 Grover-c13 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

bmc4j proof results

20 proofs → 18 matched expectation, 2 mismatched

Proof Expected Actual Why it fails Counterexample
SearchProof.interpolation_findsPresentKey_size4 VERIFIED ❌ REFUTED java.lang.ArithmeticException: / by zero at InterpolationSearch.java:45 (InterpolationSearch.java:45) counterexample: key = 4L, start = 0, end = 3, pos = 0, a = [0, 1, 4, 4] replay: int start = 0; int end = 3; int pos = 0; int[] a = {0, 1, 4, 4}; // key: could not express integer value as a literal — inspect … key = 4L, start = 0, end = 3, pos = 0, a = [0, 1, 4, 4]
SortSweepProof.gnomeSort_size4 VERIFIED ❌ UNKNOWN (PARSE_FAILURE) this is NOT a refutati…
AliquotSumProof.getAliquotSum_defect_is_documented_not_engine_proven VACUOUS ✅ VACUOUS assumptions are unsatisfiable - this proof checks nothing no input satisfies every assume(...) — tighten or fix the assumptions (a contradictory pair, or a bound too small for the literals). JBMC found com.thealgorithms.maths.AliquotSumProof.getAliquotSum_defect_is_documented_not_engine_proven VACUOUS ✗ assump…
BaselineProof.increment_grows_below_int_max VERIFIED ✅ VERIFIED
CircleSortProof.circleSort_size3_returns_sorted_permutation VERIFIED ✅ VERIFIED
DpSweepProof.coinChange_change_matches_bruteforce_twoCoins VERIFIED ✅ VERIFIED
DpSweepProof.subsetSum_matches_bruteforce_n3 VERIFIED ✅ VERIFIED
MathSweepProof.binomial_symmetry_and_pascal VERIFIED ✅ VERIFIED
MathSweepProof.digitalRoot_matches_mod9_closedForm VERIFIED ✅ VERIFIED
MathSweepProof.gcd_divides_both_and_is_maximal VERIFIED ✅ VERIFIED
MathSweepProof.genericRoot_matches_mod9_closedForm VERIFIED ✅ VERIFIED
MathSweepProof.lcm_times_gcd_equals_product VERIFIED ✅ VERIFIED
SearchProof.iterativeTernary_findsPresentKey_size4 VERIFIED ✅ VERIFIED
SearchProof.iterativeTernary_returnedIndexHoldsKey_size4 VERIFIED ✅ VERIFIED
SortSweepProof.circleSort_size4 VERIFIED ✅ VERIFIED
SortSweepProof.cocktailShakerSort_size4 VERIFIED ✅ VERIFIED
SortSweepProof.combSort_size4 VERIFIED ✅ VERIFIED
SortSweepProof.exchangeSort_size4 VERIFIED ✅ VERIFIED
SortSweepProof.oddEvenSort_size4 VERIFIED ✅ VERIFIED
SortSweepProof.pancakeSort_size4 VERIFIED ✅ VERIFIED

@Grover-c13 Grover-c13 force-pushed the prove-sorts-search-dp branch from 17f1a3e to 7e534bf Compare June 10, 2026 14:28
@Grover-c13 Grover-c13 closed this Jun 10, 2026
@Grover-c13 Grover-c13 reopened this Jun 10, 2026
@Grover-c13 Grover-c13 closed this Jun 10, 2026
@Grover-c13 Grover-c13 reopened this Jun 10, 2026
@Grover-c13 Grover-c13 force-pushed the prove-sorts-search-dp branch 2 times, most recently from ac3441b to 9b519e3 Compare June 11, 2026 00:39
@Grover-c13 Grover-c13 force-pushed the prove-sorts-search-dp branch from 9b519e3 to d1d99f8 Compare June 11, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant