verify

package
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const TestFile = "leanfran_model_test.go"

Variables

This section is empty.

Functions

func ModelModule

func ModelModule(path string) string

Types

type Definition

type Definition struct {
	Model       *Function
	Source      string
	Fallible    bool
	Imports     []string
	TypeImports []string
	Err         error
	// contains filtered or unexported fields
}

func Definitions

func Definitions(models []*Function) []*Definition

func (*Definition) Module

func (d *Definition) Module() string

type Function

type Function struct {
	Package string
	Spec    string
	Needs   string
	Checks  []Predicate
	Decl    *ast.FuncDecl
	Files   *token.FileSet
	Info    *types.Info
	Named   map[string]NamedType
	Err     error
}

func Discover

func Discover(path string, files *token.FileSet, decls []*ast.File) []*Function

func (*Function) Name

func (f *Function) Name() string

type NamedType

type NamedType struct {
	Path, Name, Lean string
	Module           string
	Fields           map[string]string
	Cases            map[string]string
	Constructors     map[string]string
	ZeroCase         string
	Invariants       bool
	Plain            bool
}

type Predicate

type Predicate struct {
	Label string
	Name  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL