AFTD Auto-Formalizing Theoretical Domains

positive_fibre_three

def

The positive fibre of a function u : OrderedTriple α → ℤˣ on a linearly ordered type α is the function on OrderedTriple (WithTop α) with values in ℤˣ that equals u on triples in α and equals 1 on any triple containing ⊤.

Statement

def positive_fibre_three {α : Type*} [LinearOrder α] (u : OrderedTriple α → ℤˣ) (t : OrderedTriple (WithTop α)) : ℤˣ
Defined in
arXiv:2610.03808 Prop. 6.8
Verified
26 Oct 2026
Axioms
none listed
Built on 3
  • TotalPreorderA total preorder: a preorder where ≤ is total (complete). This is weaker than LinearOrder — it does NOT require antisymmetry or…
  • LinearOrder.toTotalPreorderEvery LinearOrder is a TotalPreorder.
  • OrderedTripleAn ordered triple in a preordered type is a triple of elements (a, b, c) with a < b and b < c.
Used by 1
  • op_518_positive_fibre_adj_of_adjFor every natural number m > 0, and any functions u, v : OrderedTriple (Fin m) → ℤˣ that are rank-3 signotopes whose positive fibres are…

Read back from the Lean

positive_fibre_three defines a function which, given: - a type α with a linear order [LinearOrder α], - a function u : OrderedTriple α → ℤˣ, - a term t : OrderedTriple (WithTop α), produces an element of ℤˣ by pattern matching on t: - if t is of the form ⟨some a, some b, some c, hab, hbc⟩, it returns u ⟨a, b, c, hab', hbc'⟩, where hab' : a < b and hbc' : b < c are obtained from hab and hbc via WithTop.coe_lt_coe.mp; - in all other cases (i.e. where at least one coordinate of t is ⊤), it returns 1 : ℤˣ.

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

/-- The positive fibre embedding of a sign vector into a chirotope on WithTop α, setting all triples containing infinity to 1. -/
def positive_fibre_three {α : Type*} [LinearOrder α] (u : OrderedTriple α → ℤˣ) (t : OrderedTriple (WithTop α)) : ℤˣ :=
  match t with
  | ⟨some a, some b, some c, hab, hbc⟩ =>
    u ⟨a, b, c, WithTop.coe_lt_coe.mp hab, WithTop.coe_lt_coe.mp hbc⟩
  | _ => 1
See it in the graphDiscuss this resultChallenge it