Skip to content

Commit

Permalink
Documentation fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ztangent committed Apr 28, 2024
1 parent da6f900 commit bb8cf9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions docs/src/ref/absint.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Abstract Interpretation

PDDL.jl supports [abstract interpretation](https://en.wikipedia.org/wiki/Abstract_interpretation) of PDDL domains, the semantics of which can also be compiled using the [PDDL.jl compiler](compiler.md). This functionality is exposed by the [`abstracted`](@ref) and [`abstractstate`](@ref) functions:
PDDL.jl supports [abstract interpretation](https://en.wikipedia.org/wiki/Abstract_interpretation) of PDDL domains. This functionality is exposed by the [`abstracted`](@ref) and [`abstractstate`](@ref) functions:

```@docs
abstracted
Expand All @@ -10,7 +10,14 @@ abstractstate
The behavior of the abstract interpreter can be customized by specifying the Julia type used to represent abstract values for a particular fluent or PDDL type:

```@docs
PDDL.AbstractInterpeter
PDDL.AbstractInterpreter
```

Abstract semantics can also be compiled by calling [`compiled`](@ref) on an abstracted domain and state:

```julia
domain, state = abstracted(domain, state)
domain, state = compiled(domain, state)
```

## Abstract Values and Types
Expand All @@ -21,4 +28,4 @@ Abstract interpretation requires each concrete value to be mapped to an abstract
PDDL.BooleanAbs
PDDL.IntervalAbs
PDDL.SetAbs
```
```
2 changes: 1 addition & 1 deletion src/interpreter/abstract/abstract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ abstracted(domain::GenericDomain, problem::GenericProblem) =
"""
abstractstate(domain, state)
Construct a state in an abstract `domain` from a concrete `state.
Construct a state in an abstract `domain` from a concrete `state`.
"""
function abstractstate(domain::AbstractedDomain, state::GenericState)
# Copy over facts
Expand Down

0 comments on commit bb8cf9c

Please sign in to comment.