-
Notifications
You must be signed in to change notification settings - Fork 0
/
Agda.Builtin.FromNat.html
19 lines (14 loc) · 3.98 KB
/
Agda.Builtin.FromNat.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE HTML>
<html><head><meta charset="utf-8"><title>Agda.Builtin.FromNat</title><link rel="stylesheet" href="Agda.css"></head><body><pre class="Agda"><a id="1" class="Symbol">{-#</a> <a id="5" class="Keyword">OPTIONS</a> <a id="13" class="Pragma">--without-K</a> <a id="25" class="Pragma">--safe</a> <a id="32" class="Pragma">--no-sized-types</a> <a id="49" class="Pragma">--no-guardedness</a>
<a id="78" class="Pragma">--no-subtyping</a> <a id="93" class="Symbol">#-}</a>
<a id="98" class="Keyword">module</a> <a id="105" href="Agda.Builtin.FromNat.html" class="Module">Agda.Builtin.FromNat</a> <a id="126" class="Keyword">where</a>
<a id="133" class="Keyword">open</a> <a id="138" class="Keyword">import</a> <a id="145" href="Agda.Primitive.html" class="Module">Agda.Primitive</a>
<a id="160" class="Keyword">open</a> <a id="165" class="Keyword">import</a> <a id="172" href="Agda.Builtin.Nat.html" class="Module">Agda.Builtin.Nat</a>
<a id="190" class="Keyword">record</a> <a id="Number"></a><a id="197" href="Agda.Builtin.FromNat.html#197" class="Record">Number</a> <a id="204" class="Symbol">{</a><a id="205" href="Agda.Builtin.FromNat.html#205" class="Bound">a</a><a id="206" class="Symbol">}</a> <a id="208" class="Symbol">(</a><a id="209" href="Agda.Builtin.FromNat.html#209" class="Bound">A</a> <a id="211" class="Symbol">:</a> <a id="213" href="Agda.Primitive.html#326" class="Primitive">Set</a> <a id="217" href="Agda.Builtin.FromNat.html#205" class="Bound">a</a><a id="218" class="Symbol">)</a> <a id="220" class="Symbol">:</a> <a id="222" href="Agda.Primitive.html#326" class="Primitive">Set</a> <a id="226" class="Symbol">(</a><a id="227" href="Agda.Primitive.html#780" class="Primitive">lsuc</a> <a id="232" href="Agda.Builtin.FromNat.html#205" class="Bound">a</a><a id="233" class="Symbol">)</a> <a id="235" class="Keyword">where</a>
<a id="243" class="Keyword">field</a>
<a id="Number.Constraint"></a><a id="253" href="Agda.Builtin.FromNat.html#253" class="Field">Constraint</a> <a id="264" class="Symbol">:</a> <a id="266" href="Agda.Builtin.Nat.html#192" class="Datatype">Nat</a> <a id="270" class="Symbol">→</a> <a id="272" href="Agda.Primitive.html#326" class="Primitive">Set</a> <a id="276" href="Agda.Builtin.FromNat.html#205" class="Bound">a</a>
<a id="Number.fromNat"></a><a id="282" href="Agda.Builtin.FromNat.html#282" class="Field">fromNat</a> <a id="290" class="Symbol">:</a> <a id="292" class="Symbol">∀</a> <a id="294" href="Agda.Builtin.FromNat.html#294" class="Bound">n</a> <a id="296" class="Symbol">→</a> <a id="298" class="Symbol">{{</a><a id="300" href="Agda.Builtin.FromNat.html#300" class="Bound">_</a> <a id="302" class="Symbol">:</a> <a id="304" href="Agda.Builtin.FromNat.html#253" class="Field">Constraint</a> <a id="315" href="Agda.Builtin.FromNat.html#294" class="Bound">n</a><a id="316" class="Symbol">}}</a> <a id="319" class="Symbol">→</a> <a id="321" href="Agda.Builtin.FromNat.html#209" class="Bound">A</a>
<a id="324" class="Keyword">open</a> <a id="329" href="Agda.Builtin.FromNat.html#197" class="Module">Number</a> <a id="336" class="Symbol">{{...}}</a> <a id="344" class="Keyword">public</a> <a id="351" class="Keyword">using</a> <a id="357" class="Symbol">(</a><a id="358" href="Agda.Builtin.FromNat.html#282" class="Field">fromNat</a><a id="365" class="Symbol">)</a>
<a id="368" class="Symbol">{-#</a> <a id="372" class="Keyword">BUILTIN</a> <a id="380" class="Keyword">FROMNAT</a> <a id="388" href="Agda.Builtin.FromNat.html#282" class="Field">fromNat</a> <a id="396" class="Symbol">#-}</a>
<a id="400" class="Symbol">{-#</a> <a id="404" class="Keyword">DISPLAY</a> <a id="412" href="Agda.Builtin.FromNat.html#282" class="Field">Number.fromNat</a> <a id="427" class="Pragma">_</a> <a id="429" href="Agda.Builtin.FromNat.html#429" class="Bound">n</a> <a id="431" class="Pragma">=</a> <a id="433" href="Agda.Builtin.FromNat.html#282" class="Field">fromNat</a> <a id="441" href="Agda.Builtin.FromNat.html#429" class="Bound">n</a> <a id="443" class="Symbol">#-}</a>
</pre></body></html>