AFTD Auto-Formalizing Theoretical Domains

is_child_of

def

For a finite type α with decidable equality and ordered set partitions a and b of α, b is a child of a (is_child_of b a) if there exists an index t with t + 1 < b.blocks.length such that a.blocks is obtained by merging adjacent blocks of b.blocks at index t.

Statement

def is_child_of {α : Type*} [DecidableEq α] [Fintype α]
    (b : OrderedSetPartition α) (a : OrderedSetPartition α) : Prop
Defined in
arXiv:2611.34537 Section 1
Verified
27 Nov 2026
Axioms
none listed
Built on 2
  • OrderedSetPartitionFor a finite type α equipped with [DecidableEq α] and [Fintype α], an ordered set partition of α is a structure with fields: blocks, a…
  • merge_adjacent_blocksFor a type α with [DecidableEq α], a list of finite sets l : List (Finset α), and an index t : ℕ, merge_adjacent_blocks l t replaces the…

Read back from the Lean

Given a type α equipped with [DecidableEq α] and [Fintype α], and two ordered set partitions b and a of α (each consisting of a list of nonempty, pairwise disjoint finsets whose union is Finset.univ), is_child_of b a is the proposition that there exists a natural number t such that: 1. t + 1 < b.blocks.length (so t and t + 1 are valid adjacent indices in b.blocks), and 2. a.blocks is equal to merge_adjacent_blocks b.blocks t.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- An element b is a child of a if a is obtained by merging two adjacent blocks of b. -/
def is_child_of {α : Type*} [DecidableEq α] [Fintype α]
    (b : OrderedSetPartition α) (a : OrderedSetPartition α) : Prop :=
  ∃ t : ℕ, t + 1 < b.blocks.length ∧ a.blocks = merge_adjacent_blocks b.blocks t
See it in the graphDiscuss this resultChallenge it