blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03710a712397afa64b15fa65ed450a5c27af9c8c | fa13c1c721affe5edc1a2bb53016ee9791ed3b8d | /src/lists-exercises.lean | c852920e3d502652f1ad940a0cf7159d50132e4c | [] | no_license | bbencina/Logic_lean_lists | 4068cd202f9e4522dc21f9b53a9e2efc7fd53a62 | 1ed3acae62ce760f59d25c533778b9065ce1ce17 | refs/heads/master | 1,665,321,993,633 | 1,591,791,469,000 | 1,591,791,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,997 | lean | /- This is a short tutorial on lean for the Logic in Computer Science course at the university
of Ljubljana. -/
namespace logika_v_racunalnistvu
/- Definitions of inductive types are made using the inductive keyword. Different constructors
are separated by |. -/
inductive list (A : Type) : Type
| nil : list
| co... |
ad150017ddc9d7be4c3cfd1610098b6736a09879 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/combinatorics/pigeonhole.lean | c3b26ed38bac7d2d64055bc0abb7cb04fa85cd12 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 19,346 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller, Yury Kudryashov
-/
import data.set.finite
import data.nat.modeq
import algebra.big_operators.order
/-!
# Pigeonhole principles
Given pigeons (possibly infinitely many) in p... |
0a679d7048455dce5ff8692b71248a25f3e652c7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/group/with_one/basic.lean | 303a93390afdaac535cc1162b6f80ee90c1b2e13 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,278 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johan Commelin
-/
import algebra.group.with_one.defs
import algebra.hom.equiv.basic
/-!
# More operations on `with_one` and `with_zero`
> THIS FILE IS SYNCHRONIZED WI... |
64d7c40a839e36a6bdf17206cd1b0b402914afac | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/support.lean | 07661bf500dbc37ef1d84f4de5081f79e967b8a6 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 12,393 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import order.conditionally_complete_lattice
import algebra.big_operators.basic
import algebra.group.prod
import algebra.group.pi
import algebra.module.pi
/-!
# Sup... |
cec24054f44c6f72614da911d8cde00c38a0ee71 | 928e43dd755d83a0986ba91420df8ad05b8d7c9f | /3_propositions.lean | 76a41bf9eea6e57d7d637b30b2b5a9d80e81098c | [] | no_license | zmactep/llfgg | ea222b377095a42e0de5cf8d4846aff806ce0f31 | ed684ae69b94a4a042615c412fef68bdec8fc80c | refs/heads/master | 1,585,131,334,279 | 1,533,894,322,000 | 1,533,894,322,000 | 143,688,771 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,684 | lean | -- Высказывания, связки и аксиомы
namespace props
constant and' : Prop → Prop → Prop -- все высказывания в Lean живут в специальной вселенной Prop
-- таким образом различными операциями над высказываниями являются
-- просто фун... |
7ab13c02016cf2bb850bb53d3a3871817e10d3ed | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/topology/algebra/group.lean | 21d66dff1eb088dacac79848d2f1f8ddf125fc6d | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 20,831 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of topological groups.
-/
import order.filter.pointwise
import group_theory.quotient_group
import topology.algebra.monoid
import... |
a03e129b305ce0e350dff252ccd0f786966a2df1 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/applications_lineaires/cpge_applin_10.lean | f66051746b26428eb2619a25220b6186a28acb82 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 457 | lean | import algebra.module.linear_map
import linear_algebra.basic
import data.real.basic
import linear_algebra.affine_space.finite_dimensional
import linear_algebra.affine_space.affine_map
open_locale affine
theorem cpge_applin_10 (k : Type*) {V : Type*} {E : Type*} [field k] [add_comm_group V] [module k V]
[affine_sp... |
58665137814330617fefa0f27b43cd2371e97f5c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/list/indexes.lean | f8aa55881c805b8d30a80ee440bedacf39a56d8d | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,705 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import data.list.range
/-!
# Lemmas about list.*_with_index functions.
Some specification lemmas for `list.map_with_index`, `list.mmap_with_index`, `list.foldl_with... |
f9700d0442a0f0d26ec0bb4d68360dcd53b81406 | ea4aee6b11f86433e69bb5e50d0259e056d0ae61 | /src/tidy/monadic_chain.lean | 160379e66b9fb7ff5ce4db6b5fd5c7599cebeb34 | [] | no_license | timjb/lean-tidy | e18feff0b7f0aad08c614fb4d34aaf527bf21e20 | e767e259bf76c69edfd4ab8af1b76e6f1ed67f48 | refs/heads/master | 1,624,861,693,182 | 1,504,411,006,000 | 1,504,411,006,000 | 103,740,824 | 0 | 0 | null | 1,505,553,968,000 | 1,505,553,968,000 | null | UTF-8 | Lean | false | false | 5,137 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import .if_then_else
import .tactic_states
import .loop_detection
import .recover
open nat tactic
universe variables u
meta def interaction_monad.done {σ : Typ... |
b165404f8285435ec2bdc9747a010e8d22cb5aa1 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/category_theory/abelian/projective.lean | 68156ef0055fd60328b31652f96732f803b4097a | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 4,165 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison, Jakob von Raumer
-/
import algebra.homology.quasi_iso
import category_theory.preadditive.projective_resolution
import category_theory.preadditive.yoneda.l... |
9b0f433cf93a0fd18aff183ccae13d4cfbbbaa07 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/types/pullback.hlean | f2ae1ca65b9b1c9c48cb12fec3986c183b060e8a | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 6,151 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about pullbacks
-/
import cubical.square
open eq equiv is_equiv function prod unit is_trunc sigma
variables {A₀₀ A₂₀ A₄₀ A₀₂ A₂₂ A₄₂ : Type}
(f₁... |
d53867f0b72c72e98afa81e5e0d816bcb903c677 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/qpf/multivariate/default.lean | 79a873f15ed4b72ffefcc96d7d2944a2fef0d6c3 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 540 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.qpf.multivariate.basic
import Mathlib.data.qpf.multivariate.constructions.fix
import Mathlib.data.qpf.multivariate.constructions.cofix
import Mathlib.data.qpf.multivariate.constructions.comp
import Mathlib.data.qpf.multivariate.construction... |
528d0e9ef7e5e6491752390a18e330f020bc17a7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/normed_space/indicator_function.lean | 51563fb366e9f7482dbcf0f0207961aa9df5d038 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,910 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.indicator_function
import Mathlib.analysis.normed_space.basic
import Ma... |
92cc0488ed361afa6bb4a48098928c7996b1c16e | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/instances/groups.lean | 6a927a4dd54fb62eb031070049c73708907cbb73 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 2,014 | lean | /- Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
Introduce Group -- the category of groups.
Currently only the basic setup.
Copied from monoids.lean.
-/
import algebra.punit_instances
import category_theory.concrete... |
49e50241f7bc1fd82daaa33eb28230fa590575c4 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/linear_algebra/eigenspace.lean | dcaf76cfc43677fd631f3bbfd444cb1bef8f86ce | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,174 | lean | /-
Copyright (c) 2020 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Alexander Bentkamp.
-/
import field_theory.algebraic_closure
import linear_algebra.finsupp
import linear_algebra.matrix
/-!
# Eigenvectors and eigenvalues
This file defines eigen... |
d5608d6b8581b1ac3e89e3450f48cb8999dbefaa | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebraic_topology/simplex_category.lean | 36815db57f061b34ad9a9d4229fea2aa844a4bec | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 27,246 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison, Adam Topaz
-/
import category_theory.skeletal
import tactic.linarith
import data.fintype.sort
import order.category.NonemptyFinLinOrd
import category_t... |
bce2c75c2fb596cf9ecf97afd7e76058f5b75795 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/multiset/basic.lean | 515aed2fffe644b5296ef55a67ce4cdf78247e93 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 95,603 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.bool.all_any
import data.list.perm
/-!
# Multisets
These are implemented as the quotient of a list by permutations.
## Notation
We define the glob... |
ec8c40e89062ff1182acc14ecc2aa448b5684d26 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/algebraic_card.lean | cf43779263e5d8e693a4da0fd468b459d3a17a78 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,672 | lean | /-
Copyright (c) 2022 Violeta Hernández Palacios. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Violeta Hernández Palacios
-/
import data.polynomial.cardinal
import ring_theory.algebraic
/-!
### Cardinality of algebraic numbers
In this file, we prove variants of th... |
f6dc0a8b21208a280842580c8a354912e8c3df0a | 09b3e1beaeff2641ac75019c9f735d79d508071d | /Mathlib/Tactic/Spread.lean | 2bd592fa14dc7102a0cb9aaf3fddaa62db7ff29a | [
"Apache-2.0"
] | permissive | abentkamp/mathlib4 | b819079cc46426b3c5c77413504b07541afacc19 | f8294a67548f8f3d1f5913677b070a2ef5bcf120 | refs/heads/master | 1,685,309,252,764 | 1,623,232,534,000 | 1,623,232,534,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,000 | lean | /-
Copyright (c) 2021 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import Lean
open Lean Meta Elab Term Parser.Term
/-
This adds support for structure instance spread syntax.
```lean
instance : Foo α where
__ := instSomething -- in... |
8fb7f9a9f9239992066a4c307247fb1e3742b3d0 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/analysis/normed_space/bounded_linear_maps.lean | ffc43eca1571c34ab6130dad00e2641b2a0b5437 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 19,228 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Continuous linear functions -- functions between normed vector spaces which are bounded and linear.
-/
import analysis.normed_space.multilinear
noncomp... |
002125135fb93169ba61536a1cb9ee821b312c69 | 8c3de0f4873364ba4a1bb0f7791f3a52876ecea2 | /src/maclane_birkhoff_survey_modern_algebra_sections_1.3.lean | 008306f171b3d1b795444a8c80b83521d086f1c0 | [
"Apache-2.0"
] | permissive | catskillsresearch/grundbegriffe | 7c2d410fabe59b8cbc19af694ec5cf30ee3ffa93 | e8aa4fe66308d9e6e85d5bdedd9d981af99f17f7 | refs/heads/master | 1,677,131,919,219 | 1,611,887,691,000 | 1,611,887,691,000 | 318,888,979 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,646 | lean | import tactic
import tactic.slim_check
import algebra.ordered_ring
universe u
-- 1.3. Properties of Ordered Domains
-- closest match to Birkhoff-Mac Lane "ordered domain is"
#check linear_ordered_comm_ring -- Mario Carneiro
-- Exercises for section 1.3
theorem ex_1_3_1_a (α: Type u) [linear_ordered_comm_ring α]
... |
ed55f9e59d6e8621d2f47ccb83604e7fbe5e2563 | 37683ecbb27d7c2037bfd9ad7e06d662f460a005 | /move_to_lib.hlean | 8b1b09406745fd72e2e730a6afe5d86f70eeb81e | [
"Apache-2.0"
] | permissive | GRSEB9S/Spectral-1 | b2443b09cae7aac1247b1f88c846c532ac802b8e | dd14277e0bfc6270a488eb3b9ec231484065b9d8 | refs/heads/master | 1,631,315,269,407 | 1,522,048,315,000 | 1,522,799,803,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 94,086 | hlean | -- definitions, theorems and attributes which should be moved to files in the HoTT library
import homotopy.sphere2 homotopy.cofiber homotopy.wedge hit.prop_trunc hit.set_quotient eq2 types.pointed2 algebra.graph algebra.category.functor.equivalence
open eq nat int susp pointed sigma is_equiv equiv fiber algebra trunc... |
d02fd658678701338af34a00e168ec3f2cae3c08 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/list/of_fn.lean | 44aba8e1e482fc096517e159e295086e15b289e9 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 3,221 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.basic
import data.fin
universes u
variables {α : Type u}
open nat
namespace list
/- of_fn -/
theorem length_of_fn_aux {n} (f : fin n → α) :
∀ ... |
4c1679c673a8b9679642b2608e816b13d313fd8a | dc06cc9775d64d571bf4778459ec6fde1f344116 | /src/ring_theory/ideals.lean | 078a201e7cad1ac86372271f832ade6dbb7f9e06 | [
"Apache-2.0"
] | permissive | mgubi/mathlib | 8c1ea39035776ad52cf189a7af8cc0eee7dea373 | 7c09ed5eec8434176fbc493e0115555ccc4c8f99 | refs/heads/master | 1,642,222,572,514 | 1,563,782,424,000 | 1,563,782,424,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,751 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.associated linear_algebra.basic order.zorn
universes u v
variables {α : Type u} {β : Type v} {a b : α}
open set function lattice
... |
e9e0920bc39b6524b22d5a842a7b6e2e605b3962 | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/tools/super/factoring.lean | 628d97c6be3b33f15aa34c62a1fe872c116a6fa4 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,664 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .prover_state .subsumption
open tactic expr monad
namespace super
variable gt : expr → expr → bool
meta def inst_lit (c : clause) (i : nat) (e : expr)... |
08d84b42efbcc7a2ade0730e9d3cb854120a3272 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/algebra/module/basic.lean | 350ae5b2ed84f1d1c3dead21818b788a27187ce9 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,186 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import algebra.big_operators.basic
import algebra.smul_with_zero
import group_theory.group_action.group
/-!
# Modu... |
768e0f37c27dbd6b722435b7941873eec8698559 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/data/fintype/basic.lean | 187c986044b3cd516aa636eb9d8593e09c2b5b6f | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 39,395 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset data.array.lemmas logic.unique
import tactic.wlog
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
/-- `fintype α` means... |
e021b6ad7bdb7e6f9db2d7fd7f7a2143691667b1 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world7/level5.lean | 5a7b9d195fab8cceb97f98d314aa19a98d99e127 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 1,004 | lean | /-
# Advanced proposition world.
## Level 5: `iff_trans` easter eggs.
Let's try ``iff_trans` again. Try proving it in other ways.
### A trick.
Instead of using `cases` on `h : P ↔ Q` you can just access the proofs of `P → Q` and `Q → P`
directly with `h.1` and `h.2`. So you can solve this level with
```
intros ... |
b4e0e2b9e6433227a4ddcd49b7ffe8ac5ba27847 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/topology/algebra/infinite_sum.lean | c92b7babbb5a0f59303614e4efcab866174adc8f | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 35,744 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Infinite sum over a topological monoid
This sum is known as unconditionally convergent, as it sums to the same value under all possible
permutations. For Euclidean spa... |
20a644d30cab845b4863135eb73691cad9ba99c9 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/linear_algebra/matrix/adjugate.lean | e082ee796431e80b94864a57cc456b8f0fa5c187 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 18,994 | lean | /-
Copyright (c) 2019 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import algebra.associated
import algebra.regular.basic
import linear_algebra.matrix.mv_polynomial
import linear_algebra.matrix.polynomial
import ring_theory.polynomial.basi... |
5d63ca6a4bfd89a8dc665752118afca28f616780 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/adjunction/basic.lean | f51e02b4f7f773f14b6b00980da138f044062af1 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 19,390 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Bhavik Mehta
-/
import category_theory.equivalence
/-!
# Adjunctions between functors
`F ⊣ G` represents the data of an adjunction between two functors
`F :... |
f4f4890c372467be2e900cec62967533cd110a0e | 976d2334b51721ddc405deb2e1754016d454286e | /lean_at_mc2020_source/source/solutions/exercise_prime.lean | 5c02821560f7c6175379c576d1982a91fa6c96d9 | [] | no_license | kbuzzard/lean-at-MC2020 | 11bb6ac9ec38a6caace9d5d9a1705d6794d9f477 | 1f7ca65a7ba5cc17eb49f525c02dc6b0e65d6543 | refs/heads/master | 1,668,496,422,317 | 1,594,131,838,000 | 1,594,131,838,000 | 277,877,735 | 0 | 0 | null | 1,594,142,006,000 | 1,594,142,005,000 | null | UTF-8 | Lean | false | false | 2,415 | lean | import data.nat.prime
import data.nat.parity
import tactic
example (P : Prop) : ¬ ¬ ¬ P → ¬ P :=
begin
intros nnnp p, apply nnnp,
intro np, apply np,
apply p,
end
example (p : ℕ) : p.prime → p = 2 ∨ p % 2 = 1 :=
begin
library_search,
end
#check @nat.prime.eq_two_or_odd
lemma eq_two_of_even_prime {p : ℕ}... |
8c2f60be91cbdea5427fe5c59bdfc31a0b415180 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/calculus/darboux.lean | 83cc696ac08ef668647d2600ee5579ffd95ae526 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,090 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.calculus.mean_value
import Mathlib.PostPort
namespace Mathlib
/-!
# Darboux's ... |
3c1d2e41d17ef9bb425fbc6ff29147ce2c1ac8fe | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Meta/Transform.lean | 755f197b7583a0433887132fadff88ade162db8a | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,341 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
namespace Lean
inductive TransformStep :=
| done (e : Expr)
| visit (e : Expr)
namespace Core
/--
Tranform the expression ... |
28ff04c100ca00dcb9cf6c3fd4f7a4c5a762652c | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/fold.lean | f29e2ebba5ba0f9ac0fcd54fd208fa76112caff0 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 871 | lean | prelude
definition Prop := Type.{0} inductive true : Prop := intro : true inductive false : Prop constant num : Type
inductive prod (A B : Type) := mk : A → B → prod A B infixl `×`:30 := prod
variables a b c : num
context
notation `(` t:(foldr `,` (e r, prod.mk e r)) `)` := t
check (a, false, b, true, c)
set_opt... |
c1225e8a1fb74c3850fe9c17778aa81ba415a1e5 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/vector_bundle.lean | f5def52fdb1bfd10efcac890f2920ed310f6a396 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 17,732 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Sebastien Gouezel
-/
import topology.fiber_bundle
import topology.algebra.module.basic
/-!
# Topological vector bundles
In this file we define topological vector b... |
847b8abbf3e75a940dbdff1f35150fa9c0bd039d | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Lean/Meta/Tactic/Rewrite.lean | f057ee311d3b727376c41f6aa672877137d8c9be | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,902 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.AppBuilder
import Lean.Meta.MatchUtil
import Lean.Meta.KAbstract
import Lean.Meta.Check
import Lean.Meta.Tactic.Apply
namespace Lean.Meta
... |
c5599a28239d670ebb2bfb1dace0d6b67a9a8d27 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/monoid/to_mul_bot.lean | 87b6ec8497284f7e66364a744d071d2777c9b999 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,631 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.order.with_zero
import algebra.order.monoid.with_top
import algebra.order.monoid.type_tags
/-!
Making... |
dc57ac3819249f691256625c9830f49a7477b2d6 | 80d0f8071ea62262937ab36f5887a61735adea09 | /src/certigrad/program.lean | 48889ef2eaf803bf70816e9e47b3f38388ff79c9 | [
"Apache-2.0"
] | permissive | wudcscheme/certigrad | 94805fa6a61f993c69a824429a103c9613a65a48 | c9a06e93f1ec58196d6d3b8563b29868d916727f | refs/heads/master | 1,679,386,475,077 | 1,551,651,022,000 | 1,551,651,022,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,204 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
A term language for conveniently constructing stochastic computation graphs.
-/
import .tensor .graph .tactics .ops data.hash_map
#print "compiling program..."
namespace... |
25a85247a9728fa3e32df52248c06de1b3ddd308 | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/topology/instances/ennreal.lean | 207331eb3d1d1a894fd1d1077ea168bcb04eed3e | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 28,883 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Extended non-negative reals
-/
import topology.instances.nnreal data.real.ennreal
noncomputable theory
open classical set lattice filter metric
local attribute [instance... |
fa523345f25c047036efa2aaf983fc32c2e09aa8 | 367134ba5a65885e863bdc4507601606690974c1 | /src/linear_algebra/eigenspace.lean | d26cb8b24512c06b0154286ddc756424426fb118 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 24,179 | lean | /-
Copyright (c) 2020 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Alexander Bentkamp.
-/
import field_theory.algebraic_closure
import linear_algebra.finsupp
import linear_algebra.matrix
/-!
# Eigenvectors and eigenvalues
This file defines eigen... |
ace71b57fd7a430e167440d044cb6771372fb1a8 | fc086f79b20cf002d6f34b023749998408e94fbf | /src/tidy/transport.lean | a9a5f729a24aac329dc0f86a923d407e504ef0b0 | [] | no_license | semorrison/lean-tidy | f039460136b898fb282f75efedd92f2d5c5d90f8 | 6c1d46de6cff05e1c2c4c9692af812bca3e13b6c | refs/heads/master | 1,624,461,332,392 | 1,559,655,744,000 | 1,559,655,744,000 | 96,569,994 | 9 | 4 | null | 1,538,287,895,000 | 1,499,455,306,000 | Lean | UTF-8 | Lean | false | false | 3,149 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
definition {u v} transport {A : Type u} { P : A → Type v} {x y : A} (u : P x) (p : x = y) : P y :=
by induction p; exact u
@[simp] lemma {u v} congr_arg_refl {α ... |
dfd8335544d01e11699601923a8b2c10b152cc70 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/geometry/manifold/bump_function.lean | a181524df70cb1cb6a944d978b06d33a1aebc45a | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,052 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.specific_functions
import geometry.manifold.diffeomorph
import geometry.manifold.instances.real
/-!
# Smooth bump functions on a smooth ma... |
759adc38fca5941dc73bd151ae45a55f0ba6d2da | 3446e92e64a5de7ed1f2109cfb024f83cd904c34 | /src/game/world4/level4.lean | 526cb7185b1734acf175a24fba869dc6d75dabdc | [] | no_license | kckennylau/natural_number_game | 019f4a5f419c9681e65234ecd124c564f9a0a246 | ad8c0adaa725975be8a9f978c8494a39311029be | refs/heads/master | 1,598,784,137,722 | 1,571,905,156,000 | 1,571,905,156,000 | 218,354,686 | 0 | 0 | null | 1,572,373,319,000 | 1,572,373,318,000 | null | UTF-8 | Lean | false | false | 359 | lean | import game.world4.level3 -- hide
namespace mynat -- hide
/-
# World 4 : Power World
## Level 4 of 7: `one_pow`
-/
/- Lemma
For all naturals $m$, $1 ^ m = 1$.
-/
lemma one_pow (m : mynat) : (1 : mynat) ^ m = 1 :=
begin [less_leaky]
induction m with t ht,
rw pow_zero,
refl,
rw pow_succ,
rw ht,
rw mu... |
435cf8b12115c35029c9a265425f908a3f06b227 | a5e2e6395319779f21675263bc0e486be5bc03bd | /bench/stlc10k.lean | 1b2e48f5eb86db6605552f188f31d88a661bf693 | [
"MIT"
] | permissive | AndrasKovacs/smalltt | 10f0ec55fb3f487e9dd21a740fe1a899e0cdb790 | c306f727ba3c92abe6ef75013da5a5dade6b15c8 | refs/heads/master | 1,689,497,785,394 | 1,680,893,106,000 | 1,680,893,106,000 | 112,098,494 | 483 | 26 | MIT | 1,640,720,815,000 | 1,511,713,805,000 | Lean | UTF-8 | Lean | false | false | 587,910 | lean | def Ty0 : Type 1
:= ∀ (Ty0 : Type)
(nat top bot : Ty0)
(arr prod sum : Ty0 → Ty0 → Ty0)
, Ty0
def nat0 : Ty0 := λ _ nat0 _ _ _ _ _ => nat0
def top0 : Ty0 := λ _ _ top0 _ _ _ _ => top0
def bot0 : Ty0 := λ _ _ _ bot0 _ _ _ => bot0
def arr0 : Ty0 → Ty0 → Ty0
:= λ A B Ty0 nat0 top0 bot0 arr0 ... |
2986670a997d13c73a7fb07fe94cec64f0e8c320 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /test/linarith.lean | 4462f76b987d94aaacea6d53d3c85fdbde2143b1 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,539 | lean | import tactic.linarith
import algebra.field_power
example {α : Type} (_inst : Π (a : Prop), decidable a)
[linear_ordered_field α]
{a b c : α}
(ha : a < 0)
(hb : ¬b = 0)
(hc' : c = 0)
(h : (1 - a) * (b * b) ≤ 0)
(hc : 0 ≤ 0)
(this : -(a * -b * -b + b * -b + 0) = (1 - a) * (b * b))
(h : (1 - a) * (b * ... |
52f61a848d3b1720e71df128d0a15cb5f62658d0 | 36938939954e91f23dec66a02728db08a7acfcf9 | /old-lean4/test_json_parse.lean | c7205eb35a9b7f5cb79baca971b8cf3dc7e51000 | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 445 | lean | import json
open json
def mkTree : ℕ → Value
| 0 := Value.null
| (Nat.succ n) :=
let t := mkTree n in
Value.listObj [("a", t), ("b", t)]
open IO.Fs
def main (xs : List String) : IO Unit := do
let t := mkTree xs.head.toNat,
let val := toString t,
(match readFromString val Value.readValue with
| (EState.Re... |
6d99a91d11a16efff5991428b9da1ccdb09a65cb | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/tactic/linarith/frontend.lean | 953b0ef92c98bc47d7f711429f46e8f17901add4 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 17,882 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import tactic.linarith.verification
import tactic.linarith.preprocessing
/-!
# `linarith`: solving linear arithmetic goals
`linarith` is a tactic for solving goal... |
73efaa4d794b4c0341502401adf836ce164a99b1 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/category/functor.lean | 7e4d925e731d2d4c70b1cdedcf6e05b2635df300 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 845 | lean | /-
Copyright (c) Luke Nelson and Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch, Sebastian Ullrich
-/
prelude
import init.core init.function
open function
universes u v
class functor (f : Type u → Type v) : Type (max u+1 v) :=
(... |
1598a5194d1061bdc4237ee9dc9a75bc8c8de283 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Compiler/IR/NormIds.lean | 5a22dbe70c03c15f00547b98ddd9d0c8f2ec2eaa | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 7,637 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.IR.Basic
namespace Lean.IR.UniqueIds
abbrev M := StateT IndexSet Id
def checkId (id : Index) : M Bool :=
modifyGet fun s =>
if... |
4e27e8d3480db3cb1dfed8cf5c87eade089c09ca | 7a468d7c7c0949ab8b191bb62ff6d4d2af9f3917 | /src/smt2/builder.lean | b8067ea056aa624d5f67ad144642972061dc395d | [
"Apache-2.0"
] | permissive | seanpm2001/LeanProver_SMT2_Interface | c15b2fba021c406d965655b182eef54a14121b82 | 7ff0ce248b68ea4db2a2d4966a97b5786da05ed7 | refs/heads/master | 1,688,599,220,366 | 1,547,825,187,000 | 1,547,825,187,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,731 | lean | import .syntax
@[reducible] def smt2.builder :=
except_t string (state (list smt2.cmd))
instance smt2.builder.monad : monad smt2.builder :=
by apply_instance
meta def smt2.builder.to_format {α : Type} (build : smt2.builder α) : format :=
format.join $ list.intersperse "\n" $ (list.map to_fmt $ (build.run.run []).snd... |
babf03602635bfb532ed0345c26129333e5077f3 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /library/data/set/function.lean | f0bb4e9afc822341e691fdf0c3971d95c0e2ef67 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,734 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Andrew Zipperer, Haitao Zhang
Functions between subsets of finite types.
-/
import .basic
open function eq.ops
namespace set
variables {X Y Z : Type}
/- preimages -/
... |
0c3c0fb72949d2a4df45d2b68b6e47be2020fec2 | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Util.lean | 716c0c03433eed4db23b3312b4e1d29948b3e606 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,125 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.String.Basic
import Init.Data.ToString
universes u v
/- debugging helper functions -/
@[neverExtract, extern "lean_dbg_trace"]
def... |
f9521b67e2ec919225f4b3d49956a885c329ead5 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/uniform_space/separation.lean | e98ab331eb197cfe21ce2126046663eab8bb2010 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,586 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot
-/
import topology.uniform_space.basic
import tactic.apply_fun
import data.set.pairwise
/-!
# Hausdorff properties of uniform spaces. Separation quotie... |
3a8a14f0c04303d04eff8fb5e56754578ce544fd | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /src/for_mathlib/nat.lean | 90c5899d4e44c17925290012a45fe35e5f6f346f | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 234 | lean | /-- Recursor for `nat` that uses `n+1` rather than `n.succ` in the inductive step. -/
@[elab_as_eliminator]
def nat.rec_plus_one {C : ℕ → Sort*} (h₁ : C 0) (h₂ : Π (n : ℕ), C n → C (n+1)) : Π n, C n :=
nat.rec h₁ h₂
|
210f51545f3005fc6fccd815a4e6653d219f907d | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/group_theory/sylow.lean | 5edfe94ce2f4012f11d3d2ec495cf84c432ad553 | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 11,459 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.group_action group_theory.quotient_group
import group_theory.order_of_element data.zmod.basic algebra.pi_instances
local attribute [instance, priorit... |
32dfecf0d18f78ef1f4c70f9d42a746bd22fd134 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /archive/imo/imo1998_q2.lean | 3a4366011ac2d7a9db581a475b0385ebbdea2435 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,719 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import data.fintype.basic
import data.int.parity
import algebra.big_operators.order
import tactic.ring
import tactic.noncomm_ring
/-!
# IMO 1998 Q2
In a competition, there... |
1312ab8e8f9dcc07e9843a871e24fa33483cc98a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/order/archimedean.lean | 3a307b1cb228101fbe255af4e9cc2bfdeff9691b | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 15,813 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.field_power
import data.int.least_greatest
import data.rat.floor
/-!
# Archimedean groups and fields.
This file defines the archimedean property for ... |
64d2d28a1a7815b003a19612368d92c5a6b93179 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/polynomial/integral_normalization.lean | 25973a5665194c876c48cbef7a3bec48d7100c47 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 5,316 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.algebra_map
import data.polynomial.monic
/-!
# Theory of monic polynomials
We define `integral_no... |
4df9f4ba547006ad0f2c562294967f5b4cb722d5 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed_space/is_R_or_C.lean | 403f56e8030ab72b4eddca1d2df6c19a517feb2e | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,016 | lean | /-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import data.is_R_or_C.basic
import analysis.normed_space.operator_norm
import analysis.normed_space.pointwise
/-!
# Normed spaces over R or C
> THIS FILE IS SYNCHRONIZE... |
f9ad8c78788b968620e31e270ad46134772f3646 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/fintype/sort.lean | 551e297a1002d17a1e0f98be36bffc7c8efc96ed | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,243 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.finset.sort
import data.fintype.basic
/-!
# Sorting a finite type
This file provides two equivalences for linearly ordered fintypes:
* `mono_equiv_of_fi... |
3817b7d2374bd0cb1994c351d07adc1b79fb818b | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/common/cairo_secp/bigint_spec.lean | 0005a434ab6ffade4639ed243c34a7a057e76cc7 | [] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 23,869 | lean | /-
Specifications file for bigint_spec.cairo
Do not modify the constant definitions, structure definitions, or automatic specifications.
Do not change the name or arguments of the user specifications and soundness theorems.
You may freely move the definitions around in the file.
You may add definitions and ... |
2581680e10c9f6204e891060ffc774b9655d3a56 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0719.lean | 5a8c5c8245c6d63c8314a306dfde0008209ce1cf | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 536 | lean | import data.list.basic
open list
universe u
variables {α : Type} (x y z : α) (xs ys zs : list α)
def mk_symm (xs : list α) := xs ++ reverse xs
theorem reverse_mk_symm (xs : list α) :
reverse (mk_symm xs) = mk_symm xs :=
by simp [mk_symm]
attribute [simp] reverse_mk_symm
example (xs ys : list ℕ) :
reverse (xs ... |
c8fd0cfef46a274cc42efd5225ba269883e16f84 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Util/Trace.lean | 67ae1512e979a8e7debef0d2bc0f5dca6745a2f8 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,727 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura
-/
import Lean.Message
import Lean.MonadEnv
universe u
namespace Lean
open Std (PersistentArray)
structure TraceElem where
ref : Syntax... |
b8d2b5221b18cd4f260024e8ce90a81c8b0925a9 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/logic/examples/instances_test.lean | c0181cb1f9369d1af17ffc788df1a81787604757 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,236 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Illustrates substitution and congruence with iff.
-/
import ..instances
open relation
open relation.general_subst
open relation.iff_ops
open eq.ops
example (a b ... |
9c9a27d9370fe71b603911b156e1ee5f6c56f444 | 1e561612e7479c100cd9302e3fe08cbd2914aa25 | /mathlib4_experiments/Data/Equiv/Basic.lean | 00feb48747fbc0ae076564c055cc8b6f6c2bfa48 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib4_experiments | 8de8ed7193f70748a7529e05d831203a7c64eedb | 87cb879b4d602c8ecfd9283b7c0b06015abdbab1 | refs/heads/master | 1,687,971,389,316 | 1,620,336,942,000 | 1,620,336,942,000 | 353,994,588 | 7 | 4 | Apache-2.0 | 1,622,410,748,000 | 1,617,361,732,000 | Lean | UTF-8 | Lean | false | false | 2,561 | lean | /-
Quick&dirty port of some parts of `data.equiv.basic` from Lean 3.
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import mathlib4_experiments.Data.Notation
set_option autoBoundImpli... |
1d3c01cde5658c906f699667594b93e0154d6891 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/int/basic.lean | cbcd47b7f968721130277a6104d2151398d16402 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55,741 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.nat.pow
import order.min_max
/-!
# Basic operations on the integers
This file contains:
* instances on `ℤ`. The stronger one is `int.linear_ordered_comm_r... |
9c869cd47f6fad975af666b157e400aa0be5607a | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/basis.lean | 413fcd6ff3d9d373b746e07622f5e592a7d00bfd | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 48,715 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp
-/
import algebra.big_operators.finsupp
import algebra.big_operators.finprod
import data.fintype.card
import linear_algebra.finsupp
i... |
b1df105d9b4f416d974c0e4f2da1f0b63bc3e895 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/measure_theory/outer_measure.lean | 83a420076f7190800216cca011c7c841d0f21f65 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 21,331 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import analysis.specific_limits
import measure_theory.measurable_space
import topology.algebra.infinite_sum
/-!
# Outer Measures
An outer measure is... |
f68ee6f9e0d16ed9d17a659dd82b1a33f91d7e66 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/lean-scheme-submission/src/sheaves/stalk_of_rings_on_standard_basis.lean | 7e1d459f82dcc36b67545c8d8431e2efc70fa780 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,192 | lean | /-
Stalk of rings on basis.
https://stacks.math.columbia.edu/tag/007L
(just says that the category of rings is a type of algebraic structure)
-/
import to_mathlib.opens
import topology.basic
import sheaves.stalk_on_basis
import sheaves.presheaf_of_rings_on_basis
universe u
open topological_space
names... |
e1c01e8b770a952b81135753154701bb266e3db9 | 3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a | /src/combinatorics/simplicial_complex/to_move/continuous_linear_map.lean | 00fbdc2c78d14d755bd814849f3954cb694264ce | [] | no_license | mmasdeu/brouwerfixedpoint | 684d712c982c6a8b258b4e2c6b2eab923f2f1289 | 548270f79ecf12d7e20a256806ccb9fcf57b87e2 | refs/heads/main | 1,690,539,793,996 | 1,631,801,831,000 | 1,631,801,831,000 | 368,139,809 | 4 | 3 | null | 1,624,453,250,000 | 1,621,246,034,000 | Lean | UTF-8 | Lean | false | false | 502 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import topology.algebra.module
theorem continuous_linear_map.is_linear {R : Type*} [semiring R] {M : Type*} [topological_space M]
[add_comm... |
d7f75f0a8c60cda96d2b8cb47dcc565640248da8 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /library/theories/group_theory/cyclic.lean | 3f861bafb11f0e66a9162000132c0496749f1480 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,847 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import data algebra.group algebra.group_power .finsubg .hom .perm
open function finset
open eq.ops
namespace group_theory
section cyclic
open nat fin list
local attr... |
b3bf60b07a784b5b2d572ee04a69230df7210fd9 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/topology/algebra/ring.lean | 0986e29dd05397d7aeccf9d8e6a8407bfc889a84 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,042 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Theory of topological rings.
-/
import topology.algebra.group
import ring_theory.ideal.basic
import ring_theory.subring
import algebra.ring.prod
/-!
#... |
76e4e22edf71beb74b8e86fc565c58f961be95ad | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Elab/App.lean | 8c8846dad722ae669997a4f5731a7f5a1366c5c3 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,839 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.FindMVar
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.Elab.SyntheticMVars
namespace Lean.Elab.Term
open Meta
builtin_initia... |
dcc3009a6a20b8167ebfbcef409feef427b2e4a3 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/state.lean | 08ed7347c150d0f036473e4c8781af72dba51bba | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,137 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.logic init.monad init.alternative init.prod
definition state (S : Type) (A : Type) : Type :=
S → A × S
section
set_option pp.all true
... |
043c26bbb57ae9d1dce73b4394efb3de7c35e765 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/field_theory/primitive_element.lean | 4bac81b5fed320c1cc16a551f083325f7152dea9 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,812 | lean | /-
Copyright (c) 2020 Thomas Browning and Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning and Patrick Lutz
-/
import field_theory.adjoin
import field_theory.separable
/-!
# Primitive Element Theorem
In this file we prove the primitive el... |
63eda34c0a0847c0e188dcf6efba756ac589e190 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/squeeze.lean | 471afee4507d787b1cd751d22f8f5fc99c8f7daa | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 12,283 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import control.traversable.basic
import tactic.simpa
open interactive interactive.types lean.parser
private meta def loc.to_string_aux : option name → string
| none := "⊢"... |
72bf70738c273bea136a412481838922e89a7420 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/group_theory/submonoid/pointwise.lean | a91f171ad906e88574d62f82d657b97b98260a27 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 17,758 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import data.set.pointwise
import group_theory.submonoid.membership
/-! # Pointwise instances on `submonoid`s and `add_submonoid`s
This file provides:
* `submonoid.has_in... |
ee9e102a91fdc2c7cea136228dadc57a8fac5508 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/match_tac4.lean | 787cc25dc39b6994f0ce2e09afefea6bfeaa6612 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 759 | lean | notation `⟪`:max t:(foldr `,` (e r, and.intro e r)) `⟫`:0 := t
check ⟪ trivial, trivial, trivial ⟫
theorem tst (a b c d : Prop) : a ∧ b ∧ c ∧ d ↔ d ∧ c ∧ b ∧ a :=
begin
apply iff.intro,
begin
intro H,
match H with
| ⟪ H₁, H₂, H₃, H₄ ⟫ := ⟪ H₄, H₃, H₂, H₁ ⟫
end
end,
begin
intro H,
match... |
c3617c84200a8f5243782d8a8c75ce7442ddaf97 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/functor/flat.lean | 826bb9a02ff200570a68acdb3177b705cb473111 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 16,390 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.limits.filtered_colimit_commutes_finite_limit
import category_theory.limits.preserves.functor_category
import category_theory.limits.preserves.shapes... |
4757edfc36b810cce3dd98c388bdc1ee5a969b4d | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/data/padics/padic_integers.lean | 6bd2c4debc09ed22c9a6c20d859074daf9ee7ac9 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 10,571 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Mario Carneiro
-/
import data.int.modeq
import data.padics.padic_numbers
/-!
# p-adic integers
This file defines the p-adic integers ℤ_p as the subtype of ℚ_p with ... |
5a11920a8fc88122a35238484aae0f86f457a2a0 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /08_Building_Theories_and_Proofs.org.38.lean | 29376c360592337a598c32a648c88acb516ff0d0 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 116 | lean | import standard
import data.list
open list
local abbreviation induction_on := @list.induction_on
check induction_on
|
bab00c7db5e70bf839006c3a571ad0e4219570a9 | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /notes/2020.02.25-higher_order.lean | bb78dae66cb6254e5cfdb6ecc219b42900148253 | [] | no_license | jngo13/Discrete-Mathematics | 8671540ef2da7c75915d32332dd20c02f001474e | bf674a866e61f60e6e6d128df85fa73819091787 | refs/heads/master | 1,675,615,657,924 | 1,609,142,011,000 | 1,609,142,011,000 | 267,190,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 988 | lean | def apply {α β : Type} (f : α → β) (a : α) : β :=
f a
#eval apply nat.succ 1
#eval apply nat.pred 1
#eval apply string.length "I love logic!" --type string to nat, α string and β nat
/-
Returns function as a result
-/
def apply_twice {α : Type} (f : α → α): α → α :=
--takes a function and returns a function as a re... |
6fb68e6e05c2a1c39ac7991d09e1453989da5e3d | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/module/submodule.lean | 7148ba1a2626af2f845f49ac6eb8a1b144c60428 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,072 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import algebra.module.linear_map
import data.equiv.module
import group_theory.group_action.sub_mul_action
/-!
# Su... |
c1e2474b77ea3b86fed7efb34c572d79e64db902 | 649957717d58c43b5d8d200da34bf374293fe739 | /src/topology/Top/stalks.lean | 7ddaaf8dbe1e417084ffb42899e5807e7c11ef4a | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 3,569 | lean | -- Copyright (c) 2019 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import topology.Top.open_nhds
import topology.Top.presheaf
import category_theory.limits.limits
universes v u v' u'
open category_theory
open Top
open category_... |
af05a13f73576a011d9cf410752d91c667e97aa2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/nat/gcd.lean | ffdb6a935e81022f311e263e4a450758409d957d | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,255 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro
Definitions and properties of gcd, lcm, and coprime.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.nat.lemmas
import Math... |
843a50bf17bc6dc74b3e1315df074f10890dd6b2 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/data/is_R_or_C/lemmas.lean | f4685686068ff0d625c8bece2a1f2226bd4167eb | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 2,617 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import analysis.normed_space.finite_dimension
import field_theory.tower
import data.is_R_or_C.basic
/-! # Further lemmas about `is_R_or_C` -/
variables {K E : Typ... |
b1c399a783178ef4027024281d5ac23686573575 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/set/intervals/unordered_interval.lean | ed25f4e8ecb7d10d84ed38e2637de4c7019cdab2 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 10,196 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import order.bounds
import data.set.intervals.image_preimage
/-!
# Intervals without endpoints ordering
In any decidable linear order `α`, we define the set of elemen... |
a8ebf3bbf08abedf70b5da5897092f82deae47dc | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/direct_sum/ring.lean | 94ebf29cfd92d975199b812daa64ff697716d939 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,915 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.algebra.basic
import algebra.algebra.operations
import algebra.direct_sum.basic
import group_theory.subgroup.basic
import algebra.graded_monoid
/-!
# Additi... |
f97c7abff6013948b2ef89fc73a8161272bde431 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/associated.lean | 7225bb23b9df0d1ef0bbcebb8ebf9498a4490ef8 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 27,417 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker
-/
import data.multiset.basic
import algebra.divisibility
/-!
# Associated, prime, and irreducible elements.
-/
variables {α : Type*} {β : Type*} {γ : ... |
7e9e2499563f8efa105f9f6220991008dc00b54f | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/quandle.lean | 481d9047c8649dd8fce01da000118bca703c7815 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 24,733 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import algebra.hom.equiv.basic
import algebra.hom.aut
import data.zmod.defs
import tactic.group
/-!
# Racks and Quandles
This file defines racks and quandles, algebraic s... |
67d733767e5c62c35d229aced0a7b3d807f83057 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/algebra/category/precategory.hlean | 46748fb390224d7685c7a274d8517ad4eb37f8b0 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 12,413 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import types.trunc types.pi arity
open eq is_trunc pi equiv
namespace category
/-
Just as in Coq-HoTT we add two redundant fields to precategories: assoc' an... |
732046c1f0db564c60556f6cb7df0dfcfc4e40b0 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/lua18.lean | 739fc999219c5bbfa6424a32f46040303e5b9cff | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 587 | lean | import Int.
(*
macro("MyMacro", { macro_arg.Expr, macro_arg.Comma, macro_arg.Expr },
function (env, e1, e2)
return Const({"Int", "add"})(e1, e2)
end)
macro("Sum", { macro_arg.Exprs },
function (env, es)
if #es == 0 then
return iVal(0)
end
local r = es[1]
... |
7153805bd3621f1fae781388003ab52b225a97f8 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/fin.lean | 81358af99cd58b9d669bc23fa1dc16ace9816d06 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 42,368 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
-/
import data.nat.cast
import tactic.localized
import logic.embedding
/-!
# The finite type with `n` elements
`fin n` is the type whose elements are nat... |
d59af7a319f04fb3010edc404e44bc23d0e139c6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/dotNotationAndDefaultInstance.lean | 3fb21b032367aa9fc8d22e06f9d14caa780501c0 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 377 | lean | namespace Ex
class Get (Cont : Type u) (Idx : Type v) (Elem : outParam (Type w)) where
get (xs : Cont) (i : Idx) : Elem
export Get (get)
instance [Inhabited α] : Get (Array α) Nat α where
get xs i := xs.get! i
example (as : Array (Nat × Bool)) : Bool :=
(get as 0).2
example (as : Array (Nat × Bool)) : Bool :... |
08a1805d21d8e746a249e52e293a258b243c005e | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/polynomial/denoms_clearable.lean | 2a27d160712e004f27e089717c67487e4f5beff3 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 4,650 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.polynomial.erase_lead
/-!
# Denominators of evaluation of polynomials at ratios
Let `i : R → K` be a homomorphism of semirings. Assume that `K` is commuta... |
31971d443497ae6c3240d2f7f1c54ee4f7e7a130 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/category_theory/adjunction/limits.lean | 7ee6eb77c7c557845084d0657ff081595156abcf | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,993 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin
-/
import category_theory.adjunction.basic
import category_theory.limits.creates
open opposite
namespace category_theory.adjunction
open category_theory
open... |
c7e957f97ffd88e2349350fe32514cc4f88e9b15 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/test/buildArgs/foo/foo.lean | dccecb1f5ca9be55ddfde0f69465845a787e56a5 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 53 | lean | def main : IO Unit :=
IO.println s!"Hello, world!"
|
2ed291985ff66171f9d5541d09f5f49a9ed15eab | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/presheafed_space/gluing.lean | c964bb9f338bf5a14af675d03e3d214a86d33bb9 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 26,443 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import topology.gluing
import algebraic_geometry.open_immersion.basic
import algebraic_geometry.locally_ringed_space.has_colimits
/-!
# Gluing Structured spaces
> THIS FI... |
9f4cfaaf3e329adfb05c35d1413c5f58fd2329d5 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/int/dvd/pow.lean | 1c74d4e8d51a7fd28ac724961e0eb9158267e84a | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 1,265 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.int.dvd.basic
import data.nat.pow
/-!
# Basic lemmas about the divisibility relation in `ℤ` involving powers.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.