AFTD Auto-Formalizing Theoretical Domains

word_a_gaps_mask

def

The masked 'a'-gap profile of w under mask M: for each gap of w, the pair (number of false-labelled copies of a in it, number of true-labelled copies of a in it).

Statement

def word_a_gaps_mask {α : Type*} [DecidableEq α] (a : α) (w : List α) (M : List Bool) : List (ℕ × ℕ)
Source
step towards word_unary_inserted_block_exchange_exact
Verified
07 Nov 2026
Axioms
none listed
Built on 1
  • word_a_gaps_mask_auxAuxiliary version of the masked gap profile: scanning letter/mask-label pairs, accumulating for the current gap the number of…

Lean source view module on GitHub

def word_a_gaps_mask {α : Type*} [DecidableEq α] (a : α) (w : List α) (M : List Bool) : List (ℕ × ℕ) := word_a_gaps_mask_aux a 0 0 (w.zip M)
See it in the graphDiscuss this resultChallenge it