MathLogic is a knowledge-centric educational platform designed to help learners understand mathematical problem-solving methods rather than memorize solutions.
The system focuses on representing:
- Concepts
- Methods
- Procedural Steps
- Examples
- Learning Paths
- Progress Tracking
The objective is to create a structured educational knowledge system capable of supporting thousands of learners while maintaining clear separation between educational content, learning workflows, and platform infrastructure.
Traditional learning platforms suffer from several limitations:
Most platforms store:
- PDFs
- Videos
- Notes
- Question Banks
but do not explicitly model:
- Problem-solving procedures
- Learning dependencies
- Method relationships
The same concept often appears:
Chapter
↓
Notes
↓
Examples
↓
Assignments
↓
Exams
with duplicated explanations.
Most systems measure:
Video Watched
rather than:
Method Understood
The platform should:
- Store educational knowledge
- Organize methods
- Organize procedural steps
- Track learner progress
- Support curriculum mapping
- Support reusable content structures
- High Read Performance
- Maintainability
- Extensibility
- Scalability
- Reliability
User
│
▼
React Frontend
│
▼
API Layer
│
┌─────────┴─────────┐
▼ ▼
PostgreSQL Auth Service
Knowledge Store Supabase
The system follows a layered architecture.
Each layer has a single responsibility.
Technology:
- React
- Vite
Responsibilities:
- User Interface
- Progress Visualization
- Learning Navigation
- Content Rendering
The frontend should remain stateless wherever possible.
Business logic should not be tightly coupled to UI components.
Purpose:
Acts as the communication boundary between frontend and backend.
Responsibilities:
- Data Retrieval
- Progress Updates
- Search
- Recommendations
Future implementations may use:
- Spring Boot
- Node.js
- Supabase Edge Functions
Technology:
- PostgreSQL
Responsibilities:
- Store educational entities
- Store relationships
- Store progress data
The database acts as the source of truth.
Technology:
- Supabase Auth
Responsibilities:
- User Identity
- Session Management
- Access Control
Authentication remains independent of educational content.
The system models knowledge as structured relationships.
Regulation
↓
Subject
↓
Unit
↓
Topic
↓
Method
↓
Step
↓
Example
This hierarchy becomes the foundation of all educational workflows.
User
↓
Select Subject
↓
View Units
↓
View Topics
↓
View Methods
↓
Start Learning
Topic
↓
Method
↓
Step 1
↓
Step 2
↓
Step 3
↓
Example
↓
Completion
This transforms learning into a measurable sequence.
User
↓
Complete Step
↓
Update Progress
↓
Recalculate Method Completion
↓
Recalculate Topic Completion
↓
Update Dashboard
Progress propagates upward through the hierarchy.
Expected usage pattern:
Read Operations
≈ 95%
Write Operations
≈ 5%
Examples:
Read:
- Open Topic
- Open Method
- Open Example
Write:
- Update Progress
- Create Content
This heavily influences system design decisions.
Expected Users:
0 → 1,000
Architecture:
React
↓
Supabase
↓
PostgreSQL
Single database is sufficient.
Expected Users:
1,000 → 50,000
Introduce:
- Query Optimization
- Indexing
- API Caching
Expected Users:
50,000+
Introduce:
- CDN
- Search Engine
- Materialized Views
- Read Replicas
Most common query:
Get Methods For TopicIndex:
topic_idCommon query:
Get Progress For UserIndex:
user_idCommon query:
Get Topics For SubjectIndex:
subject_idEducational content changes infrequently.
Example:
Laplace Transform Method
may remain unchanged for months.
Repeated database reads become wasteful.
Highly Cacheable:
- Topics
- Methods
- Examples
- Learning Paths
Less Cacheable:
- User Progress
- Recommendations
Future search functionality.
Topic Name
Method Name
Keyword
Concept
User Query
↓
Search Service
↓
Knowledge Retrieval
↓
Rank Results
↓
Display Results
Future implementation may use:
- PostgreSQL Full Text Search
- Elasticsearch
- Vector Search
Future feature.
Purpose:
Help learners determine:
What should I learn next?
User Progress
↓
Completed Topics
↓
Dependency Analysis
↓
Generate Recommendations
↓
Display Learning Path
Example:
Matrices
↓
Determinants
↓
Eigenvalues
↓
Eigenvectors
The graph allows the system to generate progression recommendations.
Future analytics include:
- Topic Completion Rate
- Method Completion Rate
- Average Learning Time
- Most Difficult Topics
- Most Effective Methods
The system must ensure:
Progress updates must never be partially applied.
Use transactions.
User progress must always belong to the correct user.
Use secure identity management.
Methods and examples should remain version-controlled.
Future versions may introduce content versioning.
Supabase Auth
Users may:
- Read Public Content
- Modify Only Their Progress
Never expose:
- Internal identifiers
- Administrative controls
- Direct database access
Knowledge Repository
Progress Tracking
Recommendation Engine
Adaptive Learning
Cross-Domain Learning Network
Potential domains:
- Mathematics
- Physics
- Programming
- Control Systems
- Algorithms
Chosen because:
Topic → Method
Method → Step
User → Progress
are relationship-heavy structures.
A relational model provides:
- Integrity
- Query Flexibility
- Consistency
Because educational success often depends on:
Knowing the Procedure
rather than:
Knowing the Definition
The architecture therefore elevates methods into primary system entities.
MathLogic is designed as a structured knowledge platform rather than a traditional content platform.
Its system design prioritizes:
- Knowledge Representation
- Procedural Learning
- Relationship Modeling
- Progress Measurement
- Scalable Educational Workflows
The long-term vision is to transform educational content into a navigable knowledge network that helps learners understand not only what a concept is, but how it is applied, when it should be used, and what should be learned next.