Files
agda-spa/lean/Spa/Interp.lean

21 lines
532 B
Lean4
Raw Normal View History

import Mathlib.Tactic.TypeStar
2026-06-25 15:39:51 -05:00
/-!
Interpretation to a semantic domain.
This file serves to introduce the double-angle-bracket "denotation"
notation by prodiving a class instance `Interp`, whose single
method `interp` is what the double brackets map to. -/
namespace Spa
2026-06-25 15:39:51 -05:00
/-- A type `α` that implements this class has denotation / meaning
in the semantic domain `dom`. -/
class Interp (α : Type*) (dom : outParam Type*) where
interp : α dom
notation:max (priority := high) "" v "" => Interp.interp v
end Spa