Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End to end subcircuit soundness #40

Merged
merged 15 commits into from
Jan 12, 2025
Merged

End to end subcircuit soundness #40

merged 15 commits into from
Jan 12, 2025

Conversation

mitschabaude
Copy link
Collaborator

@mitschabaude mitschabaude commented Jan 9, 2025

closes #37

  • Finishes the theorems that justify replacing subcircuit constraints with their soundness / completeness statements
  • Finishes proofs for Vector
  • => there are no remaining sorry proofs in the core lib!
  • Prune imports across the project

@mitschabaude mitschabaude marked this pull request as ready for review January 10, 2025 12:36
Comment on lines -12 to +6
#eval!
#eval
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could remove ! because there's no sorry left!

@mitschabaude mitschabaude requested a review from gio54321 January 10, 2025 12:41
Comment on lines +64 to +69
| case2 ops _ ih | case3 ops _ ih | case4 ops _ ih | case5 ops _ ih =>
dsimp only [to_flat_operations] at h
generalize to_flat_operations ops = flatops at h ih
cases ops
<;> cases flatops
<;> try dsimp only [constraints_hold, constraints_hold_from_list] at h; tauto
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fanciest proof I did so far, the final tactic is applied to 4 * 2 * 2 = 16 cases at once 😄

Copy link
Collaborator

@gio54321 gio54321 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Very nice PR

cases v
cases w
simp [Subtype.mk_eq_mk] at h
simp [h]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know about ext, very nice!

@mitschabaude mitschabaude merged commit 084eded into main Jan 12, 2025
1 check passed
@mitschabaude mitschabaude deleted the subcircuit-soundness branch January 12, 2025 09:45
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.

[Foundation] Replacing subcircuit constraints with their soundness and completeness statements
2 participants