Skip to content

feat(Circuit): sequential and parallel composition of circuits - #952

Open
SamuelSchlesinger wants to merge 6 commits into
samschles/circuit-gate-countfrom
samschles/circuit-composition
Open

SamuelSchlesinger wants to merge 6 commits into
samschles/circuit-gate-countfrom
samschles/circuit-composition

Conversation

@SamuelSchlesinger

@SamuelSchlesinger SamuelSchlesinger commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Program.append continues a program by a second one whose inputs are read from wires of the first. Feeding it the outputs gives Circuit.comp, feeding it the inputs gives Circuit.append on shared inputs. Both evaluate as expected and add gate counts.

Also adds Circuit.ComputesOn, computing a function on a support, as Set.EqOn, with composition and pairing lemmas for it and for Computes; Wire.castAdd for embedding wires into a continued program; and two Fin.append simp lemmas.

Based on #949.

I used Claude Code and Codex for this work.

@SamuelSchlesinger
SamuelSchlesinger force-pushed the samschles/circuit-composition branch from 9e0e334 to 24cf3b8 Compare September 26, 2026 07:56
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