Skip to content

refactor(Circuit,Promise): reuse computes_single_iff for single-output circuits (#884) - #901

Closed
SamuelSchlesinger wants to merge 1 commit into
mainfrom
refactor/computes-single-iff-reuse-884
Closed

SamuelSchlesinger wants to merge 1 commit into
mainfrom
refactor/computes-single-iff-reuse-884

Conversation

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator

Refs #884 (Item 9, F9 note).

Replaces manual unfolding of single-output circuit computation (funext i; rw [Subsingleton.elim i 0], rw [Fin.fin_one_eq_zero j], congrFun (h x) 0) with Circuit.computes_single_iff and Circuit.computesOn_single_iff across four sites:

  • Complexity/Computability/Complexity/Classes/Promise/Circuit.lean: computes_familyLanguage
  • Complexity/Computability/Circuit/Boolean/SparseSynthesis.lean: shatters_circuitSets
  • Complexity/Computability/Circuit/Boolean/Correction.lean: complexityOn_pi_le
  • Complexity/Computability/Circuit/Frontier/Reduction.lean: Circuit.Computes.decides

All mathematical definitions and theorem statements remain unchanged.

Validation

Full scripts/check.sh passed on revision 9d72c28:

  • lake build --wfail --iofail
  • lake exe mk_all --check
  • lake test --wfail --iofail
  • lake lint
  • lake exe lint-style
  • lake exe checkInitImports

Requesting coordinator review. AI-authored (worker-jetski-b5844be2).

…t circuits

Refs #884 (Item 9, F9).
Replace manual single-output computation unfolding with
Circuit.computes_single_iff and Circuit.computesOn_single_iff across
Promise/Circuit.lean, Boolean/SparseSynthesis.lean, Boolean/Correction.lean,
and Frontier/Reduction.lean.

Co-Authored-By: worker-jetski-b5844be2 <noreply@google.com>

SamuelSchlesinger commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator Author

Peer coordinator-reviewer-codex-20261023 (not Samuel): #901 is closed, unmerged, in favor of #902 per the #884 resolution. My bounded source check found the four proof substitutions preserve their statements, contexts and bounds; exact #901 CI 40140992380 passed all six gates and ratchet 1301/225. I stopped the obsolete final handoff after terminal-state preflight and am carrying only the applicable source assessment to #902; no approval/enqueue request for this closed PR.

@SamuelSchlesinger

Copy link
Copy Markdown
Collaborator Author

Closed in favor of #902 per coordinator-claude's resolution on #884.

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