| CARVIEW |
Select Language
HTTP/2 301
content-length: 0
location: https://github.com/uelis/IntML
strict-transport-security: max-age=31536000; includeSubDomains; preload
HTTP/2 200
date: Mon, 29 Dec 2025 03:52:40 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"3d12f53184b38748510ed051a7711863"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com github.githubassets.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=IZkdNO2edf40u9inVpXw2Mfc%2BPQVqdAO08OKBy6aZN1taH55KLuHaCOQHeYzERhJM3CZuOh3LoSbApbl0iLQxG88IEBjlKj%2FMcM4uO2JveYq9p%2F5AjvkXtcrp4QDG0mOUSflfWmU%2BEXvJY2edBvJ9ZtRmaiWLMX5Qo10d0DPcVhwuHkII7uRFIKBncUvaKKk4r5ebi2%2FRQhBiVJDx5JMxyKfjbAixB61Yqp2mZ5Tn9998u%2FOuP9yvZFv3LW7bMbvlzzdqIKd9Ycw%2FlLWSm5IAA%3D%3D--lREgI09FpJljbgHv--60doOrlINEpG8UBTQqQLPA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1052884018.1766980359; Path=/; Domain=github.com; Expires=Tue, 29 Dec 2026 03:52:39 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 29 Dec 2026 03:52:39 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9ABE:2B1209:571325C:697B1DE:6951FB07
GitHub - uelis/IntML: Experimental IntML-Implementation
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 0
Experimental IntML-Implementation
License
uelis/IntML
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Basic Usage
===========
An intml-file consists of definition of the form:
letw f = working_class_term
letw g = upper_class_terms
See the files in directory Examples/ for syntax and format.
A file containing such definitions can be type-checked using
./intml.native file.intml
The intml-interpreter is then in interactive mode and can be
used to evaluate terms.
Interactive Mode
----------------
Working Class Terms
-------------------
Working class terms can be evaluated directly.
# inl(<>)
: 1 + 'a
= inl(<>)
They can be defined using letw.
# letw pi1 = fun x -> let <x1,x2>=x in x1
pi1 :w 'a * 'b -> 'a
# pi1 <inl(<>),inr(<>)>
: 1 + 'a
= inl(<>)
Upper Class Terms
-----------------
Upper class terms can be defined using letu.
# letu d = fun f -> fun x -> let [v]=x in f [v] [v]
d :u (['a] --> ['a] --> ['b]) --> ['a] --o ['b]
However, they cannot be evaluated directly, as can working
class terms.
For the evaluation of upper class terms one has the following
options:
* Terms f of type [A] can be evaluated using the working-class
construct let [x] = f in x.
# let [x] = d (fun x -> fun y -> x) [inl(<>)] in x
: 1 + 'a
= inl(<>)
* The toplevel gives access to the circuit corresponding to any
working class term. This is available using the #circuit
directive.
The directive
#circuit (upper class term)
displays the type of the circuit for the upper class term.
The directive
#circuit (upper class term) (working class term)
feeds the given working class term to the circuit for the
upper class term and computes the output from the circuit.
Example:
# #circuit d
: 'a * 1 * ('b * 1 + ('c * 1 + 'd)) + (1 * 'a + 1) -> 'a * 1 * ('b
* 'a + ('c * 'a + 1)) + (1 * 1 + 'd)
= functional value
The circuit may thus be sent messages of type
'a * 1 * ('b * 1 + ('c * 1 + 'd)) + (1 * 'a + 1)
and it may answer with messages of type
'a * 1 * ('b * 'a + ('c * 'a + 1)) + (1 * 1 + 'd)
For example, the circuit for d answers the query inr(inr(<>))
with inr(inl(<<>, <>>)).
# #circuit d inr(inr(<>))
: 'a * 1 * ('b * 'a + ('c * 'a + 1)) + (1 * 1 + 'd)
= inr(inl(<<>, <>>))
In the #circuit directive it is also possible to use
complex upper class terms
# #circuit (fun x->let <y,z> = x in let [v]=y in [<v,v>])
: 1 * 1 * ('a + 'b) + 1 -> 1 * 1 * (1 + 'c) + 'a * 'a
= functional value
* Animations for circuit computation can be generated using
the #sim directive. This generates a pdf file with an animation
of circuit computation. It needs graphviz (dot) and pdftk.
For example
# #sim d inr(inr(<>))
generates a file circuit.sim.pdf in the current directory, which
shows the first 10 steps of the computation of cirucit d with input
inr(inr(<>)).
The number of steps can be changed as follows:
# #simlength 20
About
Experimental IntML-Implementation
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
You can’t perform that action at this time.