Documentation

Projects.Esolangs.AxOrThm.Programs.Semigroup

@[simp]
theorem Esolangs.AxOrThm.Stat.wf_assoc {mul : String} {sign : Signature} [h_mul : sign.Fun mul 2] {d : ℕ} :
WF sign (assoc mul d)
@[simp]
theorem Esolangs.AxOrThm.Stat.depth_assoc {mul : String} {d : ℕ} :
(assoc mul d).depth = d
@[simp]
theorem Esolangs.AxOrThm.Stat.eval_assoc {mul : String} {d : ℕ} {m : ModelRaw} {args : List Type} :
eval m args (assoc mul d) ↔ have f := Map.get! mul m.funs; ∀ a ∈ m.set, ∀ b ∈ m.set, ∀ c ∈ m.set, f [f [a, b], c] = f [a, f [b, c]]
theorem Esolangs.AxOrThm.Stat.eval_assoc_iff_semigroup {mul : String} {sign : Signature} [h_mul : sign.Fun mul 2] {m : ModelRaw} {d : ℕ} (hm : ModelRaw.WF sign m) :
eval m [] (assoc mul d) ↔ IsSemigroup m.set fun (a b : Type) => Map.get! mul m.funs [a, b]