Can you define inductive data types over categories other than Set?
Statement
Can you define inductive data types over categories other than ?
What does it look like? How about for a specific example like the category of monoids? If you were clever could you write a macro for inductive types other than over ?
Silly Coq like pseudocode here
[code] Background
I was learning about well founded recursion again.
For the least upper bound of an endofunctor from to we have a mapping.
And a fold
Many theorem provers provide a more pleasing built-in syntax for declaring inductive types. A simple list in Coq for example.
[code] As I understand things this example could be viewed as defining the least upper bound of the fixed point of for within the category of .
Because these sort of inductive types take the fixed point of an endofunctor on they are required to be strictly positive and not recurse contravariantly. If these types weren't strictly positive they wouldn't …
Posed by user103478 · ct.category-theory, induction
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-383471.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-383471.lean
import Mathlib /-! # Can you define inductive data types over categories other than Set? Source: https://mathoverflow.net/questions/383471 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_383471 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_383471