Download rust/crates/hyperkitty-runtime/src/proof.rs from Snapkitty/hyperkitty-constraint-dsl: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/Snapkitty/hyperkitty-constraint-dsl/resolve/main/rust/crates/hyperkitty-runtime/src/proof.rs
- Command line
-
hf download hf://Snapkitty/hyperkitty-constraint-dsl/rust/crates/hyperkitty-runtime/src/proof.rs
-
curl -L -o proof.rs https://huggingface.co/Snapkitty/hyperkitty-constraint-dsl/resolve/main/rust/crates/hyperkitty-runtime/src/proof.rs
626 Bytes
| pub struct ProofObligation { | |
| pub id: hyperkitty_core::ProofId, | |
| pub predicate: String, | |
| } | |
| impl ProofObligation { | |
| pub fn new(predicate: String) -> Self { | |
| Self { id: hyperkitty_core::ProofId::new(vec![]), predicate } | |
| } | |
| pub fn verify(&self, _world: &crate::WorldState) -> bool { true } | |
| } | |
| pub struct ProofCertificate { | |
| pub obligation_id: hyperkitty_core::ProofId, | |
| pub satisfied: bool, | |
| } | |
| impl ProofCertificate { | |
| pub fn new(obligation_id: hyperkitty_core::ProofId, satisfied: bool) -> Self { | |
| Self { obligation_id, satisfied } | |
| } | |
| } | |