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 for FoldingExp<C>
impl<C: FoldingConfig> Add 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 for FoldingExp<C>
impl<C: FoldingConfig> Mul for FoldingExp<C>
Source§impl<C> PartialEq for FoldingExp<C>where
C: FoldingConfig,
impl<C> PartialEq for FoldingExp<C>where
C: FoldingConfig,
Source§impl<C: FoldingConfig> Sub for FoldingExp<C>
impl<C: FoldingConfig> Sub for FoldingExp<C>
impl<C> Eq for FoldingExp<C>where
C: FoldingConfig,
Auto Trait Implementations§
impl<C> Freeze for FoldingExp<C>where
<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField: Freeze,
<C as FoldingConfig>::Challenge: Freeze,
<C as FoldingConfig>::Selector: Freeze,
<C as FoldingConfig>::Column: Freeze,
impl<C> RefUnwindSafe for FoldingExp<C>where
<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField: RefUnwindSafe,
<C as FoldingConfig>::Challenge: RefUnwindSafe,
<C as FoldingConfig>::Selector: RefUnwindSafe,
<C as FoldingConfig>::Column: RefUnwindSafe,
impl<C> Send for FoldingExp<C>where
<C as FoldingConfig>::Challenge: Send,
<C as FoldingConfig>::Selector: Send,
<C as FoldingConfig>::Column: Send,
impl<C> Sync for FoldingExp<C>where
<C as FoldingConfig>::Challenge: Sync,
<C as FoldingConfig>::Selector: Sync,
<C as FoldingConfig>::Column: Sync,
impl<C> Unpin for FoldingExp<C>where
<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField: Unpin,
<C as FoldingConfig>::Challenge: Unpin,
<C as FoldingConfig>::Selector: Unpin,
<C as FoldingConfig>::Column: Unpin,
impl<C> UnwindSafe for FoldingExp<C>where
<<C as FoldingConfig>::Curve as AffineRepr>::ScalarField: UnwindSafe,
<C as FoldingConfig>::Challenge: UnwindSafe,
<C as FoldingConfig>::Selector: UnwindSafe,
<C as FoldingConfig>::Column: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more