1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! The Air trait: the core abstraction for algebraic intermediate representations.
//!
//! An [`Air`] defines a set of columns and transition constraints
//! that must hold at every consecutive row pair of an execution trace.
//! This is the STARK analog of a plonkish-cat gate, operating on
//! trace tables rather than individual wires.
use crateAirExpr;
use crateColumnCount;
use crateError;
use crateTrace;
use Field;
/// An Algebraic Intermediate Representation.
///
/// Defines the **columns** (trace width) and **transition constraints**
/// (polynomial expressions that must be zero at every consecutive
/// row pair) for a provable computation.
///
/// Implementations also provide [`generate_trace`](Air::generate_trace)
/// to compute the execution trace from a given input.
///
/// # Categorical interpretation
///
/// Each `Air` is a morphism in a category where objects are
/// trace shapes ([`ColumnCount`]). Parallel composition of
/// independent AIRs corresponds to the tensor product (column
/// concatenation). This structure is documented here but not
/// encoded at the type level in v0.1; see the machine-cat
/// roadmap for future categorical enforcement.