Skip to content

feat(Test): computational graph invariants, prove 25 tests#3660

Open
XC0R wants to merge 1 commit intogoogle-deepmind:mainfrom
XC0R:graph-indep-dom
Open

feat(Test): computational graph invariants, prove 25 tests#3660
XC0R wants to merge 1 commit intogoogle-deepmind:mainfrom
XC0R:graph-indep-dom

Conversation

@XC0R
Copy link
Copy Markdown
Contributor

@XC0R XC0R commented Mar 29, 2026

Summary

Implements computational variants of graph property definitions (per the approach suggested in #3676) and uses them to prove 25 test theorems across all 5 graphs.

Definitions.lean: BFS-based computable_dist, powerset-based computable_indep_num, computable_dom_num, computable_wiener, computable_avg_dist, computable_szeged_aux, computable_szeged_index

Invariants.lean: 6 equivalence theorems linking noncomputable spec definitions to computable variants

Test.lean: 25 theorems proved via rw [equiv]; decide +native

Theorems proved (5 invariants × 5 graphs)

HouseGraph K4 Petersen C6 Star5
independence_number
dominationNumber
averageDistance
wienerIndex
szegedIndex

Supersedes #3659, #3658.

Notes

  • AI-assisted (Claude for tactic search), manually reviewed and submitted

@mo271
Copy link
Copy Markdown
Collaborator

mo271 commented Apr 4, 2026

For all these graph tests, might it be better to implement computational variants of the definitions of the graph properties and then prove once and for all graphs that the computational variants are equivalent?
Like done here: #3676

Add computable variants (BFS distance, powerset-based independence/domination
numbers, Wiener/Szeged indices) to Definitions.lean with equivalence theorems
in Invariants.lean. Refactor graph test proofs for 5 invariants across all
5 graphs to use 'rw [equiv]; decide +native' per google-deepmind#3676 approach.

Supersedes google-deepmind#3659, google-deepmind#3658.
@XC0R XC0R force-pushed the graph-indep-dom branch from c4fea85 to 00f650b Compare April 4, 2026 20:43
@XC0R XC0R changed the title Prove 4 graph independence and domination numbers (House, C6) feat(Test): computational graph invariants, prove 25 tests Apr 4, 2026
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.

2 participants