Commit 2026-10-13 14:51 ba9c63d0

View on Github →

refactor(Data): make Set a one-field structure (#41506) Replace

def Set (α : Type u) := α → Prop

with

structure Set (α : Type u) where
  ofPred :: Mem : α → Prop

Generated by Claude Opus. Painfully reviewed and improved line-by-line by myself. Fix #10941 Assisted-by: Claude Opus 4.8

Estimated changes

modified theorem ManyOneDegree.add_of
modified def ManyOneDegree.of
modified theorem ManyOneDegree.of_eq_of
modified theorem ManyOneDegree.of_le_of
modified theorem manyOneReducible_toNat
modified theorem toNat_manyOneEquiv
modified theorem toNat_manyOneReducible
added theorem toNat_nat
added theorem Set.mem_eq_mem
deleted def Set.ofPred
added structure Set
deleted def Set