Enum folding::expressions::FoldingExp
source · pub enum FoldingExp<C: FoldingConfig> {
Atom(ExtendedFoldingColumn<C>),
Pow(Box<Self>, u64),
Add(Box<Self>, Box<Self>),
Mul(Box<Self>, Box<Self>),
Sub(Box<Self>, Box<Self>),
Double(Box<Self>),
Square(Box<Self>),
}
Expand description
Internal expression used for folding. A “folding” expression is a multivariate polynomial like defined in kimchi::circuits::expr with the following differences.
- No constructors related to zero-knowledge or lagrange basis (i.e. no constructors related to the PIOP)
- The variables includes a set of columns that describes the initial circuit shape, with additional columns strictly related to the folding scheme (error term, etc).
Variants§
Atom(ExtendedFoldingColumn<C>)
Pow(Box<Self>, u64)
Add(Box<Self>, Box<Self>)
Mul(Box<Self>, Box<Self>)
Sub(Box<Self>, Box<Self>)
Double(Box<Self>)
Square(Box<Self>)
Implementations§
source§impl<C: FoldingConfig> FoldingExp<C>
impl<C: FoldingConfig> FoldingExp<C>
Trait Implementations§
source§impl<C: FoldingConfig> Add<FoldingExp<C>> for FoldingExp<C>
impl<C: FoldingConfig> Add<FoldingExp<C>> for FoldingExp<C>
source§impl<C> Clone for FoldingExp<C>where
C: FoldingConfig,
impl<C> Clone for FoldingExp<C>where C: FoldingConfig,
source§impl<C> Debug for FoldingExp<C>where
C: FoldingConfig,
impl<C> Debug for FoldingExp<C>where C: FoldingConfig,
source§impl<C> Hash for FoldingExp<C>where
C: FoldingConfig,
impl<C> Hash for FoldingExp<C>where C: FoldingConfig,
source§impl<C: FoldingConfig> Mul<FoldingExp<C>> for FoldingExp<C>
impl<C: FoldingConfig> Mul<FoldingExp<C>> for FoldingExp<C>
source§impl<C> PartialEq<FoldingExp<C>> for FoldingExp<C>where
C: FoldingConfig,
impl<C> PartialEq<FoldingExp<C>> for FoldingExp<C>where C: FoldingConfig,
source§impl<C: FoldingConfig> Sub<FoldingExp<C>> for FoldingExp<C>
impl<C: FoldingConfig> Sub<FoldingExp<C>> for FoldingExp<C>
impl<C> Eq for FoldingExp<C>where C: FoldingConfig,
Auto Trait Implementations§
impl<C> RefUnwindSafe for FoldingExp<C>where <C as FoldingConfig>::Challenge: RefUnwindSafe, <C as FoldingConfig>::Column: RefUnwindSafe, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField: RefUnwindSafe, <C as FoldingConfig>::Selector: RefUnwindSafe,
impl<C> Send for FoldingExp<C>where <C as FoldingConfig>::Challenge: Send, <C as FoldingConfig>::Column: Send, <C as FoldingConfig>::Selector: Send,
impl<C> Sync for FoldingExp<C>where <C as FoldingConfig>::Challenge: Sync, <C as FoldingConfig>::Column: Sync, <C as FoldingConfig>::Selector: Sync,
impl<C> Unpin for FoldingExp<C>where <C as FoldingConfig>::Challenge: Unpin, <C as FoldingConfig>::Column: Unpin, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField: Unpin, <C as FoldingConfig>::Selector: Unpin,
impl<C> UnwindSafe for FoldingExp<C>where <C as FoldingConfig>::Challenge: UnwindSafe, <C as FoldingConfig>::Column: UnwindSafe, <<C as FoldingConfig>::Curve as AffineRepr>::ScalarField: UnwindSafe, <C as FoldingConfig>::Selector: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more