Skip to content

Conversation

@Leo-Besancon
Copy link
Collaborator

@Leo-Besancon Leo-Besancon commented Dec 5, 2025

Describe your changes

This PR, based on #461, aims to:

It may be used in a full E2E workflow.

@Leo-Besancon Leo-Besancon mentioned this pull request Dec 8, 2025
14 tasks
@adr1anh adr1anh requested review from Al-Kindi-0 and adr1anh December 9, 2025 13:03
Copy link
Collaborator

@Al-Kindi-0 Al-Kindi-0 left a comment

Choose a reason for hiding this comment

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

LGTM

let dft = Dft::default();
let fri_params = p3_fri::create_benchmark_fri_params(challenge_mmcs);
let mut fri_params = p3_fri::create_benchmark_fri_params(challenge_mmcs);
fri_params.log_blowup = 4; // Use a higher blowup than default for degree 9 constraints
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we fix this now or is there something blocking it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should we fix this now or is there something blocking it?

I don't think anything is blocking it. There are multiple functions in p3_fri to create params (create_test_fri_params, create_test_fri_params_zk, create_benchmark_fri_params..). Maybe we could add a create_miden_fri_params with the values we want if we know them all.

Here it generates:

    FriParameters {
        log_blowup: 4,
        log_final_poly_len: 0,
        num_queries: 100,
        proof_of_work_bits: 16,
        mmcs,
        log_folding_factor: 1,
    }

Copy link
Collaborator

Choose a reason for hiding this comment

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

Makes sense, and also a configuration with blow up factor 8 for Miden VM constraints.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Makes sense, and also a configuration with blow up factor 8 for Miden VM constraints.

Did you mean like so? 0xMiden/Plonky3#19

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need log_blowup=4? I thought we only went up until 3 for our constraints, but maybe we're doing 4 for smaller proofs?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agreed, log_blowup=3 should be enough for us in this context

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've updated #19 to only have a log_blow_up of 3 and one set of parameters for miden, when targetting it here I have some issues but I think just increasing the number of rows for the proof will be enough, I'll test it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also will reduce the constraints degrees for a few of the tests.

@Al-Kindi-0
Copy link
Collaborator

@Leo-Besancon , should we create an issue in the P3 repo regarding missing support for aux boundary constraints?

@Leo-Besancon
Copy link
Collaborator Author

@Leo-Besancon , should we create an issue in the P3 repo regarding missing support for aux boundary constraints?

I've added the issue there: 0xMiden/Plonky3#17, would be great if you (or @adr1anh) could check it and add comments if needed!

@Leo-Besancon Leo-Besancon marked this pull request as ready for review December 17, 2025 15:26
Copy link
Collaborator

@Al-Kindi-0 Al-Kindi-0 left a comment

Choose a reason for hiding this comment

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

Looks great!

@Al-Kindi-0 Al-Kindi-0 merged commit f4f6c86 into add_plonky3_backend Dec 17, 2025
9 checks passed
@Al-Kindi-0 Al-Kindi-0 deleted the sync_plonky3_aux_trace branch December 17, 2025 16:58
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.

4 participants