Zcash 백서

Zcash

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 35쪽 중 31쪽

82, 91, 97, 124, 157, 158, 163, 169, 174, 176, 182). [ZIP-48] Kris Nuttycombe, Jack Grigg, Daira-Emma Hopwood, and Arya.Transparent Multisig Wallets. Zcash Improvement Proposal 48. URL:https://zips.z.cash/zip-0048 (visited on 2025-10-08) (↑p146). [ZIP-76] Jack Grigg and Daira-Emma Hopwood.Transaction Signature Validation before Overwinter. Zcash Improvement Proposal 76 (in progress). (↑p53, 148). [ZIP-143] Jack Grigg and Daira-Emma Hopwood.Transaction Signature Validation for Overwinter. Zcash Improvement Proposal 143. Created December 27, 2017. URL:https://zips.z.cash/zip-0143 (visited on 2019-08-28) (↑p53, 79, 124). [ZIP-173] Daira-Emma Hopwood.Bech32 Format. Zcash Improvement Proposal 173. Created June 13, 2018. URL:https://zips.z.cash/zip-0173(visited on 2020-06-01) (↑p116, 119, 174). [ZIP-200] Jack Grigg.Network Upgrade Mechanism. Zcash Improvement Proposal 200. Created January 8, 2018. URL:https://zips.z.cash/zip-0200(visited on 2019-08-28) (↑p124, 131, 162). [ZIP-201] Simon Liu and Daira-Emma Hopwood.Network Peer Management for Overwinter. Zcash Im- provement Proposal 201. Created January 15, 2018. URL: https : / / zips . z . cash / zip - 0201 (visited on 2019-08-28) (↑p53, 124). [ZIP-202] Simon Liu and Daira-Emma Hopwood.Version 3 Transaction Format for Overwinter. Zcash Improvement Proposal 202. Created January 10, 2018. URL: https://zips.z.cash/zip-0202 (visited on 2019-08-28) (↑p124). [ZIP-203] Jay Graber and Daira-Emma Hopwood.Transaction Expiry. Zcash Improvement Proposal 203. Created January 9, 2018. URL: https://zips.z.cash/zip-0203 (visited on 2019-08-28) (↑p 124, 125, 127, 166). [ZIP-205] Simon Liu and Daira-Emma Hopwood.Deployment of the Sapling Network Upgrade. Zcash Improvement Proposal 205. Created October 8, 2018. URL: https://zips.z.cash/zip-0205 (visited on 2019-08-28) (↑p53, 124, 142). [ZIP-206] Simon Liu and Daira-Emma Hopwood.Deployment of the Blossom Network Upgrade. Zcash Improvement Proposal 206. Created July 29, 2019. URL: https : / / zips . z . cash / zip - 0206 (visited on 2019-08-28) (↑p53, 124, 176). [ZIP-207] Jack Grigg and Daira-Emma Hopwood.Funding Streams. Zcash Improvement Proposal 207. Created January 4, 2019. URL: https://zips.z.cash/zip-0207 (visited on 2019-08-28) (↑p 62, 124, 130, 145, 146, 173, 174). [ZIP-208] Daira-Emma Hopwood and Simon Liu.Shorter Block Target Spacing. Zcash Improvement Proposal 208. Created January 10, 2019. URL: https : / / zips . z . cash / zip - 0208(visited on 2019-08-28) (↑p124, 142, 177). [ZIP-209] Sean Bowe and Daira-Emma Hopwood.Prohibit Out-of-Range Chain Value Pool Balances. Zcash Improvement Proposal 209. Created February 25, 2019. URL: https://zips.z.cash/zip-0209 (visited on 2020-07-06) (↑p61, 124, 166, 171). [ZIP-211] Daira-Emma Hopwood.Disabling Addition of New Value to the Sprout Value Pool. Zcash Im- provement Proposal 211. Created March 29, 2019. URL: https://zips.z.cash/zip-0211 (visited on 2020-06-01) (↑p47, 121, 124, 172, 174). [ZIP-212] Sean Bowe.Allow Recipient to Derive Sapling Ephemeral Secret from Note Plaintext. Zcash Improvement Proposal 212. Created March 31, 2019. URL: https://zips.z.cash/zip- 0212 (visited on 2020-06-01) (↑p17, 68, 124, 130, 154, 160, 164, 166, 168, 174). 204 [ZIP-213] Jack Grigg.Shielded Coinbase. Zcash Improvement Proposal 213. Created March 30, 2019. URL: https://zips.z.cash/zip-0213(visited on 2020-03-20) (↑p124, 131, 146, 166, 167). [ZIP-214] Daira-Emma Hopwood.Consensus rules for a Zcash Development Fund. Zcash Improvement Proposal 214. Created February 28, 2020. URL: https://zips.z.cash/zip- 0214 (visited on 2020-03-24) (↑p124, 146, 147, 172, 173, 174). [ZIP-215] Henry de Valence.Explicitly Defining and Modifying Ed25519 Validation Rules. Zcash Improve- ment Proposal 215. Created April 27, 2020. URL: https://zips.z.cash/zip-0215 (visited on 2020-05-27) (↑p124, 174, 230). [ZIP-216] Jack Grigg and Daira-Emma Hopwood.Require Canonical Point Encodings. Zcash Improvement Proposal 216. Created February 11, 2021. URL: https : / / zips . z . cash / zip - 0216(visited on 2021-02-25) (↑p43, 44, 97, 119, 124, 172). [ZIP-221] Ying Tong Lai, James Prestwich, Georgios Konstantopoulos, and Jack Grigg.FlyClient - Consensus- Layer Changes. Zcash Improvement Proposal 221. Created March 30, 2019. URL: https://zips. z.cash/zip-0221(visited on 2020-03-19) (↑p124, 137, 138, 139). [ZIP-224] Daira-Emma Hopwood, Jack Grigg, Sean Bowe, Kris Nuttycombe, and Ying Tong Lai.Orchard Shielded Protocol. Zcash Improvement Proposal 224. Created February 27, 2021. URL: https: //zips.z.cash/zip-0225(visited on 2021-03-21) (↑p124). [ZIP-225] Daira-Emma Hopwood, Jack Grigg, Sean Bowe, Kris Nuttycombe, and Ying Tong Lai.Version 5 Transaction Format. Zcash Improvement Proposal 225. Created February 28, 2021. URL:https: //zips.z.cash/zip-0225(visited on 2021-03-21) (↑p60, 124, 169). [ZIP-236] Daira-Emma Hopwood.Blocks should balance exactly. Zcash Improvement Proposal 236. Cre- ated July 2, 2024. URL: https://zips.z.cash/zip-0236 (visited on 2024-09-24) (↑p 124, 158, 159). [ZIP-239] Daira-Emma Hopwood and Jack Grigg.Relay of Version 5 Transactions. Zcash Improvement Proposal 239. Created May 29, 2021. URL: https://zips.z.cash/zip-0239 (visited on 2021-06- 06) (↑p19, 124, 128, 164, 166). [ZIP-243] Jack Grigg and Daira -Emma Hopwood.Transaction Signature Validation for Sapling. Zcash Improvement Proposal 243. Created April 10, 2018. URL: https://zips.z.cash/zip- 0243 (visited on 2019-08-28) (↑p53, 56, 60, 79, 124, 167). [ZIP-244] Kris Nuttycombe, Daira-Emma Hopwood, and Jack Grigg.Transaction Identifier Non-Malleability. Zcash Improvement Proposal 244. Created January 6, 2021. URL: https://zips.z.cash/zip- 0244(visited on 2021-01-10) (↑p19, 53, 56, 58, 60, 79, 124, 128, 131, 137, 138, 139). [ZIP-250] Daira-Emma Hopwood.Deployment of the Heartwood Network Upgrade. Zcash Improvement Proposal 250. Created February 28, 2020. URL: https://zips.z.cash/zip- 0250 (visited on 2020-03-20) (↑p54, 124). [ZIP-251] Daira-Emma Hopwood.Deployment of the Canopy Network Upgrade. Zcash Improvement Proposal 251. Created February 28, 2020. URL: https://zips.z.cash/zip- 0251 (visited on 2020-03-24) (↑p54, 124, 174). [ZIP-252] teor and Daira-Emma Hopwood.Deployment of the NU5 Network Upgrade. Zcash Improvement Proposal 252. Created February 23, 2021. URL: https://zips.z.cash/zip- 0252 (visited on 2022-06-22) (↑p54, 124, 161). [ZIP-253] Arya.Deployment of the NU6 Network Upgrade. Zcash Improvement Proposal 253. Created July 17, 2024. URL:https://zips.z.cash/zip-0253(visited on 2024-09-24) (↑p54, 124). [ZIP-255] Arya.Deployment of the NU6.1 Network Upgrade. Zcash Improvement Proposal 255. Created May 6, 2025. URL:https://zips.z.cash/zip-0255(visited on 2025-08-20) (↑p54, 124). [ZIP-256] Daira-Emma Hopwood.Deployment of Consensus Bug Fixes Between NU6.1 and NU6.2. Zcash Improvement Proposal 256. Created June 9, 2026. URL:https://zips.z.cash/zip-0256 (visited on 2026-06-16) (↑p46, 157). 205 [ZIP-257] Daira-Emma Hopwood.Deployment of the Orchard Temporary Vulnerability Mitigation and NU6.2 Network Upgrade. Zcash Improvement Proposal 257. Created June 9, 2026. URL:https: //zips.z.cash/zip-0257(visited on 2026-06-16) (↑p54, 124, 157). [ZIP-271] Daira-Emma Hopwood, Kris Nuttycombe, and Jack Grigg.Deferred Dev Fund Lockbox Disburse- ment. Zcash Improvement Proposal 271. Created February 19, 2025. URL:https://zips.z.cash/ zip-0271(visited on 2025-08-20) (↑p124, 130, 142, 145, 146, 158). [ZIP-302] Jay Graber and Jack Grigg.Standardized Memo Field Format. Zcash Improvement Proposal 302. Created February 8, 2017. URL: https://zips.z.cash/zip-0302 (visited on 2022-06-22) (↑p 16, 161, 170, 175). [ZIP-316] Daira-Emma Hopwood, Nathan Wilcox, Taylor Hornby, Jack Grigg, Sean Bowe, Kris Nuttycombe, Greg Pfeil, and Ying Tong Lai.Unified Addresses and Unified Viewing Keys. Zcash Improvement Proposal 316. Created April 7, 2021. URL: https://zips.z.cash/zip-0316 (visited on 2021-04- 29) (↑p27, 120, 121, 122, 124, 159, 163, 167). [ZIP-1014] Andrew Miller and Zooko Wilcox.Establishing a Dev Fund for ECC, ZF, and Major Grants. Zcash Improvement Proposal 1014. Created November 10, 2019. URL:https://zips.z.cash/zip-1014 (visited on 2024-09-24) (↑p124). [ZIP-1015] Jason McGee, @Peacemonger, and Kris Nuttycombe.Block Subsidy Allocation for Non-Direct Development Funding. Zcash Improvement Proposal 1015. Created August 26, 2024. URL:https: //zips.z.cash/zip-1015(visited on 2024-09-24) (↑p124). [ZIP-1016] Josh Swihart.Community and Coinholder Funding Model. Zcash Improvement Proposal 1016. Created February 19, 2025. URL: https://zips.z.cash/zip- 1016 (visited on 2025-08-20) (↑p124, 145). [ZIP-2001] Kris Nuttycombe.Lockbox Funding Streams. Zcash Improvement Proposal 2001. Created July 2, 2024. URL:https://zips.z.cash/zip-2001(visited on 2024-09-24) (↑p124, 145, 159). [ZIP-2006] Daira-Emma Hopwood.Restricting Transfers to the Orchard Pool. Zcash Improvement Proposal 2006. Created July 3, 2026. URL: https://zips.z.cash/zip- 2006 (visited on 2026-07-03) (↑p45). [Zips-Issue664] Daira-Emma Hopwood.GitHub repository ‘zcash/zips’: Issue 664 – [protocol spec] [ZIP 216] Sapling pk_d should not allow the zero point. URL: https://github.com/zcash/zips/issues/ 664(visited on 2025-09-07) (↑p159, 172). 206 Appendices #appendices A Circuit Design #circuitdesign A.1 Quadratic Constraint Programs #constraintprograms Saplingdefines two circuits, Spend and Output, each implementing an abstractstatementdescribed in §4.18.2 ‘Spend Statement (Sapling)’ on p. 64 and §4.18.3 ‘Output Statement (Sapling)’ on p. 65 respectively. It also adds a Groth16circuit for theJoinSplit statementdescribed in §4.18.1 ‘JoinSplit Statement (Sprout)’ on p.63. At the next lower level, each circuit is defined in terms of aquadratic constraint program(specifying aRank 1 Constraint System), as detailed in this section. In the BCTV14 or Groth16 proving systems, this program is translated to aQuadratic Arithmetic Program [BCTV2014a, section 2.3] [WCBTV2015]. The circuit descriptions given here are necessary to compute witness elements for each circuit, as well as the proving and verifying keys. LetF 𝑟S be the finite field over whichJubjubis defined, as given in §5.4.9.3 ‘Jubjub’ on p.105. Aquadratic constraint programconsists of a set of constraints over variables inF 𝑟S, each of the form: (︀ 𝐴 )︀ (︀ 𝐵 )︀ = (︀ 𝐶 )︀ where (︀ 𝐴 )︀ , (︀ 𝐵 )︀ , and (︀ 𝐶 )︀ arelinear combinationsof variables and constants inF 𝑟S. Here and· both represent multiplication in the field F𝑟S, but we use for multiplications corresponding to gates of the circuit, and· for multiplications by constants in the terms of alinear combination. should not be confused with×which is defined as cartesian product in §2 ‘Notation’ on p.11. A.2 Elliptic curve background #ecbackground The Saplingcircuits make use of acomplete twisted Edwards elliptic curve(“ctEdwards curve”) Jubjub, defined in §5.4.9.3 ‘Jubjub’ on p. 105, and also aMontgomery elliptic curve M that is birationally equivalent toJubjub. Following the notation in [BL2017] we use (𝑢,v) for affine coordinates on thectEdwards curve, and (𝑥, 𝑦)for affine coordinates on theMontgomery curve. A point 𝑃 is normally represented by two F𝑟S variables, which we name as (𝑃 𝑢, 𝑃v) for anaffine-ctEdwardspoint, for instance. The implementations of scalar multiplication require the scalar to be represented as abit sequence. We there- fore allow the notation [𝑘⋆]𝑃 meaning [LEBS2IPlength(𝑘⋆)(𝑘⋆)]𝑃 . There will be no ambiguity because variables representingbit sequencesare named with a⋆suffix. TheMontgomery curve M has parameters 𝐴M = 40962 and 𝐵M = 1. We use an affine representation of this curve with the formula: 𝐵M·𝑦2 =𝑥 3 +𝐴 M·𝑥2 +𝑥 Usually, elliptic curve arithmetic over prime fields is implemented using some form of projective coordinates, in order to reduce the number of expensive inversions required. In the circuit, it turns out that a division can be implemented at the same cost as a multiplication, i.e. one constraint. Therefore it is beneficial to use affine coordinates for both curves. We define the following types representingaffine-ctEdwardsandaffine-Montgomerycoordinates respectively: AffineCtEdwardsJubjub:= (𝑢 F𝑟S)×(v F𝑟S) :𝑎 J·𝑢2 +v 2 = 1 +𝑑 J·𝑢2·v2 AffineMontJubjub:= (𝑥 F𝑟S)×(𝑦 F𝑟S) :𝐵 M·𝑦2 =𝑥 3 +𝐴 M·𝑥2 +𝑥 207 We also define a type representing compressed, not necessarily valid, ctEdwards coordinates: CompressedCtEdwardsJubjub:= (˜𝑢 B)×(v F𝑟S) See §5.4.9.3 ‘Jubjub’ on p.105 for how this type is represented as abyte sequencein external encodings. We useaffine-Montgomeryarithmetic in parts of the circuit because it is more efficient, in terms of the number of constraints, thanaffine-ctEdwardsarithmetic. An important consideration when using Montgomery arithmetic is that the addition formula is not complete, that is, there are cases where it produces the wrong answer. We must ensure that these cases do not arise. We will need the theorem below about𝑦-coordinates of points onMontgomery curves. Fact:𝐴 M2−4is a nonsquare inF 𝑟S. Theorem A.2.1.(0,0)is the only point with𝑦= 0on certain Montgomery curves. #thmmontynotzero Let 𝑃= (𝑥, 𝑦) be a point other than(0,0) on a Montgomery curve 𝐸Mont(𝐴,𝐵) over F𝑟, such that 𝐴2−4 is a nonsquare inF 𝑟. Then𝑦̸= 0. Proof. Substituting 𝑦= 0 into theMontgomery curveequation gives 0 =𝑥 3 +𝐴·𝑥 2 +𝑥=𝑥·(𝑥 2 +𝐴·𝑥+ 1) . So either 𝑥= 0 or 𝑥2 +𝐴·𝑥+ 1 = 0 . Since 𝑃̸= (0,0) , the case 𝑥= 0 is excluded. In the other case, complete the square for 𝑥2 +𝐴·𝑥+ 1 = 0 to give the equivalent (2·𝑥+𝐴) 2 =𝐴 2−4 . The left-hand side is a square, so if the right-hand side is a nonsquare, then there are no solutions for𝑥. A.3 Circuit Components #cctcomponents Each of the following sections describes how to implement a particular component of the circuit, and counts the number of constraints required. Some components make use of others; the order of presentation is “bottom-up” . It is important for security to ensure that variables intended to be of boolean type are boolean-constrained; and for efficiency that they are boolean-constrained only once. We explicitly state for the boolean inputs and outputs of each component whether they are boolean-constrained by the component, or are assumed to have been boolean-constrained separately. Affine coordinates for elliptic curve points are assumed to represent points on the relevant curve, unless otherwise specified. In this section, variables have type F𝑟S unless otherwise specified. In contrast to most of this document, we use zero-based indexing in order to more closely match the implementation. A.3.1 Operations on individual bits #cctbitops A.3.1.1 Boolean constraints #cctboolean A boolean constraint𝑏∈Bcan be implemented as: (︀ 1−𝑏 )︀ (︀ 𝑏 )︀ = (︀ 0 )︀ A.3.1.2 Conditional equality #cctcondeq The constraint “either𝑎= 0or𝑏=𝑐” can be implemented as: (︀ 𝑎 )︀ (︀ 𝑏−𝑐 )︀ = (︀ 0 )︀ 208 A.3.1.3 Selection constraints #cctselection A selection constraint(𝑏 ? 𝑥:𝑦) =𝑧, where𝑏 Bhas been boolean-constrained, can be implemented as: (︀ 𝑏 )︀ (︀ 𝑦−𝑥 )︀ = (︀ 𝑦−𝑧 )︀ A.3.1.4 Nonzero constraints #cctnonzero Since only nonzero elements of F𝑟S have a multiplicative inverse, the assertion 𝑎̸= 0 can be implemented by witnessing the inverse,𝑎 inv =𝑎−1 (mod𝑟 S): (︀ 𝑎inv )︀ (︀ 𝑎 )︀ = (︀ 1 )︀ This technique comes from [SVPBABW2012, Appendix D.1]. Non-normative note:A global optimization allows to use a single inverse computation outside the circuit for any number of nonzero constraints. Suppose that we have 𝑛 variables (orlinear combinations) that are supposed to be nonzero: 𝑎0.. 𝑛−1. Multiply these together (using 𝑛−1 constraints) to give 𝑎* = ∏︀𝑛−1𝑖=0 𝑎𝑖; then, constrain 𝑎* to be nonzero. This works because the product 𝑎* is nonzero if and only if all of 𝑎0.. 𝑛−1are nonzero. However, the Saplingcircuit does not use this optimization. A.3.1.5 Exclusive-or constraints #cctxor An exclusive-or operation 𝑎⊕𝑏=𝑐 , where 𝑎, 𝑏 B are already boolean-constrained, can be implemented in one constraint as: (︀ 2·𝑎 )︀ (︀ 𝑏 )︀ = (︀ 𝑎+𝑏−𝑐 )︀ This automatically boolean-constrains𝑐. Its correctness can be seen by checking the truth table of(𝑎, 𝑏). A.3.2 Operations on multiple bits #cctmultibitops A.3.2.1 [Un]packing modulo𝑟 S #cctmodpack Let 𝑛 N+ be a constant. The operation of converting a field element, 𝑎 F𝑟S, to a sequence of boolean variables 𝑏0.. 𝑛−1 B[𝑛] such that𝑎= ∑︀𝑛−1𝑖=0 𝑏𝑖·2 𝑖 (mod𝑟 S), is called “unpacking”. The inverse operation is called “packing”. In thequadratic constraint programthese are the same operation (but see the note about canonical representation below). We assume that the variables𝑏 0.. 𝑛−1are boolean-constrained separately. We have𝑎mod𝑟 S = (︃ 𝑛−1∑︁ 𝑖=0 𝑏𝑖·2 𝑖 )︃ mod𝑟 S = (︃ 𝑛−1∑︁ 𝑖=0 𝑏𝑖·(2 𝑖 mod𝑟 S) )︃ mod𝑟 S. This can be implemented in one constraint: (︃ 𝑛−1∑︁ 𝑖=0 𝑏𝑖·(2 𝑖 mod𝑟 S) )︃ (︀ 1 )︀ = (︀ 𝑎 )︀ 209 Notes: •The bit length𝑛is not limited by the field element size. • Since the constraint has only a trivial multiplication, it is possible to eliminate it by merging it into the boolean constraint of one of the output bits, expressing that bit as a linear combination of the others and 𝑎. However, this optimization requires substitutions that would interfere with the modularity of the circuit implementation (for a saving of only one constraint per unpacking operation), and so we do not use it for the Saplingcircuit. • In the case 𝑛= 255 , for 𝑎 <2255−𝑟 S there are two possible representations of 𝑎 F𝑟S as a sequence of 255 bits, corresponding to I2LEBSP255(𝑎) and I2LEBSP255(𝑎+𝑟 S). This is a potential hazard, but it may or may not be necessary to force use of the canonical representation I2LEBSP255(𝑎), depending on the context in which the [un]packing operation is used. We therefore do not consider this to be part of the [un]packing operation itself. A.3.2.2 Range check #cctrange Let 𝑛 N+ be a constant, and let 𝑎= ∑︀𝑛−1𝑖=0 𝑎𝑖·2 𝑖 N. Suppose we want to constrain 𝑎≤𝑐 for some constant 𝑐= ∑︀𝑛−1 𝑖=0 𝑐𝑖·2 𝑖 N. Without loss of generality we can assume that𝑐𝑛−1 = 1, because if it were not then we would decrease𝑛 accordingly. Note that since 𝑎 and 𝑐 are provided in binary representation, their bit length 𝑛 is not limited by the field element size. We do not assume that the bits𝑎 0.. 𝑛−1are already boolean-constrained. Define Π𝑚 = ∏︀𝑛−1 𝑖=𝑚(𝑐𝑖 = 0∨𝑎 𝑖 = 1) for 𝑚∈{0.. 𝑛−1} . Notice that for any 𝑚 < 𝑛−1such that 𝑐𝑚 = 0, we have Π𝑚 = Π𝑚+1, and so it is only necessary to allocate separate variables for theΠ𝑚 such that 𝑚 < 𝑛−1and 𝑐𝑚 = 1. Furthermore if 𝑐𝑛−2..0 has 𝑡 >0 trailing 1 bits, then we do not need to allocate variables for Π0.. 𝑡−1because those variables will not be used below. More explicitly: LetΠ 𝑛−1 =𝑎 𝑛−1. For𝑖from𝑛−2down to𝑡, •if𝑐 𝑖 = 0, then letΠ 𝑖 = Π𝑖+1; •if𝑐 𝑖 = 1, then constrain (︀ Π𝑖+1 )︀ (︀ 𝑎𝑖 )︀ = (︀ Π𝑖 )︀ . Then we constrain the𝑎 𝑖 as follows: For𝑖from𝑛−1down to0, •if𝑐 𝑖 = 0, constrain (︀ 1−Π 𝑖+1−𝑎 𝑖 )︀ (︀ 𝑎𝑖 )︀ = (︀ 0 )︀ ; •if𝑐 𝑖 = 1, boolean-constrain𝑎 𝑖 as in §A.3.1.1 ‘Boolean constraints’ on p.208. Note that the constraints corresponding to zero bits of𝑐are in place of boolean constraints on bits of𝑎 𝑖. This costs𝑛+𝑘constraints, where𝑘is the number of non-trailing1bits in𝑐 𝑛−2..0 . 210 Theorem A.3.1.Correctness of a constraint system for range checks. #thmrangeconstraints Assume 𝑐0.. 𝑛−1 B[𝑛] and 𝑐𝑛−1 = 1. Define 𝐴𝑚 := ∑︀𝑛−1𝑖=𝑚𝑎𝑖·2 𝑖 and 𝐶𝑚 := ∑︀𝑛−1𝑖=𝑚𝑐𝑖·2 𝑖. For any 𝑚∈{0.. 𝑛−1} , 𝐴𝑚≤𝐶 𝑚 if and only if the restriction of the above constraint system to 𝑖∈{𝑚 .. 𝑛−1} is satisfied. Furthermore the system at least boolean-constrains𝑎 0.. 𝑛−1. Proof. For 𝑖∈{0.. 𝑛−1} such that 𝑐𝑖 = 1, the corresponding 𝑎𝑖 are unconditionally boolean-constrained. This implies that the system constrains Π𝑖∈B for all 𝑖∈{0.. 𝑛−1} . For 𝑖∈{0.. 𝑛−1} such that 𝑐𝑖 = 0, the constraint(︀ 1−Π 𝑖+1−𝑎 𝑖 )︀ (︀ 𝑎𝑖 )︀ = (︀ 0 )︀ constrains 𝑎𝑖 to be 0 if Π𝑖+1 = 1, otherwise it constrains 𝑎𝑖∈B . So all of 𝑎0.. 𝑛−1are at least boolean-constrained. To prove the rest of the theorem we proceed by induction on decreasing 𝑚, i.e. tak
프로젝트로 돌아가기