Skip to main content

StructuralBound

Struct StructuralBound 

Source
pub struct StructuralBound {
    pub num_vars: usize,
    pub whole: DescriptionBound,
    pub rep: DescriptionBound,
    pub gens: DescriptionBound,
    pub group_entropy_bits: f64,
}
Expand description

A certified statement that F is described by an orbit-representative set plus automorphism generators — with all three description lengths, the group-entropy, and a self-contained decode witness. StructuralBound::verify re-derives F, rep, and the generators from the three descriptors and confirms the generators are automorphisms and that expanding rep by the group they generate reproduces F exactly.

Fields§

§num_vars: usize

The number of Boolean variables F is defined over.

§whole: DescriptionBound

K̄(F): the flat description of the whole formula.

§rep: DescriptionBound

K̄(rep): the description of one clause per orbit.

§gens: DescriptionBound

K̄(gens): the description of the automorphism generators.

§group_entropy_bits: f64

log₂|Aut(F)| — the bits of symmetry the group compresses out.

Implementations§

Source§

impl StructuralBound

Source

pub fn group_bytes(&self) -> usize

The group description length: K̄(rep) + K̄(gens) + O(1).

Source

pub fn is_compression(&self) -> bool

Whether the group description is strictly shorter than the flat one — a certified compression by symmetry. (When it is not, we honestly report the flat encoding as the better bound.)

Source

pub fn best_bytes(&self) -> usize

The best certified upper bound on K(F): the smaller of the flat and group descriptions.

Source

pub fn verify(&self) -> bool

Re-check the whole certificate from scratch, trusting nothing the producer computed: (1) all three decode witnesses round-trip; (2) every recovered generator is a genuine automorphism of the recovered F; (3) expanding rep by the group the generators generate reproduces F exactly (so rep + gens is a complete description).

Trait Implementations§

Source§

impl Clone for StructuralBound

Source§

fn clone(&self) -> StructuralBound

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StructuralBound

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.