Theorem: Groth16TypeI.is_sound (FormalSnarksProject/SNARKs/Groth16.lean)

State before:
case intro.intro.intro
F : Type
inst✝ : Field F
n_stmt n_wit n_var : ℕ
u_stmt : Fin n_stmt → Polynomial F
u_wit : Fin n_wit → Polynomial F
v_stmt : Fin n_stmt → Polynomial F
v_wit : Fin n_wit → Polynomial F
w_stmt : Fin n_stmt → Polynomial F
w_wit : Fin n_wit → Polynomial F
r : Fin n_wit → F
stmt : Groth16TypeI.Stmt
prover : Prover F Groth16TypeI
t : Polynomial F := ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))
eqn :
  -((optionEquivRight F Vars) (X Vars_γ) *
                  ((optionEquivRight F Vars) (X Vars_δ) *
                    ((optionEquivRight F Vars) (X Vars_α) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                            (List.map
                                (fun x =>
                                  (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                    (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                (List.finRange n_var)).sum)))))) +
              (-((optionEquivRight F Vars) (X Vars_γ) *
                    ((optionEquivRight F Vars) (X Vars_δ) *
                      ((optionEquivRight F Vars) (X Vars_β) *
                        ((optionEquivRight F Vars) (X Vars_γ) *
                          ((optionEquivRight F Vars) (X Vars_δ) *
                            ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                              (List.map
                                  (fun x =>
                                    (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                      (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                  (List.finRange n_var)).sum)))))) +
                (-((optionEquivRight F Vars) (X Vars_γ) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                                (List.map
                                    (fun x =>
                                      (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                        (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                    (List.finRange n_var)).sum)))))) +
                  (-((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((List.map
                                    (fun x =>
                                      (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                        (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                    (List.finRange n_var)).sum *
                                (List.map
                                    (fun x =>
                                      (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                        (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                    (List.finRange n_var)).sum))))) +
                    (-((optionEquivRight F Vars) (X Vars_γ) *
                          ((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((List.map
                                    (fun x =>
                                      (optionEquivRight F Vars)
                                          (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                        ((optionEquivRight F Vars) (X Vars_x) ^ ↑x *
                                          (optionEquivRight F Vars)
                                            ((to_MvPolynomial_Option Vars)
                                              (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))))
                                    (List.finRange (n_var - 1))).sum *
                                (List.map
                                    (fun x =>
                                      (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                        (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                    (List.finRange n_var)).sum)))) +
                      (-((optionEquivRight F Vars) (X Vars_β) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_γ) *
                                    ((optionEquivRight F Vars) (X Vars_δ) *
                                      ((List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_stmt x)))
                                            (List.finRange n_stmt)).sum *
                                        (List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                            -((optionEquivRight F Vars) (X Vars_α) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_γ) *
                                    ((optionEquivRight F Vars) (X Vars_δ) *
                                      ((List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_stmt x)))
                                            (List.finRange n_stmt)).sum *
                                        (List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                          -((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((List.map
                                        (fun x =>
                                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_stmt x)))
                                        (List.finRange n_stmt)).sum *
                                    (List.map
                                        (fun x =>
                                          (optionEquivRight F Vars)
                                              (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                            (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                        (List.finRange n_var)).sum)))) +
                        (-((optionEquivRight F Vars) (X Vars_β) *
                                ((optionEquivRight F Vars) (X Vars_γ) *
                                  ((optionEquivRight F Vars) (X Vars_γ) *
                                    ((optionEquivRight F Vars) (X Vars_δ) *
                                      ((List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_wit x)))
                                            (List.finRange n_wit)).sum *
                                        (List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                            -((optionEquivRight F Vars) (X Vars_α) *
                                ((optionEquivRight F Vars) (X Vars_γ) *
                                  ((optionEquivRight F Vars) (X Vars_γ) *
                                    ((optionEquivRight F Vars) (X Vars_δ) *
                                      ((List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_wit x)))
                                            (List.finRange n_wit)).sum *
                                        (List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                          -((optionEquivRight F Vars) (X Vars_γ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((List.map
                                        (fun x =>
                                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_wit x)))
                                        (List.finRange n_wit)).sum *
                                    (List.map
                                        (fun x =>
                                          (optionEquivRight F Vars)
                                              (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                            (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                        (List.finRange n_var)).sum)))))))))) +
            (-((optionEquivRight F Vars) (X Vars_γ) *
                  ((optionEquivRight F Vars) (X Vars_δ) *
                    ((optionEquivRight F Vars) (X Vars_α) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_δ) *
                            ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                              (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))))) +
              (-((optionEquivRight F Vars) (X Vars_γ) *
                    ((optionEquivRight F Vars) (X Vars_δ) *
                      ((optionEquivRight F Vars) (X Vars_β) *
                        ((optionEquivRight F Vars) (X Vars_γ) *
                          ((optionEquivRight F Vars) (X Vars_δ) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                                (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))))) +
                (-((optionEquivRight F Vars) (X Vars_γ) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_δ) *
                                ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                                  (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))))) +
                  (-((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_δ) *
                                ((List.map
                                      (fun x =>
                                        (optionEquivRight F Vars)
                                            (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                          (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                      (List.finRange n_var)).sum *
                                  (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                    (-((optionEquivRight F Vars) (X Vars_γ) *
                          ((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_δ) *
                                ((List.map
                                      (fun x =>
                                        (optionEquivRight F Vars)
                                            (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                          ((optionEquivRight F Vars) (X Vars_x) ^ ↑x *
                                            (optionEquivRight F Vars)
                                              ((to_MvPolynomial_Option Vars)
                                                (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))))
                                      (List.finRange (n_var - 1))).sum *
                                  (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))) +
                      (-((optionEquivRight F Vars) (X Vars_β) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_γ) *
                                    ((optionEquivRight F Vars) (X Vars_δ) *
                                      ((optionEquivRight F Vars) (X Vars_δ) *
                                        ((List.map
                                              (fun x =>
                                                (optionEquivRight F Vars)
                                                    (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                  (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_stmt x)))
                                              (List.finRange n_stmt)).sum *
                                          (optionEquivRight F Vars)
                                            (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                            -((optionEquivRight F Vars) (X Vars_α) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_γ) *
                                    ((optionEquivRight F Vars) (X Vars_δ) *
                                      ((optionEquivRight F Vars) (X Vars_δ) *
                                        ((List.map
                                              (fun x =>
                                                (optionEquivRight F Vars)
                                                    (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                  (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_stmt x)))
                                              (List.finRange n_stmt)).sum *
                                          (optionEquivRight F Vars)
                                            (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                          -((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_δ) *
                                    ((List.map
                                          (fun x =>
                                            (optionEquivRight F Vars)
                                                (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                              (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_stmt x)))
                                          (List.finRange n_stmt)).sum *
                                      (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))) +
                        (-((optionEquivRight F Vars) (X Vars_β) *
                                ((optionEquivRight F Vars) (X Vars_γ) *
                                  ((optionEquivRight F Vars) (X Vars_γ) *
                                    ((optionEquivRight F Vars) (X Vars_δ) *
                                      ((optionEquivRight F Vars) (X Vars_δ) *
                                        ((List.map
                                              (fun x =>
                                                (optionEquivRight F Vars)
                                                    (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                  (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_wit x)))
                                              (List.finRange n_wit)).sum *
                                          (optionEquivRight F Vars)
                                            (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                            -((optionEquivRight F Vars) (X Vars_α) *
                                ((optionEquivRight F Vars) (X Vars_γ) *
                                  ((optionEquivRight F Vars) (X Vars_γ) *
                                    ((optionEquivRight F Vars) (X Vars_δ) *
                                      ((optionEquivRight F Vars) (X Vars_δ) *
                                        ((List.map
                                              (fun x =>
                                                (optionEquivRight F Vars)
                                                    (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                  (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_wit x)))
                                              (List.finRange n_wit)).sum *
                                          (optionEquivRight F Vars)
                                            (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                          -((optionEquivRight F Vars) (X Vars_γ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_δ) *
                                    ((List.map
                                          (fun x =>
                                            (optionEquivRight F Vars)
                                                (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                              (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_wit x)))
                                          (List.finRange n_wit)).sum *
                                      (optionEquivRight F Vars)
                                        (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))))))))) +
          (-((optionEquivRight F Vars) (X Vars_γ) *
                ((optionEquivRight F Vars) (X Vars_δ) *
                  ((optionEquivRight F Vars) (X Vars_α) *
                    ((optionEquivRight F Vars) (X Vars_γ) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        ((optionEquivRight F Vars) (X Vars_γ) *
                          ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                            (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))))) +
            (-((optionEquivRight F Vars) (X Vars_γ) *
                  ((optionEquivRight F Vars) (X Vars_δ) *
                    ((optionEquivRight F Vars) (X Vars_β) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                              (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))))) +
              (-((optionEquivRight F Vars) (X Vars_γ) *
                    ((optionEquivRight F Vars) (X Vars_δ) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        ((optionEquivRight F Vars) (X Vars_γ) *
                          ((optionEquivRight F Vars) (X Vars_δ) *
                            ((optionEquivRight F Vars) (X Vars_γ) *
                              ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                                (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))))) +
                (-((optionEquivRight F Vars) (X Vars_γ) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        ((optionEquivRight F Vars) (X Vars_γ) *
                          ((optionEquivRight F Vars) (X Vars_δ) *
                            ((optionEquivRight F Vars) (X Vars_γ) *
                              ((List.map
                                    (fun x =>
                                      (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                        (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                    (List.finRange n_var)).sum *
                                (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                  (-((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_γ) *
                          ((optionEquivRight F Vars) (X Vars_δ) *
                            ((optionEquivRight F Vars) (X Vars_γ) *
                              ((List.map
                                    (fun x =>
                                      (optionEquivRight F Vars)
                                          (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                        ((optionEquivRight F Vars) (X Vars_x) ^ ↑x *
                                          (optionEquivRight F Vars)
                                            ((to_MvPolynomial_Option Vars)
                                              (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))))
                                    (List.finRange (n_var - 1))).sum *
                                (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))) +
                    (-((optionEquivRight F Vars) (X Vars_β) *
                              ((optionEquivRight F Vars) (X Vars_δ) *
                                ((optionEquivRight F Vars) (X Vars_γ) *
                                  ((optionEquivRight F Vars) (X Vars_δ) *
                                    ((optionEquivRight F Vars) (X Vars_γ) *
                                      ((List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_stmt x)))
                                            (List.finRange n_stmt)).sum *
                                        (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                          -((optionEquivRight F Vars) (X Vars_α) *
                              ((optionEquivRight F Vars) (X Vars_δ) *
                                ((optionEquivRight F Vars) (X Vars_γ) *
                                  ((optionEquivRight F Vars) (X Vars_δ) *
                                    ((optionEquivRight F Vars) (X Vars_γ) *
                                      ((List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_stmt x)))
                                            (List.finRange n_stmt)).sum *
                                        (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                        -((optionEquivRight F Vars) (X Vars_δ) *
                            ((optionEquivRight F Vars) (X Vars_γ) *
                              ((optionEquivRight F Vars) (X Vars_δ) *
                                ((optionEquivRight F Vars) (X Vars_γ) *
                                  ((List.map
                                        (fun x =>
                                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_stmt x)))
                                        (List.finRange n_stmt)).sum *
                                    (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))) +
                      (-((optionEquivRight F Vars) (X Vars_β) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_γ) *
                                  ((optionEquivRight F Vars) (X Vars_δ) *
                                    ((optionEquivRight F Vars) (X Vars_γ) *
                                      ((List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_wit x)))
                                            (List.finRange n_wit)).sum *
                                        (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                          -((optionEquivRight F Vars) (X Vars_α) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_γ) *
                                  ((optionEquivRight F Vars) (X Vars_δ) *
                                    ((optionEquivRight F Vars) (X Vars_γ) *
                                      ((List.map
                                            (fun x =>
                                              (optionEquivRight F Vars)
                                                  (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_wit x)))
                                            (List.finRange n_wit)).sum *
                                        (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                        -((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (X Vars_γ) *
                              ((optionEquivRight F Vars) (X Vars_δ) *
                                ((optionEquivRight F Vars) (X Vars_γ) *
                                  ((List.map
                                        (fun x =>
                                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_wit x)))
                                        (List.finRange n_wit)).sum *
                                    (optionEquivRight F Vars)
                                      (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))))))))) +
        (-((optionEquivRight F Vars) (X Vars_γ) *
              ((optionEquivRight F Vars) (X Vars_δ) *
                ((optionEquivRight F Vars) (X Vars_α) *
                  ((optionEquivRight F Vars) (X Vars_γ) *
                    ((optionEquivRight F Vars) (X Vars_δ) *
                      ((optionEquivRight F Vars) (X Vars_β) *
                        ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                          (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))))) +
          (-((optionEquivRight F Vars) (X Vars_γ) *
                ((optionEquivRight F Vars) (X Vars_δ) *
                  ((optionEquivRight F Vars) (X Vars_β) *
                    ((optionEquivRight F Vars) (X Vars_γ) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        ((optionEquivRight F Vars) (X Vars_β) *
                          ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                            (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))))) +
            (-((optionEquivRight F Vars) (X Vars_γ) *
                  ((optionEquivRight F Vars) (X Vars_δ) *
                    ((optionEquivRight F Vars) (X Vars_δ) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_β) *
                            ((optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                              (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))))) +
              (-((optionEquivRight F Vars) (X Vars_γ) *
                    ((optionEquivRight F Vars) (X Vars_δ) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_β) *
                            ((List.map
                                  (fun x =>
                                    (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                      (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                  (List.finRange n_var)).sum *
                              (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                (-((optionEquivRight F Vars) (X Vars_γ) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_β) *
                            ((List.map
                                  (fun x =>
                                    (optionEquivRight F Vars)
                                        (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                      ((optionEquivRight F Vars) (X Vars_x) ^ ↑x *
                                        (optionEquivRight F Vars)
                                          ((to_MvPolynomial_Option Vars)
                                            (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))))
                                  (List.finRange (n_var - 1))).sum *
                              (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))) +
                  (-((optionEquivRight F Vars) (X Vars_β) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_β) *
                                    ((List.map
                                          (fun x =>
                                            (optionEquivRight F Vars)
                                                (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                              (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_stmt x)))
                                          (List.finRange n_stmt)).sum *
                                      (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                        -((optionEquivRight F Vars) (X Vars_α) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_β) *
                                    ((List.map
                                          (fun x =>
                                            (optionEquivRight F Vars)
                                                (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                              (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_stmt x)))
                                          (List.finRange n_stmt)).sum *
                                      (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                      -((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_β) *
                                ((List.map
                                      (fun x =>
                                        (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                          (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_stmt x)))
                                      (List.finRange n_stmt)).sum *
                                  (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))) +
                    (-((optionEquivRight F Vars) (X Vars_β) *
                            ((optionEquivRight F Vars) (X Vars_γ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_β) *
                                    ((List.map
                                          (fun x =>
                                            (optionEquivRight F Vars)
                                                (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                              (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_wit x)))
                                          (List.finRange n_wit)).sum *
                                      (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                        -((optionEquivRight F Vars) (X Vars_α) *
                            ((optionEquivRight F Vars) (X Vars_γ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_β) *
                                    ((List.map
                                          (fun x =>
                                            (optionEquivRight F Vars)
                                                (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                              (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_wit x)))
                                          (List.finRange n_wit)).sum *
                                      (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                      -((optionEquivRight F Vars) (X Vars_γ) *
                          ((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_β) *
                                ((List.map
                                      (fun x =>
                                        (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                          (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_wit x)))
                                      (List.finRange n_wit)).sum *
                                  (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))))))))) +
      ((optionEquivRight F Vars) (X Vars_γ) *
          ((optionEquivRight F Vars) (X Vars_δ) *
            ((optionEquivRight F Vars) (X Vars_α) *
              ((optionEquivRight F Vars) (X Vars_γ) *
                ((optionEquivRight F Vars) (X Vars_δ) * (optionEquivRight F Vars) (X Vars_β))))) +
        ((optionEquivRight F Vars) (X Vars_β) *
                ((optionEquivRight F Vars) (X Vars_δ) *
                  ((optionEquivRight F Vars) (X Vars_γ) *
                    ((optionEquivRight F Vars) (X Vars_δ) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (stmt x)) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_stmt x)))
                            (List.finRange n_stmt)).sum)))) +
              (optionEquivRight F Vars) (X Vars_α) *
                ((optionEquivRight F Vars) (X Vars_δ) *
                  ((optionEquivRight F Vars) (X Vars_γ) *
                    ((optionEquivRight F Vars) (X Vars_δ) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (stmt x)) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_stmt x)))
                            (List.finRange n_stmt)).sum)))) +
            (optionEquivRight F Vars) (X Vars_δ) *
              ((optionEquivRight F Vars) (X Vars_γ) *
                ((optionEquivRight F Vars) (X Vars_δ) *
                  ((optionEquivRight F Vars) (X Vars_γ) *
                    (List.map
                        (fun x =>
                          (optionEquivRight F Vars) (C (stmt x)) *
                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_stmt x)))
                        (List.finRange n_stmt)).sum))) +
          ((optionEquivRight F Vars) (X Vars_γ) *
              ((optionEquivRight F Vars) (X Vars_δ) *
                ((optionEquivRight F Vars) (X Vars_α) *
                  ((optionEquivRight F Vars) (X Vars_γ) *
                    ((optionEquivRight F Vars) (X Vars_δ) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C SRS_Elements_Idx.α))))))) +
            ((optionEquivRight F Vars) (X Vars_γ) *
                ((optionEquivRight F Vars) (X Vars_δ) *
                  ((optionEquivRight F Vars) (X Vars_β) *
                    ((optionEquivRight F Vars) (X Vars_γ) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C SRS_Elements_Idx.β))))))) +
              ((optionEquivRight F Vars) (X Vars_γ) *
                  ((optionEquivRight F Vars) (X Vars_δ) *
                    ((optionEquivRight F Vars) (X Vars_δ) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_δ) *
                            (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C SRS_Elements_Idx.δ))))))) +
                ((optionEquivRight F Vars) (X Vars_γ) *
                    ((optionEquivRight F Vars) (X Vars_δ) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_δ) *
                            (List.map
                                (fun x =>
                                  (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow x))) *
                                    (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                                (List.finRange n_var)).sum)))) +
                  ((optionEquivRight F Vars) (X Vars_γ) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        ((optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_δ) *
                            (List.map
                                (fun x =>
                                  (optionEquivRight F Vars)
                                      (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x))) *
                                    ((optionEquivRight F Vars) (X Vars_x) ^ ↑x *
                                      (optionEquivRight F Vars)
                                        ((to_MvPolynomial_Option Vars)
                                          (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))))
                                (List.finRange (n_var - 1))).sum))) +
                    ((optionEquivRight F Vars) (X Vars_β) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_δ) *
                                    (List.map
                                        (fun x =>
                                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) *
                                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_stmt x)))
                                        (List.finRange n_stmt)).sum)))) +
                          (optionEquivRight F Vars) (X Vars_α) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_δ) *
                                    (List.map
                                        (fun x =>
                                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) *
                                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_stmt x)))
                                        (List.finRange n_stmt)).sum)))) +
                        (optionEquivRight F Vars) (X Vars_δ) *
                          ((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_δ) *
                                (List.map
                                    (fun x =>
                                      (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) *
                                        (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_stmt x)))
                                    (List.finRange n_stmt)).sum))) +
                      ((optionEquivRight F Vars) (X Vars_β) *
                            ((optionEquivRight F Vars) (X Vars_γ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_δ) *
                                    (List.map
                                        (fun x =>
                                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) *
                                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_wit x)))
                                        (List.finRange n_wit)).sum)))) +
                          (optionEquivRight F Vars) (X Vars_α) *
                            ((optionEquivRight F Vars) (X Vars_γ) *
                              ((optionEquivRight F Vars) (X Vars_γ) *
                                ((optionEquivRight F Vars) (X Vars_δ) *
                                  ((optionEquivRight F Vars) (X Vars_δ) *
                                    (List.map
                                        (fun x =>
                                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) *
                                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_wit x)))
                                        (List.finRange n_wit)).sum)))) +
                        (optionEquivRight F Vars) (X Vars_γ) *
                          ((optionEquivRight F Vars) (X Vars_γ) *
                            ((optionEquivRight F Vars) (X Vars_δ) *
                              ((optionEquivRight F Vars) (X Vars_δ) *
                                (List.map
                                    (fun x =>
                                      (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) *
                                        (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_wit x)))
                                    (List.finRange n_wit)).sum)))))))))))) =
    0
eqnA :
  (optionEquivRight F Vars) (X Vars_γ) *
        ((optionEquivRight F Vars) (X Vars_δ) *
          ((optionEquivRight F Vars) (X Vars_α) *
            (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)))) +
      ((optionEquivRight F Vars) (X Vars_γ) *
          ((optionEquivRight F Vars) (X Vars_δ) *
            ((optionEquivRight F Vars) (X Vars_β) *
              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)))) +
        ((optionEquivRight F Vars) (X Vars_γ) *
            ((optionEquivRight F Vars) (X Vars_δ) *
              ((optionEquivRight F Vars) (X Vars_δ) *
                (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)))) +
          ((optionEquivRight F Vars) (X Vars_γ) *
              ((optionEquivRight F Vars) (X Vars_δ) *
                (List.map
                    (fun x =>
                      (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                        (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                    (List.finRange n_var)).sum) +
            ((optionEquivRight F Vars) (X Vars_γ) *
                (List.map
                    (fun x =>
                      (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                        ((optionEquivRight F Vars) (X Vars_x) ^ ↑x *
                          (optionEquivRight F Vars)
                            ((to_MvPolynomial_Option Vars) (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))))
                    (List.finRange (n_var - 1))).sum +
              ((optionEquivRight F Vars) (X Vars_β) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_stmt x)))
                            (List.finRange n_stmt)).sum) +
                    (optionEquivRight F Vars) (X Vars_α) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_stmt x)))
                            (List.finRange n_stmt)).sum) +
                  (optionEquivRight F Vars) (X Vars_δ) *
                    (List.map
                        (fun x =>
                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_stmt x)))
                        (List.finRange n_stmt)).sum +
                ((optionEquivRight F Vars) (X Vars_β) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_wit x)))
                            (List.finRange n_wit)).sum) +
                    (optionEquivRight F Vars) (X Vars_α) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_wit x)))
                            (List.finRange n_wit)).sum) +
                  (optionEquivRight F Vars) (X Vars_γ) *
                    (List.map
                        (fun x =>
                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_wit x)))
                        (List.finRange n_wit)).sum)))))) =
    (optionEquivRight F Vars) (X Vars_γ) *
        ((optionEquivRight F Vars) (X Vars_δ) *
          ((optionEquivRight F Vars) (X Vars_β) *
            (optionEquivRight F Vars) (C (prover.2 Proof_Idx.A SRS_Elements_Idx.β)))) +
      ((optionEquivRight F Vars) (X Vars_γ) *
          ((optionEquivRight F Vars) (X Vars_δ) *
            ((optionEquivRight F Vars) (X Vars_γ) *
              (optionEquivRight F Vars) (C (prover.2 Proof_Idx.A SRS_Elements_Idx.γ)))) +
        ((optionEquivRight F Vars) (X Vars_γ) *
            ((optionEquivRight F Vars) (X Vars_δ) *
              ((optionEquivRight F Vars) (X Vars_δ) *
                (optionEquivRight F Vars) (C (prover.2 Proof_Idx.A SRS_Elements_Idx.δ)))) +
          (optionEquivRight F Vars) (X Vars_γ) *
            ((optionEquivRight F Vars) (X Vars_δ) *
              (List.map
                  (fun x =>
                    (optionEquivRight F Vars) (C (prover.2 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                      (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                  (List.finRange n_var)).sum)))
eqnB :
  (optionEquivRight F Vars) (X Vars_γ) *
        ((optionEquivRight F Vars) (X Vars_δ) *
          ((optionEquivRight F Vars) (X Vars_α) *
            (optionEquivRight F Vars) (C (prover.1 Proof_Idx.B SRS_Elements_Idx.α)))) +
      ((optionEquivRight F Vars) (X Vars_γ) *
          ((optionEquivRight F Vars) (X Vars_δ) *
            ((optionEquivRight F Vars) (X Vars_β) *
              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.B SRS_Elements_Idx.β)))) +
        ((optionEquivRight F Vars) (X Vars_γ) *
            ((optionEquivRight F Vars) (X Vars_δ) *
              ((optionEquivRight F Vars) (X Vars_δ) *
                (optionEquivRight F Vars) (C (prover.1 Proof_Idx.B SRS_Elements_Idx.δ)))) +
          ((optionEquivRight F Vars) (X Vars_γ) *
              ((optionEquivRight F Vars) (X Vars_δ) *
                (List.map
                    (fun x =>
                      (optionEquivRight F Vars) (C (prover.1 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                        (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                    (List.finRange n_var)).sum) +
            ((optionEquivRight F Vars) (X Vars_γ) *
                (List.map
                    (fun x =>
                      (optionEquivRight F Vars) (C (prover.1 Proof_Idx.B (SRS_Elements_Idx.x_pow_times_t x))) *
                        ((optionEquivRight F Vars) (X Vars_x) ^ ↑x *
                          (optionEquivRight F Vars)
                            ((to_MvPolynomial_Option Vars) (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))))
                    (List.finRange (n_var - 1))).sum +
              ((optionEquivRight F Vars) (X Vars_β) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_stmt x)))
                            (List.finRange n_stmt)).sum) +
                    (optionEquivRight F Vars) (X Vars_α) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_stmt x)))
                            (List.finRange n_stmt)).sum) +
                  (optionEquivRight F Vars) (X Vars_δ) *
                    (List.map
                        (fun x =>
                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x))) *
                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_stmt x)))
                        (List.finRange n_stmt)).sum +
                ((optionEquivRight F Vars) (X Vars_β) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_wit x)))
                            (List.finRange n_wit)).sum) +
                    (optionEquivRight F Vars) (X Vars_α) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_wit x)))
                            (List.finRange n_wit)).sum) +
                  (optionEquivRight F Vars) (X Vars_γ) *
                    (List.map
                        (fun x =>
                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x))) *
                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_wit x)))
                        (List.finRange n_wit)).sum)))))) =
    (optionEquivRight F Vars) (X Vars_γ) *
        ((optionEquivRight F Vars) (X Vars_δ) *
          ((optionEquivRight F Vars) (X Vars_β) *
            (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))) +
      ((optionEquivRight F Vars) (X Vars_γ) *
          ((optionEquivRight F Vars) (X Vars_δ) *
            ((optionEquivRight F Vars) (X Vars_γ) *
              (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))) +
        ((optionEquivRight F Vars) (X Vars_γ) *
            ((optionEquivRight F Vars) (X Vars_δ) *
              ((optionEquivRight F Vars) (X Vars_δ) *
                (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))) +
          (optionEquivRight F Vars) (X Vars_γ) *
            ((optionEquivRight F Vars) (X Vars_δ) *
              (List.map
                  (fun x =>
                    (optionEquivRight F Vars) (C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                      (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                  (List.finRange n_var)).sum)))
eqnC :
  (optionEquivRight F Vars) (X Vars_γ) *
        ((optionEquivRight F Vars) (X Vars_δ) *
          ((optionEquivRight F Vars) (X Vars_α) *
            (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C SRS_Elements_Idx.α)))) +
      ((optionEquivRight F Vars) (X Vars_γ) *
          ((optionEquivRight F Vars) (X Vars_δ) *
            ((optionEquivRight F Vars) (X Vars_β) *
              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C SRS_Elements_Idx.β)))) +
        ((optionEquivRight F Vars) (X Vars_γ) *
            ((optionEquivRight F Vars) (X Vars_δ) *
              ((optionEquivRight F Vars) (X Vars_δ) *
                (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C SRS_Elements_Idx.δ)))) +
          ((optionEquivRight F Vars) (X Vars_γ) *
              ((optionEquivRight F Vars) (X Vars_δ) *
                (List.map
                    (fun x =>
                      (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow x))) *
                        (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                    (List.finRange n_var)).sum) +
            ((optionEquivRight F Vars) (X Vars_γ) *
                (List.map
                    (fun x =>
                      (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x))) *
                        ((optionEquivRight F Vars) (X Vars_x) ^ ↑x *
                          (optionEquivRight F Vars)
                            ((to_MvPolynomial_Option Vars) (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))))
                    (List.finRange (n_var - 1))).sum +
              ((optionEquivRight F Vars) (X Vars_β) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_stmt x)))
                            (List.finRange n_stmt)).sum) +
                    (optionEquivRight F Vars) (X Vars_α) *
                      ((optionEquivRight F Vars) (X Vars_δ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_stmt x)))
                            (List.finRange n_stmt)).sum) +
                  (optionEquivRight F Vars) (X Vars_δ) *
                    (List.map
                        (fun x =>
                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) *
                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_stmt x)))
                        (List.finRange n_stmt)).sum +
                ((optionEquivRight F Vars) (X Vars_β) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (u_wit x)))
                            (List.finRange n_wit)).sum) +
                    (optionEquivRight F Vars) (X Vars_α) *
                      ((optionEquivRight F Vars) (X Vars_γ) *
                        (List.map
                            (fun x =>
                              (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) *
                                (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (v_wit x)))
                            (List.finRange n_wit)).sum) +
                  (optionEquivRight F Vars) (X Vars_γ) *
                    (List.map
                        (fun x =>
                          (optionEquivRight F Vars) (C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) *
                            (optionEquivRight F Vars) ((to_MvPolynomial_Option Vars) (w_wit x)))
                        (List.finRange n_wit)).sum)))))) =
    (optionEquivRight F Vars) (X Vars_γ) *
        ((optionEquivRight F Vars) (X Vars_δ) *
          ((optionEquivRight F Vars) (X Vars_β) *
            (optionEquivRight F Vars) (C (prover.2 Proof_Idx.C SRS_Elements_Idx.β)))) +
      ((optionEquivRight F Vars) (X Vars_γ) *
          ((optionEquivRight F Vars) (X Vars_δ) *
            ((optionEquivRight F Vars) (X Vars_γ) *
              (optionEquivRight F Vars) (C (prover.2 Proof_Idx.C SRS_Elements_Idx.γ)))) +
        ((optionEquivRight F Vars) (X Vars_γ) *
            ((optionEquivRight F Vars) (X Vars_δ) *
              ((optionEquivRight F Vars) (X Vars_δ) *
                (optionEquivRight F Vars) (C (prover.2 Proof_Idx.C SRS_Elements_Idx.δ)))) +
          (optionEquivRight F Vars) (X Vars_γ) *
            ((optionEquivRight F Vars) (X Vars_δ) *
              (List.map
                  (fun x =>
                    (optionEquivRight F Vars) (C (prover.2 Proof_Idx.C (SRS_Elements_Idx.x_pow x))) *
                      (optionEquivRight F Vars) (X Vars_x) ^ ↑x)
                  (List.finRange n_var)).sum)))
⊢ ((List.map (fun i => Polynomial.C (stmt i) * u_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * u_wit i)
            (List.finRange n_wit)).sum) *
      ((List.map (fun i => Polynomial.C (stmt i) * v_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * v_wit i)
            (List.finRange n_wit)).sum) =
    (List.map (fun i => Polynomial.C (stmt i) * w_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * w_wit i)
            (List.finRange n_wit)).sum +
      (List.map
          (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x)) * (Polynomial.X ^ ↑x * t))
          (List.finRange (n_var - 1))).sum
Tactic:
simp only [optionEquivRight_C, optionEquivRight_X_none, optionEquivRight_X_some, optionEquivRight_to_MvPolynomial_Option] at eqn eqnA eqnB eqnC
State after:
case intro.intro.intro
F : Type
inst✝ : Field F
n_stmt n_wit n_var : ℕ
u_stmt : Fin n_stmt → Polynomial F
u_wit : Fin n_wit → Polynomial F
v_stmt : Fin n_stmt → Polynomial F
v_wit : Fin n_wit → Polynomial F
w_stmt : Fin n_stmt → Polynomial F
w_wit : Fin n_wit → Polynomial F
r : Fin n_wit → F
stmt : Groth16TypeI.Stmt
prover : Prover F Groth16TypeI
t : Polynomial F := ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))
eqn :
  -(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.α *
                      (X Vars.γ *
                        (X Vars.δ *
                          (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                            (List.map
                                (fun x =>
                                  C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                    C Polynomial.X ^ ↑x)
                                (List.finRange n_var)).sum)))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.β *
                        (X Vars.γ *
                          (X Vars.δ *
                            (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                              (List.map
                                  (fun x =>
                                    C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                      C Polynomial.X ^ ↑x)
                                  (List.finRange n_var)).sum)))))) +
                (-(X Vars.γ *
                      (X Vars.δ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                                (List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                        C Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum)))))) +
                  (-(X Vars.γ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              ((List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                        C Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum *
                                (List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                        C Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum))))) +
                    (-(X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              ((List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                        (C Polynomial.X ^ ↑x *
                                          C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                                    (List.finRange (n_var - 1))).sum *
                                (List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                        C Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum)))) +
                      (-(X Vars.β *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                C (u_stmt x))
                                            (List.finRange n_stmt)).sum *
                                        (List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                C Polynomial.X ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                            -(X Vars.α *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                C (v_stmt x))
                                            (List.finRange n_stmt)).sum *
                                        (List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                C Polynomial.X ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                          -(X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  ((List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (w_stmt x))
                                        (List.finRange n_stmt)).sum *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                            C Polynomial.X ^ ↑x)
                                        (List.finRange n_var)).sum)))) +
                        (-(X Vars.β *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                C (u_wit x))
                                            (List.finRange n_wit)).sum *
                                        (List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                C Polynomial.X ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                            -(X Vars.α *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                C (v_wit x))
                                            (List.finRange n_wit)).sum *
                                        (List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                C Polynomial.X ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                          -(X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  ((List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (w_wit x))
                                        (List.finRange n_wit)).sum *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                            C Polynomial.X ^ ↑x)
                                        (List.finRange n_var)).sum)))))))))) +
            (-(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.α *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.δ *
                            (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                              C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.β *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.δ *
                              (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                                C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))))) +
                (-(X Vars.γ *
                      (X Vars.δ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                                  C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))))) +
                  (-(X Vars.γ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                ((List.map
                                      (fun x =>
                                        C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                          C Polynomial.X ^ ↑x)
                                      (List.finRange n_var)).sum *
                                  C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                    (-(X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                ((List.map
                                      (fun x =>
                                        C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                          (C Polynomial.X ^ ↑x *
                                            C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                                      (List.finRange (n_var - 1))).sum *
                                  C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))) +
                      (-(X Vars.β *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        ((List.map
                                              (fun x =>
                                                C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                  C (u_stmt x))
                                              (List.finRange n_stmt)).sum *
                                          C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                            -(X Vars.α *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        ((List.map
                                              (fun x =>
                                                C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                  C (v_stmt x))
                                              (List.finRange n_stmt)).sum *
                                          C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                          -(X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                              C (w_stmt x))
                                          (List.finRange n_stmt)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))) +
                        (-(X Vars.β *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        ((List.map
                                              (fun x =>
                                                C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                  C (u_wit x))
                                              (List.finRange n_wit)).sum *
                                          C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                            -(X Vars.α *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        ((List.map
                                              (fun x =>
                                                C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                  C (v_wit x))
                                              (List.finRange n_wit)).sum *
                                          C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                          -(X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                              C (w_wit x))
                                          (List.finRange n_wit)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))))))))) +
          (-(X Vars.γ *
                (X Vars.δ *
                  (X Vars.α *
                    (X Vars.γ *
                      (X Vars.δ *
                        (X Vars.γ *
                          (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                            C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))))) +
            (-(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.β *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                              C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.δ *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.γ *
                              (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                                C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))))) +
                (-(X Vars.γ *
                      (X Vars.δ *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.γ *
                              ((List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                        C Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum *
                                C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                  (-(X Vars.γ *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.γ *
                              ((List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                        (C Polynomial.X ^ ↑x *
                                          C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                                    (List.finRange (n_var - 1))).sum *
                                C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))) +
                    (-(X Vars.β *
                              (X Vars.δ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                C (u_stmt x))
                                            (List.finRange n_stmt)).sum *
                                        C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                          -(X Vars.α *
                              (X Vars.δ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                C (v_stmt x))
                                            (List.finRange n_stmt)).sum *
                                        C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                        -(X Vars.δ *
                            (X Vars.γ *
                              (X Vars.δ *
                                (X Vars.γ *
                                  ((List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (w_stmt x))
                                        (List.finRange n_stmt)).sum *
                                    C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))) +
                      (-(X Vars.β *
                              (X Vars.γ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                C (u_wit x))
                                            (List.finRange n_wit)).sum *
                                        C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                          -(X Vars.α *
                              (X Vars.γ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                C (v_wit x))
                                            (List.finRange n_wit)).sum *
                                        C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                        -(X Vars.γ *
                            (X Vars.γ *
                              (X Vars.δ *
                                (X Vars.γ *
                                  ((List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (w_wit x))
                                        (List.finRange n_wit)).sum *
                                    C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))))))))) +
        (-(X Vars.γ *
              (X Vars.δ *
                (X Vars.α *
                  (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.β *
                        (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                          C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))))) +
          (-(X Vars.γ *
                (X Vars.δ *
                  (X Vars.β *
                    (X Vars.γ *
                      (X Vars.δ *
                        (X Vars.β *
                          (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                            C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))))) +
            (-(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.β *
                            (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                              C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.β *
                            ((List.map
                                  (fun x =>
                                    C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                      C Polynomial.X ^ ↑x)
                                  (List.finRange n_var)).sum *
                              C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                (-(X Vars.γ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.β *
                            ((List.map
                                  (fun x =>
                                    C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                      (C Polynomial.X ^ ↑x * C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                                  (List.finRange (n_var - 1))).sum *
                              C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))) +
                  (-(X Vars.β *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                              C (u_stmt x))
                                          (List.finRange n_stmt)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                        -(X Vars.α *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                              C (v_stmt x))
                                          (List.finRange n_stmt)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                      -(X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.β *
                                ((List.map
                                      (fun x =>
                                        C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (w_stmt x))
                                      (List.finRange n_stmt)).sum *
                                  C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))) +
                    (-(X Vars.β *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                              C (u_wit x))
                                          (List.finRange n_wit)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                        -(X Vars.α *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                              C (v_wit x))
                                          (List.finRange n_wit)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                      -(X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.β *
                                ((List.map
                                      (fun x =>
                                        C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (w_wit x))
                                      (List.finRange n_wit)).sum *
                                  C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))))))))) +
      (X Vars.γ * (X Vars.δ * (X Vars.α * (X Vars.γ * (X Vars.δ * X Vars.β)))) +
        (X Vars.β *
                (X Vars.δ *
                  (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (List.map (fun x => C (Polynomial.C (stmt x)) * C (u_stmt x)) (List.finRange n_stmt)).sum)))) +
              X Vars.α *
                (X Vars.δ *
                  (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (List.map (fun x => C (Polynomial.C (stmt x)) * C (v_stmt x)) (List.finRange n_stmt)).sum)))) +
            X Vars.δ *
              (X Vars.γ *
                (X Vars.δ *
                  (X Vars.γ *
                    (List.map (fun x => C (Polynomial.C (stmt x)) * C (w_stmt x)) (List.finRange n_stmt)).sum))) +
          (X Vars.γ *
              (X Vars.δ *
                (X Vars.α *
                  (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.α))))))) +
            (X Vars.γ *
                (X Vars.δ *
                  (X Vars.β *
                    (X Vars.γ *
                      (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.β))))))) +
              (X Vars.γ *
                  (X Vars.δ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.δ))))))) +
                (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.δ *
                            (List.map
                                (fun x =>
                                  C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow x))) *
                                    C Polynomial.X ^ ↑x)
                                (List.finRange n_var)).sum)))) +
                  (X Vars.γ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.δ *
                            (List.map
                                (fun x =>
                                  C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x))) *
                                    (C Polynomial.X ^ ↑x * C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                                (List.finRange (n_var - 1))).sum))) +
                    (X Vars.β *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (u_stmt x))
                                        (List.finRange n_stmt)).sum)))) +
                          X Vars.α *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (v_stmt x))
                                        (List.finRange n_stmt)).sum)))) +
                        X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                (List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (w_stmt x))
                                    (List.finRange n_stmt)).sum))) +
                      (X Vars.β *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (u_wit x))
                                        (List.finRange n_wit)).sum)))) +
                          X Vars.α *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (v_wit x))
                                        (List.finRange n_wit)).sum)))) +
                        X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                (List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (w_wit x))
                                    (List.finRange n_wit)).sum)))))))))))) =
    0
eqnA :
  X Vars.γ * (X Vars.δ * (X Vars.α * C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)))) +
          (X Vars.γ *
              (X Vars.δ *
                (List.map
                    (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                    (List.finRange n_var)).sum) +
            (X Vars.γ *
                (List.map
                    (fun x =>
                      C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                        (C Polynomial.X ^ ↑x * C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                    (List.finRange (n_var - 1))).sum +
              (X Vars.β *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (u_stmt x))
                            (List.finRange n_stmt)).sum) +
                    X Vars.α *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (v_stmt x))
                            (List.finRange n_stmt)).sum) +
                  X Vars.δ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (w_stmt x))
                        (List.finRange n_stmt)).sum +
                (X Vars.β *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (u_wit x))
                            (List.finRange n_wit)).sum) +
                    X Vars.α *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (v_wit x))
                            (List.finRange n_wit)).sum) +
                  X Vars.γ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (w_wit x))
                        (List.finRange n_wit)).sum)))))) =
    X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.2 Proof_Idx.A SRS_Elements_Idx.β)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.γ * C (Polynomial.C (prover.2 Proof_Idx.A SRS_Elements_Idx.γ)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.2 Proof_Idx.A SRS_Elements_Idx.δ)))) +
          X Vars.γ *
            (X Vars.δ *
              (List.map
                  (fun x => C (Polynomial.C (prover.2 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                  (List.finRange n_var)).sum)))
eqnB :
  X Vars.γ * (X Vars.δ * (X Vars.α * C (Polynomial.C (prover.1 Proof_Idx.B SRS_Elements_Idx.α)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.1 Proof_Idx.B SRS_Elements_Idx.β)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.B SRS_Elements_Idx.δ)))) +
          (X Vars.γ *
              (X Vars.δ *
                (List.map
                    (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                    (List.finRange n_var)).sum) +
            (X Vars.γ *
                (List.map
                    (fun x =>
                      C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.x_pow_times_t x))) *
                        (C Polynomial.X ^ ↑x * C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                    (List.finRange (n_var - 1))).sum +
              (X Vars.β *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x))) * C (u_stmt x))
                            (List.finRange n_stmt)).sum) +
                    X Vars.α *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x))) * C (v_stmt x))
                            (List.finRange n_stmt)).sum) +
                  X Vars.δ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x))) * C (w_stmt x))
                        (List.finRange n_stmt)).sum +
                (X Vars.β *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x))) * C (u_wit x))
                            (List.finRange n_wit)).sum) +
                    X Vars.α *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x))) * C (v_wit x))
                            (List.finRange n_wit)).sum) +
                  X Vars.γ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x))) * C (w_wit x))
                        (List.finRange n_wit)).sum)))))) =
    X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.γ * C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))) +
          X Vars.γ *
            (X Vars.δ *
              (List.map
                  (fun x => C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                  (List.finRange n_var)).sum)))
eqnC :
  X Vars.γ * (X Vars.δ * (X Vars.α * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.α)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.β)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.δ)))) +
          (X Vars.γ *
              (X Vars.δ *
                (List.map
                    (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                    (List.finRange n_var)).sum) +
            (X Vars.γ *
                (List.map
                    (fun x =>
                      C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x))) *
                        (C Polynomial.X ^ ↑x * C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                    (List.finRange (n_var - 1))).sum +
              (X Vars.β *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (u_stmt x))
                            (List.finRange n_stmt)).sum) +
                    X Vars.α *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (v_stmt x))
                            (List.finRange n_stmt)).sum) +
                  X Vars.δ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (w_stmt x))
                        (List.finRange n_stmt)).sum +
                (X Vars.β *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (u_wit x))
                            (List.finRange n_wit)).sum) +
                    X Vars.α *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (v_wit x))
                            (List.finRange n_wit)).sum) +
                  X Vars.γ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (w_wit x))
                        (List.finRange n_wit)).sum)))))) =
    X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.2 Proof_Idx.C SRS_Elements_Idx.β)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.γ * C (Polynomial.C (prover.2 Proof_Idx.C SRS_Elements_Idx.γ)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.2 Proof_Idx.C SRS_Elements_Idx.δ)))) +
          X Vars.γ *
            (X Vars.δ *
              (List.map
                  (fun x => C (Polynomial.C (prover.2 Proof_Idx.C (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                  (List.finRange n_var)).sum)))
⊢ ((List.map (fun i => Polynomial.C (stmt i) * u_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * u_wit i)
            (List.finRange n_wit)).sum) *
      ((List.map (fun i => Polynomial.C (stmt i) * v_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * v_wit i)
            (List.finRange n_wit)).sum) =
    (List.map (fun i => Polynomial.C (stmt i) * w_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * w_wit i)
            (List.finRange n_wit)).sum +
      (List.map
          (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x)) * (Polynomial.X ^ ↑x * t))
          (List.finRange (n_var - 1))).sum

State before:
case intro.intro.intro
F : Type
inst✝ : Field F
n_stmt n_wit n_var : ℕ
u_stmt : Fin n_stmt → Polynomial F
u_wit : Fin n_wit → Polynomial F
v_stmt : Fin n_stmt → Polynomial F
v_wit : Fin n_wit → Polynomial F
w_stmt : Fin n_stmt → Polynomial F
w_wit : Fin n_wit → Polynomial F
r : Fin n_wit → F
stmt : Groth16TypeI.Stmt
prover : Prover F Groth16TypeI
t : Polynomial F := ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))
eqn :
  -(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.α *
                      (X Vars.γ *
                        (X Vars.δ *
                          (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                            (List.map
                                (fun x =>
                                  C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                    C Polynomial.X ^ ↑x)
                                (List.finRange n_var)).sum)))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.β *
                        (X Vars.γ *
                          (X Vars.δ *
                            (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                              (List.map
                                  (fun x =>
                                    C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                      C Polynomial.X ^ ↑x)
                                  (List.finRange n_var)).sum)))))) +
                (-(X Vars.γ *
                      (X Vars.δ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                                (List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                        C Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum)))))) +
                  (-(X Vars.γ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              ((List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                        C Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum *
                                (List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                        C Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum))))) +
                    (-(X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              ((List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                        (C Polynomial.X ^ ↑x *
                                          C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                                    (List.finRange (n_var - 1))).sum *
                                (List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                        C Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum)))) +
                      (-(X Vars.β *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                C (u_stmt x))
                                            (List.finRange n_stmt)).sum *
                                        (List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                C Polynomial.X ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                            -(X Vars.α *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                C (v_stmt x))
                                            (List.finRange n_stmt)).sum *
                                        (List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                C Polynomial.X ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                          -(X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  ((List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (w_stmt x))
                                        (List.finRange n_stmt)).sum *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                            C Polynomial.X ^ ↑x)
                                        (List.finRange n_var)).sum)))) +
                        (-(X Vars.β *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                C (u_wit x))
                                            (List.finRange n_wit)).sum *
                                        (List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                C Polynomial.X ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                            -(X Vars.α *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                C (v_wit x))
                                            (List.finRange n_wit)).sum *
                                        (List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                                C Polynomial.X ^ ↑x)
                                            (List.finRange n_var)).sum))))) +
                          -(X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  ((List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (w_wit x))
                                        (List.finRange n_wit)).sum *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) *
                                            C Polynomial.X ^ ↑x)
                                        (List.finRange n_var)).sum)))))))))) +
            (-(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.α *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.δ *
                            (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                              C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.β *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.δ *
                              (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                                C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))))) +
                (-(X Vars.γ *
                      (X Vars.δ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                                  C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))))) +
                  (-(X Vars.γ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                ((List.map
                                      (fun x =>
                                        C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                          C Polynomial.X ^ ↑x)
                                      (List.finRange n_var)).sum *
                                  C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                    (-(X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                ((List.map
                                      (fun x =>
                                        C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                          (C Polynomial.X ^ ↑x *
                                            C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                                      (List.finRange (n_var - 1))).sum *
                                  C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))) +
                      (-(X Vars.β *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        ((List.map
                                              (fun x =>
                                                C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                  C (u_stmt x))
                                              (List.finRange n_stmt)).sum *
                                          C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                            -(X Vars.α *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        ((List.map
                                              (fun x =>
                                                C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                  C (v_stmt x))
                                              (List.finRange n_stmt)).sum *
                                          C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                          -(X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                              C (w_stmt x))
                                          (List.finRange n_stmt)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))) +
                        (-(X Vars.β *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        ((List.map
                                              (fun x =>
                                                C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                  C (u_wit x))
                                              (List.finRange n_wit)).sum *
                                          C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                            -(X Vars.α *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        ((List.map
                                              (fun x =>
                                                C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                  C (v_wit x))
                                              (List.finRange n_wit)).sum *
                                          C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                          -(X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                              C (w_wit x))
                                          (List.finRange n_wit)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))))))))) +
          (-(X Vars.γ *
                (X Vars.δ *
                  (X Vars.α *
                    (X Vars.γ *
                      (X Vars.δ *
                        (X Vars.γ *
                          (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                            C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))))) +
            (-(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.β *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                              C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.δ *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.γ *
                              (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                                C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))))) +
                (-(X Vars.γ *
                      (X Vars.δ *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.γ *
                              ((List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                        C Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum *
                                C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                  (-(X Vars.γ *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.γ *
                              ((List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                        (C Polynomial.X ^ ↑x *
                                          C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                                    (List.finRange (n_var - 1))).sum *
                                C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))) +
                    (-(X Vars.β *
                              (X Vars.δ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                C (u_stmt x))
                                            (List.finRange n_stmt)).sum *
                                        C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                          -(X Vars.α *
                              (X Vars.δ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                                C (v_stmt x))
                                            (List.finRange n_stmt)).sum *
                                        C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                        -(X Vars.δ *
                            (X Vars.γ *
                              (X Vars.δ *
                                (X Vars.γ *
                                  ((List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (w_stmt x))
                                        (List.finRange n_stmt)).sum *
                                    C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))) +
                      (-(X Vars.β *
                              (X Vars.γ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                C (u_wit x))
                                            (List.finRange n_wit)).sum *
                                        C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                          -(X Vars.α *
                              (X Vars.γ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      ((List.map
                                            (fun x =>
                                              C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                                C (v_wit x))
                                            (List.finRange n_wit)).sum *
                                        C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                        -(X Vars.γ *
                            (X Vars.γ *
                              (X Vars.δ *
                                (X Vars.γ *
                                  ((List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (w_wit x))
                                        (List.finRange n_wit)).sum *
                                    C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))))))))) +
        (-(X Vars.γ *
              (X Vars.δ *
                (X Vars.α *
                  (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.β *
                        (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)) *
                          C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))))) +
          (-(X Vars.γ *
                (X Vars.δ *
                  (X Vars.β *
                    (X Vars.γ *
                      (X Vars.δ *
                        (X Vars.β *
                          (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)) *
                            C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))))) +
            (-(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.β *
                            (C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)) *
                              C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.β *
                            ((List.map
                                  (fun x =>
                                    C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) *
                                      C Polynomial.X ^ ↑x)
                                  (List.finRange n_var)).sum *
                              C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                (-(X Vars.γ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.β *
                            ((List.map
                                  (fun x =>
                                    C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                                      (C Polynomial.X ^ ↑x * C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                                  (List.finRange (n_var - 1))).sum *
                              C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))) +
                  (-(X Vars.β *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                              C (u_stmt x))
                                          (List.finRange n_stmt)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                        -(X Vars.α *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) *
                                              C (v_stmt x))
                                          (List.finRange n_stmt)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                      -(X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.β *
                                ((List.map
                                      (fun x =>
                                        C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (w_stmt x))
                                      (List.finRange n_stmt)).sum *
                                  C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))) +
                    (-(X Vars.β *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                              C (u_wit x))
                                          (List.finRange n_wit)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                        -(X Vars.α *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    ((List.map
                                          (fun x =>
                                            C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) *
                                              C (v_wit x))
                                          (List.finRange n_wit)).sum *
                                      C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
                      -(X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.β *
                                ((List.map
                                      (fun x =>
                                        C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (w_wit x))
                                      (List.finRange n_wit)).sum *
                                  C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))))))))) +
      (X Vars.γ * (X Vars.δ * (X Vars.α * (X Vars.γ * (X Vars.δ * X Vars.β)))) +
        (X Vars.β *
                (X Vars.δ *
                  (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (List.map (fun x => C (Polynomial.C (stmt x)) * C (u_stmt x)) (List.finRange n_stmt)).sum)))) +
              X Vars.α *
                (X Vars.δ *
                  (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (List.map (fun x => C (Polynomial.C (stmt x)) * C (v_stmt x)) (List.finRange n_stmt)).sum)))) +
            X Vars.δ *
              (X Vars.γ *
                (X Vars.δ *
                  (X Vars.γ *
                    (List.map (fun x => C (Polynomial.C (stmt x)) * C (w_stmt x)) (List.finRange n_stmt)).sum))) +
          (X Vars.γ *
              (X Vars.δ *
                (X Vars.α *
                  (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.α))))))) +
            (X Vars.γ *
                (X Vars.δ *
                  (X Vars.β *
                    (X Vars.γ *
                      (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.β))))))) +
              (X Vars.γ *
                  (X Vars.δ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.δ))))))) +
                (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.δ *
                            (List.map
                                (fun x =>
                                  C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow x))) *
                                    C Polynomial.X ^ ↑x)
                                (List.finRange n_var)).sum)))) +
                  (X Vars.γ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.δ *
                            (List.map
                                (fun x =>
                                  C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x))) *
                                    (C Polynomial.X ^ ↑x * C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                                (List.finRange (n_var - 1))).sum))) +
                    (X Vars.β *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (u_stmt x))
                                        (List.finRange n_stmt)).sum)))) +
                          X Vars.α *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (v_stmt x))
                                        (List.finRange n_stmt)).sum)))) +
                        X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                (List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (w_stmt x))
                                    (List.finRange n_stmt)).sum))) +
                      (X Vars.β *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (u_wit x))
                                        (List.finRange n_wit)).sum)))) +
                          X Vars.α *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    (List.map
                                        (fun x =>
                                          C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (v_wit x))
                                        (List.finRange n_wit)).sum)))) +
                        X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                (List.map
                                    (fun x =>
                                      C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (w_wit x))
                                    (List.finRange n_wit)).sum)))))))))))) =
    0
eqnA :
  X Vars.γ * (X Vars.δ * (X Vars.α * C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)))) +
          (X Vars.γ *
              (X Vars.δ *
                (List.map
                    (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                    (List.finRange n_var)).sum) +
            (X Vars.γ *
                (List.map
                    (fun x =>
                      C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x))) *
                        (C Polynomial.X ^ ↑x * C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                    (List.finRange (n_var - 1))).sum +
              (X Vars.β *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (u_stmt x))
                            (List.finRange n_stmt)).sum) +
                    X Vars.α *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (v_stmt x))
                            (List.finRange n_stmt)).sum) +
                  X Vars.δ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x))) * C (w_stmt x))
                        (List.finRange n_stmt)).sum +
                (X Vars.β *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (u_wit x))
                            (List.finRange n_wit)).sum) +
                    X Vars.α *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (v_wit x))
                            (List.finRange n_wit)).sum) +
                  X Vars.γ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x))) * C (w_wit x))
                        (List.finRange n_wit)).sum)))))) =
    X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.2 Proof_Idx.A SRS_Elements_Idx.β)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.γ * C (Polynomial.C (prover.2 Proof_Idx.A SRS_Elements_Idx.γ)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.2 Proof_Idx.A SRS_Elements_Idx.δ)))) +
          X Vars.γ *
            (X Vars.δ *
              (List.map
                  (fun x => C (Polynomial.C (prover.2 Proof_Idx.A (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                  (List.finRange n_var)).sum)))
eqnB :
  X Vars.γ * (X Vars.δ * (X Vars.α * C (Polynomial.C (prover.1 Proof_Idx.B SRS_Elements_Idx.α)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.1 Proof_Idx.B SRS_Elements_Idx.β)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.B SRS_Elements_Idx.δ)))) +
          (X Vars.γ *
              (X Vars.δ *
                (List.map
                    (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                    (List.finRange n_var)).sum) +
            (X Vars.γ *
                (List.map
                    (fun x =>
                      C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.x_pow_times_t x))) *
                        (C Polynomial.X ^ ↑x * C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                    (List.finRange (n_var - 1))).sum +
              (X Vars.β *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x))) * C (u_stmt x))
                            (List.finRange n_stmt)).sum) +
                    X Vars.α *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x))) * C (v_stmt x))
                            (List.finRange n_stmt)).sum) +
                  X Vars.δ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x))) * C (w_stmt x))
                        (List.finRange n_stmt)).sum +
                (X Vars.β *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x))) * C (u_wit x))
                            (List.finRange n_wit)).sum) +
                    X Vars.α *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x))) * C (v_wit x))
                            (List.finRange n_wit)).sum) +
                  X Vars.γ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x))) * C (w_wit x))
                        (List.finRange n_wit)).sum)))))) =
    X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.γ * C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))) +
          X Vars.γ *
            (X Vars.δ *
              (List.map
                  (fun x => C (Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                  (List.finRange n_var)).sum)))
eqnC :
  X Vars.γ * (X Vars.δ * (X Vars.α * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.α)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.β)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.δ)))) +
          (X Vars.γ *
              (X Vars.δ *
                (List.map
                    (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                    (List.finRange n_var)).sum) +
            (X Vars.γ *
                (List.map
                    (fun x =>
                      C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x))) *
                        (C Polynomial.X ^ ↑x * C (∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i)))))
                    (List.finRange (n_var - 1))).sum +
              (X Vars.β *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (u_stmt x))
                            (List.finRange n_stmt)).sum) +
                    X Vars.α *
                      (X Vars.δ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (v_stmt x))
                            (List.finRange n_stmt)).sum) +
                  X Vars.δ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x))) * C (w_stmt x))
                        (List.finRange n_stmt)).sum +
                (X Vars.β *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (u_wit x))
                            (List.finRange n_wit)).sum) +
                    X Vars.α *
                      (X Vars.γ *
                        (List.map
                            (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (v_wit x))
                            (List.finRange n_wit)).sum) +
                  X Vars.γ *
                    (List.map (fun x => C (Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x))) * C (w_wit x))
                        (List.finRange n_wit)).sum)))))) =
    X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.2 Proof_Idx.C SRS_Elements_Idx.β)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.γ * C (Polynomial.C (prover.2 Proof_Idx.C SRS_Elements_Idx.γ)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.2 Proof_Idx.C SRS_Elements_Idx.δ)))) +
          X Vars.γ *
            (X Vars.δ *
              (List.map
                  (fun x => C (Polynomial.C (prover.2 Proof_Idx.C (SRS_Elements_Idx.x_pow x))) * C Polynomial.X ^ ↑x)
                  (List.finRange n_var)).sum)))
⊢ ((List.map (fun i => Polynomial.C (stmt i) * u_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * u_wit i)
            (List.finRange n_wit)).sum) *
      ((List.map (fun i => Polynomial.C (stmt i) * v_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * v_wit i)
            (List.finRange n_wit)).sum) =
    (List.map (fun i => Polynomial.C (stmt i) * w_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * w_wit i)
            (List.finRange n_wit)).sum +
      (List.map
          (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x)) * (Polynomial.X ^ ↑x * t))
          (List.finRange (n_var - 1))).sum
Tactic:
simp only [←C_mul, ←C_pow, ←C_add,
  sum_map_C] at eqn eqnA eqnB eqnC
State after:
case intro.intro.intro
F : Type
inst✝ : Field F
n_stmt n_wit n_var : ℕ
u_stmt : Fin n_stmt → Polynomial F
u_wit : Fin n_wit → Polynomial F
v_stmt : Fin n_stmt → Polynomial F
v_wit : Fin n_wit → Polynomial F
w_stmt : Fin n_stmt → Polynomial F
w_wit : Fin n_wit → Polynomial F
r : Fin n_wit → F
stmt : Groth16TypeI.Stmt
prover : Prover F Groth16TypeI
t : Polynomial F := ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))
eqn :
  -(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.α *
                      (X Vars.γ *
                        (X Vars.δ *
                          C
                            (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α) *
                              (List.map
                                  (fun x =>
                                    Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) * Polynomial.X ^ ↑x)
                                  (List.finRange n_var)).sum)))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.β *
                        (X Vars.γ *
                          (X Vars.δ *
                            C
                              (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β) *
                                (List.map
                                    (fun x =>
                                      Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) *
                                        Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum)))))) +
                (-(X Vars.γ *
                      (X Vars.δ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              C
                                (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ) *
                                  (List.map
                                      (fun x =>
                                        Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) *
                                          Polynomial.X ^ ↑x)
                                      (List.finRange n_var)).sum)))))) +
                  (-(X Vars.γ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              C
                                ((List.map
                                      (fun x =>
                                        Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x)) *
                                          Polynomial.X ^ ↑x)
                                      (List.finRange n_var)).sum *
                                  (List.map
                                      (fun x =>
                                        Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) *
                                          Polynomial.X ^ ↑x)
                                      (List.finRange n_var)).sum))))) +
                    (-(X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              C
                                ((List.map
                                      (fun x =>
                                        Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x)) *
                                          (Polynomial.X ^ ↑x * ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))
                                      (List.finRange (n_var - 1))).sum *
                                  (List.map
                                      (fun x =>
                                        Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) *
                                          Polynomial.X ^ ↑x)
                                      (List.finRange n_var)).sum)))) +
                      (-(X Vars.β *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      C
                                        ((List.map
                                              (fun x =>
                                                Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * u_stmt x)
                                              (List.finRange n_stmt)).sum *
                                          (List.map
                                              (fun x =>
                                                Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) *
                                                  Polynomial.X ^ ↑x)
                                              (List.finRange n_var)).sum))))) +
                            -(X Vars.α *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      C
                                        ((List.map
                                              (fun x =>
                                                Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * v_stmt x)
                                              (List.finRange n_stmt)).sum *
                                          (List.map
                                              (fun x =>
                                                Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) *
                                                  Polynomial.X ^ ↑x)
                                              (List.finRange n_var)).sum))))) +
                          -(X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  C
                                    ((List.map
                                          (fun x =>
                                            Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * w_stmt x)
                                          (List.finRange n_stmt)).sum *
                                      (List.map
                                          (fun x =>
                                            Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) *
                                              Polynomial.X ^ ↑x)
                                          (List.finRange n_var)).sum)))) +
                        (-(X Vars.β *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      C
                                        ((List.map
                                              (fun x =>
                                                Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * u_wit x)
                                              (List.finRange n_wit)).sum *
                                          (List.map
                                              (fun x =>
                                                Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) *
                                                  Polynomial.X ^ ↑x)
                                              (List.finRange n_var)).sum))))) +
                            -(X Vars.α *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      C
                                        ((List.map
                                              (fun x =>
                                                Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * v_wit x)
                                              (List.finRange n_wit)).sum *
                                          (List.map
                                              (fun x =>
                                                Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) *
                                                  Polynomial.X ^ ↑x)
                                              (List.finRange n_var)).sum))))) +
                          -(X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  C
                                    ((List.map
                                          (fun x =>
                                            Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * w_wit x)
                                          (List.finRange n_wit)).sum *
                                      (List.map
                                          (fun x =>
                                            Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) *
                                              Polynomial.X ^ ↑x)
                                          (List.finRange n_var)).sum)))))))))) +
            (-(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.α *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.δ *
                            C
                              (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α) *
                                Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.β *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.δ *
                              C
                                (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β) *
                                  Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                (-(X Vars.γ *
                      (X Vars.δ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                C
                                  (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ) *
                                    Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))))) +
                  (-(X Vars.γ *
                        (X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                C
                                  ((List.map
                                        (fun x =>
                                          Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x)) *
                                            Polynomial.X ^ ↑x)
                                        (List.finRange n_var)).sum *
                                    Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))) +
                    (-(X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                C
                                  ((List.map
                                        (fun x =>
                                          Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x)) *
                                            (Polynomial.X ^ ↑x * ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))
                                        (List.finRange (n_var - 1))).sum *
                                    Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))) +
                      (-(X Vars.β *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        C
                                          ((List.map
                                                (fun x =>
                                                  Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * u_stmt x)
                                                (List.finRange n_stmt)).sum *
                                            Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))) +
                            -(X Vars.α *
                                (X Vars.δ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        C
                                          ((List.map
                                                (fun x =>
                                                  Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * v_stmt x)
                                                (List.finRange n_stmt)).sum *
                                            Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))) +
                          -(X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    C
                                      ((List.map
                                            (fun x =>
                                              Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * w_stmt x)
                                            (List.finRange n_stmt)).sum *
                                        Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))))) +
                        (-(X Vars.β *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        C
                                          ((List.map
                                                (fun x =>
                                                  Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * u_wit x)
                                                (List.finRange n_wit)).sum *
                                            Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))) +
                            -(X Vars.α *
                                (X Vars.γ *
                                  (X Vars.γ *
                                    (X Vars.δ *
                                      (X Vars.δ *
                                        C
                                          ((List.map
                                                (fun x =>
                                                  Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * v_wit x)
                                                (List.finRange n_wit)).sum *
                                            Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))) +
                          -(X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    C
                                      ((List.map
                                            (fun x =>
                                              Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * w_wit x)
                                            (List.finRange n_wit)).sum *
                                        Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ))))))))))))) +
          (-(X Vars.γ *
                (X Vars.δ *
                  (X Vars.α *
                    (X Vars.γ *
                      (X Vars.δ *
                        (X Vars.γ *
                          C
                            (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α) *
                              Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
            (-(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.β *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.γ *
                            C
                              (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β) *
                                Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.δ *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.γ *
                              C
                                (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ) *
                                  Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))))) +
                (-(X Vars.γ *
                      (X Vars.δ *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.γ *
                              C
                                ((List.map
                                      (fun x =>
                                        Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x)) *
                                          Polynomial.X ^ ↑x)
                                      (List.finRange n_var)).sum *
                                  Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))) +
                  (-(X Vars.γ *
                        (X Vars.γ *
                          (X Vars.δ *
                            (X Vars.γ *
                              C
                                ((List.map
                                      (fun x =>
                                        Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x)) *
                                          (Polynomial.X ^ ↑x * ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))
                                      (List.finRange (n_var - 1))).sum *
                                  Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))) +
                    (-(X Vars.β *
                              (X Vars.δ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      C
                                        ((List.map
                                              (fun x =>
                                                Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * u_stmt x)
                                              (List.finRange n_stmt)).sum *
                                          Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))) +
                          -(X Vars.α *
                              (X Vars.δ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      C
                                        ((List.map
                                              (fun x =>
                                                Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * v_stmt x)
                                              (List.finRange n_stmt)).sum *
                                          Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))) +
                        -(X Vars.δ *
                            (X Vars.γ *
                              (X Vars.δ *
                                (X Vars.γ *
                                  C
                                    ((List.map
                                          (fun x =>
                                            Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * w_stmt x)
                                          (List.finRange n_stmt)).sum *
                                      Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))))) +
                      (-(X Vars.β *
                              (X Vars.γ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      C
                                        ((List.map
                                              (fun x =>
                                                Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * u_wit x)
                                              (List.finRange n_wit)).sum *
                                          Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))) +
                          -(X Vars.α *
                              (X Vars.γ *
                                (X Vars.γ *
                                  (X Vars.δ *
                                    (X Vars.γ *
                                      C
                                        ((List.map
                                              (fun x =>
                                                Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * v_wit x)
                                              (List.finRange n_wit)).sum *
                                          Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))) +
                        -(X Vars.γ *
                            (X Vars.γ *
                              (X Vars.δ *
                                (X Vars.γ *
                                  C
                                    ((List.map
                                          (fun x =>
                                            Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * w_wit x)
                                          (List.finRange n_wit)).sum *
                                      Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ))))))))))))) +
        (-(X Vars.γ *
              (X Vars.δ *
                (X Vars.α *
                  (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.β *
                        C
                          (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α) *
                            Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
          (-(X Vars.γ *
                (X Vars.δ *
                  (X Vars.β *
                    (X Vars.γ *
                      (X Vars.δ *
                        (X Vars.β *
                          C
                            (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β) *
                              Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
            (-(X Vars.γ *
                  (X Vars.δ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.β *
                            C
                              (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ) *
                                Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))))) +
              (-(X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.β *
                            C
                              ((List.map
                                    (fun x =>
                                      Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x)) *
                                        Polynomial.X ^ ↑x)
                                    (List.finRange n_var)).sum *
                                Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))) +
                (-(X Vars.γ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.β *
                            C
                              ((List.map
                                    (fun x =>
                                      Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x)) *
                                        (Polynomial.X ^ ↑x * ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))
                                    (List.finRange (n_var - 1))).sum *
                                Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))) +
                  (-(X Vars.β *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    C
                                      ((List.map
                                            (fun x =>
                                              Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * u_stmt x)
                                            (List.finRange n_stmt)).sum *
                                        Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))) +
                        -(X Vars.α *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    C
                                      ((List.map
                                            (fun x =>
                                              Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * v_stmt x)
                                            (List.finRange n_stmt)).sum *
                                        Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))) +
                      -(X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.β *
                                C
                                  ((List.map
                                        (fun x => Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * w_stmt x)
                                        (List.finRange n_stmt)).sum *
                                    Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))))) +
                    (-(X Vars.β *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    C
                                      ((List.map
                                            (fun x =>
                                              Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * u_wit x)
                                            (List.finRange n_wit)).sum *
                                        Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))) +
                        -(X Vars.α *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.β *
                                    C
                                      ((List.map
                                            (fun x =>
                                              Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * v_wit x)
                                            (List.finRange n_wit)).sum *
                                        Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))) +
                      -(X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.β *
                                C
                                  ((List.map
                                        (fun x => Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * w_wit x)
                                        (List.finRange n_wit)).sum *
                                    Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β))))))))))))) +
      (X Vars.γ * (X Vars.δ * (X Vars.α * (X Vars.γ * (X Vars.δ * X Vars.β)))) +
        (X Vars.β *
                (X Vars.δ *
                  (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        C (List.map (fun x => Polynomial.C (stmt x) * u_stmt x) (List.finRange n_stmt)).sum)))) +
              X Vars.α *
                (X Vars.δ *
                  (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        C (List.map (fun x => Polynomial.C (stmt x) * v_stmt x) (List.finRange n_stmt)).sum)))) +
            X Vars.δ *
              (X Vars.γ *
                (X Vars.δ *
                  (X Vars.γ * C (List.map (fun x => Polynomial.C (stmt x) * w_stmt x) (List.finRange n_stmt)).sum))) +
          (X Vars.γ *
              (X Vars.δ *
                (X Vars.α *
                  (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.α))))))) +
            (X Vars.γ *
                (X Vars.δ *
                  (X Vars.β *
                    (X Vars.γ *
                      (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.β))))))) +
              (X Vars.γ *
                  (X Vars.δ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.δ))))))) +
                (X Vars.γ *
                    (X Vars.δ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.δ *
                            C
                              (List.map
                                  (fun x =>
                                    Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow x)) * Polynomial.X ^ ↑x)
                                  (List.finRange n_var)).sum)))) +
                  (X Vars.γ *
                      (X Vars.γ *
                        (X Vars.δ *
                          (X Vars.δ *
                            C
                              (List.map
                                  (fun x =>
                                    Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x)) *
                                      (Polynomial.X ^ ↑x * ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))
                                  (List.finRange (n_var - 1))).sum))) +
                    (X Vars.β *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    C
                                      (List.map
                                          (fun x =>
                                            Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x)) * u_stmt x)
                                          (List.finRange n_stmt)).sum)))) +
                          X Vars.α *
                            (X Vars.δ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    C
                                      (List.map
                                          (fun x =>
                                            Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x)) * v_stmt x)
                                          (List.finRange n_stmt)).sum)))) +
                        X Vars.δ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                C
                                  (List.map
                                      (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x)) * w_stmt x)
                                      (List.finRange n_stmt)).sum))) +
                      (X Vars.β *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    C
                                      (List.map
                                          (fun x =>
                                            Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x)) * u_wit x)
                                          (List.finRange n_wit)).sum)))) +
                          X Vars.α *
                            (X Vars.γ *
                              (X Vars.γ *
                                (X Vars.δ *
                                  (X Vars.δ *
                                    C
                                      (List.map
                                          (fun x =>
                                            Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x)) * v_wit x)
                                          (List.finRange n_wit)).sum)))) +
                        X Vars.γ *
                          (X Vars.γ *
                            (X Vars.δ *
                              (X Vars.δ *
                                C
                                  (List.map
                                      (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x)) * w_wit x)
                                      (List.finRange n_wit)).sum)))))))))))) =
    0
eqnA :
  X Vars.γ * (X Vars.δ * (X Vars.α * C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.α)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.β)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.A SRS_Elements_Idx.δ)))) +
          (X Vars.γ *
              (X Vars.δ *
                C
                  (List.map
                      (fun x => Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow x)) * Polynomial.X ^ ↑x)
                      (List.finRange n_var)).sum) +
            (X Vars.γ *
                C
                  (List.map
                      (fun x =>
                        Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.x_pow_times_t x)) *
                          (Polynomial.X ^ ↑x * ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))
                      (List.finRange (n_var - 1))).sum +
              (X Vars.β *
                      (X Vars.δ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * u_stmt x)
                              (List.finRange n_stmt)).sum) +
                    X Vars.α *
                      (X Vars.δ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * v_stmt x)
                              (List.finRange n_stmt)).sum) +
                  X Vars.δ *
                    C
                      (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.y x)) * w_stmt x)
                          (List.finRange n_stmt)).sum +
                (X Vars.β *
                      (X Vars.γ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * u_wit x)
                              (List.finRange n_wit)).sum) +
                    X Vars.α *
                      (X Vars.γ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * v_wit x)
                              (List.finRange n_wit)).sum) +
                  X Vars.γ *
                    C
                      (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.A (SRS_Elements_Idx.q x)) * w_wit x)
                          (List.finRange n_wit)).sum)))))) =
    X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.2 Proof_Idx.A SRS_Elements_Idx.β)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.γ * C (Polynomial.C (prover.2 Proof_Idx.A SRS_Elements_Idx.γ)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.2 Proof_Idx.A SRS_Elements_Idx.δ)))) +
          X Vars.γ *
            (X Vars.δ *
              C
                (List.map (fun x => Polynomial.C (prover.2 Proof_Idx.A (SRS_Elements_Idx.x_pow x)) * Polynomial.X ^ ↑x)
                    (List.finRange n_var)).sum)))
eqnB :
  X Vars.γ * (X Vars.δ * (X Vars.α * C (Polynomial.C (prover.1 Proof_Idx.B SRS_Elements_Idx.α)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.1 Proof_Idx.B SRS_Elements_Idx.β)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.B SRS_Elements_Idx.δ)))) +
          (X Vars.γ *
              (X Vars.δ *
                C
                  (List.map
                      (fun x => Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) * Polynomial.X ^ ↑x)
                      (List.finRange n_var)).sum) +
            (X Vars.γ *
                C
                  (List.map
                      (fun x =>
                        Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.x_pow_times_t x)) *
                          (Polynomial.X ^ ↑x * ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))
                      (List.finRange (n_var - 1))).sum +
              (X Vars.β *
                      (X Vars.δ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x)) * u_stmt x)
                              (List.finRange n_stmt)).sum) +
                    X Vars.α *
                      (X Vars.δ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x)) * v_stmt x)
                              (List.finRange n_stmt)).sum) +
                  X Vars.δ *
                    C
                      (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.y x)) * w_stmt x)
                          (List.finRange n_stmt)).sum +
                (X Vars.β *
                      (X Vars.γ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x)) * u_wit x)
                              (List.finRange n_wit)).sum) +
                    X Vars.α *
                      (X Vars.γ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x)) * v_wit x)
                              (List.finRange n_wit)).sum) +
                  X Vars.γ *
                    C
                      (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.B (SRS_Elements_Idx.q x)) * w_wit x)
                          (List.finRange n_wit)).sum)))))) =
    X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.β)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.γ * C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.γ)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.2 Proof_Idx.B SRS_Elements_Idx.δ)))) +
          X Vars.γ *
            (X Vars.δ *
              C
                (List.map (fun x => Polynomial.C (prover.2 Proof_Idx.B (SRS_Elements_Idx.x_pow x)) * Polynomial.X ^ ↑x)
                    (List.finRange n_var)).sum)))
eqnC :
  X Vars.γ * (X Vars.δ * (X Vars.α * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.α)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.β)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.1 Proof_Idx.C SRS_Elements_Idx.δ)))) +
          (X Vars.γ *
              (X Vars.δ *
                C
                  (List.map
                      (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow x)) * Polynomial.X ^ ↑x)
                      (List.finRange n_var)).sum) +
            (X Vars.γ *
                C
                  (List.map
                      (fun x =>
                        Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x)) *
                          (Polynomial.X ^ ↑x * ∏ i : Fin n_wit, (Polynomial.X - Polynomial.C (r i))))
                      (List.finRange (n_var - 1))).sum +
              (X Vars.β *
                      (X Vars.δ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x)) * u_stmt x)
                              (List.finRange n_stmt)).sum) +
                    X Vars.α *
                      (X Vars.δ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x)) * v_stmt x)
                              (List.finRange n_stmt)).sum) +
                  X Vars.δ *
                    C
                      (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.y x)) * w_stmt x)
                          (List.finRange n_stmt)).sum +
                (X Vars.β *
                      (X Vars.γ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x)) * u_wit x)
                              (List.finRange n_wit)).sum) +
                    X Vars.α *
                      (X Vars.γ *
                        C
                          (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x)) * v_wit x)
                              (List.finRange n_wit)).sum) +
                  X Vars.γ *
                    C
                      (List.map (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q x)) * w_wit x)
                          (List.finRange n_wit)).sum)))))) =
    X Vars.γ * (X Vars.δ * (X Vars.β * C (Polynomial.C (prover.2 Proof_Idx.C SRS_Elements_Idx.β)))) +
      (X Vars.γ * (X Vars.δ * (X Vars.γ * C (Polynomial.C (prover.2 Proof_Idx.C SRS_Elements_Idx.γ)))) +
        (X Vars.γ * (X Vars.δ * (X Vars.δ * C (Polynomial.C (prover.2 Proof_Idx.C SRS_Elements_Idx.δ)))) +
          X Vars.γ *
            (X Vars.δ *
              C
                (List.map (fun x => Polynomial.C (prover.2 Proof_Idx.C (SRS_Elements_Idx.x_pow x)) * Polynomial.X ^ ↑x)
                    (List.finRange n_var)).sum)))
⊢ ((List.map (fun i => Polynomial.C (stmt i) * u_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * u_wit i)
            (List.finRange n_wit)).sum) *
      ((List.map (fun i => Polynomial.C (stmt i) * v_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * v_wit i)
            (List.finRange n_wit)).sum) =
    (List.map (fun i => Polynomial.C (stmt i) * w_stmt i) (List.finRange n_stmt)).sum +
        (List.map (fun i => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.q i)) * w_wit i)
            (List.finRange n_wit)).sum +
      (List.map
          (fun x => Polynomial.C (prover.1 Proof_Idx.C (SRS_Elements_Idx.x_pow_times_t x)) * (Polynomial.X ^ ↑x * t))
          (List.finRange (n_var - 1))).sum