Deriving

C+ 70 completed
Other
unknown / vlang · tiny
30
Files
3,369
LOC
0
Frameworks
3
Languages

Pipeline State

completed
Run ID
#1157885
Phase
done
Progress
0%
Started
2026-04-15 16:23:46
Finished
2026-04-15 16:23:46
LLM tokens
0

Pipeline Metadata

Stage
Skipped
Decision
skip_scaffold_dup
Novelty
22.57
Framework unique
Isolation
Last stage change
2026-04-16 18:15:42
Deduplication group #47631
Member of a group with 18 similar repo(s) — canonical #1576798 view group →
Generated by Repobility's multi-pass static-analysis pipeline (https://repobility.com)

AI Prompt

Create a library in Coq that provides generic instances for basic MathComp classes for inductive data types, similar to Haskell's `deriving`. The tool should allow users to define instances for types like `foo` and automatically generate necessary definitions, such as `foo_indDef` and `foo_hasDecEq`. I also need to know how to handle predefined instances for `choiceType`, `countType`, `finType`, and `orderType`, and how to derive instances for record types, noting that I might need to generate the induction principle manually.
coq mathcomp library inductive-types generic-programming proof-assistant mathematics
Generated by gemma4:latest

Catalog Information

Create a library in Coq that provides generic instances for basic MathComp classes for inductive data types, similar to Haskell's deriving. The tool should allow users to define instances for types like foo and automatically generate necessary definitions, such as foo_indDef and foo_hasDecEq. I also need to know how to handle predefined instances for choiceType, countType, finType, and orderType, and how to derive instances for record types, noting that I might need to generate t

Tags

coq mathcomp library inductive-types generic-programming proof-assistant mathematics

Quality Score

C+
70.1/100
Structure
76
Code Quality
59
Documentation
38
Testing
85
Practices
78
Security
100
Dependencies
50

Strengths

  • CI/CD pipeline configured (github_actions)
  • Good test coverage (60% test-to-source ratio)
  • Consistent naming conventions (snake_case)
  • Good security practices — no major issues detected
  • Properly licensed project

Weaknesses

  • 1 files with critical complexity need refactoring
  • 102 duplicate lines detected — consider DRY refactoring
  • 2 'god files' with >500 LOC need decomposition

Recommendations

  • Add a linter configuration to enforce code style consistency

Languages

vlang
94.9%
markdown
4.2%
yaml
0.9%

Frameworks

None detected

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/791175.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV