gaia.core.kan_verification module
Module: kan_verification Implements Kan complex conditions verification for GAIA framework.
Following Section 3.2 of the theoretical framework, this implements: 1. Kan complex conditions verification 2. Horn filling algorithm robustness checks 3. Lifting property verification 4. Fibration conditions 5. Homotopy extension properties
This ensures that the simplicial structure satisfies the necessary categorical conditions for proper horn extension and lifting problems.
- class gaia.core.kan_verification.KanConditionType(value)[source]
Bases:
Enum
Types of Kan conditions to verify.
- INNER_HORN_FILLING = 'inner_horn_filling'
- OUTER_HORN_FILLING = 'outer_horn_filling'
- LIFTING_PROPERTY = 'lifting_property'
- FIBRATION_CONDITION = 'fibration_condition'
- HOMOTOPY_EXTENSION = 'homotopy_extension'
- classmethod __contains__(member)
Return True if member is a member of this enum raises TypeError if member is not an enum member
note: in 3.12 TypeError will no longer be raised, and True will also be returned if member is the value of a member in this enum
- classmethod __getitem__(name)
Return the member matching name.
- classmethod __iter__()
Return members in definition order.
- classmethod __len__()
Return the number of members (no aliases)
- class gaia.core.kan_verification.KanConditionResult(condition_type, simplex_id, simplex_name, horn_index, satisfied, confidence, error_message=None, verification_data=<factory>)[source]
Bases:
object
Result of a Kan condition verification.
- condition_type: KanConditionType
- __init__(condition_type, simplex_id, simplex_name, horn_index, satisfied, confidence, error_message=None, verification_data=<factory>)
- class gaia.core.kan_verification.HornFillingVerifier(simplicial_functor)[source]
Bases:
object
Verifies horn filling conditions for inner and outer horns.
This checks that horn filling algorithms can successfully complete partial simplicial structures.
- verify_inner_horn_filling(simplex_id, horn_index, tolerance=1e-3)[source]
Verify that inner horn Λⁿₖ (1 ≤ k ≤ n-1) can be filled.
- Parameters:
- Returns:
Verification result
- Return type:
- class gaia.core.kan_verification.LiftingPropertyVerifier(simplicial_functor)[source]
Bases:
object
Verifies lifting properties for fibrations and cofibrations.
This checks the homotopy lifting property and other categorical lifting conditions.
- class gaia.core.kan_verification.FibrationVerifier(simplicial_functor)[source]
Bases:
object
Verifies fibration conditions for simplicial maps.
This checks if maps between simplicial sets satisfy the fibration property.
- class gaia.core.kan_verification.KanComplexVerifier(simplicial_functor)[source]
Bases:
object
Complete Kan complex verification system.
This orchestrates all Kan condition verifications and provides a comprehensive assessment of the simplicial structure.