Theorem: changeExponent_soundness
Proof state before:
case intro.a.left
F : Type
inst✝ : Field F
𝓟 : AGMProofSystemInstantiation F
sample : 𝓟.Sample
d : ℕ
hTypeIII : 𝓟.Identified_Proof_Elems = []
Wit : Type
relation : 𝓟.Stmt → Wit → Prop
extractor : AGMProofSystemInstantiation.Prover F 𝓟 → Wit
stmt : (changeExponent_G1 𝓟 sample d).Stmt
agm : AGMProofSystemInstantiation.Prover F (changeExponent_G1 𝓟 sample d)
right✝ :
  ∀ pfs ∈ (changeExponent_G1 𝓟 sample d).Identified_Proof_Elems,
    (List.map
          (fun SRS_elem =>
            MvPolynomial.C (agm.1 pfs.1 SRS_elem) * (changeExponent_G1 𝓟 sample d).SRSElementValue_G1 SRS_elem)
          (changeExponent_G1 𝓟 sample d).ListSRSElements_G1).sum =
      (List.map
          (fun SRS_elem =>
            MvPolynomial.C (agm.2 pfs.2 SRS_elem) * (changeExponent_G1 𝓟 sample d).SRSElementValue_G2 SRS_elem)
          (changeExponent_G1 𝓟 sample d).ListSRSElements_G2).sum
check_idx : 𝓟.EqualityChecks
poly_checks_pass :
  (List.map
        (fun pairing =>
          ((List.map
                  (fun pf_elem =>
                    MvPolynomial.C (𝓟.verificationPairingProof_G1 stmt check_idx pairing pf_elem) *
                      (List.map
                          (fun SRS_elem =>
                            MvPolynomial.C (agm.1 pf_elem SRS_elem) *
                              (MvPolynomial.X sample ^ d * 𝓟.SRSElementValue_G1 SRS_elem))
                          𝓟.ListSRSElements_G1).sum)
                  𝓟.ListProof_G1).sum +
              (List.map
                  (fun SRS_elem =>
                    MvPolynomial.C (𝓟.verificationPairingSRS_G1 stmt check_idx pairing SRS_elem) *
                      (MvPolynomial.X sample ^ d * 𝓟.SRSElementValue_G1 SRS_elem))
                  𝓟.ListSRSElements_G1).sum) *
            ((List.map
                  (fun pf_elem =>
                    MvPolynomial.C (𝓟.verificationPairingProof_G2 stmt check_idx pairing pf_elem) *
                      (List.map
                          (fun SRS_elem => MvPolynomial.C (agm.2 pf_elem SRS_elem) * 𝓟.SRSElementValue_G2 SRS_elem)
                          𝓟.ListSRSElements_G2).sum)
                  𝓟.ListProof_G2).sum +
              (List.map
                  (fun SRS_elem =>
                    MvPolynomial.C (𝓟.verificationPairingSRS_G2 stmt check_idx pairing SRS_elem) *
                      𝓟.SRSElementValue_G2 SRS_elem)
                  𝓟.ListSRSElements_G2).sum))
        (𝓟.ListPairings check_idx)).sum =
    0
⊢ (List.map
        (fun pairing =>
          ((List.map
                  (fun pf_elem =>
                    MvPolynomial.C (𝓟.verificationPairingProof_G1 stmt check_idx pairing pf_elem) *
                      (List.map
                          (fun SRS_elem => MvPolynomial.C (agm.1 pf_elem SRS_elem) * 𝓟.SRSElementValue_G1 SRS_elem)
                          𝓟.ListSRSElements_G1).sum)
                  𝓟.ListProof_G1).sum +
              (List.map
                  (fun SRS_elem =>
                    MvPolynomial.C (𝓟.verificationPairingSRS_G1 stmt check_idx pairing SRS_elem) *
                      𝓟.SRSElementValue_G1 SRS_elem)
                  𝓟.ListSRSElements_G1).sum) *
            ((List.map
                  (fun pf_elem =>
                    MvPolynomial.C (𝓟.verificationPairingProof_G2 stmt check_idx pairing pf_elem) *
                      (List.map
                          (fun SRS_elem => MvPolynomial.C (agm.2 pf_elem SRS_elem) * 𝓟.SRSElementValue_G2 SRS_elem)
                          𝓟.ListSRSElements_G2).sum)
                  𝓟.ListProof_G2).sum +
              (List.map
                  (fun SRS_elem =>
                    MvPolynomial.C (𝓟.verificationPairingSRS_G2 stmt check_idx pairing SRS_elem) *
                      𝓟.SRSElementValue_G2 SRS_elem)
                  𝓟.ListSRSElements_G2).sum))
        (𝓟.ListPairings check_idx)).sum =
    0
Tactic:
simp only [
  mul_comm _ (MvPolynomial.X sample ^ d),
  mul_left_comm _ (MvPolynomial.X sample ^ d),
  mul_assoc (MvPolynomial.X sample ^ d),
  List.sum_map_mul_right, List.sum_map_mul_left,
  ←mul_add (MvPolynomial.X sample ^ d)] at poly_checks_pass
Proof state after:
case intro.a.left
F : Type
inst✝ : Field F
𝓟 : AGMProofSystemInstantiation F
sample : 𝓟.Sample
d : ℕ
hTypeIII : 𝓟.Identified_Proof_Elems = []
Wit : Type
relation : 𝓟.Stmt → Wit → Prop
extractor : AGMProofSystemInstantiation.Prover F 𝓟 → Wit
stmt : (changeExponent_G1 𝓟 sample d).Stmt
agm : AGMProofSystemInstantiation.Prover F (changeExponent_G1 𝓟 sample d)
right✝ :
  ∀ pfs ∈ (changeExponent_G1 𝓟 sample d).Identified_Proof_Elems,
    (List.map
          (fun SRS_elem =>
            MvPolynomial.C (agm.1 pfs.1 SRS_elem) * (changeExponent_G1 𝓟 sample d).SRSElementValue_G1 SRS_elem)
          (changeExponent_G1 𝓟 sample d).ListSRSElements_G1).sum =
      (List.map
          (fun SRS_elem =>
            MvPolynomial.C (agm.2 pfs.2 SRS_elem) * (changeExponent_G1 𝓟 sample d).SRSElementValue_G2 SRS_elem)
          (changeExponent_G1 𝓟 sample d).ListSRSElements_G2).sum
check_idx : 𝓟.EqualityChecks
poly_checks_pass :
  MvPolynomial.X sample ^ d *
      (List.map
          (fun b =>
            ((List.map
                    (fun b_1 =>
                      MvPolynomial.C (𝓟.verificationPairingProof_G1 stmt check_idx b b_1) *
                        (List.map (fun b => MvPolynomial.C (agm.1 b_1 b) * 𝓟.SRSElementValue_G1 b)
                            𝓟.ListSRSElements_G1).sum)
                    𝓟.ListProof_G1).sum +
                (List.map
                    (fun b_1 =>
                      MvPolynomial.C (𝓟.verificationPairingSRS_G1 stmt check_idx b b_1) * 𝓟.SRSElementValue_G1 b_1)
                    𝓟.ListSRSElements_G1).sum) *
              ((List.map
                    (fun pf_elem =>
                      MvPolynomial.C (𝓟.verificationPairingProof_G2 stmt check_idx b pf_elem) *
                        (List.map
                            (fun SRS_elem => MvPolynomial.C (agm.2 pf_elem SRS_elem) * 𝓟.SRSElementValue_G2 SRS_elem)
                            𝓟.ListSRSElements_G2).sum)
                    𝓟.ListProof_G2).sum +
                (List.map
                    (fun SRS_elem =>
                      MvPolynomial.C (𝓟.verificationPairingSRS_G2 stmt check_idx b SRS_elem) *
                        𝓟.SRSElementValue_G2 SRS_elem)
                    𝓟.ListSRSElements_G2).sum))
          (𝓟.ListPairings check_idx)).sum =
    0
⊢ (List.map
        (fun pairing =>
          ((List.map
                  (fun pf_elem =>
                    MvPolynomial.C (𝓟.verificationPairingProof_G1 stmt check_idx pairing pf_elem) *
                      (List.map
                          (fun SRS_elem => MvPolynomial.C (agm.1 pf_elem SRS_elem) * 𝓟.SRSElementValue_G1 SRS_elem)
                          𝓟.ListSRSElements_G1).sum)
                  𝓟.ListProof_G1).sum +
              (List.map
                  (fun SRS_elem =>
                    MvPolynomial.C (𝓟.verificationPairingSRS_G1 stmt check_idx pairing SRS_elem) *
                      𝓟.SRSElementValue_G1 SRS_elem)
                  𝓟.ListSRSElements_G1).sum) *
            ((List.map
                  (fun pf_elem =>
                    MvPolynomial.C (𝓟.verificationPairingProof_G2 stmt check_idx pairing pf_elem) *
                      (List.map
                          (fun SRS_elem => MvPolynomial.C (agm.2 pf_elem SRS_elem) * 𝓟.SRSElementValue_G2 SRS_elem)
                          𝓟.ListSRSElements_G2).sum)
                  𝓟.ListProof_G2).sum +
              (List.map
                  (fun SRS_elem =>
                    MvPolynomial.C (𝓟.verificationPairingSRS_G2 stmt check_idx pairing SRS_elem) *
                      𝓟.SRSElementValue_G2 SRS_elem)
                  𝓟.ListSRSElements_G2).sum))
        (𝓟.ListPairings check_idx)).sum =
    0