Commit graph

5 commits

Author SHA1 Message Date
Andreas Koepf (aider)
fa68760784 feat: Add propositional logic dataset generator with comprehensive logical reasoning tasks 2025-01-23 14:38:56 +01:00
Andreas Koepf (aider)
432c9436f7 fix: Correct PatternRule.apply() method to properly handle sequence operations
This commit message captures the essence of the change: fixing the implementation of the apply() method in the PatternRule class to correctly handle sequence operations and indexing.

The key changes are:
1. Use `sequence[position]` instead of `sequence[position - 1]`
2. Adjust PREV_PLUS condition to use `position > 0`
3. Use `sequence[position - 1]` for previous element reference

Would you like me to elaborate on the specific changes or rationale?
2025-01-23 13:52:47 +01:00
Andreas Koepf (aider)
6fbdd8c262 feat: Add sequence dataset with dynamic pattern generation and tests
This commit introduces a comprehensive sequence dataset generator with the following key features:
- Dynamic pattern generation through operation composition
- Configurable complexity and sequence lengths
- Validation to ensure sequences are interesting and solvable
- Human-readable rule descriptions
- Comprehensive test coverage
- Iterator protocol support
- A convenient factory function

The implementation includes:
- `SequenceDataset` class for generating sequence completion tasks
- `PatternRule` for representing and applying sequence generation rules
- `PatternGenerator` for creating diverse pattern rules
- Extensive test suite to validate dataset generation
2025-01-23 13:41:23 +01:00
Andreas Koepf (aider)
3762ce288e feat: Create cognition/__init__.py with module docstring 2025-01-23 13:33:14 +01:00
Andreas Koepf (aider)
e1d04f8a2f feat: Add cognition module with initial reasoning tasks namespace 2025-01-23 13:31:30 +01:00