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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Copyright 2019-2026 Apilium Technologies OÜ. All rights reserved.
// SPDX-License-Identifier: Apache-2.0 OR Commercial
//! AIngle Logic - Proof-of-Logic Validation Engine
//!
//! This crate provides logical reasoning and validation for semantic graphs.
//! Unlike traditional blockchain consensus that only validates cryptographic
//! signatures, Proof-of-Logic validates the logical consistency of data.
//!
//! # Architecture
//!
//! ```text
//! ┌─────────────────────────────────────────────────────────────┐
//! │ Proof-of-Logic Engine │
//! ├─────────────────────────────────────────────────────────────┤
//! │ │
//! │ ┌──────────────────────────────────────────────────────┐ │
//! │ │ Rule Engine │ │
//! │ │ Forward Chaining │ Backward Chaining │ Unification │ │
//! │ └──────────────────────────────────────────────────────┘ │
//! │ │ │
//! │ ┌──────────────────────────────────────────────────────┐ │
//! │ │ Rule Types │ │
//! │ │ Integrity │ Authority │ Temporal │ Inference │ │
//! │ └──────────────────────────────────────────────────────┘ │
//! │ │ │
//! │ ┌──────────────────────────────────────────────────────┐ │
//! │ │ Validator │ │
//! │ │ Contradiction Detection │ Proof Generation │ │
//! │ └──────────────────────────────────────────────────────┘ │
//! │ │
//! └─────────────────────────────────────────────────────────────┘
//! ```
//!
//! # Example
//!
//! ```rust,ignore
//! use aingle_logic::{RuleEngine, Rule, BuiltinRules};
//! use aingle_graph::{Triple, NodeId, Predicate, Value};
//!
//! // Create a rule engine with built-in rules
//! let mut engine = RuleEngine::with_rules(BuiltinRules::minimal());
//!
//! // Validate a triple
//! let triple = Triple::new(
//! NodeId::named("alice"),
//! Predicate::named("knows"),
//! Value::Node(NodeId::named("bob")),
//! );
//!
//! let result = engine.validate(&triple);
//! assert!(result.is_valid());
//! ```
// Re-exports
pub use BuiltinRules;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
/// Version information
pub const VERSION: &str = env!;