Sinks and sources are gregarious
ProvedBalancedAlgebra.gregarious_of_source_or_sinkCall gregarious when, for all and such that and are both defined, at least one of , is defined. A left unit is a source when is defined only for , and a right unit is a sink when is defined only for .
The manuscript records this for an arbitrary algebra: no balance and no associativity is used. The two verifications are the ones given in §4.2 — for a source, the left factor is forced to be itself, and for a sink the right factor is forced to be itself, and in both cases the product collapses to one already known to be defined.
import Definitions.Def_BalancedAlgebra_core
namespace BalancedAlgebra
open PartialAlgebra
theorem gregarious_of_source_or_sink {A : Type*} (P : PartialAlgebra A) (x : A)
(hx : P.IsSource x ∨ P.IsSink x) : P.Gregarious x := by sorry
end BalancedAlgebraRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal owner. It was not produced blind by an independent auditor, so it cannot be used as independent evidence that the formalization is faithful; a reviewer comparing it against the source should keep in mind that both texts come from the same author.
Fix a type , a partial algebra on , and an element . The hypothesis is a disjunction: either is a source or is a sink.
- is a source means: is a left unit (every defined product has value ), and for every with defined one has .
- is a sink means: is a right unit (every defined product has value ), and for every with defined one has .
The conclusion is that is gregarious: for all , if is defined and is defined, then at least one of and is defined. This is an inclusive disjunction concerning definedness only; no value is claimed, and the two products are not asserted to be equal.
Nothing is assumed about the ambient algebra — in particular neither balance nor associativity. The hypothesis is satisfiable (in the one-element algebra whose single product is defined, that element is both a source and a sink), so the statement is not vacuous.
Confirmed by the mission captain (proposal self-audit).