Skip to content

Commit

Permalink
Update sym.md
Browse files Browse the repository at this point in the history
typos
  • Loading branch information
miguelis authored Jan 16, 2024
1 parent a2fa74b commit 9674469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkdocs/docs/circom-language/formats/sym.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ The format provides a list of lines, where each line contains the information ab
#s, #w, #c, name
```
where
* #s: a positve number. It is the unique number starting in 1 (0 is reserved to the a signal holding the constant value 1) which is assigned by the circom compiler to each signal in the circuit.
* #w: an integer larger than or equal to -1. It gives the either the position in the witness where the signal occurs or -1 if the signal is not occurring in any constraint in the generated R1CS. Note that many signals do not appear in the final R1CS, because they have been replaced by a linear combination of other signals that was equivalent to it. In order to know the substitution applied to a removed signal one can add the flag --simplification_substitution to the circom call and check the generated json file. All witness positions except 0 (which is again reserved to the constant value 1) must occur once in the sym file. The length of the witness coincides with the number of (different) signals occurring in the generated R1CS plus one (for the constant 1).
* #s: a positive number. It is the unique number starting in 1 (0 is reserved to the signal holding the constant value 1) which is assigned by the circom compiler to each signal in the circuit.
* #w: an integer larger than or equal to -1. It gives either the position in the witness where the signal occurs or -1 if the signal is not occurring in any constraint in the generated R1CS. Note that many signals do not appear in the final R1CS, because they have been replaced by a linear combination of other signals that was equivalent to it. In order to know the substitution applied to a removed signal one can add the flag --simplification_substitution to the circom call and check the generated json file. All witness positions except 0 (which is again reserved to the constant value 1) must occur once in the sym file. The length of the witness coincides with the number of (different) signals occurring in the generated R1CS plus one (for the constant 1).
* #c: a non-negative integer (starting in 0). It is the unique number given by the compiler to the component the signal belongs to.
* name: is a string containing the qualified name of the signal (including the complete component path).

Expand Down

0 comments on commit 9674469

Please sign in to comment.