The Zig Programming Language 0.8.1 Documentationconsistent across different build targets. Additionally, inferred error sets are incompatible with recursion. In these situations, it is recommended to use an explicit error set. You can generally start with [N]usize, }; Here, N is the maximum function call depth as determined by call graph analysis. Recursion is ignored and counts for 2. A pointer to StackTrace is passed as a secret parameter to every function back to working order. ## Recursion Recursion is a fundamental tool in modeling software. However it has an often-overlooked problem: unbounded memory allocation. Recursion is an area of active experimentation0 码力 | 234 页 | 6.01 MB | 2 年前3
Theorem Proving in Lean
Release 3.23.0Induction and Recursion ..... 117 8.1 Pattern Matching ..... 117 8.2 Wildcards and Overlapping Patterns ..... 120 8.3 Structural Recursion and Induction ..... 122 8.4 Well-Founded Recursion and Induction Induction ..... 124 8.5 Mutual Recursion ..... 126 8.6 Dependent Pattern Matching ..... 128 8.7 Inaccessible Terms ..... 130 8.8 Match Expressions ..... 131 8.9 Exercises ..... 133 9 Structures that are specified in the definition of the type. The elimination rules provide for a principle of recursion on the type, which includes, as a special case, a principle of induction as well. In the next chapter0 码力 | 173 页 | 777.93 KB | 2 年前3
An Introduction to Leanpurposes of illustration. Having specified this data type, we can go on to define addition by recursion on the second argument: def add : nat → nat → nat | m nat.zero := m | m (nat.succ n) := nat.succ definitions like these down to a single axiomatic primitive that governs use of both induction and recursion on inductively defined structures. The library defines notation for the data type, as well as for associated constructors. • A corresponding eliminator. The latter gives rise to the principles of recursion and induction that we will encounter in the next two chapters. We will not give a precise specification0 码力 | 48 页 | 191.92 KB | 2 年前3
The Lean Reference Manual
Release 3.3.0definition t, then c $ \delta $ -reduces to to t. - $ \iota $ -reduction : When a function defined by recursion on an inductive type is applied to an element given by an explicit constructor, the result $ \iota intended value of the function at constructor $ _{i} $ a b. The eliminator represents a principle of recursion: to construct an element of C x where x : foo a, it suffices to consider each of the cases where functions used by the equation compiler to implement structural recursion • foo.sizeof: a measure which can be used for well-founded recursion Note that it is common to put definitions and theorems related0 码力 | 67 页 | 266.23 KB | 2 年前3
1.6 Go并发编程实践 - 晁岳攀owner int64 recursion int32 } func (m *RecursiveMutex) Lock() { gid := goid.Get() if atomic.LoadInt64(&m.owner) == gid { m.recursion++ return } gid) m.recursion = 1 } func (m *RecursiveMutex) Unlock() { gid := goid.Get() if atomic.LoadInt64(&m.owner) != gid { panic(...) } m.recursion-- if m.recursion != 0 { sync.Mutex token int64 recursion int32 } func (m *TRMutex ) Lock(t int64) { if atomic.LoadInt64(&m.token) == t{ m.recursion++ return } m.Mutex.Lock()0 码力 | 82 页 | 16.62 MB | 1 月前3
Agda User Manual v2.6.4.33.24 Lossy Unification 122 3.25 Mixfix Operators 124 3.26 Module System 127 3.27 Mutual Recursion 133 3.28 Opaque definitions 137 3.29 Pattern Synonyms 141 3.30 Positivity Checking 143 3.31 recursive function like this, Agda performs termination checking on it. This is important to ensure the recursion is well-founded, and hence will not result in an invalid (circular) proof. In this case, the first required to be exactly those given above, for instance, addition and multiplication can be defined by recursion on either argument, and you can swap the arguments to the addition in the recursive case of multiplication0 码力 | 311 页 | 1.38 MB | 2 年前3
Agda User Manual v2.6.4.23.24 Lossy Unification 122 3.25 Mixfix Operators 124 3.26 Module System 127 3.27 Mutual Recursion 133 3.28 Opaque definitions 137 3.29 Pattern Synonyms 141 3.30 Positivity Checking 143 3.31 recursive function like this, Agda performs termination checking on it. This is important to ensure the recursion is well-founded, and hence will not result in an invalid (circular) proof. In this case, the first required to be exactly those given above, for instance, addition and multiplication can be defined by recursion on either argument, and you can swap the arguments to the addition in the recursive case of multiplication0 码力 | 311 页 | 1.38 MB | 2 年前3
Agda User Manual v2.6.43.24 Lossy Unification 123 3.25 Mixfix Operators 125 3.26 Module System 128 3.27 Mutual Recursion 134 3.28 Opaque definitions 138 3.29 Pattern Synonyms 142 3.30 Positivity Checking 144 3.31 recursive function like this, Agda performs termination checking on it. This is important to ensure the recursion is well-founded, and hence will not result in an invalid (circular) proof. In this case, the first required to be exactly those given above, for instance, addition and multiplication can be defined by recursion on either argument, and you can swap the arguments to the addition in the recursive case of multiplication0 码力 | 313 页 | 1.38 MB | 2 年前3
Agda User Manual v2.6.4.13.24 Lossy Unification 122 3.25 Mixfix Operators 124 3.26 Module System 127 3.27 Mutual Recursion 133 3.28 Opaque definitions 136 3.29 Pattern Synonyms 141 3.30 Positivity Checking 142 3.31 recursive function like this, Agda performs termination checking on it. This is important to ensure the recursion is well-founded, and hence will not result in an invalid (circular) proof. In this case, the first required to be exactly those given above, for instance, addition and multiplication can be defined by recursion on either argument, and you can swap the arguments to the addition in the recursive case of multiplication0 码力 | 311 页 | 1.38 MB | 2 年前3
Agda User Manual v2.6.0.1- Literal Overloading - Mixfix Operators - Module System - Mutual Recursion - Pattern Synonyms - Positivity Checking - Postulates - Splitting a program over multiple files • Datatype modules and record modules • Mutual Recursion • Old Syntax: Keyword mutual • Pattern Synonyms • Overloading • Positivity Checking • Syntax Declarations • Telescopes • Termination Checking • Primitive recursion • Structural recursion • With-functions • Pragmas and Options • References • Universe0 码力 | 256 页 | 247.15 KB | 2 年前3
共 785 条
- 1
- 2
- 3
- 4
- 5
- 6
- 79
相关搜索词
AllocatorHeap Allocation FailureRecursionLifetime and OwnershipBuild System定理证明依赖类型理论命题策略定理Leandependent type theorytacticsmetaprogrammingautomationVSCodeEmacstheorempackage managergoroutineMutexChannelhappen-beforeSemaphoreAgdaType CheckingInteractive ModeModulesCommand-Line Options编程语言类型检查语言参考性能调试安装交互模式编译器选项交互式开发Agda编程语言编辑系统文档生成代码示例













